autoupdate
[gnulib.git] / ChangeLog
1 2013-11-18  Jim Meyering  <meyering@fb.com>
2         and Paul Eggert  <eggert@cs.ucla.edu>
3
4         quotearg: don't attempt to store 1 << 31 into an "int"
5         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
6         gcc's new -fsanitize=undefined and running its tests triggered some
7         new test failures due to undefined behavior, all with this diagnostic:
8           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
9             cannot be represented in type int
10         Rather than shifting "1" left to form a mask, shift the bits right and
11         simply use "1" as the mask.
12
13 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
14
15         error: depend on stdio
16         Problem reported by Nikos Mavrogiannopoulos in
17         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
18         * modules/error (Depends-on): Add stdio.
19
20 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
21
22         * doc/relocatable-maint.texi (Supporting Relocation): Improve
23         wording.
24         Reported by Reuben Thomas <rrt@sc3d.org>.
25
26 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
27
28         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
29         New function and macro, to work around _DARWIN_C_SOURCE problem.
30         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
31
32 2013-11-11  Pádraig Brady <P@draigBrady.com>
33
34         base64: provide a fast path for encoding well sized buffers
35         Avoid conditionals in the base64 encoding loop,
36         which was seen to give 60% better throughput.
37         * lib/base64.c (base64_encode_fast): A new function to be called
38         when we don't want to NUL terminate, and we have enough space
39         in the output to encode the given input.
40         (base64_encode): Call the _fast() version when appropriate.
41         Also remove a redundant mask with 0x3F on the first encoded byte.
42
43 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44
45         extern-inline: port better to OS X 10.9
46         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
47         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
48         OS X 10.9, except for g++ where the bug is still present.
49         See <http://trac.macports.org/ticket/41033>.
50
51 2013-11-08  Eric Blake  <eblake@redhat.com>
52
53         fpending: fix regression on DragonFly BSD
54         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
55         * lib/fpending.h (__fpending): Don't declare twice.
56         Reported by GW in
57         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
58
59 2013-11-05  Jim Meyering  <meyering@fb.com>
60
61         hash: relax license to LGPLv2+, for libguestfs
62         * modules/hash (License): Change from GPL to LGPLv2+.
63
64 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65
66         intprops: port to Oracle Studio c99
67         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
68         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
69
70 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71
72         obstack: pacify HP C
73         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
74         warning "conversion from pointer to smaller integer" from HP
75         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
76         C89 or later nowadays, so cast to void instead of int.  Privately
77         reported by H.Merijn Brand.  Also, change header to match glibc's,
78         to make checking against glibc easier.
79
80 2013-10-29  Jim Meyering  <meyering@fb.com>
81
82         maint.mk: prefer gpgv2 over gpgv
83         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
84         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
85         Reported by Gary Vaughan.
86
87 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88
89         isnan: port to VAX
90         Reported by John Klos for NetBSD-5/VAX in
91         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
92         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
93         (FUNC): Use it.
94
95 2013-10-28  Jim Meyering  <meyering@fb.com>
96
97         gnulib-tool: protect against CDPATH
98         * gnulib-tool: Many "cd" built-in functions print a directory name
99         to stdout when CDPATH is set, e.g.,
100           $ bash -c 'CDPATH=/; cd tmp'
101           /tmp
102         Unset it, when possible.  Prompted by a comment from Bruce Korb.
103
104         maint.mk: restore functionality removed by recent change...
105         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
106         the context of a shallow-cloned gnulib repository: "git describe"
107         would fail in such a directory.  However, that change made it so
108         the reported gnulib revision no longer includes the version number
109         or a commit count, even when run from a full clone.
110         * top/maint.mk (gnulib-version): Use the full "git describe"
111         output when possible, e.g., the form above, rather than the
112         abbreviated, no-tag, no-commit-count string, and fall back to
113         using a 10-byte hash, rather than the default minimal-length
114         hash prefix, since while the minimal-length one may be fine today,
115         it is likely not to be unique for very long.
116
117 2013-10-26  Jim Meyering  <meyering@fb.com>
118
119         maint.mk: fix "release" target to build _version
120         This fixes a bug in README-release whereby following the outlined
121         steps, one would publish a tarball whose programs would report
122         --version output not consistent with the package version number.
123         This bug caused grep-2.15 to produce a grep program whose
124         --version option made it print 2.14.56-1e3d rather than 2.15.
125         * top/maint.mk (release): Making this target build "_version"
126         ensures that the new version number is reflected in configure.
127
128 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
129
130         install-reloc: Support multi-binary installation.
131         * build-aux/install-reloc: Support installing multiple programs in
132         one invocation, as done by Automake starting with commit
133         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
134         Haible <bruno@clisp.org>, archived at
135         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
136         Reported by Sylvain <beuc@gnu.org>.
137
138 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
139
140         selinux-h: Really build without selinux when library is missing.
141         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
142         continue without selinux, as already told in the warning message.
143
144 2013-10-21  Jim Meyering  <meyering@fb.com>
145
146         regex: also remove dependency on HAVE_WCSCOLL
147         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
148
149 2013-10-21  Reuben Thomas <rrt@sc3d.org>
150
151         xfreopen: Fix typo. s/frepoen/freopen/
152         * lib/xfreopen.c: Fix description.
153         * modules/xfreopen: Likewise.
154
155 2013-10-21  Jim Meyering  <meyering@fb.com>
156
157         regex: don't depend on wcscoll
158         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
159         It is no longer used.
160
161 2013-10-20  Jim Meyering  <meyering@fb.com>
162
163         error: add the printf attribute to a static function
164         * lib/error.c (error_tail): Add the printf attribute, to placate
165         gcc's -Werror=suggest-attribute=format option.
166
167 2013-09-30  Jim Meyering  <meyering@fb.com>
168
169         fpending, obstack, strerror-override: use pure+const function attrs
170         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
171         * lib/obstack.c (_obstack_allocated_p): Likewise.
172         * lib/obstack.h (_obstack_memory_used): Likewise.
173         (_obstack_memory_used): Likewise.
174         * lib/strerror-override.h (strerror_override): Declare with
175         the "const" attribute.
176
177 2013-10-18  Eric Blake  <eblake@redhat.com>
178
179         extern-inline: make safe for -Wundef usage
180         Reported by Vladimir 'phcoder' Serbinenko in
181         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
182         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
183
184 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
185
186         mkfifo-tests, etc.: allow HP-UX 11.11 bug
187         Problem reported by Daniel Richard G. in
188         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
189         * doc/posix-functions/mkfifo.texi (mkfifo):
190         * doc/posix-functions/mkfifoat.texi (mkfifoat):
191         * doc/posix-functions/mknod.texi (mknod):
192         * doc/posix-functions/mknodat.texi (mknodat):
193         Document the HP-UX 11.11 bug.
194         * tests/test-mkfifo.h (test_mkfifo):
195         Allow the HP-UX 11.11 bug.
196
197 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
198
199         acl: allow cross-compilation to Gentoo
200         Problem reported by Gabriel Marcano in
201         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
202         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
203         test only whether it links.
204
205 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
206
207         mgetgroups: remove dependency on realloc-gnu
208         The dependency violates the comment in realloc-gnu, which
209         says that tests can't depend on realloc-gnu; some tests depend
210         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
211         Problem reported by Daniel Richard G. in
212         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
213         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
214         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
215         not realloc-gnu.
216
217 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
218
219         regex-tests: port to HP-UX 11.11
220         Problem reported by Daniel Richard G. in
221         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
222         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
223
224 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
225
226         verify: document some 'assume' pitfalls
227         * doc/verify.texi (Compile-time Assertions):
228         Mention that 'assume (E)' can sometimes slow things down.
229         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
230
231 2013-10-10  Eric Blake  <eblake@redhat.com>
232
233         strtoumax: fix typo in previous commit.
234         * modules/strtoumax (Depends-on): Fix typo.
235         * modules/strtoimax (Depends-on): Likewise.
236
237 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
238
239         strtoumax: port to Solaris 8
240         This problem was introduced in the recent HP-UX patch.
241         Reported by Tom G. Christensen in
242         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
243         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
244         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
245
246 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
247
248         strtoimax, strtoumax: port to HP-UX 11.11
249         Problem reported by Daniel Richard G. in
250         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
251         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
252         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
253         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
254         REPLACE_STRTOUMAX.
255         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
256         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
257         Replace the function if defined as a macro but not as a function.
258         * modules/inttypes-incomplete (inttypes.h): Substitute
259         REPLACE_STRTOUMAX.
260         * modules/strtoumax (configure.ac): Replace strtoumax if
261         REPLACE_STRTOUMAX.
262
263 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
264
265         strtoimax: port to HP-UX 11.11
266         Problem reported by Daniel Richard G.
267         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
268         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
269         they might clash with inttypes.h.
270
271 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
272
273         New module 'count-trailing-zeros'.
274         * MODULES.html.sh: Mention it.
275         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
276         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
277         * modules/count-trailing-zeros-tests:
278         * tests/test-count-trailing-zeros.c:
279         New files.
280
281         count-leading-zeros: port to MSC; support types wider than 64 bits
282         The ideas behind the MSC port are stolen from Emacs.
283         * lib/count-leading-zeros.h:
284         Don't include verify.h: it's no longer needed, as types wider than
285         64 bits are now supported.
286         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
287         performance with MSC.  All uses changed.  Do not assume that TYPE
288         has at most 64 bits.
289         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
290         All uses changed.  Fold the subtraction from 31 into the table.
291
292         count-one-bits: port to MSC; support types wider than 64 bits
293         The ideas behind the MSC port are stolen from Emacs.
294         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
295         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
296         Don't include verify.h: it's no longer needed, as types wider than
297         64 bits are now supported.
298         (COUNT_ONE_BITS_GENERIC): New macro.
299         (popcount_supported) [_MSC_VER]: New inline function.
300         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
301         performance with MSC.  All uses changed.  Do not assume that TYPE
302         has at most 64 bits.
303         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
304
305 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
306
307         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
308         * lib/mountlist.c (read_file_system_list): fix leak of directory
309         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
310
311 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
312
313         tests: improve diagnostic when an assertion fails
314         * tests/macros.h (ASSERT): Report the assertion that failed.
315
316 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
317
318         verify: new macro 'assume'
319         This is taken from Emacs, and should be generally useful.
320         * doc/verify.texi (assume): Document it.
321         * lib/verify.h (assume): New macro.
322         (__has_builtin): Expand to 0 if not defined.
323
324 2013-09-26  Eric Blake  <eblake@redhat.com>
325
326         dup2, dup3: work around another cygwin crasher
327         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
328         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
329         * tests/test-dup2.c (main): Likewise.
330         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
331         * lib/dup3.c (dup3): Likewise.
332         * doc/posix-functions/dup2.texi (dup2): Document it.
333         * doc/glibc-functions/dup3.texi (dup3): Likewise.
334
335         getdtablesize: work around cygwin issue
336         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
337         * modules/getdtablesize (configure.ac): Build replacement.
338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
339         * modules/unistd (Makefile.am): Expose the witness.
340         * lib/unistd.in.h (getdtablesize): Declare replacement.
341         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
342         * tests/test-getdtablesize.c (main): Test it.
343         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
344
345 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
346
347         pmccabe2html: escaping of special characters
348         Escape all '<', '>', and '&' in HTML output.
349         * build-aux/pmccabe2html (html_fnc): Call gsub()
350         instead of sub() to capture all '<', '>', and '&'.
351         Neither of '<' and '>' is special in a regexp,
352         so first arguments to gsub() are corrected. Also,
353         in replacement strings, ampersand must be escaped.
354         Finally, '&' must be handled first, then '<' and '>'.
355
356 2013-09-24  Eric Blake  <eblake@redhat.com>
357
358         manywarnings: enable nicer gcc warning messages
359         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
360         some -f options for optimal warnings.
361
362 2013-09-21  Jim Meyering  <meyering@fb.com>
363
364         timespec: use the new TIMESPEC_RESOLUTION in a few more places
365         * lib/timespec-add.c (timespec_add): Also replace 999999999
366         with TIMESPEC_RESOLUTION - 1.
367         * lib/timespec-sub.c (timespec_sub): Likewise.
368
369 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
370
371         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
372         Problem reported by Dagobert Michelsen via Eric Blake in
373         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
374         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
375         not AC_COMPILE_IFELSE.
376
377 2013-09-23  Eric Blake  <eblake@redhat.com>
378
379         configmake: support new --runstatedir option
380         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
381         even if autoconf was too old to provide the command line option.
382         * modules/configmake (Makefile.am): Propagate it to .h file.
383
384 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
385
386         ctype, string: depend on extern-inline
387         This is needed to complete the recent OS X fixes.
388         Also, fix related documentation as suggested by Eric Blake.
389         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
390         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
391         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
392         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
393         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
394         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
395         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
396         * doc/posix-functions/toupper.texi:
397         List the 'ctype' gnulib module.
398         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
399         * doc/posix-functions/strncpy.texi:
400         List the 'string' gnulib module.
401         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
402         Add string.
403         * modules/ctype, modules/string (Depends-on): Add extern-inline.
404
405 2013-09-19  Pádraig Brady  <P@draigBrady.com>
406
407         userspec: support optional parameters to parse_user_spec()
408         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
409         then avoid group processing and treat the full spec as a user.
410         (parse_with_separator): Allow the USERNAME and GROUPNAME to
411         be optional params (NULL), in which case they're ignored.
412
413 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
414
415         timespec: new function make_timespec, and new constants
416         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
417         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
418         (make_timespec): New function.
419         * lib/dtotimespec.c (dtotimespec):
420         * lib/timespec-add.c (timespec_add):
421         * lib/timespec-sub.c (timespec_sub):
422         * lib/utimens.c (validate_timespec):
423         * lib/utimensat.c (rpl_utimensat):
424         Use these new constants and functions.
425
426         stdio: OS X port of putc_unlocked + extern inline
427         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
428         * doc/posix-functions/putc_unlocked.texi:
429         * doc/posix-functions/putchar_unlocked.texi:
430         Document this portability problem.
431
432         signal: OS X port of sigaddset etc. + extern inline
433         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
434         (sigismember): #undef on problematic Apple platforms.
435         * doc/posix-functions/sigaddset.texi:
436         * doc/posix-functions/sigdelset.texi:
437         * doc/posix-functions/sigemptyset.texi:
438         * doc/posix-functions/sigfillset.texi:
439         * doc/posix-functions/sigismember.texi:
440         Document this portability problem.
441
442         extern-inline: do not always suppress extern inline on OS X
443         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
444         extern inline on Apple only if the particular compile-time
445         configuration is known to have the problem.
446         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
447         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
448         other Gnulib modules.
449
450         extern-inline: document fixes for ctype and wctype macros
451         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
452         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
453         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
454         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
455         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
456         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
457         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
458         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
459         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
460         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
461         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
462         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
463         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
464         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
465         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
466         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
467         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
468         * doc/posix-functions/strncpy.texi:
469         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
470         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
471         Document that Gnulib fixes portability problems with these
472         functions on OS X 10.8 and earlier when called from plain inline
473         or extern inline functions.
474
475 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
476
477         fflush, freadahead, fseeko: Fix for Android
478         Suggested by Bruno Haible in:
479         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
480         * lib/stdio-impl.h: Use local __sfileext definition.
481
482 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
483
484         pmccabe2html: Portability to other awk versions.
485         The functions systime() and strftime() are available
486         in Gawk only.  Properly close two HTML-tags 'style'
487         and 'span'.
488         * build-aux/pmccabe2html (BEGIN): Store timing
489         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
490         systime() in HTML_COMMENT.
491         (html_header): Correctly close tag 'style'.
492         (END): Replace strftime() by CHRONOS_TIME.  Close
493         tag 'span' correctly, not as 'div'.
494
495 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
496
497         getgroups: statement without effect
498         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
499         Change equality conditional to expected assignment.
500
501 2013-09-09  Eric Blake  <eblake@redhat.com>
502
503         glob: fix compilation
504         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
505
506 2013-09-07  Eric Blake  <eblake@redhat.com>
507
508         glob: fix build for platforms without __THROW
509         * lib/glob.in.h (__THROW): Add definition again.
510
511 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
512
513         regex-quote: fix buffer access out of bounds
514         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
515         * lib/regex-quote.c (regex_quote_spec_pcre):
516         Fix typo that resulted in an out-of-bounds read.
517
518 2013-09-04  Eric Blake  <eblake@redhat.com>
519
520         glob: avoid -Wattribute warnings on glibc
521         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
522         __THROWNL, not __THROW, on static functions.
523         * lib/glob.in.h (__THROW): Adjust...
524         (__THROWNL): ...accordingly.
525
526 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
527
528         headers: check that _GL_INLINE_HEADER_BEGIN is defined
529         Suggested by Bruce Korb in:
530         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
531         * doc/extern-inline.texi (extern inline):
532         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
533         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
534         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
535         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
536         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
537         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
538         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
539         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
540         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
541         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
542         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
543         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
544         * lib/xtime.h:
545         Check that _GL_INLINE_HEADER_BEGIN is defined.
546
547 2013-08-29  Pádraig Brady  <P@draigBrady.com>
548
549         bootstrap: remove the --version requirement from ancillary tools
550         * build-aux/bootstrap (check_exists): A new refactored function to
551         determine if a command exists.
552         (find_tool): Use the new function which does not require the
553         --version option to be supported.
554         (check_versions): Use the new function.
555
556 2013-08-26  Simon Josefsson  <simon@josefsson.org>
557
558         gc: support HMAC-SHA256 and HMAC-SHA512.
559         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
560         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
561         functions.
562         (gc_hmac_md5): Use symbolic constant.
563         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
564         (gc_hmac_sha256, gc_hmac_sha512): New functions.
565         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
566         * m4/sha256.m4: Protect against empty expansion.
567         * m4/sha512.m4: Likewise.
568         * lib/hmac-sha256.c: New file.
569         * lib/hmac-sha512.c: Likewise.
570         * m4/gc-hmac-sha256.m4: Likewise.
571         * m4/gc-hmac-sha512.m4: Likewise.
572         * m4/gc-sha256.m4: Likewise.
573         * m4/gc-sha512.m4: Likewise.
574         * modules/crypto/gc-hmac-sha256: Likewise.
575         * modules/crypto/gc-hmac-sha256-tests: Likewise.
576         * modules/crypto/gc-hmac-sha512: Likewise.
577         * modules/crypto/gc-hmac-sha512-tests: Likewise.
578         * modules/crypto/hmac-sha256: Likewise.
579         * modules/crypto/hmac-sha256-tests: Likewise.
580         * modules/crypto/hmac-sha512: Likewise.
581         * modules/crypto/hmac-sha512-tests: Likewise.
582         * tests/test-gc-hmac-sha256.c: Likewise.
583         * tests/test-gc-hmac-sha512.c: Likewise
584         * tests/test-hmac-sha256.c: Likewise.
585         * tests/test-hmac-sha512.c: Likewise
586
587 2013-08-24  Daiki Ueno  <ueno@gnu.org>
588
589         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
590         of AC_CHECK_DECLS.
591
592 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
593
594         selinux-at: omit unnecessary include
595         * lib/selinux-at.c: Don't include dosname.h; not needed, since
596         this source file doesn't use its macros, and subsidiary files that
597         use the macros already include it.
598
599 2013-08-21  Eric Blake  <eblake@redhat.com>
600
601         d-ino: avoid false negative on symlink
602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
603         Reported by Stephane Chazelas.
604
605 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
606
607         bootstrap: port to OpenBSD sed
608         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
609         does not interpret `-' as a file argument to mean stdin.
610
611 2013-08-15  Eric Blake  <eblake@redhat.com>
612
613         warnings: minor optimization
614         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
615
616         warnings: check -Wfoo rather than -Wno-foo
617         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
618         -Wno-, test if the compiler recognizes the positive form instead.
619
620 2013-08-15  Karl Berry  <karl@gnu.org>
621
622         * config/srclist-update: add option "doclicense" to placate
623         pulling *.texi files from Emacs.  Write terse usage
624         documentation at the top.
625
626 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
627
628         xvasprintf-tests: port to GCC with hardening flags
629         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
630         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
631         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
632
633 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
634
635         fpending: port to recent Cygwin change to stdio_ext.h
636         Reported by LRN in
637         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
638         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
639         just declare __fpending unless it's a macro.
640         A duplicate decl shouldn't hurt.
641         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
642         call compiles and links, instead of separately checking for
643         decl and lib function.
644         * modules/fpending (configure-ac):
645         Adjust to fpending.m4's renaming of shell variable.
646
647 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
648
649         sys_time: port to OpenBSD
650         * lib/sys_time.in.h: Simply delegate to the system's header
651         in the BSDish cases as well.  Problem reported by Mike Miller in
652         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
653         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
654         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
655         wider than time_t.
656
657 2013-08-09  Pádraig Brady <P@draigBrady.com>
658
659         bootstrap: support checksum utils having -c but not --status
660         * build-aux/bootstrap: Only look for sha1sum if updating po files.
661         Add sha1 to the list of supported checksum utils since it's now
662         supported through adjustments below.
663         (update_po_files): Remove the use of --status
664         in a way that will suppress all error messages, but since this is
665         only used to minimize updates, it shouldn't cause an issue.
666         Exit early if there is a problem updating the po file checksums.
667         (find_tool): Remove the check for --version support as this
668         is optional as per commit 86186b17.  Don't even check for the
669         presence of the command as if that is needed, it's supported
670         through configuring prerequisites in bootstrap.conf.
671         Prompt that when a tool isn't found, one can define an environment
672         variable to add to the hardcoded search list.
673
674 2013-08-05  Jim Meyering  <meyering@fb.com>
675
676         regex: port to non-glibc/lock-using systems
677         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
678         system with GNULIB_LOCK would fail due to absence of the
679         included "glthread/lock.h".  This would affect any package
680         for which the "lock" module is used only by the regex module,
681         and not explicitly used.
682         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
683         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
684         Add a dependency on the "lock" module.
685
686 2013-07-20  Daiki Ueno  <ueno@gnu.org>
687
688         localecharset: make locale_charset thread-safe on Mac OS X
689         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
690         instead of MB_CUR_MAX.
691
692 2013-07-20  Daiki Ueno  <ueno@gnu.org>
693
694         gettext: update to version 0.18.3
695         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
696         require AC_PROG_SED to allow user to specify custom sed command when
697         generating en@quot PO file.
698
699 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
700
701         bootstrap: use correct source when copying build-aux files
702         * build-aux/bootstrap (gnulib_extra_files): This variable is
703         relative to upstream gnulib layout, not downstream.
704
705 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
706
707         tmpdir: fix bug in VMS port
708         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
709         See Steven M. Schweda in
710         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
711
712 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
713
714         tmpdir: port to VMS, to // != /, and to long dirs
715         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
716         __secure_getenv, so that we're more like the glibc version.
717         All uses changed.
718         (path_search): Don't put slash after directory if __VMS.
719         Problem reported by Steven M. Schweda in
720         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
721         Simplify code to add slash; no need for a loop.
722         Do not remove trailing slash from "//".
723         Do not assume dlen <= INT_MAX.
724
725 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
726
727         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
728         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
729         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
730         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
731
732         accept4, dup3, pipe2: port to Cygwin
733         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
734         * lib/accept4.c (accept4) [O_BINARY]:
735         * lib/dup3.c (dup3) [O_BINARY]:
736         * lib/pipe2.c (pipe2) [O_BINARY]:
737         Use set_binary_mode, not setmode.
738         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
739         * modules/binary-io (Depends-on): Remove module indicator.
740         These last two bits undo the previous change to pipe2 and binary-io.
741
742 2013-07-09  Pádraig Brady  <P@draigBrady.com>
743
744         mountlist: add support for deallocating returned list entries
745         * lib/mountlist.c (free_mount_entry): A new exported function
746         to deallocate a mount list entry.
747         (read_file_system_list): Refactor to use the new deallocation function.
748         Suggested by Anton Ovchinnikov.
749
750 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
751
752         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
753         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
754         * lib/stdalign.in.h (_Alignas, _Alignof):
755         Port to FreeBSD 9.1, and to C11 and C++11.
756         (_Alignas): Also support ICC.
757         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
758         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
759
760 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
761
762         fnmatch: don't goto over declaration
763         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
764         undefined behavior for goto over a declaration.
765         Problem reported by Charlie Brown in
766         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
767
768         pipe2: decouple from binary-io a bit
769         This is for Emacs, which needs pipe2 but not binary-io.
770         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
771         * modules/binary-io (Depends-on): Add module indicator.
772
773 2013-07-03  Eric Blake  <eblake@redhat.com>
774
775         mgetgroups: relax license to LGPLv2+
776         * modules/getugroups (License): Change from GPLv3+.
777         * modules/mgetgroups (License): Likewise.
778         * modules/getgroups (License): Change from LGPLv3+.
779
780         xalloc-oversized: relax license to LGPLv2+
781         * modules/xalloc-oversized (License): Change from GPLv3+.
782
783         nproc: relax license to LGPLv2+
784         * modules/nproc (License): Change from LGPLv3+.
785
786         bootstrap: honor --no-git
787         * build-aux/bootstrap: Don't even try to use git when user is
788         pointing to a static checkout.
789
790 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
791
792         ignore-value: port to gcc -pedantic
793         * lib/ignore-value.h (ignore_value):
794         Port to gcc -pedantic, by using __extension__.
795         Reindent as per usual gnulib style nowadays.
796         Simplify GCC version check.
797
798 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
799
800         extern-inline: port to gcc -std=c89
801         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
802         Do not use __gnu_inline__ if pedantic and pre-C99.
803
804 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
805
806         doc: document extern-inline
807         * doc/extern-inline.texi: New file.
808         * doc/gnulib.texi (alloca-opt): Include it.
809         * m4/extern-inline.m4: Move some comments to documentation,
810         and others closer to what they describe.
811
812         doc: chatter less
813         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
814         (updated-stamp): Use it.  This causes 'make' to output just
815         one file name rather than zillions.
816
817         fflush, fseeko: port to musl cross-compiles
818         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
819         on some implementation that (1) is not known to be buggy,
820         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
821         cross-compiled to so we can't easily check for lack of
822         conformance.  This is for cross-compiling to musl.
823         Reported by Rich Felker in
824         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
825         * m4/fclose.m4 (gl_FUNC_FCLOSE):
826         * m4/fflush.m4 (gl_FUNC_FFLUSH):
827         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
828         Adjust to above change.
829         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
830         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
831         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
832         known not to work, or unknown.
833
834 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
835
836         msvc-inval: port to mingw-w64
837         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
838         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
839         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
840
841 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
842
843         getcwd-lgpl: port to Tru64
844         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
845         Problem reported by Steven M. Schweda in
846         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
847
848         tests: port large-fd POSIX spawn tests to OS X
849         Problem reported by Daiki Ueno in
850         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
851         * tests/test-posix_spawn_file_actions_addclose.c:
852         * tests/test-posix_spawn_file_actions_adddup2.c:
853         * tests/test-posix_spawn_file_actions_addopen.c:
854         Include <limits.h>, for OPEN_MAX, if available.
855         (big_fd): New static function.
856         (main): Use it.
857
858 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
859
860         tests/nap.h: use an adaptive delay to avoid ctime update issues
861         The recent change in nap.h (5191133e) decreased the probability of lost
862         races to about a third, however such problems could still be observed
863         in virtual machines and openSUSE's OBS.
864         Before, nap() detected the needed time once empirically and then used
865         that delay (together with a small correction multiplier) in further
866         calls.  This problem has been reported and discussed several times,
867         including guesses about possible kernel issues:
868         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
869         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
870         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
871         http://bugs.gnu.org/12820
872         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
873         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
874         Now, nap() avoids the race alltogether by verifying on a reference
875         file whether a timestamp difference has happened.
876         * tests/nap.h (nap_fd): Define file descriptor variable for the
877         witness file.
878         (nap_works): Change return value to bool.  Change passing
879         the old file's status by value instead of by reference as this function
880         does no longer update that timestamp; rename the function argument from
881         st to old_st.  Remove the local variables cdiff and mdiff because that
882         function now returns true/false instead of the precise delay.
883         (guess_delay): Remove function.
884         (clear_tmp_file): Add new function to close and unlink the witness file.
885         (nap): Instead of re-using the delay which has been calculated during
886         the first call, avoid the race by actually verifying that a timestamp
887         difference can be observed on the current file system.  Use an adaptive
888         approach for the delay to minimize execution time.  Assert that the
889         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
890         = 2^31 - 1 = 2.1s.
891         Use atexit to call clear_tmp_file when the process terminates.
892
893 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
894
895         sig2str: port to C++
896         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
897         Reported by Daniel J Sebald in
898         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
899
900 2013-05-30  Eric Blake  <eblake@redhat.com>
901
902         docs: mention cygwin shortcoming in <sys/un.h>
903         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
904
905         vasnprintf: silence mingw compiler warning
906         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
907
908 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
909
910         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
911         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
912         This fixes a porting bug I recently reintroduced in regex, and
913         some other instances that I discovered while testing the fix.
914         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
915         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
916         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
917         with an empty argument if this is a pedantic pre-C99 GCC.
918         * lib/verify.h: Do not use _Static_assert if this is a pedantic
919         pre-C11 GCC.
920
921         regex: adapt to locking regime instead of depending on pthread
922         Instead of depending on pthread, adapt to whatever thread
923         modules are in use.  Problem reported by Ludovic Courtès in
924         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
925         and by Mats Erik Andersson in
926         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
927         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
928         Support either the 'lock' module, or the 'pthread' module, or
929         no module.
930         (lock_lock, lock_unlock): New macros.
931         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
932         * modules/lock, modules/pthread (configure.ac): Add module indicator.
933         * modules/regex (Depends-on): Remove pthread.
934
935 2013-05-22  Eric Blake  <eblake@redhat.com>
936
937         getgroups: document portability issues
938         * doc/glibc-functions/initgroups.texi (initgroups): Mention
939         multithread safety.
940         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
941         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
942         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
943         getugroups.
944         * doc/posix-functions/getgroups.texi (getgroups): Mention
945         multithread safety and mgetgroups.
946
947 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
948
949         test-lchown, test-chown: also skip test if chown fails with EPERM
950         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
951         skip this test, to handle FAT file systems.
952         * tests/test-chown.h (test_chown): Likewise.
953
954 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
955
956         regex: fix dfa race in multithreaded uses
957         Problem reported by Ludovic Courtès in
958         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
959         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
960         New macros.  All uses of __libc_lock_define, __libc_lock_init
961         changed to use the first two of these.
962         (__libc_lock_lock, __libc_lock_unlock): New macros, for
963         non-glibc platforms.
964         (struct re_dfa_t): Define the lock unconditionally.
965         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
966         '#ifdef _LIBC"s.
967         * modules/regex (Depends-on): Add pthread, if we use the
968         included regex.
969
970         * lib/regcomp.c: Do actions that are not needed for glibc,
971         but may be needed elsewhere.
972         (regfree, re_compile_internal): Destroy the lock.
973         (re_compile_internal): Check for lock-initialization failure.
974
975         malloca: port to compilers that reject size-zero arrays
976         This fixes a bug introduced in my previous patch.
977         * lib/malloca.c (struct preliminary_header): Use an int
978         rather than a character array of size int; that's simpler.
979         (struct header): Remove, replacing with ...
980         (union header): New type.  This avoids the need for declaring a
981         character array of size zero, which is not allowed on some platforms.
982         All uses changed.
983
984 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
985
986         parse-datetime, tests: don't use "string" + int
987         Recent versions of 'clang' complain about C source code that
988         uses expressions of the form '"string literal" + integer',
989         I guess on the theory that it's confusing for readers who are
990         used to C++.  On those grounds I suppose it's OK to make this
991         minor style change.
992         * lib/parse-datetime.y (parse_datetime):
993         * tests/test-fchdir.c (main):
994         * tests/test-snprintf-posix.h (test_function):
995         * tests/test-snprintf.c (main):
996         * tests/test-vasnprintf-posix.c (test_function):
997         * tests/test-vasnprintf.c (test_function):
998         * tests/test-vsnprintf.c (main):
999         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1000         Rewrite '"str" + E' to '&"str"[E]'.
1001
1002 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1003
1004         argmatch: port to C++
1005         * lib/argmatch.h [__cplusplus]: Add extern "C".
1006
1007         argp: typo fix
1008         * lib/argp-help.c: Typo in comment.
1009
1010 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1011
1012         manywarnings: update for GCC 4.8.0
1013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1014         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1015         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1016         -Wmissing-noreturn, as they are duplicates of other warnings.
1017         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1018         was documented to be flaky in earlier versions of GCC.
1019
1020         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1021         * tests/test-spawn.c (main):
1022         * tests/test-sys_socket.c (main):
1023         * tests/test-sys_wait.c (main):
1024         Don't have a switch value that isn't covered by a case.
1025
1026         getaddrinfo-tests: port --enable-gcc-warnings to clang
1027         * tests/test-getaddrinfo.c (simple):
1028         Avoid casts from looser to stricter-aligned pointers.
1029
1030         thread: port --enable-gcc-warnings to clang
1031         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1032         Include <signal.h>, to pacify a warning about pthread_sigmask.
1033
1034         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1035         * lib/stdio.in.h (fwrite):
1036         When working around bug 11959, use __REDIRECT rather than '#define
1037         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1038         fix the -Wunused-value issue with clang, and it works with GCC too.
1039         Problem with targeting reported by Eric Blake in
1040         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1041         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1042         debugging the fwrite issue.
1043
1044         stdio: port --enable-gcc-warnings to clang
1045         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1046         since the GCC workaround for fwrite does not pacify clang.
1047
1048         sig2str: port --enable-gcc-warnings to clang
1049         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1050
1051         obstack: port --enable-gcc-warnings to clang
1052         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1053         Avoid casts from looser to stricter-aligned pointers.
1054
1055         memchr2: port --enable-gcc-warnings to clang
1056         * lib/memchr2.c (memchr2):
1057         Avoid casts from looser to stricter-aligned pointers.
1058
1059         mbsstr: port --enable-gcc-warnings to clang
1060         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1061         Avoid casts from looser to stricter-aligned pointers.
1062
1063         malloca: port --enable-gcc-warnings to clang
1064         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1065         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1066
1067         inttostr: port --enable-gcc-warnings to clang
1068         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1069
1070         warnings: port to clang
1071         Problem reported by Daniel P. Berrange via Eric Blake in
1072         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1073         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1074         (gl_WARN_ADD): Use it.
1075
1076 2013-05-11  Jim Meyering  <meyering@fb.com>
1077
1078         quotearg: do not read beyond end of buffer
1079         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1080         end of an ARG for which no length was specified.  With an N-byte
1081         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1082         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1083         via coreutils' misc/sort-debug-keys.sh test and detected by running
1084         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1085         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1086         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1087         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1088         characters correctly."
1089
1090 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1091
1092         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1093         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1094         compilation target is Mac OS X 10.6.
1095         Problem reported by parafin and Andoni Morales in
1096         <http://savannah.gnu.org/bugs/?37844> and
1097         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1098
1099 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1100
1101         mkdir-p: remove assumptions about umask and mode
1102         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1103         umask is 0, or that MODE is a subset of MODE_BITS.
1104
1105 2013-05-10  Eric Blake  <eblake@redhat.com>
1106
1107         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1108         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1109
1110 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1111
1112         deps: require Automake >= 1.9.6 in generated Makefile fragments
1113
1114         That is the same minimal version required in the DEPENDENCIES file.
1115         Moreover, the old code generated a requirement of Automake >= 1.5,
1116         and that is an insanely outdated version.
1117
1118         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1119         * tests/havelib/rpathlx/Makefile.am: Likewise.
1120         * tests/havelib/rpathly/Makefile.am: Likewise.
1121         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1122         * tests/havelib/rpathlz/Makefile.am: Likewise.
1123         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1124         * tests/havelib/rpathx/Makefile.am: Likewise.
1125         * tests/havelib/rpathy/Makefile.am: Likewise.
1126         * tests/havelib/rpathz/Makefile.am: Likewise.
1127
1128 2013-05-08  Eric Blake  <eblake@redhat.com>
1129
1130         bootstrap: AC_INIT may have more than four parameters
1131         * build-aux/bootstrap (extract_package_name): Correctly extract
1132         non-empty tarname field.  Avoid range in regex.
1133         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1134
1135 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1136
1137         qacl: port to MS-Windows port of GNU Emacs
1138         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1139         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1140         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1141         <http://bugs.gnu.org/14295#14>.
1142
1143 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1144
1145         acl: include quote.h
1146         * lib/copy-acl.c: Include quote.h.
1147         * lib/set-acl.c: Likewise.
1148
1149 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1150
1151         fchownat, renameat, unlinkat: update statat dependencies
1152         These modules use statat and lstatat, not fstatat; so depend on
1153         the statat module, which was split out recently from fstatat.
1154         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1155         * modules/renameat: Likewise.  Also delete fstat.
1156         URL: http://bugs.gentoo.org/468790
1157
1158 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1159
1160         Assume gnulib is checked out from Git, not CVS
1161
1162         In fact, access to the gnulib repository through CVS has been
1163         disabled, or more precisely, got broken and was never restored; see:
1164         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1165
1166         Note that support for CVS is not removed completely and unthinkingly
1167         by this change: only support for CVS checkouts of gnulib itself is
1168         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1169         files and CVS directories, for the benefit of those poor gnulib clients
1170         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1171
1172         * gnulib-tool: Simplify accordingly.
1173         * posix-modules: Likewise.
1174         * MODULES.html.sh: Likewise.
1175         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1176         repository.
1177         * doc/gnulib-intro.texi: Likewise.
1178         * doc/gnulib-readme.texi: Likewise.
1179         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1180         sample '.gitignore' file rather than a sample '.cvsignore'.
1181         * NEWS: Update.
1182         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1183         to "CVS Autoconf" rather than "git Autoconf".
1184
1185 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         utimensat-tests, etc.: try to fix some races
1188         Problem reported by Bernhard Voelker in
1189         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1190         I don't know whether this patch fixes that race condition, but it
1191         fixes *some* race conditions, so it should be a win.
1192         * modules/chown-tests (Depends-on):
1193         * modules/fchownat-tests (Depends-on):
1194         * modules/fdutimensat-tests (Depends-on):
1195         * modules/futimens-tests (Depends-on):
1196         * modules/lchown-tests (Depends-on):
1197         * modules/stat-time-tests (Depends-on):
1198         * modules/utimens-tests (Depends-on):
1199         * modules/utimensat-tests (Depends-on):
1200         Depend on nanosleep, not usleep.
1201         * modules/chown-tests (test_chown_LDADD):
1202         * modules/lchown-tests (test_lchown_LDADD):
1203         * modules/stat-time-tests (test_stat_time_LDADD):
1204         New macro.
1205         * modules/fchownat-tests (test_fchownat_LDADD):
1206         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1207         * modules/futimens-tests (test_futimens_LDADD):
1208         * modules/utimens-tests (test_utimens_LDADD):
1209         * modules/utimensat-tests (test_utimensat_LDADD):
1210         Add $(LIB_NANOSLEEP).
1211         * modules/stat-time-tests (Files): Add tests/nap.h.
1212         * tests/nap.h: Include <limits.h>, for INT_MAX.
1213         (lt_mtime): Remove.
1214         (diff_timespec): New function.
1215         (get_stat): Rename from get_mtime.  All callers changed.
1216         (nap_works): Determine the needed delay by inspecting the
1217         file system's timestamp jumps; this should be more reliable.
1218         Look at both mtime and ctime, and take the maximum of the two jumps.
1219         (nap_works, guess_delay):
1220         Return a nanosecond cound, not a microsecond count.
1221         All callers changed.
1222         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1223         failure.
1224         (nap): Multiply the guess by 1.125, to accommodate the case where
1225         the file system's clock is a bit slower than nanosleep's clock.
1226         * tests/test-stat-time.c (BASE): New macro.
1227         Include nap.h.
1228         (nap): Remove; nap.h now defines this.  This removes a duplicate
1229         implementation of 'nap'.
1230
1231         utimens, utimensat: work around Solaris UTIME_OMIT bug
1232         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1233         Linux kernel 2.6.32 does.  Work around it in the same way.
1234         * doc/posix-functions/futimens.texi (futimens):
1235         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1236         * lib/utimens.c (fdutimens, lutimens):
1237         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1238
1239         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1240         Formerly, it was your responsibility to do this for all Makefile.ams
1241         other than Gnulib's.  Now it's your responsibility to do it for
1242         Gnulib's Makefile.am, too.
1243         * NEWS: Document this.
1244         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1245
1246         acl: include errno.h to get errno
1247         Reported by Daiki Ueno in
1248         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1249         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1250
1251 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1252
1253         tests: don't assume getdtablesize () <= 10000000
1254         * modules/cloexec-tests:
1255         * modules/dup2-tests:
1256         * modules/dup3-tests:
1257         * modules/nonblocking-tests:
1258         * modules/posix_spawn_file_actions_addclose-tests:
1259         * modules/posix_spawn_file_actions_adddup2-tests:
1260         * modules/posix_spawn_file_actions_addopen-tests:
1261         * modules/unistd-safer-tests:
1262         Depend on the getdtablesize module.
1263         * tests/test-cloexec.c:
1264         * tests/test-dup-safer.c:
1265         * tests/test-dup2.c:
1266         * tests/test-dup3.c:
1267         * tests/test-fcntl.c:
1268         * tests/test-nonblocking.c:
1269         * tests/test-posix_spawn_file_actions_addclose.c:
1270         * tests/test-posix_spawn_file_actions_adddup2.c:
1271         * tests/test-posix_spawn_file_actions_addopen.c:
1272         Don't assume getdtablesize () <= 10000000.
1273
1274 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         extern-inline: work around bug in Sun c99
1277         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1278         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1279
1280 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         qacl: new module, broken out from the acl module
1283         This is for GNU Emacs, which wants the acl functions but does
1284         not want 'error' invoked when they fail.
1285         * lib/acl-internal.h: Do not include error.h, quote.h.
1286         (ENOSYS, ENOTSUP): Remove; no longer needed.
1287         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1288         * lib/acl.h: Include <stdbool.h>.
1289         (acl_errno_valid): New function.
1290         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1291         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1292         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1293         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1294         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1295         * lib/file-has-acl.c (file_has_acl):
1296         * lib/qcopy-acl.c (qcopy_acl):
1297         * lib/qset-acl.c (qset_acl):
1298         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1299         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1300         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1301         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1302         Add lib/set-acl.c.
1303         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1304         Add qacl.
1305         (configure.ac): Move gl_FUNC_ACL to qacl module.
1306         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1307         Rename set-mode-acl.c to set-acl.c.
1308         * lib/acl-errno-valid.c: New file.
1309         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1310         copy_acl function remains in copy-acl.c.
1311         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1312         (_): Remove; not needed.
1313         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1314         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1315         * modules/qacl: New file, moved from the old modules/acl.
1316         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1317         Remove set-mode-acl.c, copy-acl.c.
1318         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1319
1320         alignof, intprops, malloca: port better to IBM's C compiler
1321         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1322         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1323         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1324
1325 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1326
1327         wctype-h: fix gettext link error on mingw
1328         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1329         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1330         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1331         rpl_towupper and rpl_towupper.
1332
1333 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1334
1335         regex-tests, regex: allow glibc re_search behavior
1336         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1337         re_search input data to make the multi-character collating element
1338         in it clearly visible, and treat re_search return code 0 as valid.
1339         * m4/regex.m4 (gl_REGEX): Likewise.
1340
1341 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1342
1343         stdalign: doc fix
1344         * doc/posix-headers/stdalign.texi (stdalign.h):
1345         Gnulib doesn't support '_Alignof expr'.
1346
1347 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         stdalign: port to stricter ISO C11
1350         ISO C11 says that _Alignof's operand must be a parenthesized type.
1351         Problem reported by Eli Zaretskii in
1352         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1353         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1354         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1355
1356 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1357
1358         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1359         Problem reported by Marco Atzeri in
1360         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1361         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1362         Simply delegate to the system <sys/select.h> in this case too.
1363         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1364         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1365         be needed on Solaris either.
1366         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1367         Simply delegate to the system <sys/time.h> in this case.
1368
1369 2013-03-19  Karl Berry  <karl@gnu.org>
1370
1371         * build-aux/gnupload: check for erroneous (with gnupload) use of
1372         ftp-upload.gnu.org, tweak help.
1373
1374 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1375
1376         copy-file, rpmatch: fix problems found by cppcheck
1377         Reported by Arno Onken in
1378         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1379         * lib/rpmatch.c (try): Fix memory leak.
1380         * lib/copy-file.c: Include "ignore-value.h".
1381         (qcopy_file_preserving): Ignore chown value.
1382         * modules/copy-file (Depends-on): Add ignore-value.
1383
1384 2013-01-27  Jim Meyering  <jim@meyering.net>
1385
1386         prefix-gnulib-mk: give better diagnostics
1387         * build-aux/prefix-gnulib-mk: Don't just "die".
1388         Give better diagnostics upon failure.
1389
1390 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1391
1392         putenv: port to Solaris 10
1393         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1394         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1395         is not what is wanted here.
1396         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1397         declaration, not for its existence.
1398
1399 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1400
1401         mktime: fix configure typo
1402         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1403
1404 2013-03-12  Eric Blake  <eblake@redhat.com>
1405
1406         regex-tests: skip UTF-8 test on mingw
1407         * modules/regex-tests (Depends-on): Add localcharset.
1408         * tests/test-regex.c (main): Use it to skip test on mingw.
1409
1410 2013-03-11  Eric Blake  <eblake@redhat.com>
1411
1412         tests: make it easier to bypass alarm time in debugger
1413         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1414         * tests/test-memmem.c (main): Likewise.
1415         * tests/test-passfd.c (main): Likewise.
1416         * tests/test-ptsname.c (main): Likewise.
1417         * tests/test-ptsname_r.c (main): Likewise.
1418         * tests/test-strcasestr.c (main): Likewise.
1419         * tests/test-strstr.c (main): Likewise.
1420
1421         regex: port to mingw's recent addition of undeclared alarm
1422         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1423         exists but still doesn't work in newer mingw.
1424         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1425         not existence.  Ensure SIGALRM is not trapped.
1426         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1427         * m4/regex.m4 (gl_REGEX): Likewise.
1428         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1429         * tests/test-regex.c (main): Use correct probe for alarm.
1430
1431         putenv: avoid compilation warning on mingw
1432         * lib/putenv.c (_unsetenv): Protect variable declaration.
1433         (putenv): Fix indentation.
1434
1435 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1436
1437         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1438         * lib/unistd.in.h: be careful not to include un-needed system
1439         stdlib.h from here, because that prevents gnulib stdlib.h from
1440         defining rpl_strtod correctly.
1441
1442 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1443
1444         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1445         changesets, but for the 'precision 0' test.
1446         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1447         round-to-even, since POSIX says rounding is implementation-defined
1448         and OS X 10.8.2 rounds 1.51 to 1 here.
1449
1450         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1451         changeset.
1452         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1453         round-to-even, since POSIX says rounding is implementation-defined
1454         and OS X 10.8.2 rounds 1.5 to 1 here.
1455
1456 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         vasnprintf-posix-tests: allow rounding 1.5 to 1
1459         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1460         round-to-even, since POSIX says rounding is implementation-defined
1461         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1462         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1463
1464         bootstrap: port to FreeBSD
1465         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1466         that treat '--' differently.  Reported by Mats Erik Andersson in
1467         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1468
1469 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1470
1471         regex: rename remaining __attribute calls to __attribute__.
1472         2012-02-25 changed definition of __attribute, but left some uses
1473         unchanged, preventing compilation of regex module on most non-gcc
1474         environments.
1475         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1476         (lookup_collation_sequence_value, build_range_exp)
1477         (build_collating_symbol): Set attributes with newly renamed
1478         __attribute__ decorator.
1479         * lib/regex_internal.c (re_string_peek_byte_case)
1480         (re_node_set_compare, re_node_set_contains): Likewise.
1481         * lib/regexec.c (acquire_init_state_context): Likewise.
1482
1483 2013-03-06  Bruno Haible  <bruno@clisp.org>
1484
1485         execute: Revert last change, but use a different condition.
1486         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1487         on Windows.
1488
1489 2013-03-05  Eric Blake  <eblake@redhat.com>
1490
1491         execute: drop dead code
1492         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1493
1494 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1495
1496         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1497         * m4/non-recursive-gnulib-prefix-hack.m4
1498         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1499         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1500         <http://bugs.gnu.org/10305#237>.
1501
1502 2013-03-04  Eric Blake  <eblake@redhat.com>
1503
1504         test-getsockopt: avoid compiler warning
1505         * tests/test-getsockopt.c (includes): Ensure close is declared.
1506
1507 2013-03-02  Bruno Haible  <bruno@clisp.org>
1508
1509         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1510         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1511
1512 2013-03-02  Bruno Haible  <bruno@clisp.org>
1513
1514         gettext: Update to version 0.18.2.
1515         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1516         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1517                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1518
1519 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1520
1521         regex: merge patches from libc
1522
1523         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1524         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1525         All uses changed.
1526         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1527         (re_string_wchar_at, re_string_elem_size_at):
1528         Mark function as possibly unused.
1529
1530         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1531         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1532         elements compare against the byte sequence of it, not its name.
1533
1534 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1535
1536         putenv: port better to native Windows
1537         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1538         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1539         (_unsetenv): Use _putenv if available.
1540         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1541         a bit less likely to cause damage.
1542         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1543         Fix the wrong value with SetEnvironmentVariable.
1544         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1545         code better.
1546
1547 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1548
1549         regex: ignore old-style-definition warnings
1550         * lib/regex.c: Add pragma to ignore these warnings.
1551         Problem reported for GNU tar by Pavel Raiskup.
1552
1553 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         getcwd: support coreutils better
1556         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1557         but this might not be correct in coreutils, which disables
1558         the raw decl checks.  Problem reported by Nagendra in
1559         <http://bugs.gnu.org/10305#192>.
1560         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1562         Test the getcwd function, not any macro, since getcwd.c wants the
1563         function.
1564         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1565         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1566         compile, as might happen if there's a macro but no function.
1567
1568         strtod: support coreutils better
1569         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1570         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1571         disables the raw decl checks.  This assumes there is an underlying
1572         strtod, but that's a safe assumption these days.
1573         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1574
1575         mountlist: port to HP NonStop
1576         Reported by Joachim Schmitz in
1577         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1578         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1579         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1580
1581 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         extern-inline: avoid compilation error with HP-UX cc
1584         Reported by Richard Lloyd in
1585         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1586         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1587         Suppress extern inline with HP-UX cc.  This should be safe,
1588         though it may hurt performance.  Perhaps someone with some HP-UX
1589         experience can come up with a higher-performance fix.
1590
1591 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         putenv: fix heap corruption with mixed putenv/_putenv
1594         Problem reported by Michael Goffioul in
1595         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1596         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1597         Rely on _putenv to allocate the new environment.
1598         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1599         * modules/putenv (configure.ac): Use it.
1600
1601 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         unsetenv etc.: port to Solaris 11 + GNU Emacs
1604         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1605         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1606         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1607         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1608         idea but is too painful to fix right now), and without this gnulib
1609         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1610         compiling unsetenv.c on Solaris 11.  Fix the problem for
1611         unsetenv.c, and fix other similar occurrences.
1612
1613 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1614
1615         secure_getenv: fix C++ declaration typo
1616         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1617         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1618         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1619
1620 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         careadlinkat: stop exporting careadlinkatcwd
1623         Only Emacs used it directly, and Emacs no longer needs it.
1624         * NEWS: Document this simplification.
1625         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1626         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1627         for readlink.
1628         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1629         Don't include stdlib.h; no longer needed.
1630         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1631         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1632         * modules/areadlink (Depends-on): Add readlink.
1633         (Maintainer): Add self.
1634         * modules/careadlinkat (Depends-on): Remove readlink.
1635
1636         extensions: port better to HP-UX
1637         This is merged from git Autoconf.
1638         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1639         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1640         so that it's compatible with the value used when compiling.
1641
1642         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1643         Problem reported by Mats Erik Andersson in
1644         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1645         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1646         openpty function exists, not merely when we intend to replace it.
1647         This corrects the 2013-01-31 patch, which mistakenly defined
1648         HAVE_OPENPTY even on hosts that lacked it.
1649
1650 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         secure_getenv: fix include typo
1653         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1654
1655         secure_getenv: port better to FreeBSD and Solaris
1656         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1657         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1658         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1659         This works better on BSDish platforms.
1660         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1661         Test for issetugid if __secure_getenv is missing.
1662
1663 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1664
1665         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1666         Some of these changes are merged in from git Autoconf.
1667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1668         When deciding whether to define _XOPEN_SOURCE, inspect the
1669         preprocessor macro __hpux instead of the more-heavyweight
1670         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1671         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1672         as the key for __EXTENSIONS__.
1673
1674         unistd: avoid namespace pollution on non-glibc systems
1675         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1676         This avoids namespace pollution on non-glibc systems, by causing
1677         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1678         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1679         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1680
1681 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1682
1683         tmpdir: use secure_getenv
1684         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1685         Define to secure_getenv, not getenv.
1686         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1687         as that's now secure_getenv's job.
1688         * modules/tmpdir (Depends-on): Add secure_getenv.
1689
1690         tempname: use secure_getenv
1691         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1692         Define to secure_getenv, not getenv.
1693         * modules/tempname (Depends-on):
1694         Add secure_getenv.
1695
1696         secure_getenv: new module
1697         * MODULES.html.sh (Extra functions based on ANSI C 89):
1698         Add secure_getenv.
1699         * doc/glibc-functions/secure_getenv.texi: New file.
1700         * doc/gnulib.texi: Include it.
1701         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1702         New files.
1703         * lib/stdlib.in.h (secure_getenv): New decl.
1704         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1705         * modules/stdlib (stdlib.h):
1706         Add secure_getenv checks.
1707
1708 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1709
1710         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1711         Reported for OS X 10.8.2 by Assaf Gordon in
1712         <http://bugs.gnu.org/13516>.
1713         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1714         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1715         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1716         so that they can be kept in sync more easily.  Avoid PATH_MAX
1717         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1718         mkdir or chdir failure.
1719         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1720         lib/getcwd.c.
1721         (test_abort_bug): Do not test for the deep directory bug unless we
1722         have openat support.  Avoid PATH_MAX test on the Hurd.
1723
1724         regex-tests, regex: fix bug: memset undeclared
1725         * tests/test-regex.c: Don't include regex.h twice.  Include
1726         string.h, to declare memset.  Christensen's report also mentioned
1727         this issue.
1728         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1729         test-regex.c, to avoid future problems like this.  Remove
1730         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1731         twice.
1732
1733         regex-tests: fix link errors on older Solaris
1734         These need to link with @LIBINTL@ to get libintl_gettext.
1735         Problem reported by Tom G. Christensen in
1736         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1737         * modules/regex-tests (test_regex_LDADD): New macro.
1738
1739 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         regex-tests: new module
1742         * modules/regex-tests, tests/test-regex.c: New files.
1743
1744         regex: fix off-by-one error in configure test
1745         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1746
1747 2013-01-31  Eric Blake  <eblake@redhat.com>
1748
1749         regex: avoid infinite configure test
1750         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1751
1752 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1753
1754         openpty: fix bug where HAVE_OPENPTY wasn't defined
1755         See the thread starting at:
1756         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1757         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1758         openpty function exists, not merely when we intend to replace it.
1759
1760 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         sys_time: port to Solaris 2.6
1763         There is a circularity problem on Solaris 2.6, where <time.h> includes
1764         <sys/time.h> for struct timespec.  The include nesting is gnulib
1765         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1766         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1767         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1768         <sys/siginfo.h>; the last, innermost file needs struct
1769         timestruc_t, which is defined in <sys/time.h>, which has not been
1770         fully parsed.  Problem reported by Tom G. Christensen in
1771         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1772         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1773         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1774         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1775         uses split double-inclusion guards.
1776
1777 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1778
1779         regex: test for buffer overrun
1780         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1781         for the just-fixed regex bug.
1782
1783 2013-01-29  Andreas Schwab  <schwab@suse.de>
1784
1785         regex: fix buffer overrun in regexp matcher [BZ #15078]
1786         * lib/regexec.c (extend_buffers): Add parameter min_len.
1787         (check_matching): Pass minimum needed length.
1788         (clean_state_log_if_needed): Likewise.
1789         (get_subexp): Likewise.
1790
1791 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1792
1793         mountlist: don't consider "devtmpfs" as dummy
1794         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1795         as there is storage associcated with it.
1796
1797 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1798
1799         futimens-tests, utimens-tests: Depend on gettext.
1800         This works around a problem introduced in my 2013-01-12 patch,
1801         which added @LIBINTL@ to these modules.
1802         * modules/futimens-tests (Depends-on):
1803         * modules/utimens-tests (Depends-on): Add gettext.
1804
1805 2013-01-26  Eric Blake  <eblake@redhat.com>
1806
1807         test-getpeername: fix typo
1808         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1809
1810 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1811
1812         bootstrap: remove the need for a sorted .gitignore file
1813         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1814         rename to insert_if_absent(), so that we don't need or generate
1815         a sorted .gitignore file.  We do require a .gitignore with no
1816         existing duplicate entries and enforce that.
1817         (sort_patterns): Remove this function as we now use the simpler
1818         technigue of inserting blacklist entries at the top of the file,
1819         assuming gnulib won't be inserting !whitelist entries.
1820
1821 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         readlinkat: don't depend on gl_FUNC_OPENAT
1824         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1825         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1826         renameat.m4, symlinkat.m4; but one thing at a time.
1827
1828         statat: new module, split out from fstatat
1829         GNU Emacs needs the POSIX-specified fstatat, but not the
1830         gnulib-specified statat and lstat.  Split the latter two into a
1831         new module 'statat'.
1832         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1833         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1834         Rename from FSTATAT_INLINE. All uses changed.
1835         * modules/fstatat (Files): Remove lib/statat.c.
1836         (gl_MODULE_INDICATOR([fstatat])): Remove.
1837         (lib_SOURCES): Remove.
1838         (Maintainer): Add self.
1839         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1840         * tests/test-fstatat.c (BASE): Don't define if already defined.
1841         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1842
1843 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1844
1845         tests: don't assume fd 99 is closed
1846         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1847         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1848         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1849         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1850         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1851         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1852         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1853         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1854         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1855         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1856         * tests/test-fwrite.c, tests/test-getpeername.c:
1857         * tests/test-getsockname.c, tests/test-getsockopt.c:
1858         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1859         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1860         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1861         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1862         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1863         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1864         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1865         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1866         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1867         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1868         Close file descriptor 99, instead of assuming it's already closed.
1869
1870 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1871
1872         stpncpy: port to OS X 10.8
1873         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1874         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1875
1876 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1877
1878         unistd: port to recent mingw
1879         * lib/unistd.in.h: Remove special invocation convention for mingw,
1880         which breaks for the latest mingw version.  See John W. Eaton in
1881         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1882
1883         largefile: port better to Mac OS X 10.5
1884         This patch is backported from Autoconf git.
1885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1886         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1887         with ino_t size being different for configuration time versus
1888         build/run time.  Problem reported by PHO in
1889         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1890
1891 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1892
1893         doc: clarify -Werror
1894         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1895         clarify that it's intended for developers, not for ordinary builds,
1896         and mention --enable-gcc-warnings as one possible use.
1897
1898 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1899
1900         stdint: fix build with Android's Bionic fox x86
1901         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1902         was already included as _SSIZE_T_DEFINED_ might also be defined
1903         in include/machine/_types.h, which is included by stdio.h
1904
1905 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         net_if-tests: port to Solaris 7 + GCC 3.4.6
1908         Problem reported by Tom G. Christensen in
1909         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1910         * tests/test-net_if.c (ni): Move to next the code that uses it,
1911         so that it's declared only if needed.
1912
1913 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         net_if-tests: port to older Solaris
1916         Problem reported by Tom G. Christensen in
1917         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1918         * modules/net_if-tests (NET_IF_LIB): New substitution.
1919         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1920         (HAVE_IF_NAMEINDEX): New C macro.
1921         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1922
1923         system-quote-tests: port to older Solaris
1924         Problem reported by Tom G. Christensen in
1925         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1926         * tests/test-system-quote-child.c (fopen, fread): Undef.
1927
1928         c-xvasprintf etc.: fix link errors on older Solaris
1929         These need to link with @LIBINTL@ to get libintl_gettext.
1930         Problem reported by Tom G. Christensen in
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1932         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1933         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1934         * modules/futimens-tests (test_futimens_LDADD):
1935         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1936
1937 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         locale: port to Solaris 2.6 and 7 + GNU gettext
1940         * lib/locale.in.h: Just include_next <locale.h> when
1941         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1942         when combining the localename module with GNU gettext 0.18.2.
1943         Problem reported by Tom G. Christensen in
1944         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1945
1946 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         stdlib: port to Solaris 2.6
1949         Also, the code worked on Solaris 7 through 9 only by accident.
1950         Problem reported by Tom G. Christensen in
1951         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1952         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1953         simply include the system stdlib.h.
1954         * lib/getopt.in.h (__need_system_stdlib_h):
1955         * lib/pthread.in.h (__need_system_stdlib_h):
1956         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1957         Define when including <stdlib.h>, to avoid problems at least for
1958         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1959         with the system stdlib.h.
1960
1961 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1962
1963         doc: update main copyright year
1964         * doc/gnulib.texi: Update copyright date.
1965
1966         doc: improve ISO 8601 discussion
1967         * doc/parse-datetime.texi (Combined date and time of day items):
1968         Specify more carefully what formats are supported and what is
1969         done with excess precision.
1970
1971 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         doc: avoid small caps
1974         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1975         they're more trouble than they're worth.  Suggested by Karl Berry
1976         in <http://bugs.gnu.org/13360>.
1977
1978         regex: conform to strict C
1979         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1980         From Aharon Robbins.
1981
1982         gnulib-tool: fix incompatibility with autopoint 0.18.2
1983         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1984         Problem reported by Tom G. Christensen in
1985         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1986
1987 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1988
1989         fprintftime: bring back and reword fwrite comment
1990         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1991
1992         stdio: remove now-unnecessary stdio.c
1993         Since stdio.in.h no longer uses inline functions, we no longer
1994         need to compile the extern versions.
1995         * lib/stdio.c: Remove.
1996         * modules/stdio (Files): Remove lib/stdio.c.
1997         (lib_SOURCES): Remove.
1998
1999         unicodeio: depend on stdio, not ignore-value
2000         * lib/unicodeio.c: Do not include ignore-value.h.
2001         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2002         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2003
2004         fprintftime: depend on stdio, not ignore-value
2005         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2006         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2007         since the stdio module arranges to silence that warning now.
2008         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2009
2010 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2011
2012         stdint-tests: Fix expanded-before-required-warning.
2013         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2014
2015 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         fwrite: silence __wur only for older glibc versions
2018         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2019         This will help us remove this workaround some time in the far future.
2020
2021 2013-01-03  Eric Blake  <eblake@redhat.com>
2022
2023         fwrite: silence __wur without using inline
2024         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2025         just gcc, and in a way that avoids inline issues.
2026         * modules/stdio (Depends-on): Drop extern-inline.
2027
2028 2013-01-03  Jim Meyering  <jim@meyering.net>
2029
2030         update-copyright: avoid copyright notice date corruption
2031         Given a sequence of copyright year numbers in which the final
2032         one was a two-digit number that happened to be a substring of
2033         a preceding four-digit year number, we would mistakenly update
2034         the substring (from two- to four-digit) rather than the two-digit
2035         number at the end, which, combined with the addition of the current
2036         4-digit year number would yield two 5-digit year numbers, e.g.,
2037         here, it would convert the first "99" to "1999, 2013" rather than
2038         the final one:
2039           1991, 99
2040           11999, 20131, 1999
2041         * build-aux/update-copyright: Tighten a regexp.
2042         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2043         Reported by Joseph Myers in
2044         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2045
2046 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         regex: omit needless signed-pointer casts
2049         * lib/regcomp.c (build_charclass, build_charclass_op):
2050         Use char *, not unsigned char *, for class name and extra.
2051         The char values are always nonnegative so there's no need to
2052         insist on unsigned char * here, and using char * removes the need
2053         for casts.  Reported by Aharon Robbins in
2054         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2055
2056         regex: support Gawk, which never uses alloca
2057         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2058         Do not include in this case.  Gawk doesn't supply a substitute
2059         alloca.h and doesn't need one.
2060
2061         regex: port __libc_lock_define usage to C89
2062         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2063         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2064         does not conform to C89, as it has an empty macro argument.
2065         Reported by Aharon Robbins in
2066         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2067
2068 2013-01-01  Eric Blake  <eblake@redhat.com>
2069
2070         maint: update all copyright year number ranges
2071         Run "make update-copyright".
2072
2073         version-etc: bump copyright year reported in --version
2074         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2075
2076 2012-12-31  Eric Blake  <eblake@redhat.com>
2077
2078         sigprocmask-tests: skip test if pid is unexpectedly large
2079         * tests/test-sigprocmask.c (main): Add range check.
2080
2081         git-version-gen: avoid test -z portability glitch
2082         * build-aux/git-version-gen: Prefer portable test spelling, since
2083         git-version-gen is run on more than just developer machines.
2084
2085 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2086
2087         git-version-gen: add --fallback option to use if git is not present
2088         * build-aux/git-version-gen: Add support for the new option --fallback,
2089         which comes into play when there is no $tarball_version_file and
2090         git is not working.
2091         (scriptversion): Update.
2092
2093         maint.mk: handle missing git with more grace
2094         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2095         Quietly proceed if git is not present.
2096
2097 2012-12-31  Eric Blake  <eblake@redhat.com>
2098
2099         dup2: work around cygwin bug
2100         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2101         * lib/dup2.c (rpl_dup2): Work around it.
2102         * doc/posix-functions/dup2.texi (dup2): Document it.
2103
2104 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         regex: remove unnecessary dependency on localcharset.h
2107         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2108         hasn't been needed for years.
2109         * modules/regex (Depends-on): Remove localcharset.
2110
2111         regex: revert single-byte change
2112         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2113         to this function.  This was alredy fixed in a different way, at
2114         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2115         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2116         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2117
2118         regex: simplify based on Gawk version
2119         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2120         Reported by Aharon Robbins in
2121         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2122
2123 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         regex: check that pattern char is single-byte
2126         Reported by Aharon Robbins in
2127         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2128         * lib/regexec.c (check_node_accept_bytes):
2129         Return 0 if the pattern string has a multibyte character here.
2130
2131         regex: implement rational ranges
2132         Reported by Aharon Robbins in
2133         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2134         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2135         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2136         Implement rational ranges.
2137
2138         regex: avoid redefining __wctype
2139         Reported by Aharon Robbins in
2140         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2141         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2142         #undef before defining.
2143
2144         regex: port to hosts where malloc (0) == NULL
2145         Reported by Aharon Robbins in
2146         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2147         * lib/regex_internal.c (re_node_set_alloc):
2148         Don't assume that malloc (0) yields nonnull.
2149         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2150         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2151         * modules/regex (Files): Add m4/eealloc.m4.
2152
2153         regex: port to C89
2154         Reported by Aharon Robbins in
2155         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2156         * lib/regcomp.c (init_word_char): Declaration before statement.
2157
2158         regex: merge glibc changes
2159         Also, copy the license wording from glibc.  This simplifies
2160         merging changes.  gnulib-tool will change the wording to GPL as
2161         appropriate, when importing it to other packages.  The only
2162         glibc change made since the last merge, which needs merging, is:
2163         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2164         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2165
2166         * users.txt: Add Emacs.
2167
2168         doc: omit mention of version when not needed
2169         * doc/gnulib-intro.texi (Portability and Application Code):
2170         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2171         Don't mention particular dates or versions when not necessary, so
2172         that the documentation won't go out of date so quickly.
2173
2174         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2175
2176 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2177
2178         bootstrap: pass --force to autoreconf.
2179         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2180         Add "--force" so that Automake's ylwrap and other such tools
2181         be updated at each bootstrap invocation.
2182         Use it.
2183
2184 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2185
2186         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2187         The earlier patch forgot to update one of the #if conditions, causing
2188         a problem on Debian testing i386 reported by Mats Erik Andersson
2189         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2190         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2191         (__argp_fmtstream_puts, argp_fmtstream_puts)
2192         (__argp_fmtstream_write, argp_fmtstream_write)
2193         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2194
2195         * doc/gnulib-readme.texi: Minor fixups.
2196         (Portability guidelines): Modernize URLs.  Remove some repetition.
2197         (Indent with spaces not TABs): Reword to avoid too-long lines.
2198         Remove some '@ifset standalone' stuff that isn't used.
2199
2200         * doc/gnulib-readme.texi (Portability guidelines):
2201         ctype.h, not ctime.h.
2202
2203         Correct name of POSIX.1-2001.
2204         * doc/posix-functions/fgetc.texi (fgetc):
2205         * doc/posix-functions/fgets.texi (fgets):
2206         * doc/posix-functions/fread.texi (fread):
2207         * doc/posix-functions/fscanf.texi (fscanf):
2208         * doc/posix-functions/getc.texi (getc):
2209         * doc/posix-functions/getchar.texi (getchar):
2210         * doc/posix-functions/scanf.texi (scanf):
2211         POSIX.1-2001, not POSIX-2001.
2212
2213         doc: move README into manual
2214         * README: Move contents to new file doc/gnulib-readme.texi.
2215         Replace with a one-line summary.
2216         * doc/gnulib.texi (Brief Overview): New section,
2217         with old intro preface.  Include gnulib-readme.texi for contents.
2218         (Philosophy): Rename from "Introduction", since this
2219         section no longer introduces the rest.  Write a new preface.
2220         * doc/gnulib-readme.texi: New file, with the old contents of
2221         README texinfo-ized.  This way, the README info appears
2222         in the online and printed manual.
2223
2224 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2225
2226         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2227         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2228         c_vasprintf() prototype.
2229
2230 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2231
2232         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2233         * lib/c-vasprintf.h: Remove stray semicolon.
2234
2235 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2236
2237         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2238         It is obsolete and is planned to be removed from Automake 1.14; see
2239         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2240         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2241         (installdirs-data, installdirs-data-yes):
2242         Use $(MKDIR_P), not $(mkdir_p).
2243         * m4/intl.m4 (AM_INTL_SUBDIR):
2244         * m4/po.m4 (AM_PO_SUBDIRS):
2245         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2246
2247 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2250         On this platform, we are not optimizing but we are using
2251         the substitute for extern inlines, so compile as if
2252         C99-style extern inline, or a substitute, is available.
2253         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2254         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2255         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2256         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2257         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2258         Declare as ARGP_FS_EI, not as extern.
2259         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2260         (__option_is_short, _option_is_end, __option_is_end)
2261         [!_LIBC && __USE_EXTERN_INLINES]:
2262         Declare as ARGP_EI, not as extern.
2263
2264 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2265
2266         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2267         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2268         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2269         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2270         ...), as the latter is fatal with older Autoconfs.
2271         Problem reported and fix suggested by Eric Blake in thread starting at
2272         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2273
2274 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         AC_PROG_MKDIR_P: don't workaround if not buggy
2277         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2278         Define only for Autoconf versions before 2.62.
2279         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2280         undocumented m4_PACKAGE_VERSION, for consistency with the
2281         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2282         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2283         was introduced in 2.62.
2284
2285 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2286
2287         New 'c-*printf' modules for formatted output in C locale.
2288
2289         New module 'c-vasnprintf'.
2290         * modules/c-vasnprintf: New file.
2291         * lib/c-vasnprintf.c: New file.
2292         * lib/c-vasnprintf.h: New file.
2293
2294         New module 'c-snprintf'.
2295         * modules/c-snprintf: New file.
2296         * modules/c-snprintf-tests: New file.
2297         * lib/c-snprintf.c: New file.
2298         * lib/c-snprintf.h: New file.
2299         * tests/test-c-snprintf.c: New file.
2300         * tests/test-c-snprintf.sh: New file.
2301
2302         New module 'c-vsnprintf'.
2303         * modules/c-vsnprintf: New file.
2304         * modules/c-vsnprintf-tests: New file.
2305         * lib/c-vsnprintf.c: New file.
2306         * lib/c-vsnprintf.h: New file.
2307         * tests/test-c-vsnprintf.c: New file.
2308         * tests/test-c-vsnprintf.sh: New file.
2309
2310         New module 'c-vasprintf'.
2311         * modules/c-vasprintf: New file.
2312         * modules/c-vasprintf-tests: New file.
2313         * lib/c-asprintf.c: New file.
2314         * lib/c-vasprintf.c: New file.
2315         * lib/c-vasprintf.h: New file.
2316         * tests/test-c-vasprintf.c  +: New file.
2317         * tests/test-c-vasprintf.sh: New file.
2318
2319         New module 'c-xvasprintf'.
2320         * modules/c-xvasprintf: New file.
2321         * modules/c-xvasprintf-tests: New file.
2322         * lib/c-xasprintf.c: New file.
2323         * lib/c-xvasprintf.c: New file.
2324         * lib/c-xvasprintf.h: New file.
2325         * tests/test-c-xvasprintf.c: New file.
2326         * tests/test-c-xvasprintf.sh: New file.
2327
2328 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2329
2330         argp: better 'inline'
2331         Use extern-inline module to declare extern inline functions.
2332         This avoids some bogus warning diagnostics.  Problem discovered
2333         when modifying GNU tar to use the manywarnings module.
2334         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2335         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2336         Define based on extern-inline.
2337         * modules/argp (Depends-on): Add extern-inline.
2338
2339 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2340
2341         filemode, sys_stat: Handle MPX files a la AIX.
2342         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2343         * lib/sys_stat.in.h (S_ISMPX): New macro.
2344         * tests/test-sys_stat.c: Add tests for MPX files.
2345
2346 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2347
2348         x-to-1: honor $PERL
2349         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2350         a chance to use his preferred version of Perl.  This is typically
2351         required by Darwin users whose default /usr/bin/perl does not have all
2352         the libraries required by help2man, and who need to use their MacPorts
2353         installation of Perl instead.
2354
2355 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2356
2357         gnu-web-doc-update: add all the new files, even in new directories
2358         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2359         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2360         Use it.
2361         (main): Don't use cvsutils to get the list of unknown files,
2362         just add all the existing files and directories.
2363
2364 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2365
2366         gnu-web-doc-update: improve --help
2367         * build-aux/gnu-web-doc-update: Move comments into --help.
2368
2369 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2370
2371         mountlist: recognize more "dummy" file systems
2372         * lib/mountlist.c (ME_DUMMY_0):
2373         Add these dummy FS names to the list:
2374         - "debugfs" virtual filesystem for kernel debugging
2375         - "devpts" PTY slave filesystem
2376         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2377         - "fusectl" control filesystem for FUSE
2378         - "mqueue" enumerates POSIX message queues
2379         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2380         - "sysfs" is for exporting kernel objects
2381         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2382
2383 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         extern-inline: avoid incompatibility with Darwin Libc
2386         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2387         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2388         Problem reported by Akim Demaille in
2389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2390
2391 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2392
2393         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2394         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2395         let it handle password prompting.
2396
2397 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2398
2399         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2400         * lib/canonicalize.c (canonicalize_filename_mode):
2401         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2402         fetching the current directory.  Don't overrun the beginning of
2403         rpath if there's no slashes after the MS-Windows drive letter.
2404
2405 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2406
2407         maint.mk: avoid extra forks
2408         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2409         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2410         So use that instead of "$(shell test -f FILE && echo FILE)".
2411
2412 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2413
2414         vasnprintf: fix ASCII_ONLY typo
2415         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2416         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2417         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2418         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2419         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2420
2421 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2422
2423         list, oset, xlist, xoset: fix extern inline issue with C99
2424         This was introduced by my recent changes for 'inline'.
2425         Problem reported for gettext by Daiki Ueno in
2426         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2427         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2428         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2429         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2430         (gl_list_previous_node, gl_list_get_at)
2431         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2432         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2433         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2434         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2435         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2436         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2437         (gl_list_iterator_free, gl_sortedlist_search)
2438         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2439         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2440         (gl_sortedlist_remove):
2441         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2442         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2443         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2444         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2445         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2446         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2447         (gl_list_add_at, gl_sortedlist_add):
2448         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2449         Wrap these extern decls inside "#if 0", because they are implemented
2450         as inline functions, and extern inline is not what's wanted here.
2451         It would simplify these .h files to remove the extern decls entirely,
2452         although a downside would be less-clear separation between
2453         specification and implementation.
2454
2455 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2456
2457         sys_stat: no 'static inline'
2458         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2460
2461         extern-inline: no 'static inline'
2462         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2463         Do not require AC_C_INLINE.
2464         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2465         'static inline', for older compilers.
2466
2467         snippet/warn-on-use: no 'static inline'
2468         * build-aux/snippet/warn-on-use.h:
2469         Remove unnecessary 'inline' in comment.
2470
2471         rbtree-list, rbtreehash-list: no 'static inline'
2472         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2473         * lib/gl_anytree_list2.h (node_at):
2474         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2475         (gl_oset_first, add_nodes_to_buckets):
2476         Now static, not static inline.
2477
2478         regex: no 'static inline'
2479         * lib/regex_internal.c (calc_state_hash):
2480         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2481         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2482         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2483         Now static, not static inline.
2484         (inline) [__GNUC__ < 3 && _LIBC]:
2485         Remove macro; no longer needed.
2486
2487         xvasprintf: no 'static inline'
2488         * lib/xvasprintf.c (xstrcat):
2489         Now static, not static inline.
2490         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2491         Do not require AC_C_INLINE.
2492
2493         parse-datetime, parse-duration: no 'static inline'
2494         * lib/parse-datetime.y (to_uchar):
2495         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2496         (scale_n_add):
2497         Now static, not static inline.
2498         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2499         * modules/parse-duration (configure.ac):
2500         Do not require AC_C_INLINE.
2501
2502         getaddrinfo: no 'static inline'
2503         * lib/getaddrinfo.c (validate_family):
2504         Now static, not static inline.
2505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2506         Do not require AC_C_INLINE.
2507
2508         ftruncate, fts, lstat, openat, raise: no 'static inline'
2509         * lib/ftruncate.c (chsize_nothrow):
2510         * lib/fts.c (opendirat, diropen):
2511         * lib/lstat.c (orig_lstat):
2512         * lib/openat.c (orig_openat):
2513         * lib/raise.c (raise_nothrow):
2514         Now static, not static inline.
2515         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2516         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2517         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2518         * m4/openat.m4 (gl_PREREQ_OPENAT):
2519         * m4/raise.m4 (gl_PREREQ_RAISE):
2520         Do not require AC_C_INLINE.
2521
2522         fflush, stat: no 'static inline'
2523         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2524         (clear_ungetc_buffer, disable_seek_optimization)
2525         (restore_seek_optimization, update_fpos_cache):
2526         * lib/stat.c (orig_stat):
2527         Now static, not static inline.
2528         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2529         (update_fpos_cache):
2530         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2531         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2532         * m4/stat.m4 (gl_PREREQ_STAT):
2533         Do not require AC_C_INLINE.
2534
2535         error, filevercmp: no 'static inline'
2536         * lib/error.c (is_open, flush_stdout):
2537         * lib/filevercmp.c (order):
2538         Now static, not static inline.
2539         * m4/error.m4 (gl_PREREQ_ERROR):
2540         * modules/filevercmp (configure.ac):
2541         Do not require AC_C_INLINE.
2542
2543         dup, execute, fatal-signal, etc.: no 'static inline'
2544         * lib/dup.c (dup_nothrow):
2545         * lib/execute.c (nonintr_close, nonintr_open):
2546         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2547         * lib/fopen.c (orig_fopen):
2548         * lib/freadseek.c (freadptrinc):
2549         * lib/freopen.c (orig_freopen):
2550         * lib/fstat.c (orig_fstat, fstat_nothrow):
2551         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2552         (get_rusage_as_via_iterator):
2553         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2554         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2555         * lib/isatty.c (_isatty_nothrow):
2556         * lib/open.c (orig_open):
2557         * lib/read.c (read_nothrow):
2558         * lib/sigprocmask.c (signal_nothrow):
2559         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2560         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2561         * lib/wait-process.c (unregister_slave_subprocess):
2562         * lib/write.c (write_nothrow):
2563         Now static, not static inline.
2564         * lib/spawn-pipe.c (nonintr_open): Define only if
2565         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2566         * m4/dup.m4 (gl_PREREQ_DUP):
2567         * m4/execute.m4 (gl_EXECUTE):
2568         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2569         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2570         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2571         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2572         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2573         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2574         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2575         * m4/open.m4 (gl_PREREQ_OPEN):
2576         * m4/read.m4 (gl_PREREQ_READ):
2577         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2578         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2580         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2581         * m4/write.m4 (gl_PREREQ_WRITE):
2582         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2583         Do not require AC_C_INLINE.
2584
2585         c-strtod, memcoll, readutmp: no 'static inline'
2586         * lib/c-strtod.c (c_locale):
2587         * lib/memcoll.c (strcoll_loop):
2588         * lib/readutmp.c (desirable_utmp_entry):
2589         Now static, not static inline.
2590         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2591         * m4/memcoll.m4 (gl_MEMCOLL):
2592         * m4/readutmp.m4 (gl_READUTMP):
2593         Do not require AC_C_INLINE.
2594
2595         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2596         * lib/arctwo.c (to_uchar):
2597         * lib/md4.c (set_uint32):
2598         * lib/md5.c (set_uint32):
2599         * lib/sha1.c (set_uint32):
2600         * lib/sha256.c (set_uint32):
2601         * lib/sha512.c (set_uint64):
2602         Now static, not static inline.  This is a bit simpler, and doesn't
2603         affect performance with GCC and default optimization.
2604         * m4/arctwo.m4 (gl_ARCTWO):
2605         * m4/md4.m4 (gl_MD4):
2606         * m4/md5.m4 (gl_MD5):
2607         * m4/sha1.m4 (gl_SHA1):
2608         * m4/sha256.m4 (gl_SHA256):
2609         * m4/sha512.m4 (gl_SHA512):
2610         Do not require AC_C_INLINE.
2611
2612         cond, lock, thread: better 'inline'
2613         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2614         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2615         New macros.  Use them instead of static inline, for header functions.
2616         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2617         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2618         * lib/glthread/lock.c (gl_waitqueue_init)
2619         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2620         * lib/glthread/thread.c (get_current_thread_handle):
2621         Change 'static inline' to 'inline'.
2622         * lib/glthread/cond.h, lib/glthread/thread.h:
2623         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2624         * m4/cond.m4 (gl_COND):
2625         * m4/lock.m4 (gl_PREREQ_LOCK):
2626         * m4/thread.m4 (gl_THREAD):
2627         Do not require AC_C_INLINE.
2628         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2629
2630         chdir-long, cycle-check, savewd: better 'inline'
2631         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2632         (find_non_slash):
2633         * lib/cycle-check.c (is_zero_or_power_of_two):
2634         * lib/savewd.c (savewd_delegating):
2635         Change 'static inline' to 'inline'.
2636         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2637         Replace all remaining uses of 'static inline' with it.
2638         * lib/savewd.h:
2639         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2640         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2641         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2642         * m4/savewd.m4 (gl_SAVEWD):
2643         Do not require AC_C_INLINE.
2644         * modules/savewd (Depends-on): Add extern-inline.
2645
2646         base32, base64: no need for 'inline'
2647         * lib/base32.c (to_uchar, get_8, decode_8):
2648         * lib/base64.c (to_uchar, get_4, decode_4):
2649         Change 'static inline' to 'inline'.
2650         * m4/base32.m4 (gl_PREREQ_BASE32):
2651         * m4/base64.m4 (gl_PREREQ_BASE64):
2652         Do not require AC_C_INLINE.
2653
2654         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2655         * lib/gl_array_oset.c (gl_array_nx_add_at):
2656         (gl_array_remove_at):
2657         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2658         (add_to_bucket, remove_from_bucket):
2659         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2660         Change 'static inline' to 'static', as it's simpler to omit
2661         'inline' unless there's a significant performance advantage.
2662
2663         list, oset, xlist, xoset, xsublist: simplify via extern inline
2664         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2665         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2666         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2667         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2668         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2669         New macro.  Replace all uses of 'static inline' with it.
2670         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2671         instead of as macros FOO that are defined to static inline
2672         functions FOO_inline.
2673         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2674         * lib/gl_xsublist.c:
2675         Reimplement from scratch, by defining the corresponding *_INLINE
2676         macro and including the corresponding .h file.  This is simpler.
2677         * modules/list, modules/oset, modules/xlist, modules/xoset:
2678         (Files): Remove m4/gl_list.m4.
2679         (configure.ac): Remove gl_LIST.
2680         * m4/gl_list.m4: Remove.
2681         * modules/list, modules/oset, modules/xlist, modules/xoset:
2682         * modules/xsublist:
2683         (Depends-on): Depend on extern-inline, not inline.
2684
2685         xalloc: better 'inline'
2686         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2687         New macro.  Replace all uses of 'static inline' with it.
2688         (static_inline): Remove.
2689         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2690         Let 'extern inline' do the work automatically, instead of doing
2691         it by hand.
2692         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2693         Remove.  All uses removed.
2694         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2695
2696         gethrxtime: better 'inline'
2697         * lib/xtime.c: New file.
2698         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2699         * lib/xtime.h (XTIME_INCLUDE):
2700         New macros.  Replace all uses of 'static inline' with them.
2701         * lib/gethrxtime.c (gethrxtime): Define only if
2702         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2703         this source file is now always compiled, because of the extern inline.
2704         * lib/gethrxtime.h, lib/xtime.h:
2705         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2706         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2707         if gethrtime works, as they're not needed in that case.
2708         (gl_XTIME): Do not require AC_C_INLINE.
2709         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2710         compiled now.  Move the check into gl_GETHRXTIME.
2711         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2712         (Depends-on): Add extern-inline.
2713         (configure.ac): gethrxtime is always compiled now.
2714         (lib_SOURCES): Add gethrxtime.c.
2715
2716         wctype-h: better 'inline'
2717         * lib/wctype-h.c: New file.
2718         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2719         New macro.  Replace all uses of 'static inline' with it.
2720         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2721         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2722         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2723         (Depends-on): Add extern-inline.
2724
2725         unistd: better 'inline'
2726         * lib/unistd.c: New file.
2727         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2728         New macro.  Replace all uses of 'static inline' with it.
2729         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2730         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2731         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2732         (Depends-on): Add extern-inline.
2733
2734         sys_socket: better 'inline'
2735         * lib/sys_socket.c: New file.
2736         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2737         New macro.  Replace all uses of 'static inline' with it.
2738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2739         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2740         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2741         (Depends-on): Add extern-inline.
2742
2743         stdio: better 'inline'
2744         * lib/stdio.c: New file.
2745         * lib/stdio.in.h (_GL_STDIO_INLINE):
2746         New macro.  Replace all uses of 'static inline' with it.
2747         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2748         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2749         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2750         (Depends-on): Add extern-inline.
2751
2752         sigaction: better 'inline'
2753         * lib/sig-handler.c: New file.
2754         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2755         New macro.  Replace all uses of 'static inline' with it.
2756         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2757         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2758         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2759         (Depends-on): Add extern-inline.
2760
2761         selinux-h: better 'inline'
2762         * lib/se-context.c, lib/se-selinux.c: New files.
2763         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2764         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2765         New macro.  Replace all uses of 'static inline' with it.
2766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2767         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2768         New macro.  Replace all uses of 'static inline' with it.
2769         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2770         * modules/selinux-h (Files, lib_SOURCES):
2771         Add lib/se-context.c, lib/se-selinux.c.
2772         (Depends-on): Add extern-inline.
2773         (configure.ac): Do not require AC_C_INLINE.
2774
2775         pthread: better 'inline'
2776         * lib/pthread.c: New file.
2777         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2778         New macro.  Replace all uses of 'static inline' with it.
2779         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2780         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2781         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2782         * modules/pthread (Files): Add lib/pthread.c.
2783         (Depends-on): Add extern-inline.
2784
2785         math: better 'inline'
2786         * lib/math.c: New file.
2787         * lib/math.in.h (_GL_MATH_INLINE):
2788         New macro.  Replace all uses of 'static inline' with it.
2789         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2790         * m4/math_h.m4 (gl_MATH_H):
2791         Do not require AC_C_INLINE.
2792         * modules/math (Files, lib_SOURCES):
2793         Add lib/math.c.
2794         (Depends-on): Add extern-inline.
2795
2796         count-one-bits: better 'inline'
2797         * lib/count-one-bits.c: New file.
2798         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2799         New macro.  Replace all uses of 'static inline' with it.
2800         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2801         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2802         Do not require AC_C_INLINE.
2803         * modules/count-one-bits (Files, lib_SOURCES):
2804         Add lib/count-one-bits.c.
2805         (Depends-on): Add extern-inline.
2806
2807         count-leading-zeros: better 'inline'
2808         * lib/count-leading-zeros.c: New file.
2809         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2810         New macro.  Replace all uses of 'static inline' with it.
2811         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2812         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2813         Do not require AC_C_INLINE.
2814         * modules/count-leading-zeros (Files, lib_SOURCES):
2815         Add lib/count-leading-zeros.c.
2816         (Depends-on): Add extern-inline.
2817
2818         bitrotate: better 'inline'
2819         * lib/bitrotate.c: New file.
2820         * lib/bitrotate.h (BITROTATE_INLINE):
2821         New macros.
2822         Replace all uses of 'static inline' with them.
2823         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2824         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2825         (Depends-on): Add extern-inline.
2826         (configure.ac): Do not require AC_C_INLINE.
2827
2828 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2829
2830         maint.mk: avoid gratuitous failure
2831         Reported by Stefano Lattarini in
2832         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2833         * top/maint.mk (public-submodule-commit): Quote more safely.
2834
2835 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2836
2837         canonicalize, canonicalize-lgpl: support MS-Windows file names
2838         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2839         for test cases, which it'd be nice to add at some point.
2840         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2841         * lib/canonicalize.c (canonicalize_filename_mode):
2842         * lib/canonicalize-lgpl.c (__realpath):
2843         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2844         slash is at the beginning of the file name.  Use ISSLASH, instead
2845         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2846         the first character with '/'.  Test for
2847         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2848         with a drive letter.
2849         * lib/canonicalize.c (SLASHES): New macro.
2850         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2851
2852 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2853
2854         fts: introduce FTS_VERBATIM
2855         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2856         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2857         * lib/fts.c (fts_open): Honor it.
2858
2859 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2860
2861         getlogin-tests: allow errno == ENXIO
2862         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2863         with errno == ENXIO (No controlling tty).
2864         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2865         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2866         with errno == ENOENT.  This was reported to happen in various
2867         situations on GNU/Linux.
2868
2869 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2870
2871         getlogin-tests: allow errno == ENOENT
2872         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2873         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2874         when running a test in an Emacs shell buffer.
2875
2876 2012-11-08  Jim Meyering  <jim@meyering.net>
2877
2878         tests/nap.h: avoid warning about unused variable
2879         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2880
2881         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2882         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2883         white space before each of the special-cased file names, to avoid
2884         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2885         in http://bugs.gnu.org/12830.
2886
2887 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2888
2889         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2890         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2891         fails with errno == EBADF when fd is opened with O_PATH.
2892         Reported by Jim Meyering in
2893         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2894         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2895         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2896
2897 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2898
2899         test-utimens: speed up by taking shorter naps
2900         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2901         New functions.
2902         (nap): Use them, to do a better job of guessing the delay.
2903         On Fedora 17 with ext4 atop md atop hard disks, this made
2904         test-utimens run 10x faster, because the test napped for
2905         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2906         <http://bugs.gnu.org/12820#11>.
2907
2908 2012-11-07  Jim Meyering  <jim@meyering.net>
2909
2910         mountlist.c: fix a compilation failure
2911         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2912         I introduced while transforming commit v0.0-7683-g613bcb6
2913
2914 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2915
2916         errno: port to LynxOS 178 2.2.2
2917         Problem reported by Joel Brobecker in
2918         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2919         * doc/posix-headers/errno.texi (errno.h): Document this.
2920         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2921         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2922         Supply a string for EILSEQ.
2923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2924
2925 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2926
2927         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2928         Linux kernel 2.6.39 introduced O_PATH (see
2929         <http://lwn.net/Articles/433854/>) and this is a better fallback
2930         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2931         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2932         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2933         * lib/fcntl.in.h (O_ACCMODE):
2934         * tests/test-fcntl-h.c (main):
2935         Do not reject O_ACCMODE merely because it has more than the
2936         minimal number of bits, as POSIX allows extensions here.
2937
2938 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2939
2940         mountlist: do not classify a bind-mounted dir entry as "dummy"
2941         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2942         the "none"-testing clause.
2943         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2944         exception for bind-mounted directories.
2945
2946 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2947
2948         quote: provide a means to escape strings with nul characters
2949         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2950         (quote, quote_n): Rename formal arguments for consistency with
2951         quotearg.
2952
2953 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2954
2955         test-raise: don't assume 199 is an invalid signal
2956         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2957
2958         sh-quote-tests: port to Solaris 9
2959         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2960         Problem reported by Dagobert Michelsen in
2961         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2962
2963 2012-10-28  Jim Meyering  <jim@meyering.net>
2964
2965         maint.mk: rename a new configurable variable
2966         * top/maint.mk (_gl_translatable_string_re): Rename from
2967         translation-markers: _gl_ prefix to insulate from user Makefile code,
2968         and the _re suffix to inform that it's a regular expression.
2969
2970 2012-10-26  Eric Blake  <eblake@redhat.com>
2971
2972         maint.mk: let packages tweak sc_po_check pattern
2973         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2974         finding files with other translation markers.
2975
2976 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         euidaccess: speed up 'configure' on GNU hosts
2979         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2980         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2981         it's needed only in this case.  Use AC_CHECK_DECLS, not
2982         AC_CHECK_DECLS_ONCE.
2983         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2984         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2985
2986         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2987
2988 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2989
2990         fchmodat, fchownat, fstatat: port to non-inlining compilers
2991         Problem reported for FreeBSD 9 by Jim Meyering in
2992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2993         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2994         New files, which define FCHMODAT_INLINE etc.
2995         * lib/fchmodat.c (FCHMODAT_INLINE):
2996         * lib/fchownat.c (FCHOWNAT_INLINE):
2997         * lib/fstatat.c (FSTATAT_INLINE):
2998         Remove, as chmodat.c etc. now do this.
2999         * modules/fchmodat (Files): Add lib/chmodat.c.
3000         * modules/fchownat (Files): Add lib/chownat.c.
3001         * modules/fstatat (Files): Add lib/statat.c.
3002
3003 2012-10-15  Jim Meyering  <jim@meyering.net>
3004
3005         fchmodat.c, fchownat.c: compile-impeding typos
3006         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3007         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3008         Introduced in commit v0.0-7636-gd202279.
3009
3010 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3011
3012         fcntl-h: support GNU flags like O_IGNORE_CTTY
3013         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3014         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3015         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3016         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3017         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3018         Define to 0 if not already defined.
3019         * tests/test-fcntl-h.c: Test these new flags.
3020
3021 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3022
3023         faccessat, etc.: support AT_FDCWD-only use
3024         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3025         this function only if its first argument is AT_FDCWD.
3026         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3027         values other than AT_FDCWD, so it doesn't want all the openat
3028         machinery with fchdir etc.
3029         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3030         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3031         * modules/unlinkat (Files):
3032         Remove lib/openat-priv.h, as at-internal supplies this file.
3033         Removing this file here allows us to support programs like Emacs
3034         that avoid at-internal.
3035
3036         faccessat: speed up 'configure' on mainstream hosts
3037         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3038         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3039         since it's only on unusual platforms that we need to check for
3040         'access', and it's better not to slow 'configure' down on all
3041         platforms.
3042
3043         faccessat: port to Solaris 10
3044         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3045         Needed on Solaris 10, which doesn't have AT_EACCESS,
3046         so we need the Gnulib fcntl.h, which defines it.
3047
3048 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3049         canonicalize: fix C89 compilation
3050         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3051         declarations so C89 is supported.  Also remove the comment
3052         referencing memorty allocation as the suggested feature could
3053         not be implemented as suggested.
3054         Reported by Michael Goffioul.
3055
3056 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         group-member: omit unnecessary dependencies
3059         This is for Emacs, which has its own allocator and where we
3060         don't want to use xalloc.
3061         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3062         since we no longer use xmalloc.  Do not include stdbool.h, since
3063         the changes below happen to remove the only use of bool.
3064         (GROUPBUF_SIZE): New constant.
3065         (struct group_info): Remove n_groups member.  Add groupbuf member.
3066         This lets us get the groups without using malloc, usually.
3067         (free_group_info, get_group_info): Adjust to this.
3068         (get_group_info): Return the number of groups found, or -1 on error.
3069         Use plain malloc not xmalloc, and treat its failure as if there
3070         are no groups, as the user already loses in case of error.
3071         (group_member): Simplify, based on changes to get_group_info.
3072         * modules/group-member (Depends-on): Remove dependencies on
3073         xalloc and stdbool.  Add dependency on xalloc-oversized.
3074
3075 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3076
3077         gethrxtime: port to C++
3078         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3079
3080 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3081
3082         ptsname: fix macro-name typo
3083         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3084
3085 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3086
3087         inttostr: Relax license.
3088         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3089
3090 2012-10-03  Eric Blake  <eblake@redhat.com>
3091
3092         ptsname_r: support ptys returned by FreeBSD posix_openpt
3093         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3094         lives in /dev/pts/.
3095
3096 2012-10-02  Eric Blake  <eblake@redhat.com>
3097
3098         pselect: reject invalid file descriptors
3099         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3100         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3101         * modules/pselect (Depends-on): Add dup2.
3102         * doc/posix-functions/pselect.texi (pselect): Document this.
3103
3104         select: reject invalid file descriptors
3105         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3106         * lib/select.c (rpl_select) [!win32]: Work around it.
3107         * modules/select (Depends-on): Add dup2.
3108         * doc/posix-functions/select.texi (select): Document this.
3109
3110         select: enhance test
3111         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3112         New functions.
3113         (test_function): Enhance test.
3114         (do_select_bad_fd): Avoid any stale errno values.
3115
3116         ptsname: reject invalid file descriptors
3117         http://www.austingroupbugs.net/view.php?id=503
3118         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3120         * modules/stdlib (Makefile.am): Replace witness.
3121         * lib/stdlib.in.h (ptsname): Allow for replacement.
3122         * modules/ptsname (configure.ac): Trigger replacement.
3123         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3124
3125 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3126
3127         hash-pjw-bare: new module
3128         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3129         * lib/hash-pjw-bare.h: Likewise.
3130         * modules/hash-pjw-bare: New file.
3131         * MODULES.html.sh (Misc): Add it.
3132
3133 2012-10-02  Eric Blake  <eblake@redhat.com>
3134
3135         manywarnings: cater to more gcc infelicities
3136         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3137         -Wuninitialized without -O.
3138
3139 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3140
3141         select, poll tests: Make setsockopt invocation effective.
3142         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3143         the bind() call.
3144         * tests/test-select.h (open_server_socket): Likewise.
3145
3146 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3147
3148         sockets, sys_stat: restore AC_C_INLINE
3149         This undoes the 2012-09-22 patch.
3150         * m4/sockets.m4 (gl_SOCKETS):
3151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3152         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3153         and does not support plain 'inline'.  Reported by Bruno Haible in
3154         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3155
3156 2012-09-30  Bruno Haible  <bruno@clisp.org>
3157
3158         localeconv tests: Avoid test failure on OpenIndiana.
3159         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3160         skip the 'grouping' and 'mon_grouping' tests.
3161         Reported by Jim Meyering.
3162
3163 2012-09-30  Bruno Haible  <bruno@clisp.org>
3164
3165         havelib: Follow libtool developments.
3166         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3167         Suggested by Simon Josefsson.
3168
3169 2012-09-29  Jim Meyering  <meyering@redhat.com>
3170
3171         fstatat.c: fix a compile-impeding typo
3172         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3173         Introduced in commit v0.0-7636-gd202279.
3174         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3175
3176 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3177
3178         extern-inline: provide a -Wundef safe config.h
3179         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3180         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3181         to produce a -Wundef warning free config.h.
3182
3183 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3184
3185         hash-pjw: relax license to LGPLv2+
3186         * modules/hash-pjw (License): Relax, with consent of author.
3187
3188 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3189
3190         maint.mk: fix strict vs. lazy variable issues with RELEASE
3191         * top/maint.mk (_equal): New function.
3192         (member_check): Strip the result to avoid spurious spaces.
3193         (url_dir_list): Do not use ifeq, which is strict, as it will
3194         require RELEASE_TYPE to be defined.
3195         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3196         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3197         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3198         (announcement_Cc_beta,announcement_mail_headers_beta)
3199         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3200         (release): Do not depend on $(release-type), as it forces its
3201         evaluation.  Bounce to it.
3202
3203 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3204
3205         maint.mk: formatting changes
3206         * top/maint.mk: Indent bodies of if's.
3207
3208 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3209
3210         maint.mk: factor the validation of RELEASE_TYPE
3211         With help from Jim Meyering.
3212         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3213         * top/maint.mk (_empty, _sp): Move their definition earlier.
3214         (member-check, release-type): New.
3215         Use the latter instead of $(RELEASE_TYPE).
3216         Remove now useless local checks.
3217
3218 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3219
3220         maint.mk: provide "make upload" to ease uploading
3221         See
3222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3223         Do not depend simply on the current $(VERSION), as there may have been
3224         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3225         as "make release-commit" already does.
3226
3227         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3228         "make TYPE".
3229
3230         * top/maint.mk (upload_command, upload, release): New.
3231         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3232         (VERSION): first word of $(RELEASE) is always right.
3233         (emit_upload_commands): Adjust.
3234         * top/README-release: Update.
3235
3236 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3237
3238         maint.mk: silent rules
3239         With help from Stefano Lattarini.
3240         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3241         (announcement): Use $(AM_V_at).
3242
3243 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3244
3245         localename: port gl_locale_name_thread_unsafe to FreeBSD
3246         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3247         and use the simpler FreeBSD implementation on Mac OS X as well.
3248         Original idea suggested by Ed Maste in
3249         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3250
3251 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3252
3253         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3254         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3255         * lib/mbuiter.c, lib/xsize.c: New files.
3256         * lib/binary-io.h (BINARY_IO_INLINE):
3257         * lib/eealloc.h (EEALLOC_INLINE):
3258         * lib/mbfile.h (MBFILE_INLINE):
3259         * lib/mbiter.h (MBITER_INLINE):
3260         * lib/mbuiter.h (MBUITER_INLINE):
3261         * lib/xsize.h (XSIZE_INLINE):
3262         New macros.
3263         Replace all uses of 'static inline' with them.
3264         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3265         * m4/eealloc.m4 (gl_EEALLOC):
3266         * m4/mbfile.m4 (gl_MBFILE):
3267         * m4/mbiter.m4 (gl_MBITER):
3268         * m4/xsize.m4 (gl_XSIZE):
3269         Do not require AC_C_INLINE.
3270         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3271         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3272         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3273         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3274         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3275         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3276         * modules/binary-io, modules/eealloc, modules/mbfile:
3277         * modules/mbiter, modules/mbuiter:
3278         (Depends-on): Add extern-inline.
3279
3280         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3281         * lib/pipe-filter-aux.c: New file.
3282         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3283         Replace all uses of 'static inline' with it.
3284         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3285         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3286         (filter_retcode): No real need for inline here.
3287         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3288         (Files): Add lib/pipe-filter-aux.c.
3289         (Depends-on): Add extern-inline.
3290         (configure.ac): Do not require AC_C_INLINE.
3291         (lib_SOURCES): Add pipe-filter-aux.c.
3292
3293         fdutimensat: omit unnecessary AC_C_INLINE
3294         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3295
3296         fchmodat, fchownat, fstatat: use extern-inline
3297         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3298         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3299         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3300         New macros.
3301         * lib/openat.h:
3302         Replace all uses of 'static inline' with them.
3303         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3304         * modules/fchmodat, modules/fchownat, modules/fstatat:
3305         * modules/openat-h:
3306         (Depends-on):
3307         Add extern-inline.
3308         (configure.ac): Remove AC_C_INLINE.
3309
3310         acl, mbchar, priv-set: use extern-inline
3311         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3312         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3313         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3314         New macros.
3315         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3316         Replace all uses of 'static inline' with it.
3317         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3318         * m4/acl.m4 (gl_FUNC_ACL):
3319         * m4/mbchar.m4 (gl_MBCHAR):
3320         * m4/priv-set.m4 (gl_PRIV_SET):
3321         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3322         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3323         Add extern-inline.
3324
3325         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3326         * m4/sockets.m4 (gl_SOCKETS):
3327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3328         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3329         environments where it's already guaranteed to work, so we needn't
3330         check for it at 'configure'-time.
3331
3332         tls-tests: omit unnecessary 'inline'
3333         * tests/test-tls.c (perhaps_yield): No longer inline.
3334         Simplicity and portability trump efficiency in test cases.
3335
3336         utimens-tests: avoid unnecessary 'inline'
3337         * modules/fdutimensat-tests (configure.ac):
3338         * modules/futimens-tests (configure.ac):
3339         * modules/utimens-tests (configure.ac):
3340         * modules/utimensat-tests (configure.ac):
3341         Remove AC_C_INLINE.
3342         * tests/test-utimens-common.h (ctime_compare):
3343         No longer inline.  Simplicity and portability trump efficiency here.
3344
3345         misc: don't limit commentary to inline functions
3346         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3347         * lib/xalloc-oversized.h, lib/xsize.h:
3348         Contrast macros to functions in general, not just to inline functions,
3349         when the commentary does not apply only to inline functions.
3350
3351 2012-09-20  Jim Meyering  <meyering@redhat.com>
3352
3353         non-recursive-gnulib-prefix-hack: new module
3354         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3355         the file that originated in Bison.
3356         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3357         largely copied from a snippet that resided in bison's configure.ac.
3358         * modules/non-recursive-gnulib-prefix-hack: New file.
3359         * MODULES.html.sh (Support for maintaining and releasing projects):
3360         Add it.
3361
3362 2012-09-18  Jim Meyering  <meyering@redhat.com>
3363
3364         maint.mk: generalize _gl_tight_scope for non-recursive make
3365         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3366         that *.h would describe additional .h files in the directory
3367         specified by $(_gl_TS_dir).  I.e., add this...
3368         (_gl_TS_other_headers): New variable.
3369
3370         maint.mk: exempt trailing blanks found in "binary" files
3371         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3372         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3373         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3374
3375 2012-09-17  Jim Meyering  <meyering@redhat.com>
3376
3377         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3378         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3379         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3380         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3381
3382 2012-09-17  Jim Meyering  <meyering@redhat.com>
3383
3384         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3385         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3386         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3387         It is not in the same category as "exit (0)" or "exit (1)", and
3388         besides, I know of no symbolic name for that 77.  Reported by
3389         Richard W.M. Jones in
3390         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3391
3392 2012-09-17  Jim Meyering  <meyering@redhat.com>
3393
3394         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3395         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3396         all uses of #define, not just those that start in column 1.
3397         Richard W.M. Jones reported a false positive in
3398         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3399
3400 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3401
3402         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3403         * lib/localcharset.c (locale_charset) [DARWIN7]:
3404         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3405         as these two values are incompatible.  Problem reported by Max Horn.
3406         For more discussion, please see
3407         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3408
3409         doc: document sticky-EOF issue
3410         * doc/posix-functions/fgetc.texi (fgetc):
3411         * doc/posix-functions/fgets.texi (fgets):
3412         * doc/posix-functions/fread.texi (fread):
3413         * doc/posix-functions/fscanf.texi (fscanf):
3414         * doc/posix-functions/getc.texi (getc):
3415         * doc/posix-functions/getchar.texi (getchar):
3416         * doc/posix-functions/scanf.texi (scanf):
3417         Mention that glibc and default Solaris do not conform to
3418         C99 and POSIX-2001 or later, with respect to how getchar
3419         etc. behave when feof reports nonzero.
3420
3421 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3422
3423         poll: fix poll(0, NULL, msec)
3424         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3425         but nfd is 0.  In that case poll should behave like select.
3426
3427 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3428             Paolo Bonzini <bonzini@gnu.org>
3429
3430         poll: fix for systems that can't recv() on a non-socket
3431         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3432         is readable.  In this case POLLHUP will not be supported.
3433         * doc/posix-functions/poll.texi: Document this.
3434
3435 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3436
3437         poll/select: document portability problems not fixed by Gnulib.
3438         * doc/posix-functions/poll.texi: poll does not work well on
3439         pipes under Windows.  It has the same limitations as select on
3440         BeOS.
3441         * doc/posix-functions/select.texi: select does not work well
3442         on pipes under Windows.
3443
3444 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3447         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3448         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3449         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3450
3451 2012-09-06  Eric Blake  <eblake@redhat.com>
3452
3453         net_if: give more details about the bug being fixed
3454         * doc/posix-headers/net_if.texi: Add clarification.
3455
3456 2012-09-05  Eric Blake  <eblake@redhat.com>
3457
3458         net_if: new module
3459         * modules/net_if: New module, borrowing ideas from netinet_in.
3460         * m4/net_if_h.m4: New file.
3461         * lib/net_if.in.h: Likewise.
3462         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3463         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3464         * tests/test-net_if.c: Make function checks conditional.
3465         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3466
3467 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3468
3469         readutmp: fix non-portable UT_PID use
3470         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3471         Use `UT_PID (u) > 0' as absolute condition.
3472
3473 2012-09-04  Jim Meyering  <meyering@redhat.com>
3474
3475         fts: reduce two or more trailing spaces to just one, usually
3476         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3477         or more slashes, trim all but the final one.  But if a name consists
3478         solely of two slashes, don't modify it.  If it consists solely of
3479         three or more slashes, strip all but one.
3480
3481         This is part of the solution to a minor problem with rm:
3482         it would print a bogus ELOOP diagnostic when failing to remove
3483         the slash-decorated name of a symlink-to-directory:
3484
3485             $ mkdir d && ln -s d s && env rm -r s/
3486             rm: cannot remove 's': Too many levels of symbolic links
3487
3488         With the change below and a trivial don't-trim-trailing-slashes
3489         adjustment to remove.c, it does this:
3490
3491             $ env rm -r s/
3492             rm: cannot remove 's/': Not a directory
3493
3494         Improved by: Eric Blake
3495
3496         fts: when there is no risk of overlap, use memcpy, not memmove
3497         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3498
3499 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         stdbool: be more compatible with mixed C/C++ compiles
3502         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3503         Define to bool, true, false, respectively, as GCC's builtin
3504         stdbool.h does.  Problem reported by Michael Goffioul in
3505         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3506
3507 2012-08-28  Jim Meyering  <meyering@redhat.com>
3508
3509         revert last change: it was not needed
3510         * tests/test-vc-list-files-git.sh: There's already a test for
3511         a working git, just below.
3512
3513 2012-08-28  Jim Meyering  <meyering@redhat.com>
3514
3515         tests: test-vc-list-files-git.sh: skip if git is not available
3516         * tests/test-vc-list-files-git.sh: Skip this test when git is
3517         not available.
3518
3519 2012-08-26  Bruno Haible  <bruno@clisp.org>
3520
3521         gnulib-tool: Remove no-op option --no-changelog.
3522         * gnulib-tool (func_usage): Don't mention --no-changelog.
3523         (do_changelog): Remove variable.
3524         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3525
3526 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3527
3528         doc: remove fdl-1.2.texi
3529         It is no longer used or maintained, and its use of @acronym
3530         is problematic.  See the thread containing
3531         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3532         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3533         * doc/old-licenses/fdl-1.2.texi: Remove.
3534
3535         execinfo: port to FreeBSD
3536         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3537         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3538         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3539         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3540
3541 2012-08-23  Jim Meyering  <meyering@redhat.com>
3542
3543         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3544         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3545         to placate gcc's -Wold-style-declaration.
3546
3547 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3548
3549         doc: do not use @acronym
3550         * doc/inet_ntoa.texi (inet_ntoa):
3551         * doc/parse-datetime.texi (Seconds since the Epoch)
3552         (Specifying time zone rules):
3553         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3554         Don't use @acronym.  Problem reported by John Darlington in
3555         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3556
3557 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3558
3559         stdnoreturn: port to newer GCCs
3560         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3561         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3562         Problem reported by Jim Meyering in
3563         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3564         Also, rename the 'test' function to a void a clash with the
3565         already-supplied 'main' function; this fixes a bug that incorrectly
3566         rejected GCC 4.7.1's <stdnoreturn.h>.
3567         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3568         Document GCC problem.
3569
3570 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3571
3572         pipe-filter: fix comment typo
3573         * lib/pipe-filter.h: Mention correct function.
3574
3575 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3576
3577         execinfo: new module
3578         This is for Emacs.  Currently, it provides a no-effect stub
3579         on all platforms where it does not already work.
3580         It already works on glibc-based systems, and on Solaris 11.
3581         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3582         New files.
3583         * doc/glibc-headers/execinfo.texi (execinfo.h):
3584         * MODULES.html.sh (Misc): Document it.
3585
3586 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3587
3588         extern-inline: support old GCC 'inline'
3589         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3590         if available.  This applies to GCC versions 2.7 through 4.2, or
3591         when newer GCC is using -fgnu89-inline.  The goal is to address
3592         some of the performance issues mentioned by Bruno Haible in
3593         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3594
3595 2012-08-20  Eric Blake  <eblake@redhat.com>
3596
3597         maint.mk: avoid redundant file name in message
3598         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3599         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3600         (sc_makefile_path_separator_check): Remove bogus $(ME).
3601
3602 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3603
3604         timer-time: fix link order when static linking on glibc
3605         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3606         _after_ -lrt so that it's significant.
3607
3608 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3609
3610         timespec: omit unnecessary AC_C_INLINE
3611         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3612
3613         stat-time: omit unnecessary AC_C_INLINE
3614         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3615         Do not require AC_C_INLINE.
3616
3617         ignore-value: omit unnecessary AC_C_INLINE
3618         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3619
3620         sys_select: avoid 'static inline'
3621         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3622
3623         mktime: avoid 'static inline'
3624         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3625         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3626
3627 2012-08-19  Bruno Haible  <bruno@clisp.org>
3628
3629         gnulib-tool: Improve coding style.
3630         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3631         func_emit_lib_Makefile_am.
3632         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3633
3634 2012-08-19  Bruno Haible  <bruno@clisp.org>
3635
3636         gnulib-tool: Fix indentation.
3637         * gnulib-tool (func_import): Fix indentation.
3638
3639 2012-08-19  Bruno Haible  <bruno@clisp.org>
3640
3641         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3642         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3643         on the list of removed files.
3644
3645 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         test-parse-datetime: avoid glibc leap-second glitch
3648         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3649         with the 2012 rules.  Problem reported by Bruce Dubbs in
3650         <http://bugs.gnu.org/12206>.
3651
3652 2012-08-14  Bruno Haible  <bruno@clisp.org>
3653
3654         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3655         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3656         from argument.
3657         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3658
3659 2012-08-14  Eric Blake  <eblake@redhat.com>
3660
3661         ldexp: relax license
3662         * modules/ldexp (License): Trivial relax, since the module only
3663         provides a permissively licensed m4 file.
3664
3665 2012-08-13  Bruno Haible  <bruno@clisp.org>
3666
3667         gnulib-tool: Fix persistence of --witness-c-macro option.
3668         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3669         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3670
3671 2012-08-11  Eric Blake  <eblake@redhat.com>
3672
3673         count-leading-zeros: use a lookup table on non-gcc compilers
3674         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3675         alternate implementation, suggested by Jim Meyering.
3676
3677 2012-08-10  Eric Blake  <eblake@redhat.com>
3678
3679         count-leading-zeros: new module
3680         * modules/count-leading-zeros: New module.
3681         * m4/count-leading-zeros.m4: New file.
3682         * lib/count-leading-zeros.h: Likewise.
3683         * modules/count-leading-zeros-tests: New test.
3684         * tests/test-count-leading-zeros.c: New file.
3685         * MODULES.html.sh (Integer arithmetic functions): Document it.
3686
3687 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3688             Jim Meyering  <meyering@redhat.com>
3689
3690         maintainer-makefile: Fix syntax error with dash.
3691         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3692         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3693
3694 2012-08-05  Jim Meyering  <meyering@redhat.com>
3695
3696         extern-inline: also ignore -Wmissing-declarations
3697         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3698         required with gcc-4.8.0-to-be.
3699
3700         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3701         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3702         for /error ?([^,]*)/.  This avoids false-positives for strings like
3703         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3704
3705 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3706
3707         gnumakefile: better interaction with Automake-NG
3708         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3709         Automake-NG always contain a definition of VPATH, even in non-VPATH
3710         builds (its value being simply '.' in that case).  So, in the
3711         'clean-GNUmakefile' rule, to determine whether running under a
3712         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3713         '$(VPATH)' expands to the empty string.
3714
3715 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3716
3717         base64: Use extern C scope in header file, for C++.
3718         * lib/base64.h: Add C++ namespace protection.
3719
3720 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         stat-time, timespec, u64: support naive out-of-dir builds
3723         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3724         Use '#include "foo.h"', not '#include <foo.h>', when including
3725         one's own interface.  This works better when configuring with
3726         out-of-directory builds, since packages need not add an
3727         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3728
3729 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3730
3731         utimens: use extern-inline
3732         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3733         * lib/utimens.h: Add copyright notice, since this is now large enough
3734         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3735         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3736         * modules/utimens (Depends-on): Add extern-inline.
3737
3738         u64: use extern-inline
3739         * lib/u64.c: New file.
3740         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3741         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3742         * modules/u64 (Files): Add lib/u64.c.
3743         (Depends-on): Add extern-inline.
3744         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3745         does that now.
3746         (lib_SOURCES): Add u64.c.
3747
3748         timespec: use extern-inline
3749         * lib/timespec.c: New file.
3750         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3751         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3752         * modules/timespec (Files): Add lib/timespec.c.
3753         (Depends-on): Add extern-inline.
3754         (lib_SOURCES): Add timespec.c.
3755
3756         stat-time: use extern-inline
3757         * lib/stat-time.c: New file.
3758         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3759         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3760         * modules/stat-time (Files): Add lib/stat-time.c.
3761         (Depends-on): Add extern-inline.
3762         (lib_SOURCES): Add stat-time.c.
3763
3764         extern-inline: new module
3765         * modules/extern-inline, m4/extern-inline.m4: New files.
3766         This is for better support of 'extern inline' a la ISO C99,
3767         with a portable alternative on compilers that do not support
3768         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3769         of the Emacs executable, when compiled with debugging disabled,
3770         which is a typical way that Emacs is built while developing.
3771
3772 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3773
3774         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3775         * build-aux/do-release-commit-and-tag: Move variable definitions
3776         together.
3777         ($branch): Instead of defaulting to "master", default to the current
3778         branch (as gnu-web-doc-update does).
3779         (help): Display the current values of the option arguments.
3780         * top/maint.mk (release-commit): New.
3781         * top/README-release: Simplify the corresponding step.
3782
3783 2012-07-30  Eric Blake  <eblake@redhat.com>
3784
3785         passfd: fix comment on recvfd
3786         * lib/passfd.c (recvfd): Fix comment.
3787         Reported by Jann Horn <jannhorn@googlemail.com>.
3788
3789 2012-07-30  Jim Meyering  <meyering@redhat.com>
3790
3791         maint.mk: avoid a sub-shell
3792         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3793
3794 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3795
3796         maint.mk: use silent-rules support from Automake
3797         * top/maint.mk (news-check, vc-diff-check, announcement)
3798         (no-submodule-changes, alpha beta stable, release-prep)
3799         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3800
3801 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3802
3803         maint.mk: provide a web-manual-update target
3804         * top/maint.mk: here.
3805         * top/README-release: Use it to simplify the web manual update step.
3806
3807 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3808
3809         README-release: shorten the circuit to post a news
3810         * top/README-release: Point directly to the news submission form.
3811
3812 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3813
3814         gnu-web-doc-update: fix --help
3815         * build-aux/gnu-web-doc-update: The information "top level" was written
3816         twice.
3817
3818 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3819
3820         maint.mk: absolute VPATH issue
3821         * top/maint.mk (release-prep): Help Git find .git/.
3822         From Jim Meyering.
3823
3824 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3825
3826         gitlog-to-changelog: fix previous change
3827         * build-aux/gitlog-to-changelog: Fix condition.
3828         Add missing ";".
3829
3830 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3831
3832         gitlog-to-changelog: don't expect .git to be in $srcdir
3833         Reported by Bruno Haible.
3834         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3835         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3836         Use it.
3837
3838 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3839
3840         maint.mk: absolute VPATH build fix
3841         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3842         $(srcdir) is not a parent of $(builddir).
3843
3844 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3845
3846         clean-temp: Fix memory leak.
3847         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3848         'files' members of tmpdir.
3849
3850 2012-07-27  Jim Meyering  <meyering@redhat.com>
3851
3852         maint.mk: new rule: refresh-gnulib-patches
3853         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3854         Use this rule to refresh them.
3855         * top/maint.mk (refresh-gnulib-patches): New rule.
3856
3857 2012-07-24  Bruno Haible  <bruno@clisp.org>
3858
3859         gnulib-tool: Fix handling of inctests variable.
3860         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3861         Reported by Nick Bowler <nbowler@elliptictech.com>.
3862
3863 2012-07-22  Bruno Haible  <bruno@clisp.org>
3864
3865         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3866         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3867         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3868         Remove exemption for getpass.h.
3869         Suggested by Eric Blake.
3870
3871 2012-07-20  Eric Blake  <eblake@redhat.com>
3872
3873         verify: document conflict with -Wnested-externs
3874         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3875
3876         maint.mk: forbid exit(-1)
3877         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3878
3879 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3880
3881         fsusage: port back to Solaris
3882         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3883         error (fsd not declared) on Solaris 10.  Reported privately by
3884         Andrew Borodin.
3885
3886 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3887
3888         gnu-web-doc-update: fix error messages
3889         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3890
3891         gnu-web-doc-update: check the requirements.
3892         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3893         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3894         * build-aux/bootstrap (find_tool): Comment change.
3895
3896 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3897
3898         maint.mk: minor simplication.
3899         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3900         for default values.
3901
3902 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3903
3904         gitlog-to-changelog: VPATH build issues
3905         If builddir is not a subdirectory of srcdir, running git from it will
3906         fail.
3907         * build-aux/gitlog-to-changelog (--srcdir): New option.
3908
3909 2012-07-15  Bruno Haible  <bruno@clisp.org>
3910
3911         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3912         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3913         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3914         Remove exemption for fpending.h.
3915         Suggested by Eric Blake.
3916
3917 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         pthread_sigmask: fix bug on FreeBSD 9
3920         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3921         Include string.h.
3922         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3923         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3924         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3925         but pthread_sigmask (1729, NULL, NULL) returns zero.
3926         See <http://bugs.gnu.org/11884>.
3927         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3928         by inspecting whether the main call changed the old mask.
3929
3930 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3931
3932         README-release: make it more legible
3933         * top/README-release: Improve typography slightly.
3934
3935 2012-07-15  Jim Meyering  <meyering@redhat.com>
3936
3937         maint: require that each sc_... command start with "@"
3938         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3939         "make sc_maint" helps us avoid this nit.
3940
3941 2012-07-15  Jim Meyering  <meyering@redhat.com>
3942
3943         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3944         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3945
3946 2012-07-13  Eric Blake  <eblake@redhat.com>
3947
3948         maint.mk: new syntax check for HAVE_DECL checks
3949         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3950         * cfg.mk
3951         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3952         Exempt some false positives.
3953         Based on a report by Karel Zak.
3954
3955         argp: make HAVE_DECL usage consistent
3956         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3957         macros, not whether they are defined.
3958         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3959         convention with other declaration checks.
3960         Reported by Karel Zak, with suggestions from Paul Eggert.
3961
3962         stat-time: relax license to LGPLv2+
3963         * modules/stat-time (License): Relax, with consent of all authors.
3964
3965         strndup: fix m4 usage error
3966         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3967         defined, to either 0 or 1.
3968         Reported by Karel Zak.
3969
3970 2012-07-11  Jim Meyering  <meyering@redhat.com>
3971
3972         maint: enable the sc_avoid_if_before_free syntax-check rule
3973         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3974         (if_before_free_offenders_): Define.
3975         (if_before_free_basename_re_): Define.
3976         Exempt current files with useless if-before-free.
3977
3978 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3979
3980         gettext: do not assume '#define ... defined ...' behavior
3981         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3982         Do not use '#define FOO ... defined BAR ...', as the C standard says
3983         it's not portable to expect that this works after macro expansion.
3984         Problem reported for gzip by Steven M. Schweda in
3985         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3986
3987 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3988
3989         getloadavg: clean out old Emacs and Autoconf cruft
3990         See Glenn Morris in <http://bugs.gnu.org/11905>.
3991         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3992         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3993         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3994         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3995
3996 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3997
3998         bootstrap: let warn be like tests/init.sh's warn_
3999         Reported by Jim Meyering.
4000         * build-aux/bootstrap (warn): Remove, replaced by...
4001         (warnf_, warn_): these.
4002         Adjust callers.
4003         Shorten messages that no longer fit in 80 columns.
4004
4005 2012-07-09  Bruno Haible  <bruno@clisp.org>
4006
4007         getopt: Simplify after Emacs changed.
4008         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4009         (gl_GETOPT_IFELSE): Remove macro.
4010
4011 2012-07-09  Jim Meyering  <meyering@redhat.com>
4012
4013         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4014         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4015
4016         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4017         Bugs in both of those conspired to make the
4018         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4019         _sc_search_regexp's handling of non-empty $in_files would filter
4020         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4021         choice of in_files value meant there would be no match in most
4022         projects, due to the presence of two or more Makefile.in files.
4023         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4024         Fix a bug in how a non-empty $$in_files was processed:
4025         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4026         in spite of the name, it's a regexp, not a list of file names.
4027
4028 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4029
4030         getloadavg, getopt: fix commentary re configure.in
4031         Autoconf is deprecating the name 'configure.in', so change it to
4032         to the new name 'configure.ac' in a couple of places.
4033         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4034         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4035         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4036         Emacs has renamed it to configure.ac, and it no longer refers
4037         to these macros anyway.
4038
4039         timespec: mark functions with const attributes
4040         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4041         Mark with _GL_ATTRIBUTE_CONST.
4042
4043 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4044
4045         canonicalize[-lgpl]: handle "guessing" values when cross-building
4046         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4047         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4048         matches "*yes" instead of just "yes".  Regression introduced in commit
4049         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4050
4051 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4052             Bruno Haible  <bruno@clisp.org>
4053
4054         canonicalize: make the right guess when cross-compiling to GNU
4055         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4056         determine whether cross-compiling to glibc systems, so as to
4057         include GNU/Hurd.
4058
4059 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4060
4061         timespec-sub: avoid duplicate include
4062         * lib/timespec-sub.c: Do not include <config.h> twice.
4063         Reported by Juanma Barranquero.
4064
4065 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4066
4067         bootstrap: use a more consistent error reporting scheme
4068         * build-aux/bootstrap (warn, die): New.
4069         Use them.
4070
4071 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4072
4073         sys_time: allow too-wide tv_sec
4074         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4075         timeval even if tv_sec is wider than time_t.  This allows
4076         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4077         as without this patch gnulib replaces struct timeval
4078         and OpenBSD futimes therefore has a type mismatch.
4079         * doc/posix-headers/sys_time.texi: Mention this.
4080
4081         pthread: check for both pthread_create and pthread_join
4082         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4083         alter the check so that it tests for both pthread_create and
4084         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4085         Suggested by Bruno Haible and Richard Yao in
4086         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4087
4088         parse-datetime: doc tuneup
4089         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4090         spacing issues.
4091
4092 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4093
4094         do-release-commit-and-tag: fix the previous commit
4095         * build-aux/do-release-commit-and-tag: Actually the test was right,
4096         but the comment and the error message were misleading.
4097         Fix comment, and improve error message.
4098         Perform check first, so that NEWS is not modified uselessly.
4099
4100         do-release-commit-and-tag: fix typo
4101         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4102         _not_ start with a stub.
4103
4104 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4105
4106         pthread: check for pthread_create, not pthread_join
4107         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4108         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4109         pthread_join in libc.  I hope this removes the need for all the
4110         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4111         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4112
4113 2012-07-04  Jim Meyering  <meyering@redhat.com>
4114
4115         parse-datetime: fix failure to diagnose invalid input
4116         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4117         rather than diagnosing the invalid input.  Now it reports this:
4118         date: invalid date '\260'
4119         * lib/parse-datetime.y (to_uchar): Define.
4120         (yylex): Don't sign-extend "other" bytes.
4121         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4122         Thanks to Bruno Haible for the patch to this file.
4123         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4124         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4125
4126 2012-07-03  Jim Meyering  <meyering@redhat.com>
4127
4128         bootstrap: do not require now-removed build-aux/missing
4129         Now that build-aux/missing is, er, missing, bootstrap would
4130         silently fail.
4131         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4132         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4133         no longer part of gnulib.
4134         Diagnose the failure.
4135
4136 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4137
4138         alloca: add support for HP NonStop TNS/E native
4139         * lib/alloca.in.h (alloca): Support the new host.
4140         From a suggestion by Joachim Schmitz in
4141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4142
4143 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4144
4145         fsusage: remove code not needed on non GNU/Linux systems.
4146
4147         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4148         Don't include headers no longer needed in this case.
4149         * lib/fsusage.c [STAT_STATVFS &&
4150         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4151         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4152
4153 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         fsusage: include files needed for glibc 2.6 fallback
4156         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4157         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4158         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4159         Problem reported by Ludovic Courtès in
4160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4161
4162         fsusage: avoid needless check on GNU/Linux
4163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4164         on GNU/Linux systems, since it can't possibly work.
4165
4166 2012-07-01  Bruno Haible  <bruno@clisp.org>
4167
4168         log: Fix an autoconf >= 2.64 warning.
4169         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4170         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4171
4172 2012-06-28  Bruno Haible  <bruno@clisp.org>
4173
4174         log10f: Fix possible configuration problem.
4175         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4176         $LOGF_LIBM.
4177         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4178
4179 2012-06-28  Bruno Haible  <bruno@clisp.org>
4180
4181         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4182         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4183         not gl_cv_func_unlink_works.
4184         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4185
4186 2012-06-27  Eric Blake  <eblake@redhat.com>
4187
4188         config: drop scripts that automake says are not independent
4189         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4190         * build-aux/elisp-comp: Delete.
4191         * build-aux/missing: Likewise.
4192         * build-aux/ylwrap: Likewise.
4193         * modules/elisp-comp: Likewise.
4194         * MODULES.html.sh: Drop mention of elisp-comp.
4195         * NEWS: Mention this.
4196
4197 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         root-uid: new module
4200         This is for portability to Tandem's NonStop Kernel.
4201         * lib/root-uid.h, modules/root-uid: New files.
4202         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4203         * lib/write-any-file.c, tests/test-sethostname2.c:
4204         Include "root-uid.h".
4205         * lib/euidaccess.c (euidaccess):
4206         * lib/pt_chown.c (main):
4207         * lib/unlinkdir.c (cannot_unlink_dir):
4208         * lib/write-any-file.c (can_write_any_file):
4209         * m4/mknod.m4 (gl_FUNC_MKNOD):
4210         * tests/test-sethostname2.c (geteuid, main):
4211         Don't assume ROOT_UID == 0.
4212         * modules/euidaccess (Depends-on):
4213         * modules/pt_chown (Depends-on):
4214         * modules/sethostname-tests (Depends-on):
4215         * modules/unlinkdir (Depends-on):
4216         * modules/write-any-file (Depends-on):
4217         Add root-uid.
4218
4219         regex: use locale-independent comparison for codeset name
4220         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4221         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4222         for codeset name.
4223         * lib/regex_internal.h: Do not include <strings.h>, since we
4224         no longer use strcasecmp.
4225         * modules/regex (Depends-on): Remove strcase.
4226
4227 2012-06-23  Bruno Haible  <bruno@clisp.org>
4228
4229         getopt-posix: No longer guarantee that option processing is resettable.
4230         * doc/posix-functions/getopt.texi: Drop description of problem with
4231         internal state. Fix info about mingw and msvc9.
4232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4233         option processing by getopt(). Run three test programs instead of one.
4234         Simplify cross-compilation guess.
4235         * NEWS: Mention the change.
4236         Reported by Rich Felker <dalias@aerifal.cx>.
4237
4238 2012-06-26  Bruno Haible  <bruno@clisp.org>
4239
4240         argp, regex: Ensure strcasecmp gets declared.
4241         * lib/argp-help.c: Include <strings.h>.
4242         * lib/regex_internal.h: Likewise.
4243         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4244
4245 2012-06-24  Bruno Haible  <bruno@clisp.org>
4246
4247         ptsname_r: Make it consistent with ptsname on AIX.
4248         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4249         implementation as for OSF/1.
4250         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4251         a pty master.
4252
4253         ptsname_r: Make it consistent with ptsname on OSF/1.
4254         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4255         OSF/1.
4256
4257 2012-06-24  Bruno Haible  <bruno@clisp.org>
4258
4259         ttyname_r: Fix result on OSF/1, Solaris.
4260         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4261
4262 2012-06-24  Bruno Haible  <bruno@clisp.org>
4263
4264         ptsname_r: Add support for Solaris.
4265         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4266         Solaris.
4267
4268         ptsname_r: Fix test failure on native Windows.
4269         * modules/ptsname_r (Depends-on): Add isatty.
4270
4271         ptsname_r: Fix test failures on IRIX, Solaris.
4272         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4273         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4274         accordingly.
4275         * lib/ptsname_r.c: Include <fcntl.h>.
4276         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4277         set errno if fd is invalid.
4278         * tests/test-isatty.c (main): Update comments.
4279
4280 2012-06-24  Bruno Haible  <bruno@clisp.org>
4281
4282         ptsname test: Extend test.
4283         * tests/test-ptsname.c: Include <errno.h>.
4284         (main): Test behaviour with invalid file descriptor.
4285
4286 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4287
4288         time: fix obsolete comment
4289         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4290         reference to HAVE_STRUCT_TIMESPEC in comment.
4291
4292 2012-06-23  Bruno Haible  <bruno@clisp.org>
4293
4294         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4296         does not handle abbreviated long options with equivalent
4297         disambiguations, set gl_replace_getopt to yes.
4298         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4299
4300 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4301
4302         time_r: fix typo that always overrode localtime_r decl
4303         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4304         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4305         not in a standard include.
4306
4307 2012-06-22  Bruno Haible  <bruno@clisp.org>
4308
4309         Write "Mac OS X" instead of "MacOS X".
4310         * README: Write "Mac OS X" instead of "MacOS X".
4311         * build-aux/bootstrap: Likewise.
4312         * build-aux/install-reloc: Likewise.
4313         * lib/acl-internal.h: Likewise.
4314         * lib/acl_entries.c: Likewise.
4315         * lib/argp-ba.c: Likewise.
4316         * lib/argp-pv.c: Likewise.
4317         * lib/config.charset: Likewise.
4318         * lib/copy-acl.c: Likewise.
4319         * lib/csharpexec.c: Likewise.
4320         * lib/euidaccess.c: Likewise.
4321         * lib/fbufmode.c: Likewise.
4322         * lib/fflush.c: Likewise.
4323         * lib/file-has-acl.c: Likewise.
4324         * lib/filemode.h: Likewise.
4325         * lib/fpurge.c: Likewise.
4326         * lib/freadable.c: Likewise.
4327         * lib/freadahead.c: Likewise.
4328         * lib/freading.c: Likewise.
4329         * lib/freadptr.c: Likewise.
4330         * lib/freadseek.c: Likewise.
4331         * lib/fseeko.c: Likewise.
4332         * lib/fseterr.c: Likewise.
4333         * lib/fsusage.c: Likewise.
4334         * lib/fwritable.c: Likewise.
4335         * lib/fwriting.c: Likewise.
4336         * lib/get-rusage-as.c: Likewise.
4337         * lib/get-rusage-data.c: Likewise.
4338         * lib/getdomainname.c: Likewise.
4339         * lib/idpriv-drop.c: Likewise.
4340         * lib/idpriv-droptemp.c: Likewise.
4341         * lib/localcharset.c: Likewise.
4342         * lib/locale.in.h: Likewise.
4343         * lib/localename.c: Likewise.
4344         * lib/mbsrtowcs-state.c: Likewise.
4345         * lib/nproc.c: Likewise.
4346         * lib/passfd.c: Likewise.
4347         * lib/posix_openpt.c: Likewise.
4348         * lib/printf-parse.c: Likewise.
4349         * lib/progreloc.c: Likewise.
4350         * lib/safe-read.h: Likewise.
4351         * lib/safe-write.h: Likewise.
4352         * lib/sched.in.h: Likewise.
4353         * lib/set-mode-acl.c: Likewise.
4354         * lib/signal.in.h: Likewise.
4355         * lib/stdint.in.h: Likewise.
4356         * lib/stdio-impl.h: Likewise.
4357         * lib/stdlib.in.h: Likewise.
4358         * lib/strtod.c: Likewise.
4359         * lib/sys_select.in.h: Likewise.
4360         * lib/tcgetsid.c: Likewise.
4361         * lib/unistd.in.h: Likewise.
4362         * lib/unlockpt.c: Likewise.
4363         * lib/vasnprintf.c: Likewise.
4364         * lib/vma-iter.c: Likewise.
4365         * lib/wcsrtombs-state.c: Likewise.
4366         * m4/acl.m4: Likewise.
4367         * m4/acosl.m4: Likewise.
4368         * m4/asinl.m4: Likewise.
4369         * m4/atanl.m4: Likewise.
4370         * m4/c-stack.m4: Likewise.
4371         * m4/cosl.m4: Likewise.
4372         * m4/expl.m4: Likewise.
4373         * m4/extensions.m4: Likewise.
4374         * m4/fdatasync.m4: Likewise.
4375         * m4/fmal.m4: Likewise.
4376         * m4/frexp.m4: Likewise.
4377         * m4/frexpf.m4: Likewise.
4378         * m4/frexpl.m4: Likewise.
4379         * m4/fsusage.m4: Likewise.
4380         * m4/getdomainname.m4: Likewise.
4381         * m4/getloadavg.m4: Likewise.
4382         * m4/getopt.m4: Likewise.
4383         * m4/gettext.m4: Likewise.
4384         * m4/gnulib-common.m4: Likewise.
4385         * m4/intdiv0.m4: Likewise.
4386         * m4/intlmacosx.m4: Likewise.
4387         * m4/largefile.m4: Likewise.
4388         * m4/ldexpl.m4: Likewise.
4389         * m4/link-follow.m4: Likewise.
4390         * m4/locale-ar.m4: Likewise.
4391         * m4/locale-fr.m4: Likewise.
4392         * m4/locale-ja.m4: Likewise.
4393         * m4/locale-tr.m4: Likewise.
4394         * m4/locale-zh.m4: Likewise.
4395         * m4/locale_h.m4: Likewise.
4396         * m4/lock.m4: Likewise.
4397         * m4/logl.m4: Likewise.
4398         * m4/mathfunc.m4: Likewise.
4399         * m4/minus-zero.m4: Likewise.
4400         * m4/mktime.m4: Likewise.
4401         * m4/mmap-anon.m4: Likewise.
4402         * m4/multiarch.m4: Likewise.
4403         * m4/nanosleep.m4: Likewise.
4404         * m4/nocrash.m4: Likewise.
4405         * m4/poll.m4: Likewise.
4406         * m4/printf-frexpl.m4: Likewise.
4407         * m4/printf.m4: Likewise.
4408         * m4/signbit.m4: Likewise.
4409         * m4/sinl.m4: Likewise.
4410         * m4/sqrtl.m4: Likewise.
4411         * m4/strerror_r.m4: Likewise.
4412         * m4/tanl.m4: Likewise.
4413         * m4/threadlib.m4: Likewise.
4414         * m4/ttyname_r.m4: Likewise.
4415         * m4/unlink.m4: Likewise.
4416         * m4/visibility.m4: Likewise.
4417         * m4/wcwidth.m4: Likewise.
4418         * tests/minus-zero.h: Likewise.
4419         * tests/test-alloca-opt.c: Likewise.
4420         * tests/test-copy-acl.sh: Likewise.
4421         * tests/test-copy-file.sh: Likewise.
4422         * tests/test-fdatasync.c: Likewise.
4423         * tests/test-file-has-acl.sh: Likewise.
4424         * tests/test-flock.c: Likewise.
4425         * tests/test-fsync.c: Likewise.
4426         * tests/test-localename.c: Likewise.
4427         * tests/test-malloca.c: Likewise.
4428         * tests/test-nonblocking-pipe.h: Likewise.
4429         * tests/test-nonblocking-socket.h: Likewise.
4430         * tests/test-openpty.c: Likewise.
4431         * tests/test-posix_openpt.c: Likewise.
4432         * tests/test-ptsname.c: Likewise.
4433         * tests/test-ptsname_r.c: Likewise.
4434         * tests/test-sameacls.c: Likewise.
4435         * tests/test-select.h: Likewise.
4436         * tests/test-set-mode-acl.sh: Likewise.
4437         * tests/test-snprintf-posix.h: Likewise.
4438         * tests/test-sprintf-posix.h: Likewise.
4439         * tests/test-strtod.c: Likewise.
4440         * tests/test-time.c: Likewise.
4441         * tests/test-vasnprintf-posix.c: Likewise.
4442         * tests/test-vasprintf-posix.c: Likewise.
4443         * doc/acl-resources.txt: Likewise.
4444         * doc/**/*.texi: Likewise.
4445         Reported by Max Horn <max@quendi.de>.
4446
4447 2012-06-22  Bruno Haible  <bruno@clisp.org>
4448
4449         grantpt: Relax requirement regarding invalid file descriptors.
4450         * lib/grantpt.c: Don't include <fcntl.h>.
4451         (grantpt): Don't verify the validity of the file descriptor.
4452         * modules/grantpt (Depends-on): Remove fcntl-h.
4453         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4454         file descriptors.
4455         * doc/posix-functions/grantpt.texi: Document more platforms on which
4456         grantpt succeeds for invalid file descriptors.
4457         Reported by Rich Felker <dalias@aerifal.cx>.
4458
4459 2012-06-22  Bruno Haible  <bruno@clisp.org>
4460
4461         fbufmode test: Don't test unportable behaviour.
4462         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4463         (main): Invoke it three times.
4464         Reported by Szabolcs Nagy <nsz@port70.net>
4465         and Rich Felker <dalias@aerifal.cx>.
4466
4467 2012-06-21  Bruno Haible  <bruno@clisp.org>
4468
4469         gnulib-tool: Refactor inctests variable.
4470         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4471         (func_modules_transitive_closure,
4472         func_modules_transitive_closure_separately,
4473         func_import, func_create_testdir): Update.
4474
4475         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4476         * gnulib-tool: Accept option --without-tests.
4477         (func_usage): Document --without-tests option. Rearrange.
4478         (inctests): Normalize according to the mode.
4479         * NEWS: Mention the change.
4480         Suggested by Simon Josefsson.
4481
4482 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4483
4484         parse-duration test: Avoid spurious output.
4485         * tests/test-parse-duration.sh: Reindent with leading tabs.
4486
4487 2012-06-21  Jim Meyering  <meyering@redhat.com>
4488
4489         maint: disable the strncpy prohibition
4490         * cfg.mk: Do not prohibit strncpy here.
4491
4492 2012-06-21  Bruno Haible  <bruno@clisp.org>
4493
4494         nonblocking: Avoid compilation error on mingw64.
4495         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4496         fscanf.
4497         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4498         * modules/vfscanf (configure.ac): Likewise.
4499         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4500         definition only if stdio.h has prepared it.
4501         Reported by Daniel P. Berrange <berrange@redhat.com>.
4502
4503 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4504
4505         gnulib-tool: Use readlink if it is available.
4506         * gnulib-tool (func_readlink): Choose function more appropriately.
4507
4508 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4509
4510         posixtm-tests: port to buggy compiler
4511         Problem reported by Simon Josefsson in
4512         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4513         * modules/posixtm-tests (Depends-on): Add stdint.
4514         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4515         Now of type int_least64_t, not int64_t, both because that's
4516         what INT64_C returns and because int_least64_t works even
4517         on 72-bit hosts.
4518         (T): Use INT64_C on constants outside the traditional int range,
4519         to work around compiler bug noted by Simon.
4520
4521         mktime: fix integer overflow in 'configure'-time test
4522         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4523         after integer overflow.  Problem reported by Rich Felker in
4524         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4525         Also, don't look for further instances of a bug if we've already
4526         found one instance; this helps 'configure' run faster.
4527
4528 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4529
4530         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4531         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4532         GetVersionEx correctly.
4533         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4534
4535 2012-06-20  Bruno Haible  <bruno@clisp.org>
4536
4537         fdopen: Allow implementations that don't reject invalid fd arguments.
4538         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4539         succeeds.
4540         Reported by Rich Felker <dalias@aerifal.cx>.
4541
4542 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4543
4544         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4545         bring in LIBINTL.
4546
4547 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4548
4549         init.sh: do not rely on autoupated PWD
4550         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4551         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4552         Although Nelson's bug was not necessarily fixed by this patch,
4553         it seems wise to make the change for safety.
4554         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4555         automagically after 'cd'; this is not reliable on older shells.
4556         (setup_): Fail if we cannot cd to temporary directory.
4557
4558 2012-06-19  Bruno Haible  <bruno@clisp.org>
4559
4560         stat, fstat: Avoid warnings on mingw64.
4561         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4562         redefining.
4563         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4564         Reported by Daniel P. Berrange <berrange@redhat.com>.
4565
4566 2012-06-19  Bruno Haible  <bruno@clisp.org>
4567
4568         stdioext: Add support for musl libc.
4569
4570         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4571         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4572
4573         * m4/fseterr.m4: New file.
4574         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4575         function exists.
4576         * modules/fseterr (Files): Add m4/fseterr.m4.
4577         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4578         __fseterr does not exist.
4579         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4580
4581         * lib/freadable.h: Update comment.
4582
4583         * lib/fwritable.h: Update comment.
4584
4585         * lib/freading.h: Update comment.
4586
4587         * lib/fwriting.h: Update comment.
4588
4589         * m4/freadahead.m4: New file.
4590         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4591         that function exists.
4592         * modules/freadahead (Files): Add m4/freadahead.m4.
4593         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4594         __freadahead does not exist.
4595         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4596
4597         * m4/freadptr.m4: New file.
4598         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4599         function exists.
4600         * modules/freadptr (Files): Add m4/freadptr.m4.
4601         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4602         __freadptr does not exist.
4603         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4604
4605         * m4/freadseek.m4: New file.
4606         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4607         exists.
4608         * modules/freadseek (Files): Add m4/freadseek.m4.
4609         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4610
4611         * lib/fpurge.c (fpurge): Update comment.
4612
4613         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4614
4615 2012-06-19  Bruno Haible  <bruno@clisp.org>
4616
4617         *printf-posix: Put more info into config.log.
4618         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4619         exit code into config.log.
4620
4621 2012-06-19  Bruno Haible  <bruno@clisp.org>
4622
4623         getopt-gnu: Fix exit code overflow in autoconf test.
4624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4625         to keep them below < 128.
4626
4627 2012-06-17  Jim Meyering  <meyering@redhat.com>
4628
4629         maint.mk: fix typo in code to derive GPG key at release time
4630         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4631
4632 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4633
4634         regex: avoid warning when pointers are not long
4635         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4636         and uintptr_t, not long, for portability to hosts where pointers and
4637         long have different sizes.  Issue noted by Daniel P. Berrange in
4638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4639         and fix suggested by Bruno Haible in
4640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4641
4642 2012-06-17  Bruno Haible  <bruno@clisp.org>
4643
4644         dummy: Relicense into the public domain.
4645         * modules/dummy (License): Set to "public domain".
4646         Suggested by Reuben Thomas.
4647
4648 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4649
4650         announce-gen: VPATH issues
4651         * build-aux/announce-gen (--srcdir): New option, used to trim the
4652         $srcdir part of the path from $builddir to NEWS.
4653         * top/maint.mk (announcement): Adjust.
4654
4655 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4656
4657         gnu-web-doc-update: VPATH builds
4658         * build-aux/gnu-web-doc-update (--builddir): New option.
4659         Revamp the handling of options.
4660         Prefer $(...) to `...`.
4661         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4662         the template, and it is GNU mktemp specific.
4663         Prefer set -e to long series of &&.
4664         Restore the initial git branch, not "master".
4665         Properly initialize submodules (don't rely only on bootstrap).
4666         Do not reconfigure blindly, use config.status.
4667         * top/README-release: Update instructions for gnu-web-doc-update.
4668
4669 2012-06-11  Jim Meyering  <meyering@redhat.com>
4670
4671         maint.mk: revert most of the previous change re "all these"
4672         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4673         For rationale, see the discussion at
4674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4675
4676 2012-06-10  Karl Berry  <karl@gnu.org>
4677
4678         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4679
4680         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4681
4682 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4683
4684         parse-duration: Relicense under LGPLv2+.
4685         * modules/parse-duration (License): Change to LGPLv2+.
4686
4687 2012-06-10  Jim Meyering  <meyering@redhat.com>
4688
4689         maint.mk: prohibit common grammar error: "all these"
4690         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4691         the list of prohibited word sequences.  It should be "all of these".
4692         * lib/tempname.c (__gen_tempname): Fix one of them.
4693
4694 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4695
4696         do-release-commit-and-tag: support VPATH builds
4697         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4698         (noteworthy): Defined earlier to factor its value.
4699         (noteworthy_stub): New.
4700         Use it to factor.
4701         (help_version): Split into...
4702         (help, version): these.
4703         Adjust the option processing part.
4704         Support "--option=value" in addition to "--option value".
4705         (builddir): New.
4706         (--builddir): New option.
4707         * top/README-release: Document this.
4708         Reword slightly so that the reader cannot understand that he
4709         has to do these steps before calling do-release-commit-and-tag.
4710
4711 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4712
4713         readme-release: also require announce-gen and maintainer-makefile
4714         * modules/readme-release (Depends-on): here.
4715         * modules/announce-gen, modules/do-release-commit-and-tag,
4716         modules/gnu-web-doc-update, modules/maintainer-makefile
4717         (Description): Point to readme-release.
4718
4719 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4720
4721         maint.mk: fix VPATH issues.
4722         * top/maint.mk (news-check): GNU Make understand $< very well.
4723         (release-prep): NEWS is in $(srcdir).
4724
4725 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4726
4727         readme-release: require the promoted modules.
4728         * modules/readme-release (Depends-on): Add
4729         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4730         in this text.
4731
4732 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4733             Bruno Haible  <bruno@clisp.org>
4734
4735         error, strerror-override: Support mingw64 from Fedora 17.
4736         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4737         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4738         EINPROGRESS.
4739         * lib/strerror-override.h (strerror_override): Test it.
4740         * lib/strerror-override.c (strerror_override): Likewise.
4741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4742
4743 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4744             Bruno Haible  <bruno@clisp.org>
4745
4746         error, strerror-override: Support mingw64 from Fedora 17.
4747         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4748         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4749         * lib/strerror-override.h (strerror_override): Test it.
4750         * lib/strerror-override.c (strerror_override): Likewise.
4751
4752 2012-06-03  Bruno Haible  <bruno@clisp.org>
4753
4754         error, strerror-override: Support new errno values from POSIX:2008.
4755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4756         ENOTRECOVERABLE.
4757         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4758         platforms.
4759         * lib/strerror-override.c (strerror_override): Conditionalize the
4760         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4761         * lib/strerror-override.h (strerror_override): Declare also if
4762         GNULIB_defined_EOWNERDEAD is defined.
4763         * tests/test-errno.c (e130, e131): New variables.
4764         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4765         ENOTRECOVERABLE.
4766         Reported by Paolo Bonzini.
4767
4768 2012-05-31  Jim Meyering  <meyering@redhat.com>
4769
4770         savewd: add missing dependency on sys_wait module
4771         * modules/savewd (Depends-on): Add sys_wait, needed at least
4772         for MSVC.  Report and suggested change by Michael Goffioul.
4773
4774 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4775
4776         system-quote-tests: port to CentOS 5
4777         Problem reported by Tom G. Christensen in
4778         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4779         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4780
4781 2012-05-29  Jim Meyering  <meyering@redhat.com>
4782
4783         maint: fix typos in comments and ChangeLog
4784         Culprits identified and fixed mostly automatically using these commands:
4785         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4786         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4787         using http://github.com/lyda/misspell-check
4788         * ChangeLog: Fix typos.
4789         * doc/solaris-versions: Likewise.
4790         * lib/regexec.c (re_search_stub): Likewise.
4791         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4792
4793 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         manywarnings: remove duplicate -Wmultichar entry
4796         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4797         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4798         so keep the entry marked as documented.
4799
4800 2012-05-27  Karl Berry  <karl@gnu.org>
4801
4802         * config/srclist.txt (mktime.c): remove last libc sync,
4803         perhaps just temporarily.
4804
4805 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4806
4807         regex: don't assume uint64_t or uint32_t
4808         * lib/regcomp.c (init_word_char): Don't assume that the types
4809         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4810         them, and on some 32-bit compilers there is no uint64_t.
4811         Problem reported by Gianluigi Tiesi in
4812         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4813
4814 2012-05-25  Jim Meyering  <meyering@redhat.com>
4815
4816         maint.mk: add strncpy-prohibiting syntax-check rule
4817         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4818
4819 2012-05-24  Jim Meyering  <meyering@redhat.com>
4820
4821         maint.mk: compute $(gpg_key_ID) more portably
4822         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4823         That use of sed is not portable to some fringe systems.
4824         Reported by Paul Eggert in
4825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4826
4827 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4828
4829         mktime: sync from glibc
4830         * config/srclist.txt: Uncomment mktime.c.
4831         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4832         First, indent with tabs, since glibc uses tabs and doesn't want to
4833         change and we'd rather be identical to glibc.  Also, two small
4834         coding changes:
4835         (isdst_differ): Use &&, not &, as && is the usual style.
4836         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4837         for clarity.
4838
4839 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4840
4841         announce-gen: du -h is more portable than du --human
4842         * build-aux/announce-gen (sizes): Invoke du with -h instead
4843         of --human.  Accept leading white space in its output.
4844
4845 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4846
4847         announce-gen: Improve diagnostics.
4848         * build-aux/announce-gen: When parsing command line options,
4849         prefer "announce-gen: option --release-type requires an argument"
4850         to "Option release-type requires an argument".
4851
4852 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4853
4854         maint.mk: gpg_key_ID: use sed more portably
4855         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4856         the closing brace.
4857         (refresh-po): Fuse two sed invocations into one.
4858
4859 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4860
4861         gitlog-to-changelog: support the log message format used in Bison.
4862         * build-aux/gitlog-to-changelog: Support --strip-tab and
4863         --strip-cherry-picked.
4864
4865 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4866
4867         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4868         the rest of the current time slice to another thread in the current
4869         process. So if the thread that feeds the file decscriptor we're
4870         polling is not in the current process, we get busy-waiting.
4871         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4872         Patch from Theodore Leblond.
4873         * lib/select.c: Split polling out of the loop that sets the output
4874         fd_sets.  Check for zero result and loop if the wait timeout is
4875         infinite.
4876
4877 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4878
4879         select: Fix build error on IRIX 6.5.
4880         * lib/select.c: Include stddef.h for NULL.
4881
4882 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4883
4884         gc: fix libgcrypt detection on older machines.
4885         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4886         copyright years because the file has been distributed every year
4887         since it was created.
4888
4889 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         crypto: fix bug in large buffer handling
4892         Problem reported by Serge Belyshev for glibc in
4893         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4894         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4895         * lib/md4.c (md4_process_block):
4896         * lib/md5.c (md5_process_block):
4897         * lib/sha1.c (sha1_process_block):
4898         * lib/sha256.c (sha256_process_block):
4899         Don't assume the buffer length is less than 2**32.
4900         * lib/sha512.c (sha512_process_block): Likewise.
4901         Here, the bug is present only in the rare case where the host does
4902         not support uint64_t or where size_t is wider than 64 bits.
4903         Use u64size to work around the problems.
4904         * lib/u64.h (u64size): New macro.
4905
4906 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4907
4908         fsusage: fix block size returned on older Linux 2.6
4909
4910         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4911         which is available since Linux 2.6.
4912         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4913         when the member is available so it can be used as a fallback.
4914         * doc/posix-functions/statvfs.texi: Mention the hang issue
4915         on Linux < 2.6.36.
4916
4917 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4918
4919         bootstrap: suppress stderr chatter
4920         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4921         Omit unnecessary chatter to stderr.  The main program chatter
4922         was there only inadvertantly.
4923
4924         bootstrap: .gitignore files created by autopoint, libtool
4925         I ran into this problem when bootstrapping the latest diffutils.
4926         After './bootstrap', 'git status' reported lots of untracked files
4927         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4928         autopoint and do not need to be version-controlled.
4929         * build-aux/bootstrap: Put into .gitignore the files that
4930         autopoint and libtool create, by keeping track of files that exist
4931         after but not before these programs are run.
4932         (version_controlled_file): Move up.  2nd arg is now full file
4933         name, not base name; this is more convenient.  Put CVS at the end,
4934         as it's now somewhat deprecated.
4935
4936 2012-05-14  Jim Meyering  <meyering@redhat.com>
4937
4938         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4939         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4940         definition.  Reported by Bruno Haible.
4941
4942 2012-05-13  Bruno Haible  <bruno@clisp.org>
4943             Paul Eggert  <eggert@cs.ucla.edu>
4944
4945         binary-io: Define set_binary_mode function.
4946         * lib/binary-io.h (set_binary_mode): New function.
4947         (SET_BINARY): Define in terms of set_binary_mode.
4948         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4949         * tests/test-binary-io.c (main): Accept an argument, and test either
4950         set_binary_mode or SET_BINARY depending on the argument.
4951         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4952         argument. Clean up also t-bin-out0.tmp.
4953
4954 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4955
4956         bootstrap: take advantage of POSIX shell features
4957
4958         The 'bootstrap' script offered by Gnulib script already uses POSIX
4959         shell features (like $((...)) arithmetic expansions) that are not
4960         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4961         means that bootstrap must already be run using a proper POSIX shell,
4962         which will thus provide more features, like ${var#pattern} parameter
4963         expansion or inversion of a command exit status with '!'.  We can
4964         thus use these features to improve the clarity and the performances
4965         of the bootstrap script.
4966
4967         Suggested by Eric Blake.
4968
4969         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4970         of sed/expr plus command substitutions, to save some forks.  While
4971         we are at it, prefer the POSIX $(...) form of command substitution,
4972         rather than the legacy form `...` (since the former is visually
4973         clearer and interacts better with quoting), and prefer the idiom:
4974           "if ! CMD; then ACTION ..."
4975         over the idiom:
4976           "if CMD; then :; else ACTION ..."
4977         which was required by legacy Bourne shells not supporting '!'.
4978
4979 2012-05-12  Bruno Haible  <bruno@clisp.org>
4980
4981         system-quote: Add more comments.
4982         * lib/system-quote.h: Add more comments about wilcards and limitations.
4983         Suggested by Eli Zaretskii <eliz@gnu.org>.
4984
4985         sh-quote, system-quote: Add comments about wildcards.
4986         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4987         * lib/system-quote.h: Likewise.
4988         Reported by Eli Zaretskii <eliz@gnu.org>.
4989
4990 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4991
4992         fsusage: check for GNU/Linux statvfs problem dynamically
4993         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4994         Define STAT_STATFS2_BSIZE too, since in this case the code now
4995         checks dynamically whether statvfs is reliable, falling back on
4996         Linux-style statfs otherwise.
4997         (statvfs_works): New function, for dynamically testing statvfs.
4998         (get_fs_usage) [STAT_STATVFS]: Use it.
4999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5000         statvfs on GNU/Linux hosts, since it's now done dynamically.
5001
5002 2012-05-10  Bruno Haible  <bruno@clisp.org>
5003
5004         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5005         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5006         '?' character.
5007         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5008         * tests/test-system-quote-main.c (check_all): Check also strings like
5009         "??????????".
5010         Reported by Eli Zaretskii <eliz@gnu.org>.
5011
5012 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5013
5014         _Noreturn: port config.h to gcc -Wundef
5015         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5016         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5018
5019 2012-05-10  Bruno Haible  <bruno@clisp.org>
5020
5021         system-quote: Refactor.
5022         * lib/system-quote.h (system_quote_copy): Fix comment.
5023         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5024         New functions, extracted from system_quote_copy.
5025         (system_quote_length, system_quote_copy): Use these functions.
5026         Reported by Paul Eggert.
5027
5028 2012-05-08  Bruno Haible  <bruno@clisp.org>
5029
5030         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5031         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5032
5033 2012-05-08  Bruno Haible  <bruno@clisp.org>
5034
5035         Tests for module 'system-quote'.
5036         * modules/system-quote-tests: New file.
5037         * tests/test-system-quote.sh: New file.
5038         * tests/test-system-quote-main.c: New file.
5039         * tests/test-system-quote-child.c: New file.
5040
5041         New module 'system-quote'.
5042         * lib/system-quote.h: New file.
5043         * lib/system-quote.c: New file.
5044         * modules/system-quote: New file.
5045
5046 2012-05-08  Bruno Haible  <bruno@clisp.org>
5047
5048         sh-quote: Make C++ safe and allow multiple inclusion.
5049         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5050         declarations in extern "C".
5051
5052 2012-05-08  Bruno Haible  <bruno@clisp.org>
5053
5054         sh-quote tests: Make tests stricter.
5055         * tests/test-sh-quote.c (check_one): Check the return value of
5056         shell_quote_copy.
5057         (main): Check a string with a CR character. Check a string that
5058         contains UCHAR_MAX.
5059
5060 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5061
5062         warnings.m4: provide a means to specify the program to compile.
5063         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5064         (gl_WARN_ADD): here.
5065         Use gl_AS_VAR_APPEND.
5066         Support an argument to specify the program to compile.
5067         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5068         AC_SUBST the WARN_CFLAGS when they are used.
5069         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5070         leave this to gl_WARN_ADD.
5071
5072 2012-05-08  Eric Blake  <eblake@redhat.com>
5073
5074         doc: recommendations on gettext version
5075         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5076         choice between versions.
5077         * DEPENDENCIES (gettext): Cover both approaches.
5078
5079 2012-05-08  Jim Meyering  <meyering@redhat.com>
5080
5081         init.sh: explain why EXEEXT support uses aliases rather than functions
5082         * tests/init.sh: Add a comment.
5083
5084         init.sh: don't let bash aliases interfere with tests
5085         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5086         is bash.  This avoids problems for those who alias standard commands to
5087         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5088         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5089
5090 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5091
5092         stdint: be more consistent with glibc, SunOS libc
5093         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5094         (gl_int_fast16_t, gl_uint_fast16_t)
5095         (gl_int_fast32_t, gl_uint_fast32_t)
5096         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5097         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5098         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5099         Be consistent with glibc by default, and with SunOS 5.10 and later
5100         if __sun is defined.  This lessens the likelihood of clashes if
5101         code compiled for older hosts is combined with code compiled for
5102         newer ones.  Problem reported by Niels Möller in
5103         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5104
5105 2012-05-07  Eric Blake  <eblake@redhat.com>
5106
5107         isatty: relax license to LGPLv2+
5108         * modules/isatty (License): Relax license.
5109
5110 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         stat-size: comment fix
5113         * lib/stat-size.h: Remove obsolete comment about indenting.
5114
5115 2012-05-06  Bruno Haible  <bruno@clisp.org>
5116
5117         Tests for module 'sh-quote'.
5118         * modules/sh-quote-tests: New file.
5119         * tests/test-sh-quote.c: New file.
5120
5121 2012-05-06  Bruno Haible  <bruno@clisp.org>
5122
5123         sh-quote: Improve shell_quote_argv's signature.
5124         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5125         * lib/sh-quote.c (shell_quote_argv): Likewise.
5126
5127 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5128
5129         stdint: document issues with int_fast8_t etc.
5130         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5131         stdint.h substitutes may define these types differently.  See
5132         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5133
5134 2012-05-05  Bruno Haible  <bruno@clisp.org>
5135
5136         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5138         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5139         or 'guessing no (mishandles large arguments)'.
5140
5141 2012-05-05  Bruno Haible  <bruno@clisp.org>
5142
5143         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5144         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5145         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5146         set gl_cv_func_link_follows_symlink to "guessing no".
5147
5148 2012-05-05  Bruno Haible  <bruno@clisp.org>
5149
5150         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5151         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5152         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5153         "guessing no".
5154         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5155
5156 2012-05-05  Bruno Haible  <bruno@clisp.org>
5157
5158         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5159         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5160         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5161         set gl_cv_struct_dirent_d_ino to "guessing yes".
5162
5163 2012-05-05  Bruno Haible  <bruno@clisp.org>
5164
5165         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5166         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5167         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5168         "guessing yes".
5169
5170 2012-05-05  Bruno Haible  <bruno@clisp.org>
5171
5172         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5173         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5174         compiling to a glibc system, set gl_cv_func_signbit and
5175         gl_cv_func_signbit_gcc to "guessing yes".
5176
5177 2012-05-05  Bruno Haible  <bruno@clisp.org>
5178
5179         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5180         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5181         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5182         to "guessing yes".
5183         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5184         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5185
5186 2012-05-05  Bruno Haible  <bruno@clisp.org>
5187
5188         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5189         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5190         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5191         gl_cv_func_realpath_works to "guessing yes".
5192
5193 2012-05-05  Bruno Haible  <bruno@clisp.org>
5194
5195         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5197         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5198
5199 2012-05-04  Bruno Haible  <bruno@clisp.org>
5200
5201         Tweak last commit.
5202         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5203         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5204
5205 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5206
5207         unistd_h: make it easier to avoid sys_types_h
5208         This is useful for Emacs, which has its own method of porting to
5209         Windows, and which therefore does not need the sys_types_h module.
5210         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5211         code moved here from gl_SYS_TYPES_H.
5212         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5213         using the code directly.
5214         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5215         gl_SYS_TYPES_H.
5216         * modules/sys_types (Files):
5217         * modules/unistd (Files): Add m4/off_t.m4.
5218
5219 2012-05-03  Bruno Haible  <bruno@clisp.org>
5220
5221         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5222         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5223         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5224         "guessing yes" or "guessing no".
5225         (gl_FUNC_LSTAT): Update.
5226         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5227         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5228         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5229
5230 2012-05-03  Bruno Haible  <bruno@clisp.org>
5231
5232         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5233         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5234         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5235         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5236         cross-compiling, choose the first alternative on glibc systems.
5237         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5238
5239 2012-05-03  Bruno Haible  <bruno@clisp.org>
5240
5241         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5242         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5243         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5244
5245 2012-05-03  Bruno Haible  <bruno@clisp.org>
5246
5247         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5248         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5249
5250 2012-05-03  Bruno Haible  <bruno@clisp.org>
5251
5252         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5253         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5254         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5255         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5256         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5257         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5258         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5259         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5260         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5261         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5262         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5263         gl_cv_func_chown_ctime_works to "guessing yes".
5264         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5265         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5266         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5267         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5268         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5270         compiling to glibc systems, set gl_cv_func_open_directory_works to
5271         "guessing yes".
5272         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5273         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5274         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5275         "guessing yes".
5276         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5277         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5278         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5279         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5280         "guessing yes".
5281         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5282         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5283         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5284         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5285         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5286         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5287         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5288         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5289         "guessing yes".
5290         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5291         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5292         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5293         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5294         "guessing yes".
5295         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5296         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5297         "guessing yes".
5298         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5299         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5300         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5301         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5302         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5303         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5304         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5305         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5306         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5307         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5308         "guessing yes".
5309         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5310         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5311         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5312         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5313         "guessing yes".
5314         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5315         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5316         "guessing yes".
5317         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5318         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5319         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5320         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5321         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5322         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5323         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5324         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5325         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5326         "guessing yes".
5327         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5328         compiling to glibc systems, set gl_cv_func_mknod_works to
5329         "guessing yes".
5330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5331         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5332         "guessing yes".
5333         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5334         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5335         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5336         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5337         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5338         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5339         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5340         compiling to glibc systems, set gl_cv_func_svid_putenv to
5341         "guessing yes".
5342         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5343         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5344         "guessing yes".
5345         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5346         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5347         "guessing yes".
5348         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5349         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5350         to "guessing yes".
5351         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5352         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5353         to "guessing yes".
5354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5355         compiling to glibc systems, set gl_cv_func_rmdir_works to
5356         "guessing yes".
5357         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5358         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5359         gl_cv_func_unlink_parent_fails to "guessing yes".
5360         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5361         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5362         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5363         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5364         gl_cv_func_rename_dest_works to "guessing yes".
5365         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5366         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5367         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5368         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5369         "guessing yes".
5370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5371         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5372         "guessing yes".
5373         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5374         compiling to glibc systems, set gl_cv_func_setenv_works to
5375         "guessing yes".
5376         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5377         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5378         "guessing yes".
5379         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5380         compiling to glibc systems, set gl_cv_func_sleep_works to
5381         "guessing yes".
5382         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5383         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5384         "guessing yes".
5385         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5386         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5387         "guessing yes".
5388         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5389         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5390         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5391         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5392         "guessing yes".
5393         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5394         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5395         "guessing yes".
5396         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5397         compiling to glibc systems, set gl_cv_func_usleep_works to
5398         "guessing yes".
5399         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5400         compiling to glibc systems, set gl_cv_func_futimesat_works to
5401         "guessing yes".
5402
5403 2012-05-03  Bruno Haible  <bruno@clisp.org>
5404
5405         Say "guessing yes" or "guessing no" when cross-compiling.
5406         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5407         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5409         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5410         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5411         am_cv_func_working_getline to "guessing yes" or "guessing no".
5412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5413         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5414         (gl_FUNC_MEMMEM): When cross-compiling, set
5415         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5417         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5419         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5420         "guessing no".
5421         (gl_FUNC_STRCASESTR): When cross-compiling, set
5422         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5423         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5424         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5425         (gl_FUNC_STRSTR): When cross-compiling, set
5426         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5427         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5428         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5429         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5430         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5431
5432 2012-05-01  Bruno Haible  <bruno@clisp.org>
5433
5434         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5435         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5436         * build-aux/reloc-ldflags: Likewise.
5437         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5438
5439 2012-05-01  Bruno Haible  <bruno@clisp.org>
5440
5441         gnulib-tool: Remove transitional code.
5442         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5443         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5444
5445 2012-05-01  Bruno Haible  <bruno@clisp.org>
5446
5447         getcwd: Fix misindentation.
5448         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5449
5450 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         exclude: process exclude and include directives in order
5453         This restores the pre-2009 behavior, and is part of a fix of a
5454         grep bug reported by Quentin Arce in
5455         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5456         * lib/exclude.c (struct exclude): Remove 'tail' member.
5457         (new_exclude_segment): Prepend the new segment instead of appending.
5458         Return void, since that's now more convenient.
5459         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5460         (file_name_matches): Renamed from excluded_file_name_p.
5461         (file_pattern_matches, file_name_matches):
5462         Return true if the pattern matches, not if it excludes.
5463         All callers changed.
5464         (excluded_file_name): Process the list in reverse order;
5465         since the list is now reversed this restores the pre-2009 behavior.
5466         (add_exclude): Adjust to new reversed-order list.  Use local var
5467         rather than macro, for clarity.
5468         * tests/test-exclude7.sh: Adjust to corrected behavior.
5469
5470         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5471         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5472         it's not possible here.  Handle the case of \ at end of pattern
5473         without dumping core.
5474         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5475
5476         _Noreturn: future-proof non-GNU and non-MSVC compilers
5477         * build-aux/snippet/_Noreturn.h (_Noreturn):
5478         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5479         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5480         C11 or later.  This is more likely to work with random future C
5481         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5482         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5483
5484         exclude: handle wildcards with FNM_EXTMATCH
5485         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5486         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5487         comment that "has wildcards" really means "has or may have
5488         wildcards".  Simplify by avoiding the need to call strcspn.
5489
5490 2012-04-29  Bruno Haible  <bruno@clisp.org>
5491
5492         gnulib-tool: Fix list of authors.
5493         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5494
5495 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5496
5497         bootstrap: support Automake-NG in $buildreq
5498         * bootstrap (check_versions): Handle automake and aclocal from
5499         Automake-NG specially.  They can be specified as respectively
5500         the "automake-ng" and "aclocal-ng" requirements.
5501
5502 2012-04-25  Eric Blake  <eblake@redhat.com>
5503
5504         bootstrap: only force latest Makefile.in.in for gettext module
5505         * build-aux/bootstrap (with_gettext): Only install latest
5506         Makefile.in.in for projects requesting bleeding edge gettext.
5507
5508 2012-04-22  Bruno Haible  <bruno@clisp.org>
5509
5510         doc: Mention reason for replacement on glibc/Linux systems.
5511         * doc/posix-functions/dprintf.texi: Mention the problem with special
5512         'long double' values.
5513         * doc/posix-functions/fprintf.texi: Likewise.
5514         * doc/posix-functions/printf.texi: Likewise.
5515         * doc/posix-functions/snprintf.texi: Likewise.
5516         * doc/posix-functions/sprintf.texi: Likewise.
5517         * doc/posix-functions/vdprintf.texi: Likewise.
5518         * doc/posix-functions/vfprintf.texi: Likewise.
5519         * doc/posix-functions/vprintf.texi: Likewise.
5520         * doc/posix-functions/vsnprintf.texi: Likewise.
5521         * doc/posix-functions/vsprintf.texi: Likewise.
5522         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5523         platforms with F_DUPFD_CLOEXEC problems.
5524         * doc/posix-functions/glob.texi: Mention which platforms are affected
5525         by the problem with symbolic links.
5526         * doc/posix-functions/linkat.texi: Mention the problem with
5527         AT_SYMLINK_FOLLOW on Linux.
5528
5529 2012-04-22  Bruno Haible  <bruno@clisp.org>
5530
5531         pwrite: Don't replace on all platforms.
5532         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5533
5534 2012-04-22  Bruno Haible  <bruno@clisp.org>
5535
5536         rint* tests: Avoid gcc warnings.
5537         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5538         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5539         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5540
5541 2012-04-21  Bruno Haible  <bruno@clisp.org>
5542
5543         users.txt: Update.
5544         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5545         switched from CVS to git, bzr, or svn.
5546
5547 2012-04-21  Bruno Haible  <bruno@clisp.org>
5548
5549         Large File Support for native Windows platforms.
5550
5551         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5552         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5553
5554         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5555         type.
5556         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5557         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5558         * doc/posix-headers/sys_types.texi: Mention the effect of the
5559         'largefile' module.
5560
5561         * lib/fcntl.in.h: Add comments about off_t.
5562         * modules/fcntl-h (Depends-on): Add sys_types.
5563
5564         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5565         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5566         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5567         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5568         * modules/unistd (Depends-on): Add sys_types.
5569         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5570
5571         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5572         instead of lseek.
5573         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5574         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5575         * modules/lseek (Depends-on): Add sys_types.
5576
5577         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5578         msvc-nothrow.h.
5579         (SetFileSize): New function.
5580         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5581         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5582         if Large File Support is requested.
5583         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5584         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5585
5586         * lib/stdio.in.h: Add comments about off_t.
5587         * modules/stdio (Depends-on): Add sys_types.
5588
5589         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5590         instead of ftello.
5591         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5592         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5593         (gl_PREREQ_FTELLO): New macro.
5594         * modules/ftello (Depends-on): Add sys_types.
5595         (configure.ac): Incoke gl_PREREQ_FTELLO.
5596
5597         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5598         instead of fseeko.
5599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5600         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5601         (gl_PREREQ_FSEEKO): New macro.
5602         * modules/fseeko (Depends-on): Add sys_types.
5603         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5604
5605         * lib/sys_stat.in.h: Add comments about off_t.
5606         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5607         64-bit integer for st_size in 'struct stat'.
5608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5609         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5610         * modules/sys_stat (Depends-on): Add sys_types.
5611         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5612
5613         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5614         instead of stat or _stat.
5615
5616         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5617         'struct _stati64' instead of fstat and 'struct stat'.
5618         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5619         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5620
5621         Reported by Ray Satiro <raysatiro@yahoo.com>.
5622
5623 2012-04-19  Eric Blake  <eblake@redhat.com>
5624
5625         bootstrap: accommodate older libtool
5626         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5627         Reported by Daniel P. Berrange.
5628
5629 2012-04-19  Jim Meyering  <meyering@redhat.com>
5630
5631         announce-gen: avoid failure due to lack of Digest::SHA1
5632         Even with the preferred Digest::SHA available, this script
5633         would fail when the backup module, Digest::SHA1, was not installed.
5634         * build-aux/announce-gen: Quote the conditional use of "use".
5635         Reported by Reuben Thomas in:
5636         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5637
5638         bootstrap: don't let a user's CDPATH setting affect this script
5639         When CDPATH is set, cd will sometimes generate output.
5640         When "cd" is run in a subshell whose output matters, that
5641         surprising-to-some output can cause malfunction.
5642         Unsetting CDPATH turns off this shell "feature."
5643         * build-aux/bootstrap (CDPATH): Unset.
5644         Reported by Reuben Thomas in:
5645         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5646         and inspired by his patch here:
5647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5648
5649 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5650         and Jim Meyering  <meyering@redhat.com>
5651
5652         maint.mk: catch "see @xref{}" and similar
5653         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5654         prohibit "See also @xref{", "Also see @pxref{", and similar.
5655
5656 2012-04-16  Jim Meyering  <meyering@redhat.com>
5657
5658         bootstrap: really use gnulib's po/Makefile.in.in
5659         * build-aux/bootstrap: Correct the source file name in previous change.
5660         Reported by Akim Demaille.
5661
5662         configmake: correct minor inconsistency in Makefile rule
5663         * modules/configmake (Makefile.am): All other rules like this one
5664         run the final "mv -f ..." in the same backslash-continued command
5665         as the one that does everything else.  This one put the mv -f ...
5666         command on a separate, non-backslash-continued line.
5667         Make it like the others.
5668
5669         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5670         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5671         the one from gettext.  Reported by Akim Demaille.
5672
5673 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5674
5675         Fix recursion of install-* into po directories.
5676         Bison's install-pdf bug reported by Hans Aberg at
5677         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5678         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5679         (install-info, install-pdf, install-ps): New targets.
5680
5681 2012-04-16  Jim Meyering  <meyering@redhat.com>
5682
5683         maint: avoid spurious "make sc_maint" failure
5684         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5685         exempt all *.class file names, for lib/javaversion.class.
5686
5687 2012-04-15  Bruno Haible  <bruno@clisp.org>
5688
5689         lseek: Make configure test independent of environment.
5690         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5691         Windows, we know that lseek() on pipes is broken; skip the runtime
5692         test.
5693
5694 2012-04-14  Bruno Haible  <bruno@clisp.org>
5695
5696         stat: Bypass buggy override in mingw64.
5697         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5698         * lib/stat.c (stat) [mingw64]: Define to _stat.
5699         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5700
5701 2012-04-14  Bruno Haible  <bruno@clisp.org>
5702
5703         pathmax: Fix compilation error on MSVC 9.
5704         * modules/pathmax (Depends-on): Add unistd.
5705
5706 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5707
5708         README: document pointer comparison assumption
5709         * README (Portability guidelines): Document assumption about
5710         pointer comparisons, in response to a recent bug-gnulib comment by
5711         Jeffrey Kegler.
5712
5713 2012-04-12  Bruno Haible  <bruno@clisp.org>
5714
5715         Tests for module 'getrusage'.
5716         * modules/getrusage-tests: New file.
5717         * tests/test-getrusage.c: New file.
5718
5719         New module 'getrusage'.
5720         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5721         warn-on-use.h.
5722         (getrusage): New declaration.
5723         * lib/getrusage.c: New file.
5724         * m4/getrusage.m4: New file.
5725         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5726         is declared.
5727         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5728         HAVE_GETRUSAGE.
5729         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5730         snippet/c++defs, snippet/warn-on-use.
5731         (Makefile.am): Update generation of sys/resource.h. Substitute
5732         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5733         * modules/getrusage: New file.
5734         * doc/posix-functions/getrusage.texi: Mention the new module.
5735
5736 2012-04-12  Bruno Haible  <bruno@clisp.org>
5737
5738         Tests for module 'sys_resource'.
5739         * modules/sys_resource-tests: New file.
5740         * tests/test-sys_resource.c: New file.
5741
5742         New module 'sys_resource'.
5743         * lib/sys_resource.in.h: New file.
5744         * m4/sys_resource_h.m4: New file.
5745         * modules/sys_resource: New file.
5746         * doc/posix-headers/sys_resource.texi: Mention the new module.
5747
5748 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5749
5750         ioctl: Fix compilation error on mingw.
5751         * lib/ioctl.c: Include <windows.h>.
5752         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5753
5754 2012-04-04  Jim Meyering  <meyering@redhat.com>
5755
5756         regex: correct #pragma guard expression
5757         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5758         not 4.3.  Correct its cpp guard expression.
5759
5760 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5761
5762         regex: remove unnecessary type punning
5763         Problem reported by Vladimir Serbinenko in
5764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5765         * lib/regex.h (struct re_pattern_buffer): Change the type of
5766         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5767         Fix comment to match code.
5768         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5769         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5770         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5771         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5772         (set_regs):
5773         Omit no-longer-necessary casts.
5774
5775 2012-04-03  Bruno Haible  <bruno@clisp.org>
5776
5777         Tests for module 'ilogbl'.
5778         * modules/ilogbl-tests: New file.
5779         * tests/test-ilogbl.c: New file.
5780
5781         New module 'ilogbl'.
5782         * lib/math.in.h (ilogbl): New declaration.
5783         * lib/ilogbl.c: New file.
5784         * m4/ilogbl.m4: New file.
5785         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5787         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5788         Split sed invocation, to avoid the limit of 100 substitutions of
5789         HP-UX 'sed'.
5790         * modules/ilogbl: New file.
5791         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5792         * doc/posix-functions/ilogbl.texi: Mention the new module.
5793
5794 2012-04-03  Bruno Haible  <bruno@clisp.org>
5795
5796         Tests for module 'ilogbf'.
5797         * modules/ilogbf-tests: New file.
5798         * tests/test-ilogbf.c: New file.
5799
5800         New module 'ilogbf'.
5801         * lib/math.in.h (ilogbf): New declaration.
5802         * lib/ilogbf.c: New file.
5803         * m4/ilogbf.m4: New file.
5804         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5806         REPLACE_ILOGBF.
5807         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5808         REPLACE_ILOGBF.
5809         * modules/ilogbf: New file.
5810         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5811         * doc/posix-functions/ilogbf.texi: Mention the new module.
5812
5813 2012-04-03  Bruno Haible  <bruno@clisp.org>
5814
5815         Tests for module 'ilogb'.
5816         * modules/ilogb-tests: New file.
5817         * tests/test-ilogb.c: New file.
5818         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5819         tests/test-logb-ieee.h.
5820
5821         New module 'ilogb'.
5822         * lib/math.in.h (ilogb): New declaration.
5823         * lib/ilogb.c: New file.
5824         * m4/ilogb.m4: New file.
5825         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5827         REPLACE_ILOGB.
5828         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5829         REPLACE_ILOGB.
5830         * modules/ilogb: New file.
5831         * tests/test-math-c++.cc: Check the declaration of ilogb.
5832         * doc/posix-functions/ilogb.texi: Mention the new module.
5833
5834 2012-04-03  Bruno Haible  <bruno@clisp.org>
5835
5836         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5837         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5838         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5839         (main): Check their values.
5840         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5841         problem.
5842
5843 2012-04-03  Bruno Haible  <bruno@clisp.org>
5844
5845         Tests for module 'logbl-ieee'.
5846         * modules/logbl-ieee-tests: New file.
5847         * tests/test-logbl-ieee.c: New file.
5848
5849         New module 'logbl-ieee'.
5850         * modules/logbl-ieee: New file.
5851
5852         Tests for module 'logb-ieee'.
5853         * modules/logb-ieee-tests: New file.
5854         * tests/test-logb-ieee.c: New file.
5855
5856         New module 'logb-ieee'.
5857         * modules/logb-ieee: New file.
5858
5859         Tests for module 'logbf-ieee'.
5860         * modules/logbf-ieee-tests: New file.
5861         * tests/test-logbf-ieee.c: New file.
5862         * tests/test-logb-ieee.h: New file.
5863
5864         New module 'logbf-ieee'.
5865         * modules/logbf-ieee: New file.
5866
5867 2012-04-03  Bruno Haible  <bruno@clisp.org>
5868
5869         Tests for module 'logbl'.
5870         * modules/logbl-tests: New file.
5871         * tests/test-logbl.c: New file.
5872
5873         New module 'logbl'.
5874         * lib/math.in.h (logbl): New declaration.
5875         * lib/logbl.c: New file.
5876         * m4/logbl.m4: New file.
5877         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5879         REPLACE_LOGBL.
5880         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5881         REPLACE_LOGBL.
5882         * modules/logbl: New file.
5883         * tests/test-math-c++.cc: Check the declaration of logbl.
5884         * doc/posix-functions/logbl.texi: Mention the new module.
5885
5886 2012-04-02  Bruno Haible  <bruno@clisp.org>
5887
5888         Tests for module 'logbf'.
5889         * modules/logbf-tests: New file.
5890         * tests/test-logbf.c: New file.
5891
5892         New module 'logbf'.
5893         * lib/math.in.h (logbf): New declaration.
5894         * lib/logbf.c: New file.
5895         * m4/logbf.m4: New file.
5896         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5898         REPLACE_LOGBF.
5899         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5900         REPLACE_LOGBF.
5901         * modules/logbf: New file.
5902         * tests/test-math-c++.cc: Check the declaration of logbf.
5903         * doc/posix-functions/logbf.texi: Mention the new module.
5904
5905 2012-04-02  Bruno Haible  <bruno@clisp.org>
5906
5907         logb tests: More tests.
5908         * tests/test-logb.h: New file, based on tests/test-logb.c and
5909         tests/test-frexp.h.
5910         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5911         (main): Just invoke test_function.
5912         * modules/logb-tests (Files): Add tests/test-logb.h,
5913         tests/minus-zero.h, tests/randomd.c.
5914         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5915
5916         logb: Provide replacement and workarounds.
5917         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5918         is 1.
5919         * lib/logb.c: New file.
5920         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5921         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5923         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5924         * modules/logb (Files): Add lib/logb.c.
5925         (Depends-on): Add isfinite, frexp, isnand.
5926         (configure.ac): Compile the replacement code logb.c if needed.
5927         * tests/test-math-c++.cc: Check the declaration of logb.
5928         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5929         with subnormal numbers.
5930
5931 2012-04-02  Bruno Haible  <bruno@clisp.org>
5932
5933         log10* tests: Speed up.
5934         * tests/test-log10.h (test_function): Reduce amount of random numbers
5935         to test.
5936
5937 2012-04-01  Bruno Haible  <bruno@clisp.org>
5938
5939         logf-ieee: Fix test whether logf works.
5940         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5941
5942 2012-04-01  Bruno Haible  <bruno@clisp.org>
5943
5944         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5945         * lib/log10l.c: Include <float.h>
5946         (log10l): On IRIX, normalize the +Infinity value.
5947         * modules/log10l (Depends-on): Add 'float'.
5948         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5949         +Infinity.
5950
5951         log10f-ieee: Work around test failure on NetBSD 5.1.
5952         * m4/log10f-ieee.m4: New file.
5953         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5954         test whether log10f works with a negative argument. Replace it if not.
5955         * lib/log10f.c (log10f): For negative arguments, return NaN.
5956         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5957         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5958         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5959
5960         log10f-ieee: Work around test failure on Solaris 9.
5961         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5962         (configure.ac): Require gl_FUNC_LOG10F.
5963
5964         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5965         * m4/log10-ieee.m4: New file.
5966         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5967         whether log10 works with a negative argument. Replace it if not.
5968         * lib/log10.c (log10): For negative arguments, return NaN.
5969         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5970         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5971         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5972
5973         Tests for module 'log10l-ieee'.
5974         * modules/log10l-ieee-tests: New file.
5975         * tests/test-log10l-ieee.c: New file.
5976
5977         New module 'log10l-ieee'.
5978         * modules/log10l-ieee: New file.
5979
5980         Tests for module 'log10-ieee'.
5981         * modules/log10-ieee-tests: New file.
5982         * tests/test-log10-ieee.c: New file.
5983
5984         New module 'log10-ieee'.
5985         * modules/log10-ieee: New file.
5986
5987         Tests for module 'log10f-ieee'.
5988         * modules/log10f-ieee-tests: New file.
5989         * tests/test-log10f-ieee.c: New file.
5990         * tests/test-log10-ieee.h: New file.
5991
5992         New module 'log10f-ieee'.
5993         * modules/log10f-ieee: New file.
5994
5995 2012-04-01  Bruno Haible  <bruno@clisp.org>
5996
5997         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5998         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5999         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6000         workaround.
6001         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6002         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6004         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6005         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6006         (Depends-on): Update conditions.
6007         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6008         IRIX 6.5, OSF/1 5.1 problems.
6009
6010 2012-04-01  Bruno Haible  <bruno@clisp.org>
6011
6012         log10f: Work around OSF/1 5.1 bug.
6013         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6014         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6015         workaround.
6016         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6017         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6019         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6020         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6021         (Depends-on): Update conditions.
6022         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6023
6024 2012-04-01  Bruno Haible  <bruno@clisp.org>
6025
6026         log10: Work around OSF/1 5.1 bug.
6027         * lib/math.in.h (log10): New declaration.
6028         * lib/log10.c: New file.
6029         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6030         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6031         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6033         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6034         * modules/log10 (Files): Add lib/log10.c.
6035         (Depends-on): Add math.
6036         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6037         * tests/test-math-c++.cc: Check the declaration of log10.
6038         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6039
6040 2012-03-31  Bruno Haible  <bruno@clisp.org>
6041
6042         log10l tests: More tests.
6043         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6044         tests/minus-zero.h, tests/randoml.c.
6045         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6046         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6047         (main): Invoke test_function.
6048
6049         log10f tests: More tests.
6050         * modules/log10f-tests (Files): Add tests/test-log10.h,
6051         tests/minus-zero.h, tests/randomf.c.
6052         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6053         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6054         (main): Invoke test_function.
6055
6056         log10 tests: More tests.
6057         * tests/test-log10.h: New file.
6058         * modules/log10-tests (Files): Add tests/test-log10.h,
6059         tests/minus-zero.h, tests/randomd.c.
6060         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6061         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6062         (main): Invoke test_function.
6063
6064 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6065
6066         fflush: Fix syntax error.
6067         * lib/fflush.c: Include unused-parameter.h, needed for
6068         _GL_UNUSED_PARAMETER.
6069         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6070
6071 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6072
6073         regex: pacify GCC when compiling GRUB
6074         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6075         a diagnostic.  Reported by Vladimir Serbinenko in
6076         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6077
6078 2012-03-29  Eric Blake  <eblake@redhat.com>
6079
6080         stdio: don't assume gets any more
6081         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6082         support.
6083         * modules/stdio (Makefile.am): Likewise.
6084         * lib/stdio-read.c (gets): Likewise.
6085         * tests/test-stdio-c++.cc: Likewise.
6086         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6087         * lib/stdio.in.h (gets): Make warning occur in more places.
6088         * doc/posix-functions/gets.texi (gets): Update documentation.
6089         Reported by Christer Solskogen.
6090
6091         maint.mk: fix syntax checks without exclusions
6092         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6093         Reported by Daniel P. Berrange.
6094
6095         strerror_r: avoid compiler warning
6096         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6097         level.
6098
6099         fflush: avoid compiler warning
6100         * lib/fflush.c (update_fpos_cache): Mark variables that are
6101         potentially unused.
6102
6103 2012-03-25  Bruno Haible  <bruno@clisp.org>
6104
6105         Tests for module 'localeconv'.
6106         * modules/localeconv-tests: New file.
6107         * tests/test-localeconv.c: New file.
6108
6109         New module 'localeconv'.
6110         * lib/locale.in.h (localeconv): New declaration.
6111         * lib/localeconv.c: New file.
6112         * m4/localeconv.m4: New file.
6113         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6114         REPLACE_LOCALECONV.
6115         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6116         REPLACE_LOCALECONV.
6117         * modules/localeconv: New file.
6118         * modules/nl_langinfo (Depends-on): Add localeconv.
6119         * modules/human (Depends-on): Likewise.
6120         * doc/posix-functions/localeconv.texi: Mention the new module.
6121
6122 2012-03-25  Bruno Haible  <bruno@clisp.org>
6123
6124         locale: Provide a complete 'struct lconv'.
6125         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6126         'struct lconv' does not contain int_p_cs_precedes.
6127         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6128         * doc/posix-headers/locale.texi: Update.
6129
6130         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6131         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6132         * doc/posix-headers/locale.texi: Update.
6133
6134         locale: Provide a working 'struct lconv'.
6135         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6136         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6137         'struct lconv' does not even contain decimal_point.
6138         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6139         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6140         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6141         * doc/posix-headers/locale.texi: Mention the problems with
6142         'struct lconv'.
6143         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6144
6145 2012-03-24  Bruno Haible  <bruno@clisp.org>
6146
6147         Enable common subexpression optimization in GCC.
6148         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6149         macros.
6150         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6151         GCC attribute 'const'.
6152         (uc_locale_language): Declare with GCC attribute 'pure'.
6153         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6154         with GCC attribute 'const'.
6155         * lib/unictype.in.h (uc_is_general_category_withtable,
6156         uc_combining_class, uc_combining_class_name,
6157         uc_combining_class_long_name, uc_bidi_class_name,
6158         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6159         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6160         uc_decimal_value, uc_digit_value, uc_numeric_value,
6161         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6162         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6163         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6164         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6165         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6166         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6167         Declare with GCC attribute 'const'.
6168         (uc_general_category_name, uc_general_category_long_name,
6169         uc_general_category_byname, uc_general_category,
6170         uc_is_general_category, uc_combining_class_byname,
6171         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6172         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6173         Declare with GCC attribute 'pure'.
6174         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6175         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6176         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6177         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6178         with GCC attribute 'pure'.
6179         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6180         'const'.
6181         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6182         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6183         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6184         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6185         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6186         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6187         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6188         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6189         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6190         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6191         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6192         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6193         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6194         GCC attribute 'pure'.
6195         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6196         'const'.
6197         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6198         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6199         u32_strwidth): Declare with GCC attribute 'pure'.
6200
6201         Enable common subexpression optimization in GCC.
6202         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6203         (alphasort): Declare with GCC attribute 'pure'.
6204         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6205         (atoll): Declare with GCC attribute 'pure'.
6206         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6207         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6208         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6209         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6210         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6211         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6212         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6213
6214 2012-03-24  Bruno Haible  <bruno@clisp.org>
6215
6216         gnulib-tool: Avoid unintended error output from 'cmp'.
6217         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6218         "cmp -s", not "cmp > /dev/null".
6219
6220 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6221
6222         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6223
6224         It's not just Automake versions < 1.9b that creates an empty
6225         pkgdatadir at installation time if pkgdata_DATA is specified
6226         to empty; modern automake versions do this as well, at least
6227         until automake 1.11.4 (not yet released at the moment of writing,
6228         but soon to appear).  That behaviour was generally considered a
6229         feature rather than a bug, at least until this discussion:
6230         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6231
6232         See also automake bugs #10997 and #11030.
6233
6234         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6235         reference to relevant automake bug numbers.
6236         (func_emit_tests_Makefile_am): Likewise.
6237
6238 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6239
6240         announce-gen: use Digest::SHA when possible
6241         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6242         back to Digest::SHA1 if necessary.
6243
6244 2012-03-20  Jim Meyering  <meyering@redhat.com>
6245
6246         tests: avoid gcc warnings about argv vs. const initializers
6247         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6248         warnings about discarding 'const' qualifier from pointer target type.
6249         * tests/test-posix_spawn2.c (main): Likewise.
6250
6251 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6252
6253         README-release: simplify slightly
6254         * top/README-release: Run "git checkout master" only once.
6255
6256 2012-03-15  Mark Wielaard  <mark@klomp.org>
6257
6258         git-merge-changelog: add specific example on how to use with hg.
6259         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6260
6261 2012-03-18  Mark Wielaard  <mark@klomp.org>
6262
6263         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6264
6265 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6266
6267         git-version-gen: don't let "prefix" envvar cause trouble
6268         * build-aux/git-version-gen (prefix): Initialize properly,
6269         so as not to use a value specified via the environment.
6270         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6271
6272 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6273
6274         regex: diagnose too-large repeat counts in EREs
6275         Previously, the code did not diagnose the too-large repeat count
6276         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6277         as if it were 'b\{1000000000}', which is unexpected.
6278         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6279         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6280         is a reasonable one for this problem.  Another option would be to
6281         create a new REG_OVERFLOW error for repeat counts that are too large.
6282         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6283         count is too large, so that the caller can distinguish the two cases.
6284         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6285         "Too large" return code, and that repeat counts are one example of this.
6286
6287 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6288
6289         doc: some glibc x32 integer width issues
6290         * doc/posix-headers/sys_types.texi (sys/types.h):
6291         * doc/posix-headers/time.texi (time.h):
6292         Mention that glibc x32 does not conform to POSIX in a couple of
6293         areas related to integer widths.
6294
6295 2012-03-15  Bruno Haible  <bruno@clisp.org>
6296
6297         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6298         * lib/fma.c (VOLATILE): New macro.
6299         (FUNC): Use it to work around a GCC compiler bug.
6300
6301 2012-03-13  Bruno Haible  <bruno@clisp.org>
6302
6303         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6304         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6305         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6306         REPLACE_HYPOTL to 1.
6307         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6308
6309 2012-03-13  Bruno Haible  <bruno@clisp.org>
6310
6311         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6312         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6313         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6314         REPLACE_REMAINDERL to 1.
6315         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6316         bug.
6317
6318 2012-03-13  Bruno Haible  <bruno@clisp.org>
6319
6320         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6321         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6322         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6323         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6324         too big rounding errors.
6325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6326         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6327         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6328         (Depends-on): Update conditions.
6329         * tests/test-sqrtl.c (my_ldexpl): New function.
6330         (main): Add test of a particular value.
6331         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6332
6333 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6334
6335         doc: Update timer_* platform portability notes.
6336         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6337         that always return ENOSYS.
6338         * doc/posix-functions/timer_delete.texi: Likewise.
6339         * doc/posix-functions/timer_gettime.texi: Likewise.
6340         * doc/posix-functions/timer_settime.texi: Likewise.
6341
6342 2012-03-13  Bruno Haible  <bruno@clisp.org>
6343
6344         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6345         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6346         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6347         REPLACE_CBRTL to 1.
6348         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6349
6350 2012-03-13  Bruno Haible  <bruno@clisp.org>
6351
6352         remainderl: Avoid compilation error on AIX >= 5.2.
6353         * lib/math.in.h (remainderl): Undefine macro from the system header.
6354
6355 2012-03-13  Bruno Haible  <bruno@clisp.org>
6356
6357         Avoid compilation errors with MSVC option -fp:strict.
6358         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6359         * lib/cbrtf.c: Likewise.
6360         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6361
6362 2012-03-12  Bruno Haible  <bruno@clisp.org>
6363
6364         uninorm: Don't crash in out-of-memory conditions.
6365         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6366         gracefully.
6367         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6368         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6369
6370 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6371
6372         quote: fix syntax-check
6373         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6374         also exports quote_quoting_options.
6375
6376 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6377
6378         Collapse list of copyright years to ranges.  See
6379         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6380         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6381         build-aux/csharpexec.sh.in, build-aux/gnupload,
6382         build-aux/install-reloc, build-aux/javacomp.sh.in,
6383         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6384         build-aux/move-if-change, build-aux/reloc-ldflags,
6385         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6386
6387 2012-03-11  Bruno Haible  <bruno@clisp.org>
6388
6389         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6390         * m4/log2f-ieee.m4: New file.
6391         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6392         whether log2f works with a minus zero argument. Replace it if not.
6393         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6394         (Depends-on): Add log2-ieee.
6395         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6396         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6397
6398         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6399         * m4/log2-ieee.m4: New file.
6400         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6401         whether log2 works with a minus zero argument. Replace it if not.
6402         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6403         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6404         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6405
6406         Tests for module 'log2l-ieee'.
6407         * modules/log2l-ieee-tests: New file.
6408         * tests/test-log2l-ieee.c: New file.
6409
6410         New module 'log2l-ieee'.
6411         * modules/log2l-ieee: New file.
6412
6413         Tests for module 'log2-ieee'.
6414         * modules/log2-ieee-tests: New file.
6415         * tests/test-log2-ieee.c: New file.
6416
6417         New module 'log2-ieee'.
6418         * modules/log2-ieee: New file.
6419
6420         Tests for module 'log2f-ieee'.
6421         * modules/log2f-ieee-tests: New file.
6422         * tests/test-log2f-ieee.c: New file.
6423         * tests/test-log2-ieee.h: New file.
6424
6425         New module 'log2f-ieee'.
6426         * modules/log2f-ieee: New file.
6427
6428 2012-03-11  Bruno Haible  <bruno@clisp.org>
6429
6430         Tests for module 'log2l'.
6431         * modules/log2l-tests: New file.
6432         * tests/test-log2l.c: New file.
6433
6434         New module 'log2l'.
6435         * lib/math.in.h (log2l): New declaration.
6436         * lib/log2l.c: New file.
6437         * m4/log2l.m4: New file.
6438         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6440         REPLACE_LOG2L.
6441         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6442         REPLACE_LOG2L.
6443         * modules/log2l: New file.
6444         * tests/test-math-c++.cc: Check the declaration of log2l.
6445         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6446         and OSF/1 problems.
6447
6448 2012-03-11  Bruno Haible  <bruno@clisp.org>
6449
6450         Tests for module 'log2f'.
6451         * modules/log2f-tests: New file.
6452         * tests/test-log2f.c: New file.
6453
6454         New module 'log2f'.
6455         * lib/math.in.h (log2f): New declaration.
6456         * lib/log2f.c: New file.
6457         * m4/log2f.m4: New file.
6458         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6460         REPLACE_LOG2F.
6461         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6462         REPLACE_LOG2F.
6463         * modules/log2f: New file.
6464         * tests/test-math-c++.cc: Check the declaration of log2f.
6465         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6466         and OSF/1 and Cygwin problems.
6467
6468 2012-03-11  Bruno Haible  <bruno@clisp.org>
6469
6470         Tests for module 'log2'.
6471         * modules/log2-tests: New file.
6472         * tests/test-log2.c: New file.
6473         * tests/test-log2.h: New file.
6474
6475         New module 'log2'.
6476         * lib/math.in.h (log2): New declaration.
6477         * lib/log2.c: New file.
6478         * m4/log2.m4: New file.
6479         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6481         REPLACE_LOG2.
6482         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6483         REPLACE_LOG2.
6484         * modules/log2: New file.
6485         * tests/test-math-c++.cc: Check the declaration of log2.
6486         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6487         and OSF/1 and Cygwin problems.
6488
6489 2012-03-11  Bruno Haible  <bruno@clisp.org>
6490
6491         exp2* tests: More tests.
6492         * tests/test-exp2.h (test_function): Test all integral arguments that
6493         don't need to overflow or denormalized numbers.
6494         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6495         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6496         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6497
6498 2012-03-10  Bruno Haible  <bruno@clisp.org>
6499
6500         log1pl-ieee: Work around test failure on AIX 7.1.
6501         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6502
6503         log1pl-ieee: Work around test failure on IRIX 6.5.
6504         * m4/log1pl-ieee.m4: New file.
6505         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6506         test whether log1pl works with a minus zero argument. Replace it if
6507         not.
6508         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6510         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6511         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6512         (Depends-on): Update conditions.
6513         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6514         m4/signbit.m4.
6515         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6516         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6517
6518         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6519         * m4/log1pf-ieee.m4: New file.
6520         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6521         test whether log1pf works with a minus zero argument. Replace it if
6522         not.
6523         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6524         m4/signbit.m4.
6525         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6526         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6527
6528         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6529         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6530         (configure.ac): Require gl_FUNC_LOG1PF.
6531
6532         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6533         * m4/log1p-ieee.m4: New file.
6534         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6535         whether log1p works with a minus zero argument. Replace it if not.
6536         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6538         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6539         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6540         (Depends-on): Update conditions.
6541         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6542         m4/signbit.m4.
6543         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6544         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6545
6546         Tests for module 'log1pl-ieee'.
6547         * modules/log1pl-ieee-tests: New file.
6548         * tests/test-log1pl-ieee.c: New file.
6549
6550         New module 'log1pl-ieee'.
6551         * modules/log1pl-ieee: New file.
6552
6553         Tests for module 'log1p-ieee'.
6554         * modules/log1p-ieee-tests: New file.
6555         * tests/test-log1p-ieee.c: New file.
6556
6557         New module 'log1p-ieee'.
6558         * modules/log1p-ieee: New file.
6559
6560         Tests for module 'log1pf-ieee'.
6561         * modules/log1pf-ieee-tests: New file.
6562         * tests/test-log1pf-ieee.c: New file.
6563         * tests/test-log1p-ieee.h: New file.
6564
6565         New module 'log1pf-ieee'.
6566         * modules/log1pf-ieee: New file.
6567
6568 2012-03-10  Bruno Haible  <bruno@clisp.org>
6569
6570         Tests for module 'log1pl'.
6571         * modules/log1pl-tests: New file.
6572         * tests/test-log1pl.c: New file.
6573
6574         New module 'log1pl'.
6575         * lib/math.in.h (log1pl): New declaration.
6576         * lib/log1pl.c: New file.
6577         * m4/log1pl.m4: New file.
6578         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6580         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6581         * modules/log1pl: New file.
6582         * tests/test-math-c++.cc: Check the declaration of log1pl.
6583         * doc/posix-functions/log1pl.texi: Mention the new module.
6584
6585 2012-03-10  Bruno Haible  <bruno@clisp.org>
6586
6587         Tests for module 'log1pf'.
6588         * modules/log1pf-tests: New file.
6589         * tests/test-log1pf.c: New file.
6590
6591         New module 'log1pf'.
6592         * lib/math.in.h (log1pf): New declaration.
6593         * lib/log1pf.c: New file.
6594         * m4/log1pf.m4: New file.
6595         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6597         REPLACE_LOG1PF.
6598         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6599         REPLACE_LOG1PF.
6600         * modules/log1pf: New file.
6601         * tests/test-math-c++.cc: Check the declaration of log1pf.
6602         * doc/posix-functions/log1pf.texi: Mention the new module.
6603
6604 2012-03-10  Bruno Haible  <bruno@clisp.org>
6605
6606         log1p tests: More tests.
6607         * tests/test-log1p.h: New file.
6608         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6609         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6610         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6611         (main): Invoke test_function.
6612
6613         log1p: Provide replacement for Minix and MSVC.
6614         * lib/math.in.h (log1p): New declaration.
6615         * lib/log1p.c: New file.
6616         * m4/log1p.m4: New file.
6617         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6619         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6620         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6621         (Depends-on): Add math, isnand, log, round.
6622         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6623         HAVE_LOG1P is 0.
6624         * tests/test-math-c++.cc: Check the declaration of log1p.
6625         * doc/posix-functions/log1p.texi: Mention the replacement.
6626
6627 2012-03-10  Bruno Haible  <bruno@clisp.org>
6628
6629         math tests: Small simplification.
6630         * tests/test-exp.h (test_function): Use the same err_bound for
6631         'double' on platforms with sizeof (long double) == sizeof (double)
6632         than on platforms with sizeof (long double) > sizeof (double).
6633         * tests/test-exp2.h (test_function): Likewise.
6634         * tests/test-expm1.h (test_function): Likewise.
6635         * tests/test-log.h (test_function): Likewise.
6636
6637 2012-03-10  Bruno Haible  <bruno@clisp.org>
6638
6639         Fix some comments.
6640         * lib/expl.c: Fix an ambiguous comment.
6641         * lib/expm1.c: Likewise.
6642         * lib/expm1l.c: Likewise.
6643         * lib/exp2.c: Likewise.
6644         * lib/exp2l.c: Likewise.
6645
6646 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6647
6648         regex: allow inclusion of <regex.h> before <limits.h>
6649         Without this patch, portable programs had to include <limits.h> before
6650         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6651         I ran into this problem with a test version of GNU grep on Solaris 8.
6652         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6653         This is done conditionally so that this change can be merged
6654         back to glibc.
6655         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6656         using the included regex.
6657
6658         fts: depend on fdopendir
6659         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6660         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6661         problem was introduced when fdopendir was split out.
6662
6663 2012-03-10  Bruno Haible  <bruno@clisp.org>
6664
6665         Remove unused variables.
6666         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6667         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6668
6669 2012-03-10  Bruno Haible  <bruno@clisp.org>
6670
6671         isnanf-nolibm: Fix last commit.
6672         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6673
6674         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6675         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6676
6677 2012-03-10  Bruno Haible  <bruno@clisp.org>
6678
6679         logf-ieee: Work around test failure on NetBSD 5.1.
6680         * m4/logf-ieee.m4: New file.
6681         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6682         whether logf works with a negative argument. Replace it if not.
6683         * lib/logf.c (logf): For negative arguments, return NaN.
6684         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6685         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6686         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6687
6688         logf-ieee: Work around test failure on Solaris 9.
6689         * modules/logf-ieee (Depends-on): Add log-ieee.
6690         (configure.ac): Require gl_FUNC_LOGF.
6691
6692         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6693         * m4/log-ieee.m4: New file.
6694         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6695         log works with a negative argument. Replace it if not.
6696         * lib/log.c (log): For negative arguments, return NaN.
6697         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6698         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6699         * doc/posix-functions/log.texi: Mention the log-ieee module.
6700
6701         Tests for module 'logl-ieee'.
6702         * modules/logl-ieee-tests: New file.
6703         * tests/test-logl-ieee.c: New file.
6704
6705         New module 'logl-ieee'.
6706         * modules/logl-ieee: New file.
6707
6708         Tests for module 'log-ieee'.
6709         * modules/log-ieee-tests: New file.
6710         * tests/test-log-ieee.c: New file.
6711
6712         New module 'log-ieee'.
6713         * modules/log-ieee: New file.
6714
6715         Tests for module 'logf-ieee'.
6716         * modules/logf-ieee-tests: New file.
6717         * tests/test-logf-ieee.c: New file.
6718         * tests/test-log-ieee.h: New file.
6719
6720         New module 'logf-ieee'.
6721         * modules/logf-ieee: New file.
6722
6723 2012-03-10  Bruno Haible  <bruno@clisp.org>
6724
6725         log: Fix bug introduced on 2012-03-09.
6726         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6727
6728 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6729
6730         timer-time: link explicitly with pthreads on glibc
6731         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6732         to support static linking, when newer glibc is
6733         detected, as that contains pthread emulation of
6734         POSIX timer functions where required.
6735         * modules/timer-time: Depend on threadlib to
6736         pull in the appropriate library to link.
6737
6738 2012-03-10  Bruno Haible  <bruno@clisp.org>
6739
6740         log* tests: More tests.
6741         * tests/test-log.h: New file.
6742         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6743         (main): Invoke test_function.
6744         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6745         (main): Invoke test_function.
6746         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6747         (main): Invoke test_function.
6748         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6749         tests/randomd.c.
6750         (Makefile.am): Add randomd.c to test_log_SOURCES.
6751         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6752         tests/randomf.c.
6753         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6754         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6755         tests/randoml.c.
6756         (Depends-on): Add 'float'.
6757         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6758
6759 2012-03-09  Bruno Haible  <bruno@clisp.org>
6760
6761         logl: Work around OSF/1 5.1 bug.
6762         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6763         * lib/logl.c (logl): If logl exists, use it and provide just the
6764         workaround.
6765         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6766         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6768         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6769         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6770         (Depends-on): Update conditions.
6771         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6772
6773 2012-03-09  Bruno Haible  <bruno@clisp.org>
6774
6775         logf: Work around OSF/1 5.1 bug.
6776         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6777         * lib/logf.c (logf): If logf exists, use it and provide just the
6778         workaround.
6779         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6780         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6782         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6783         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6784         (Depends-on): Update conditions.
6785         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6786
6787 2012-03-09  Bruno Haible  <bruno@clisp.org>
6788
6789         log: Work around OSF/1 5.1 bug.
6790         * lib/math.in.h (log): New declaration.
6791         * lib/log.c: New file.
6792         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6793         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6794         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6796         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6797         * modules/log (Files): Add lib/log.c.
6798         (Depends-on): Add math.
6799         (configure.ac): If REPLACE_LOG is 1, compile an override.
6800         * tests/test-math-c++.cc: Check the declaration of log.
6801         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6802
6803 2012-03-09  Jim Meyering  <meyering@redhat.com>
6804
6805         readtokens.c: adjust wording in a comment
6806         * lib/readtokens.c: Insert omitted "that" in a comment.
6807
6808 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6809
6810         modechange: add notations +40, 00440, etc.
6811         * lib/modechange.c (mode_compile): Support new notations
6812         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6813
6814 2012-03-08  Bruno Haible  <bruno@clisp.org>
6815
6816         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6817         * m4/exp2l-ieee.m4: New file.
6818         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6819         test whether exp2l works with a NaN argument and with a negative
6820         infinity argument. Replace it if not.
6821         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6823         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6824         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6825         (Depends-on): Update conditions.
6826         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6827         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6828         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6829
6830         Tests for module 'exp2l-ieee'.
6831         * modules/exp2l-ieee-tests: New file.
6832         * tests/test-exp2l-ieee.c: New file.
6833
6834         New module 'exp2l-ieee'.
6835         * modules/exp2l-ieee: New file.
6836
6837         Tests for module 'exp2-ieee'.
6838         * modules/exp2-ieee-tests: New file.
6839         * tests/test-exp2-ieee.c: New file.
6840
6841         New module 'exp2-ieee'.
6842         * modules/exp2-ieee: New file.
6843
6844         Tests for module 'exp2f-ieee'.
6845         * modules/exp2f-ieee-tests: New file.
6846         * tests/test-exp2f-ieee.c: New file.
6847         * tests/test-exp2-ieee.h: New file.
6848
6849         New module 'exp2f-ieee'.
6850         * modules/exp2f-ieee: New file.
6851
6852 2012-03-08  Bruno Haible  <bruno@clisp.org>
6853
6854         Tests for module 'exp2l'.
6855         * modules/exp2l-tests: New file.
6856         * tests/test-exp2l.c: New file.
6857
6858         New module 'exp2l'.
6859         * lib/math.in.h (exp2l): New declaration.
6860         * lib/exp2l.c: New file.
6861         * lib/expl-table.c: New file, extracted from lib/expl.c.
6862         * lib/expl.c (gl_expl_table): New declaration.
6863         (expl): Remove expl_table. Update reference.
6864         * m4/exp2l.m4: New file.
6865         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6867         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6868         * modules/exp2l: New file.
6869         * modules/expl (Files): Add lib/expl-table.c.
6870         (configure.ac): Compile also expl-table.c.
6871         * tests/test-math-c++.cc: Check the declaration of exp2l.
6872         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6873         problem.
6874
6875 2012-03-08  Bruno Haible  <bruno@clisp.org>
6876
6877         Tests for module 'exp2f'.
6878         * modules/exp2f-tests: New file.
6879         * tests/test-exp2f.c: New file.
6880
6881         New module 'exp2f'.
6882         * lib/math.in.h (exp2f): New declaration.
6883         * lib/exp2f.c: New file.
6884         * m4/exp2f.m4: New file.
6885         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6887         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6888         * modules/exp2f: New file.
6889         * tests/test-math-c++.cc: Check the declaration of exp2f.
6890         * doc/posix-functions/exp2f.texi: Mention the new module and the
6891         IRIX problem.
6892
6893 2012-03-08  Bruno Haible  <bruno@clisp.org>
6894
6895         Tests for module 'exp2'.
6896         * modules/exp2-tests: New file.
6897         * tests/test-exp2.c: New file.
6898         * tests/test-exp2.h: New file.
6899
6900         New module 'exp2'.
6901         * lib/math.in.h (exp2): New declaration.
6902         * lib/exp2.c: New file.
6903         * m4/exp2.m4: New file.
6904         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6906         REPLACE_EXP2.
6907         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6908         REPLACE_EXP2.
6909         * modules/exp2: New file.
6910         * tests/test-math-c++.cc: Check the declaration of exp2.
6911         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6912         and OpenBSD problems.
6913
6914 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         savedir: fix comment typo
6917         * lib/savedir.c (savedirstream): Fix typo in comment.
6918
6919 2012-03-08  Bruno Haible  <bruno@clisp.org>
6920
6921         test-readtokens.c: use const; remove unwarranted cast
6922         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6923
6924 2012-03-08  Bruno Haible  <bruno@clisp.org>
6925
6926         fmal: Avoid compilation error on AIX.
6927         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6928         AIX 5.2..7.1.
6929
6930 2012-03-08  Bruno Haible  <bruno@clisp.org>
6931
6932         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6933         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6934         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6935         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6936         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6937         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6938         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6939
6940 2012-03-08  Bruno Haible  <bruno@clisp.org>
6941
6942         remainderf: Override buggy system function on IRIX 6.5.
6943         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6944         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6945         when it exists.
6946         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6947
6948 2012-03-08  Jim Meyering  <meyering@redhat.com>
6949
6950         test-readtokens.c: avoid const-related compilation warnings
6951         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6952
6953 2012-03-07  Jim Meyering  <meyering@redhat.com>
6954             Bruno Haible  <bruno@clisp.org>
6955
6956         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6957         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6958         tests/randomd.c.
6959         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6960         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6961         tests/randoml.c.
6962         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6963
6964 2012-03-07  Bruno Haible  <bruno@clisp.org>
6965
6966         expm1l: Avoid compilation error on AIX.
6967         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6968         AIX 5.2..7.1.
6969
6970 2012-03-07  Bruno Haible  <bruno@clisp.org>
6971
6972         expm1l: Don't override undeclared system function on IRIX 6.5.
6973         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6974         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6975         it exists. Set HAVE_DECL_EXPM1L.
6976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6977         HAVE_EXPM1L.
6978         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6979         HAVE_EXPM1L.
6980         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6981
6982 2012-03-07  Bruno Haible  <bruno@clisp.org>
6983
6984         remainderl: Don't override undeclared system function on IRIX 6.5.
6985         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6986         HAVE_REMAINDERL.
6987         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6988         declared when it exists. Set HAVE_DECL_REMAINDERL.
6989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6990         not HAVE_REMAINDERL.
6991         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6992         HAVE_REMAINDERL.
6993         * doc/posix-functions/remainderl.texi: Mention missing declaration
6994         problem.
6995
6996 2012-03-07  Bruno Haible  <bruno@clisp.org>
6997
6998         rintf: Don't override undeclared system function on IRIX 6.5.
6999         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7000         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7001         exists. Set HAVE_DECL_RINTF.
7002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7003         HAVE_RINTF.
7004         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7005         HAVE_RINTF.
7006         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7007
7008 2012-03-07  Bruno Haible  <bruno@clisp.org>
7009
7010         roundl: Avoid compilation error on AIX.
7011         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7012         AIX 5.2..7.1.
7013
7014 2012-03-07  Bruno Haible  <bruno@clisp.org>
7015
7016         roundl: Don't override undeclared system function on IRIX 6.5.
7017         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7018         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7019         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7020         * modules/roundl (configure.ac): For replacement code, test
7021         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7022         (Depends-on): Update conditions.
7023         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7024
7025 2012-03-07  Bruno Haible  <bruno@clisp.org>
7026
7027         roundf: Don't override undeclared system function on IRIX 6.5.
7028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7029         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7030         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7031         * modules/roundf (configure.ac): For replacement code, test
7032         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7033         (Depends-on): Update conditions.
7034         * modules/roundf-ieee (Depends-on): Update conditions.
7035         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7036
7037 2012-03-07  Bruno Haible  <bruno@clisp.org>
7038
7039         round: Don't override undeclared system function on IRIX 6.5.
7040         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7041         argument.
7042         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7043         also when it is not declared. Set HAVE_ROUND. For replacement code,
7044         test HAVE_ROUND, not HAVE_DECL_ROUND.
7045         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7046         not HAVE_DECL_ROUND.
7047         (Depends-on): Update conditions.
7048         * modules/round-ieee (Depends-on): Update conditions.
7049         * doc/posix-functions/round.texi: Mention the IRIX problem.
7050
7051 2012-03-07  Bruno Haible  <bruno@clisp.org>
7052
7053         copysignf: Don't override undeclared system function on IRIX 6.5.
7054         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7055         HAVE_COPYSIGNF.
7056         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7057         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7059         not HAVE_COPYSIGNF.
7060         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7061         HAVE_COPYSIGNF.
7062         * doc/posix-functions/copysignf.texi: Mention missing declaration
7063         problem.
7064
7065 2012-03-07  Jim Meyering  <meyering@redhat.com>
7066
7067         readtokens: add tests
7068         * modules/readtokens-tests: New file.
7069         * tests/test-readtokens.c: New file.
7070
7071 2012-03-07  Jim Meyering  <meyering@redhat.com>
7072
7073         quotearg: the module must now include quote.h
7074         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7075         So must the module.
7076         * modules/quotearg (Files): Add quote.h.
7077
7078 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7079
7080         readtokens: avoid core dumps with unusual calling patterns
7081         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7082         * lib/readtokens.c: Include limits.h.
7083         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7084         (readtoken): Don't cache the delimiters; the cache code was buggy
7085         if !delim && saved_delim, or if the new n_delim differs from the old.
7086         Also, it wasn't thread-safe.
7087
7088 2012-03-07  Bruno Haible  <bruno@clisp.org>
7089
7090         quote: Adhere to common module description layout.
7091         * modules/quote (Makefile.am): Add back empty section.
7092
7093 2012-03-06  Akim Demaille  <demaille@gostai.com>
7094
7095         quote: fuse into quotearg
7096         This patch is made for the benefit of Bison.
7097         quote does not leave the choice of the quoting style to the user.
7098         quoting_style provides poor customizability, yet quoting_options,
7099         which is very rich, is hidden inside quotearg.c.  So in order to
7100         allow quote customization, move its implementation to quotearg.c.
7101         * lib/quote.c: Remove.
7102         * modules/quote: Adjust.
7103         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7104         warning: provide all the members of literal structs.
7105         (quote_quoting_options): New.
7106         (quote, quote_n): Import implementation from quote.c.
7107         * lib/quote.h: Import the comments from quote.c.
7108         (quote_quoting_options): New.
7109
7110 2012-03-06  Bruno Haible  <bruno@clisp.org>
7111
7112         Tests for module 'expm1l-ieee'.
7113         * modules/expm1l-ieee-tests: New file.
7114         * tests/test-expm1l-ieee.c: New file.
7115
7116         New module 'expm1l-ieee'.
7117         * modules/expm1l-ieee: New file.
7118
7119         Tests for module 'expm1f-ieee'.
7120         * modules/expm1f-ieee-tests: New file.
7121         * tests/test-expm1f-ieee.c: New file.
7122
7123         New module 'expm1f-ieee'.
7124         * modules/expm1f-ieee: New file.
7125
7126         Tests for module 'expm1-ieee'.
7127         * modules/expm1-ieee-tests: New file.
7128         * tests/test-expm1-ieee.c: New file.
7129         * tests/test-expm1-ieee.h: New file.
7130
7131         New module 'expm1-ieee'.
7132         * modules/expm1-ieee: New file.
7133         * m4/expm1-ieee.m4: New file.
7134         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7135         whether expm1 works with a minus zero argument. Replace it if not.
7136         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7138         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7139         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7140         (Depends-on): Update conditions.
7141         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7142         AIX problem.
7143
7144 2012-03-06  Bruno Haible  <bruno@clisp.org>
7145
7146         Work around expm1f bug on IRIX 6.5.
7147         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7148         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7149         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7150         not work.
7151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7152         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7153         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7154         (Depends-on): Update conditions.
7155         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7156
7157 2012-03-06  Bruno Haible  <bruno@clisp.org>
7158
7159         Tests for module 'expm1l'.
7160         * modules/expm1l-tests: New file.
7161         * tests/test-expm1l.c: New file.
7162
7163         New module 'expm1l'.
7164         * lib/math.in.h (expm1l): New declaration.
7165         * lib/expm1l.c: New file.
7166         * m4/expm1l.m4: New file.
7167         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7169         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7170         * modules/expm1l: New file.
7171         * tests/test-math-c++.cc: Check the declaration of expm1l.
7172         * doc/posix-functions/expm1l.texi: Mention the new module.
7173
7174 2012-03-06  Bruno Haible  <bruno@clisp.org>
7175
7176         Tests for module 'expm1f'.
7177         * modules/expm1f-tests: New file.
7178         * tests/test-expm1f.c: New file.
7179
7180         New module 'expm1f'.
7181         * lib/math.in.h (expm1f): New declaration.
7182         * lib/expm1f.c: New file.
7183         * m4/expm1f.m4: New file.
7184         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7186         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7187         * modules/expm1f: New file.
7188         * tests/test-math-c++.cc: Check the declaration of expm1f.
7189         * doc/posix-functions/expm1f.texi: Mention the new module.
7190
7191 2012-03-06  Bruno Haible  <bruno@clisp.org>
7192
7193         Tests for module 'expm1'.
7194         * modules/expm1-tests: New file.
7195         * tests/test-expm1.c: New file.
7196         * tests/test-expm1.h: New file.
7197
7198         New module 'expm1'.
7199         * lib/math.in.h (expm1): New declaration.
7200         * lib/expm1.c: New file.
7201         * m4/expm1.m4: New file.
7202         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7204         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7205         * modules/expm1: New file.
7206         * tests/test-math-c++.cc: Check the declaration of expm1.
7207         * doc/posix-functions/expm1.texi: Mention the new module.
7208
7209 2012-03-06  Bruno Haible  <bruno@clisp.org>
7210
7211         math: Ensure declarations of math functions.
7212         * modules/acosf (Depends-on): Add 'extensions'.
7213         * modules/asinf (Depends-on): Likewise.
7214         * modules/atan2f (Depends-on): Likewise.
7215         * modules/atanf (Depends-on): Likewise.
7216         * modules/cbrt (Depends-on): Likewise.
7217         * modules/cbrtf (Depends-on): Likewise.
7218         * modules/cbrtl (Depends-on): Likewise.
7219         * modules/copysignf (Depends-on): Likewise.
7220         * modules/copysignl (Depends-on): Likewise.
7221         * modules/cosf (Depends-on): Likewise.
7222         * modules/coshf (Depends-on): Likewise.
7223         * modules/expf (Depends-on): Likewise.
7224         * modules/fabsf (Depends-on): Likewise.
7225         * modules/fabsl (Depends-on): Likewise.
7226         * modules/fmaf (Depends-on): Likewise.
7227         * modules/fmal (Depends-on): Likewise.
7228         * modules/fmodf (Depends-on): Likewise.
7229         * modules/fmodl (Depends-on): Likewise.
7230         * modules/frexpf (Depends-on): Likewise.
7231         * modules/frexpl (Depends-on): Likewise.
7232         * modules/hypot (Depends-on): Likewise.
7233         * modules/hypotf (Depends-on): Likewise.
7234         * modules/hypotl (Depends-on): Likewise.
7235         * modules/ldexpf (Depends-on): Likewise.
7236         * modules/ldexpl (Depends-on): Likewise.
7237         * modules/log10f (Depends-on): Likewise.
7238         * modules/log10l (Depends-on): Likewise.
7239         * modules/log1p (Depends-on): Likewise.
7240         * modules/logb (Depends-on): Likewise.
7241         * modules/logf (Depends-on): Likewise.
7242         * modules/modff (Depends-on): Likewise.
7243         * modules/modfl (Depends-on): Likewise.
7244         * modules/powf (Depends-on): Likewise.
7245         * modules/remainderf (Depends-on): Likewise.
7246         * modules/remainderl (Depends-on): Likewise.
7247         * modules/rintf (Depends-on): Likewise.
7248         * modules/rintl (Depends-on): Likewise.
7249         * modules/sinf (Depends-on): Likewise.
7250         * modules/sinhf (Depends-on): Likewise.
7251         * modules/sqrtf (Depends-on): Likewise.
7252         * modules/tanf (Depends-on): Likewise.
7253         * modules/tanhf (Depends-on): Likewise.
7254         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7255         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7256         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7257         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7258         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7259         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7260         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7261         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7262         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7263         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7264         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7265         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7266         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7267         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7268         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7269         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7270         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7271         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7272         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7273         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7274         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7275         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7276         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7277         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7279         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7280         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7281         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7282         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7283         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7284         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7285         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7286         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7287         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7288         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7289         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7290         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7291         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7292         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7293         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7294         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7295
7296 2012-03-06  Bruno Haible  <bruno@clisp.org>
7297
7298         math: Update module names in warnings.
7299         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7300         tanl): Use specific module name in warn-on-use warning.
7301
7302 2012-03-06  Bruno Haible  <bruno@clisp.org>
7303
7304         expl: Simplify computation.
7305         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7306
7307 2012-03-05  Bruno Haible  <bruno@clisp.org>
7308
7309         exp* tests: More tests.
7310         * tests/test-exp.h: New file.
7311         * tests/test-exp.c: Include <float.h> and test-exp.h.
7312         (main): Invoke test_function.
7313         * tests/test-expf.c: Include <float.h> and test-exp.h.
7314         (main): Invoke test_function.
7315         * tests/test-expl.c: Include <float.h> and test-exp.h.
7316         (main): Invoke test_function.
7317         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7318         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7319         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7320         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7321         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7322         (Depends-on): Add 'float'.
7323         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7324
7325         expl: Fix precision of computed result.
7326         * lib/expl.c: Completely rewritten.
7327         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7328         (Maintainer): Add me.
7329         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7330
7331 2012-03-05  Bruno Haible  <bruno@clisp.org>
7332
7333         cbrt* tests: More tests.
7334         * tests/test-cbrt.h: New file.
7335         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7336         (main): Invoke test_function.
7337         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7338         (main): Invoke test_function.
7339         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7340         (main): Invoke test_function.
7341         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7342         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7343         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7344         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7345         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7346         (Depends-on): Add 'float'.
7347         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7348
7349 2012-03-05  Bruno Haible  <bruno@clisp.org>
7350
7351         hypot* tests: More tests.
7352         * tests/test-hypot.h: New file, partially extracted from
7353         tests/test-hypotl.c.
7354         * tests/test-hypot.c: Include test-hypot.h.
7355         (main): Invoke test_function.
7356         * tests/test-hypotf.c: Include test-hypot.h.
7357         (main): Invoke test_function.
7358         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7359         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7360         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7361         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7362         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7363         tests/randomf.c.
7364         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7365         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7366         tests/randoml.c.
7367         (Depends-on): Add 'fpucw', 'float'.
7368         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7369
7370 2012-03-05  Bruno Haible  <bruno@clisp.org>
7371
7372         fpucw: Doc about FreeBSD.
7373         * lib/fpucw.h: Mention FreeBSD in comments.
7374
7375 2012-03-04  Bruno Haible  <bruno@clisp.org>
7376
7377         sqrt* tests: More tests.
7378         * tests/test-sqrt.h: New file.
7379         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7380         (main): Invoke test_function.
7381         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7382         (main): Invoke test_function.
7383         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7384         (main): Invoke test_function.
7385         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7386         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7387         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7388         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7389         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7390         (Depends-on): Add 'float'.
7391         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7392
7393 2012-03-04  Bruno Haible  <bruno@clisp.org>
7394
7395         remainder* tests: More tests.
7396         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7397         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7398         (main): Invoke test_function.
7399         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7400         (main): Invoke test_function.
7401         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7402         (main): Invoke test_function.
7403         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7404         tests/randomd.c.
7405         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7406         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7407         tests/randomf.c.
7408         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7409         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7410         tests/randoml.c.
7411         (Depends-on): Add 'float'.
7412         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7413
7414 2012-03-04  Bruno Haible  <bruno@clisp.org>
7415
7416         remainder, remainderf, remainderl: Fix computation for large quotients.
7417         * lib/remainder.c: Completely rewritten.
7418         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7419         USE_FLOAT.
7420         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7421         USE_LONG_DOUBLE.
7422         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7423         isnand, isinf. Remove round, fma.
7424         * modules/remainderf (Files): Add lib/remainder.c.
7425         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7426         Remove roundf, fmaf.
7427         * modules/remainderl (Files): Add lib/remainder.c.
7428         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7429         isinf. Remove roundl, fmal.
7430         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7431         REMAINDER_LIBM.
7432         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7433         REMAINDERF_LIBM.
7434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7435         REMAINDERL_LIBM.
7436
7437 2012-03-04  Bruno Haible  <bruno@clisp.org>
7438
7439         fmod* tests: More tests.
7440         * tests/test-fmod.h (my_ldexp): New function.
7441         (test_function): Reduce amount of random numbers to test. Add tests
7442         of very large quotients x / y.
7443         * tests/test-fmod.c (MAX_EXP): New macro.
7444         * tests/test-fmodf.c (MAX_EXP): Likewise.
7445         * tests/test-fmodl.c (MAX_EXP): Likewise.
7446
7447 2012-03-04  Bruno Haible  <bruno@clisp.org>
7448
7449         fmod, fmodl: Fix computation for large quotients x / y.
7450         * lib/fmod.c: Completely rewritten.
7451         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7452         USE_LONG_DOUBLE.
7453         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7454         isnand. Remove fma.
7455         * modules/fmodl (Files): Add lib/fmod.c.
7456         (Depends-on): Add float, isfinite, signbit, fabsl,
7457         frexpl, ldexpl, isnanl. Remove fma.
7458         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7459         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7460
7461 2012-03-03  Bruno Haible  <bruno@clisp.org>
7462
7463         fmod* tests: More tests.
7464         * tests/test-fmod.h: New file.
7465         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7466         (main): Invoke test_function.
7467         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7468         (main): Invoke test_function.
7469         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7470         (main): Invoke test_function.
7471         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7472         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7473         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7474         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7475         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7476         (Depends-on): Add 'float'.
7477         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7478
7479 2012-03-03  Bruno Haible  <bruno@clisp.org>
7480
7481         rint* tests: More tests.
7482         * tests/test-rint.h: New file, partially extracted from
7483         tests/test-rintl.c.
7484         * tests/test-rint.c: Include test-rint.h.
7485         (main): Invoke test_function.
7486         * tests/test-rintf.c: Include test-rint.h.
7487         (main): Invoke test_function.
7488         * tests/test-rintl.c: Include test-rint.h.
7489         (main): Invoke test_function.
7490         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7491         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7492         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7493         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7494         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7495         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7496
7497 2012-03-03  Bruno Haible  <bruno@clisp.org>
7498
7499         modf* tests: More tests.
7500         * tests/test-modf.h: New file.
7501         * tests/test-modf.c: Include <float.h> and test-modf.h.
7502         (main): Invoke test_function.
7503         * tests/test-modff.c: Include <float.h> and test-modf.h.
7504         (main): Invoke test_function.
7505         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7506         (main): Invoke test_function.
7507         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7508         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7509         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7510         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7511         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7512         (Depends-on): Add 'float'.
7513         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7514
7515 2012-03-03  Bruno Haible  <bruno@clisp.org>
7516
7517         fabs* tests: More tests.
7518         * tests/test-fabs.h: New file, partially extracted from
7519         tests/test-fabsl.c.
7520         * tests/test-fabs.c (RANDOM): New macro.
7521         * tests/test-fabsf.c (RANDOM): New macro.
7522         * tests/test-fabsl.c (RANDOM): New macro.
7523         * modules/fabs-tests (Files): Add tests/randomd.c.
7524         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7525         * modules/fabsf-tests (Files): Add tests/randomf.c.
7526         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7527         * modules/fabsl-tests (Files): Add tests/randoml.c.
7528         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7529
7530 2012-03-03  Bruno Haible  <bruno@clisp.org>
7531
7532         ldexp* tests: More tests.
7533         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7534         * tests/test-ldexp.c (RANDOM): New macro.
7535         * tests/test-ldexpf.c (RANDOM): New macro.
7536         * tests/test-ldexpl.c (RANDOM): New macro.
7537         * modules/ldexp-tests (Files): Add tests/randomd.c.
7538         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7539         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7540         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7541         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7542         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7543
7544 2012-03-03  Bruno Haible  <bruno@clisp.org>
7545
7546         frexp* tests: More tests.
7547         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7548         * tests/test-frexp.c (RANDOM): New macro.
7549         * tests/test-frexpf.c (RANDOM): New macro.
7550         * tests/test-frexpl.c (RANDOM): New macro.
7551         * modules/frexp-tests (Files): Add tests/randomd.c.
7552         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7553         * modules/frexpf-tests (Files): Add tests/randomf.c.
7554         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7555         * modules/frexpl-tests (Files): Add tests/randoml.c.
7556         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7557
7558 2012-03-03  Bruno Haible  <bruno@clisp.org>
7559
7560         Support for pseudo-random numbers in tests.
7561         * tests/randomf.c: New file.
7562         * tests/randomd.c: New file.
7563         * tests/randoml.c: New file.
7564         * tests/macros.h (randomf, randomd, randoml): New declarations.
7565
7566 2012-03-03  Bruno Haible  <bruno@clisp.org>
7567
7568         frexp* tests: Refactor.
7569         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7570         * tests/test-frexp.c: Include and use it.
7571         * tests/test-frexpf.c: Likewise.
7572         * tests/test-frexpl.c: Likewise.
7573         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7574         * modules/frexpf-tests (Files): Likewise.
7575         * modules/frexpl-tests (Files): Likewise.
7576
7577 2012-03-02  Jim Meyering  <meyering@redhat.com>
7578
7579         maint: don't specify XZ_OPT=-9ev in dist-related rule
7580         Using xz's -9 option is warranted only if you have a very large
7581         tarball (see xz's documentation for the sizes vs. presets), and
7582         requires 64MiB of memory at decompression time.
7583         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7584         Automake's default of just "-e" is fine.  Override on a
7585         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7586
7587 2012-03-01  Eric Blake  <eblake@redhat.com>
7588
7589         maint.mk: allow announcement for non-gnulib project
7590         * maint.mk (announcement): Skip gnulib version if not used.
7591
7592 2012-03-01  Jim Meyering  <meyering@redhat.com>
7593
7594         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7595         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7596         envvar settings cannot interfere.  Otherwise, setting envvars like
7597         prohibit=foo require=bar, etc. would cause spurious test failures.
7598
7599 2012-03-01  Eric Blake  <eblake@redhat.com>
7600
7601         maint.mk: add per-line exclusions to prohibitions
7602         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7603         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7604         (sc_const_long_option): Use it.
7605
7606 2012-03-01  Bruno Haible  <bruno@clisp.org>
7607
7608         Tests for module 'expl-ieee'.
7609         * modules/expl-ieee-tests: New file.
7610         * tests/test-expl-ieee.c: New file.
7611
7612         New module 'expl-ieee'.
7613         * modules/expl-ieee: New file.
7614
7615         Tests for module 'exp-ieee'.
7616         * modules/exp-ieee-tests: New file.
7617         * tests/test-exp-ieee.c: New file.
7618
7619         New module 'exp-ieee'.
7620         * modules/exp-ieee: New file.
7621
7622         Tests for module 'expf-ieee'.
7623         * modules/expf-ieee-tests: New file.
7624         * tests/test-expf-ieee.c: New file.
7625         * tests/test-exp-ieee.h: New file.
7626
7627         New module 'expf-ieee'.
7628         * modules/expf-ieee: New file.
7629
7630 2012-02-29  Bruno Haible  <bruno@clisp.org>
7631
7632         cbrtl-ieee: Work around test failure on IRIX 6.5.
7633         * m4/cbrtl-ieee.m4: New file.
7634         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7635         test whether cbrtl works with a minus zero argument. Replace it if not.
7636         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7638         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7639         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7640         (Depends-on): Update conditions.
7641         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7642         m4/signbit.m4.
7643         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7644         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7645         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7646
7647         Tests for module 'cbrtl-ieee'.
7648         * modules/cbrtl-ieee-tests: New file.
7649         * tests/test-cbrtl-ieee.c: New file.
7650
7651         New module 'cbrtl-ieee'.
7652         * modules/cbrtl-ieee: New file.
7653
7654         Tests for module 'cbrt-ieee'.
7655         * modules/cbrt-ieee-tests: New file.
7656         * tests/test-cbrt-ieee.c: New file.
7657
7658         New module 'cbrt-ieee'.
7659         * modules/cbrt-ieee: New file.
7660
7661         Tests for module 'cbrtf-ieee'.
7662         * modules/cbrtf-ieee-tests: New file.
7663         * tests/test-cbrtf-ieee.c: New file.
7664         * tests/test-cbrt-ieee.h: New file.
7665
7666         New module 'cbrtf-ieee'.
7667         * modules/cbrtf-ieee: New file.
7668
7669 2012-02-29  Bruno Haible  <bruno@clisp.org>
7670
7671         cbrtf: Work around bug in IRIX 6.5 system function.
7672         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7673         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7674         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7675         work.
7676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7677         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7678         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7679         (Depends-on): Update conditions.
7680         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7681
7682 2012-02-29  Bruno Haible  <bruno@clisp.org>
7683
7684         Tests for module 'cbrtl'.
7685         * modules/cbrtl-tests: New file.
7686         * tests/test-cbrtl.c: New file.
7687
7688         New module 'cbrtl'.
7689         * lib/math.in.h (cbrtl): New declaration.
7690         * lib/cbrtl.c: New file.
7691         * m4/cbrtl.m4: New file.
7692         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7694         HAVE_DECL_CBRTL.
7695         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7696         HAVE_DECL_CBRTL.
7697         * modules/cbrtl: New file.
7698         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7699         * doc/posix-functions/cbrtl.texi: Mention the new module.
7700
7701 2012-02-29  Bruno Haible  <bruno@clisp.org>
7702
7703         Tests for module 'cbrtf'.
7704         * modules/cbrtf-tests: New file.
7705         * tests/test-cbrtf.c: New file.
7706
7707         New module 'cbrtf'.
7708         * lib/math.in.h (cbrtf): New declaration.
7709         * lib/cbrtf.c: New file.
7710         * m4/cbrtf.m4: New file.
7711         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7713         HAVE_DECL_CBRTF.
7714         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7715         HAVE_DECL_CBRTF.
7716         * modules/cbrtf: New file.
7717         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7718         * doc/posix-functions/cbrtf.texi: Mention the new module.
7719
7720 2012-02-29  Bruno Haible  <bruno@clisp.org>
7721
7722         cbrt: Provide replacement on MSVC and Minix.
7723         * lib/math.in.h (cbrt): New declaration.
7724         * lib/cbrt.c: New file.
7725         * m4/cbrt.m4: New file.
7726         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7728         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7729         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7730         (Depends-on): Add dependencies.
7731         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7732         * tests/test-math-c++.cc: Check the declaration of cbrt.
7733         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7734         replacement.
7735
7736 2012-02-29  Bruno Haible  <bruno@clisp.org>
7737
7738         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7739         * m4/hypotl-ieee.m4: New file.
7740         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7741         test whether hypotl works with mixed NaN and Infinity arguments.
7742         Replace it if not.
7743         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7745         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7746         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7747         (Depends-on): Update conditions.
7748         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7749         (Depends-on): Add hypot-ieee.
7750         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7751         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7752
7753         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7754         * m4/hypotf-ieee.m4: New file.
7755         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7756         test whether hypotf works with mixed NaN and Infinity arguments.
7757         Replace it if not.
7758         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7759         (Depends-on): Add hypot-ieee.
7760         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7761         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7762
7763         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7764         * lib/math.in.h (hypot): New declaration.
7765         * lib/hypot.c: New file.
7766         * m4/hypot-ieee.m4: New file.
7767         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7768         whether hypot works with mixed NaN and Infinity arguments. Replace it
7769         if not.
7770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7771         REPLACE_HYPOT.
7772         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7773         * modules/hypot (Files): Add lib/hypot.c.
7774         (Depends-on): Add dependencies.
7775         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7776         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7777         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7778         * tests/test-math-c++.cc: Check the declaration of hypot.
7779         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7780
7781         Tests for module 'hypotl-ieee'.
7782         * modules/hypotl-ieee-tests: New file.
7783         * tests/test-hypotl-ieee.c: New file.
7784
7785         New module 'hypotl-ieee'.
7786         * modules/hypotl-ieee: New file.
7787
7788         Tests for module 'hypot-ieee'.
7789         * modules/hypot-ieee-tests: New file.
7790         * tests/test-hypot-ieee.c: New file.
7791
7792         New module 'hypot-ieee'.
7793         * modules/hypot-ieee: New file.
7794
7795         Tests for module 'hypotf-ieee'.
7796         * modules/hypotf-ieee-tests: New file.
7797         * tests/test-hypotf-ieee.c: New file.
7798         * tests/test-hypot-ieee.h: New file.
7799
7800         New module 'hypotf-ieee'.
7801         * modules/hypotf-ieee: New file.
7802
7803 2012-02-29  Bruno Haible  <bruno@clisp.org>
7804
7805         Remove unused variables.
7806         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7807         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7808         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7809         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7810
7811 2012-02-29  Eric Blake  <eblake@redhat.com>
7812
7813         termios: fix pid_t always, not just for tcgetsid
7814         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7815         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7816         just when building tcgetsid.
7817
7818 2012-02-29  Bruno Haible  <bruno@clisp.org>
7819
7820         Tests for module 'hypotl'.
7821         * modules/hypotl-tests: New file.
7822         * tests/test-hypotl.c: New file.
7823
7824         New module 'hypotl'.
7825         * lib/math.in.h (hypotl): New declaration.
7826         * lib/hypotl.c: New file.
7827         * m4/hypotl.m4: New file.
7828         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7830         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7831         * modules/hypotl: New file.
7832         * tests/test-math-c++.cc: Check the hypotl declaration.
7833         * doc/posix-functions/hypotl.texi: Mention the new module.
7834
7835 2012-02-29  Eric Blake  <eblake@redhat.com>
7836
7837         tcgetsid: fix cygwin header bug
7838         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7839
7840         docs: update cygwin progress
7841         * doc/posix-functions/llround.texi (llround): Added in cygwin
7842         1.7.8.
7843         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7844         * doc/glibc-functions/program_invocation_name.texi
7845         (program_invocation_name): Likewise.
7846         * doc/glibc-functions/program_invocation_short_name.texi
7847         (program_invocation_short_name): Likewise.
7848         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7849         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7850         Likewise.
7851         * doc/posix-functions/pthread_spin_destroy.texi
7852         (pthread_spin_destroy): Added in cygwin 1.7.10.
7853         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7854         Likewise.
7855         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7856         Likewise.
7857         * doc/posix-functions/pthread_spin_trylock.texi
7858         (pthread_spin_trylock): Likewise.
7859         * doc/posix-functions/pthread_spin_unlock.texi
7860         (pthread_spin_unlock): Likewise.
7861         * doc/posix-functions/pthread_setschedprio.texi
7862         (pthread_setschedprio): Likewise.
7863         * doc/posix-functions/pthread_attr_getstack.texi
7864         (pthread_attr_getstack): Likewise.
7865         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7866         (pthread_attr_getstackaddr): Likewise.
7867         * doc/glibc-functions/pthread_getattr_np.texi
7868         (pthread_getattr_np): Likewise.
7869         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7870         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7871         * doc/posix-functions/clock_settime.texi (clock_settime):
7872         Likewise.
7873         * doc/posix-functions/pthread_attr_getguardsize.texi
7874         (pthread_attr_getguardsize): Likewise.
7875         * doc/posix-functions/pthread_attr_setguardsize.texi
7876         (pthread_attr_setguardsize): Likewise.
7877         * doc/posix-functions/pthread_attr_setstack.texi
7878         (pthread_attr_setstack): Likewise.
7879         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7880         (pthread_attr_setstackaddr): Likewise.
7881         * doc/posix-functions/clock_getcpuclockid.texi
7882         (clock_getcpuclockid): Likewise.
7883         * doc/posix-functions/pthread_getcpuclockid.texi
7884         (pthread_getcpuclockid): Likewise.
7885         * doc/glibc-functions/error.texi (error): Likewise.
7886         * doc/glibc-functions/error_at_line.texi (error_at_line):
7887         Likewise.
7888         * doc/glibc-functions/error_message_count.texi
7889         (error_message_count): Likewise.
7890         * doc/glibc-functions/error_one_per_line.texi
7891         (error_one_per_line): Likewise.
7892         * doc/glibc-functions/error_print_progname.texi
7893         (error_print_progname): Likewise.
7894         * doc/posix-functions/pthread_condattr_getclock.texi
7895         (pthread_condattr_getclock): Likewise.
7896         * doc/posix-functions/pthread_condattr_setclock.texi
7897         (pthread_condattr_setclock): Likewise.
7898         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7899         Likewise.
7900         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7901         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7902         * doc/glibc-functions/get_current_dir_name.texi
7903         (get_current_dir_name): Likewise.
7904         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7905         Likewise.
7906         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7907         wrong return type.
7908         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7909         1.7.11.
7910
7911 2012-02-29  Bruno Haible  <bruno@clisp.org>
7912
7913         Tests for module 'hypotf'.
7914         * modules/hypotf-tests: New file.
7915         * tests/test-hypotf.c: New file.
7916
7917         New module 'hypotf'.
7918         * lib/math.in.h (hypotf): New declaration.
7919         * lib/hypotf.c: New file.
7920         * m4/hypotf.m4: New file.
7921         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7923         REPLACE_HYPOTF.
7924         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7925         REPLACE_HYPOTF.
7926         * modules/hypotf: New file.
7927         * tests/test-math-c++.cc: Check the hypotf declaration.
7928         * doc/posix-functions/hypotf.texi: Mention the new module.
7929
7930         hypot: Prepare for hypotf module.
7931         * m4/hypot.m4: New file.
7932         * modules/hypot (Files): Add m4/hypot.m4.
7933         (configure.ac): Invoke gl_FUNC_HYPOT.
7934
7935 2012-02-29  Bruno Haible  <bruno@clisp.org>
7936
7937         hypot tests: More tests.
7938         * tests/test-hypot.c: Include <float.h>.
7939         (main): Add tests about overflow and underflow.
7940
7941 2012-02-29  Bruno Haible  <bruno@clisp.org>
7942
7943         math code: Add comments.
7944         * lib/acosl.c: Add comment about related glibc source files.
7945         * lib/asinl.c: Likewise.
7946         * lib/atanl.c: Likewise.
7947         * lib/expl.c: Likewise.
7948         * lib/logl.c: Likewise.
7949         * lib/sincosl.c: Likewise.
7950         * lib/sinl.c: Likewise.
7951         * lib/tanl.c: Likewise.
7952         * lib/trigl.c: Likewise.
7953         * lib/cosl.c: Likewise. Fix comments.
7954
7955 2012-02-28  Bruno Haible  <bruno@clisp.org>
7956
7957         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7958         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7959         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7960         HUGE_VALL are defined.
7961         (numeric_equald): Renamed from numeric_equal.
7962         (numeric_equalf, numeric_equall): New functions.
7963         (main): Check also HUGE_VALF, HUGE_VALL.
7964         * modules/math-tests (Files): Add tests/macros.h.
7965         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7966         HUGE_VALL.
7967
7968 2012-02-28  Bruno Haible  <bruno@clisp.org>
7969
7970         doc: Move ISO C11 feature notes into POSIX chapters.
7971         * doc/posix-functions/aligned_alloc.texi: Renamed from
7972         doc/glibc-functions/aligned_alloc.texi.
7973         * doc/posix-functions/quick_exit.texi: Renamed from
7974         doc/glibc-functions/quick_exit.texi.
7975         * doc/posix-headers/uchar.texi: Renamed from
7976         doc/glibc-headers/uchar.texi.
7977         * doc/posix-functions/c16rtomb.texi: Renamed from
7978         doc/glibc-functions/c16rtomb.texi.
7979         * doc/posix-functions/c32rtomb.texi: Renamed from
7980         doc/glibc-functions/c32rtomb.texi.
7981         * doc/posix-functions/mbrtoc16.texi: Renamed from
7982         doc/glibc-functions/mbrtoc16.texi.
7983         * doc/posix-functions/mbrtoc32.texi: Renamed from
7984         doc/glibc-functions/mbrtoc32.texi.
7985         * doc/gnulib.texi: Update.
7986         (Glibc uchar.h): Remove section.
7987         Suggested by Eric Blake.
7988
7989 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7990
7991         stdnoreturn: port to MSVC better
7992         MSVC standard headers use __declspec(noreturn), so #define noreturn
7993         to empty on that platform.  Reported by Bruno Haible in
7994         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7995         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7996         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7997
7998 2012-02-28  Bruno Haible  <bruno@clisp.org>
7999
8000         doc: Mention new glibc headers and functions.
8001         * doc/glibc-headers/uchar.texi: New file.
8002         * doc/glibc-functions/aligned_alloc.texi: New file.
8003         * doc/glibc-functions/c16rtomb.texi: New file.
8004         * doc/glibc-functions/c32rtomb.texi: New file.
8005         * doc/glibc-functions/clock_adjtime.texi: New file.
8006         * doc/glibc-functions/fanotify_init.texi: New file.
8007         * doc/glibc-functions/fanotify_mark.texi: New file.
8008         * doc/glibc-functions/inet6_opt_append.texi: New file.
8009         * doc/glibc-functions/inet6_opt_find.texi: New file.
8010         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8011         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8012         * doc/glibc-functions/inet6_opt_init.texi: New file.
8013         * doc/glibc-functions/inet6_opt_next.texi: New file.
8014         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8015         * doc/glibc-functions/inet6_rth_add.texi: New file.
8016         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8017         * doc/glibc-functions/inet6_rth_init.texi: New file.
8018         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8019         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8020         * doc/glibc-functions/inet6_rth_space.texi: New file.
8021         * doc/glibc-functions/login.texi: New file.
8022         * doc/glibc-functions/mbrtoc16.texi: New file.
8023         * doc/glibc-functions/mbrtoc32.texi: New file.
8024         * doc/glibc-functions/name_to_handle_at.texi: New file.
8025         * doc/glibc-functions/ntp_gettimex.texi: New file.
8026         * doc/glibc-functions/open_by_handle_at.texi: New file.
8027         * doc/glibc-functions/prlimit.texi: New file.
8028         * doc/glibc-functions/process_vm_readv.texi: New file.
8029         * doc/glibc-functions/process_vm_writev.texi: New file.
8030         * doc/glibc-functions/recvmmsg.texi: New file.
8031         * doc/glibc-functions/scandirat.texi: New file.
8032         * doc/glibc-functions/sendmmsg.texi: New file.
8033         * doc/glibc-functions/setns.texi: New file.
8034         * doc/glibc-functions/timespec_get.texi: New file.
8035         * doc/gnulib.texi: Include them.
8036         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8037         sections.
8038         Reported by Eric Blake.
8039
8040 2012-02-28  Bruno Haible  <bruno@clisp.org>
8041
8042         Avoid compilation errors with MSVC option -fp:strict.
8043         * lib/floor.c: Use MSVC specific pragma fenv_access.
8044         * lib/ceil.c: Likewise.
8045         * lib/trunc.c: Likewise.
8046         * lib/round.c: Likewise.
8047         * lib/rint.c: Likewise.
8048         * lib/fma.c: Likewise.
8049         * lib/integer_length.c: Likewise.
8050         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8052         * tests/test-floor2.c: Likewise.
8053         * tests/test-floorf2.c: Likewise.
8054         * tests/test-ceil2.c: Likewise.
8055         * tests/test-ceilf2.c: Likewise.
8056         * tests/test-trunc2.c: Likewise.
8057         * tests/test-truncf2.c: Likewise.
8058         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8059
8060 2012-02-27  Bruno Haible  <bruno@clisp.org>
8061
8062         Tests for module 'sqrtl-ieee'.
8063         * modules/sqrtl-ieee-tests: New file.
8064         * tests/test-sqrtl-ieee.c: New file.
8065
8066         New module 'sqrtl-ieee'.
8067         * modules/sqrtl-ieee: New file.
8068
8069         Tests for module 'sqrt-ieee'.
8070         * modules/sqrt-ieee-tests: New file.
8071         * tests/test-sqrt-ieee.c: New file.
8072
8073         New module 'sqrt-ieee'.
8074         * modules/sqrt-ieee: New file.
8075
8076         Tests for module 'sqrtf-ieee'.
8077         * modules/sqrtf-ieee-tests: New file.
8078         * tests/test-sqrtf-ieee.c: New file.
8079         * tests/test-sqrt-ieee.h: New file.
8080
8081         New module 'sqrtf-ieee'.
8082         * modules/sqrtf-ieee: New file.
8083
8084 2012-02-27  Bruno Haible  <bruno@clisp.org>
8085
8086         remainderl-ieee: Work around test failure on OSF/1.
8087         * m4/remainderl-ieee.m4: New file.
8088         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8089         present, test whether remainderl works with a zero second argument.
8090         Replace it if not.
8091         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8093         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8094         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8095         (Depends-on): Update conditions.
8096         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8097         (Depends-on): Add remainder-ieee.
8098         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8099         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8100         module.
8101
8102         remainderf-ieee: Work around test failure on OSF/1.
8103         * m4/remainderf-ieee.m4: New file.
8104         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8105         present, test whether remainderf works with a zero second argument.
8106         Replace it if not.
8107         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8109         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8110         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8111         (Depends-on): Update conditions.
8112         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8113         (Depends-on): Add remainder-ieee.
8114         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8115         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8116         module.
8117
8118         remainder-ieee: Work around test failure on OSF/1.
8119         * m4/remainder-ieee.m4: New file.
8120         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8121         present, test whether remainder works with a zero second argument.
8122         Replace it if not.
8123         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8125         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8126         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8127         (Depends-on): Update dependencies.
8128         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8129         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8130         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8131
8132         Tests for module 'remainderl-ieee'.
8133         * modules/remainderl-ieee-tests: New file.
8134         * tests/test-remainderl-ieee.c: New file.
8135
8136         New module 'remainderl-ieee'.
8137         * modules/remainderl-ieee: New file.
8138
8139         Tests for module 'remainder-ieee'.
8140         * modules/remainder-ieee-tests: New file.
8141         * tests/test-remainder-ieee.c: New file.
8142
8143         New module 'remainder-ieee'.
8144         * modules/remainder-ieee: New file.
8145
8146         Tests for module 'remainderf-ieee'.
8147         * modules/remainderf-ieee-tests: New file.
8148         * tests/test-remainderf-ieee.c: New file.
8149         * tests/test-remainder-ieee.h: New file.
8150
8151         New module 'remainderf-ieee'.
8152         * modules/remainderf-ieee: New file.
8153
8154 2012-02-27  Bruno Haible  <bruno@clisp.org>
8155
8156         modff, modfl: Fix configure syntax error.
8157         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8158         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8159
8160 2012-02-27  Bruno Haible  <bruno@clisp.org>
8161
8162         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8163         * m4/fmodl-ieee.m4: New file.
8164         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8165         whether fmodl works with zero arguments. Replace it if not.
8166         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8167         (Depends-on): Add fmod-ieee.
8168         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8169         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8170
8171         fmodf-ieee: Work around test failure on OSF/1.
8172         * m4/fmodf-ieee.m4: New file.
8173         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8174         whether fmodf works with zero arguments. Replace it if not.
8175         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8177         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8178         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8179         (Depends-on): Update dependencies.
8180         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8181         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8182         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8183
8184         fmodf-ieee: Work around test failure on MSVC 9.
8185         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8186         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8187
8188         fmod-ieee: Work around test failures on OSF/1, mingw.
8189         * m4/fmod-ieee.m4: New file.
8190         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8191         whether fmod works with zero arguments. Replace it if not.
8192         * lib/math.in.h (fmod): New declaration.
8193         * lib/fmod.c: New file.
8194         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8196         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8197         * modules/fmod (Files): Add lib/fmod.c.
8198         (Depends-on): Add math, isinf, trunc, fma.
8199         (configure.ac): Arrange to compile lib/fmod.c if needed.
8200         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8201         m4/signbit.m4.
8202         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8203         * tests/test-math-c++.cc: Check the declaration of fmod.
8204         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8205
8206         fmodl-ieee: Fix test failures.
8207         * lib/fmodl.c (fmodl): Treat Inf specially.
8208         * modules/fmodl (Depends-on): Add isinf.
8209
8210         Tests for module 'fmodl-ieee'.
8211         * modules/fmodl-ieee-tests: New file.
8212         * tests/test-fmodl-ieee.c: New file.
8213
8214         New module 'fmodl-ieee'.
8215         * modules/fmodl-ieee: New file.
8216
8217         Tests for module 'fmod-ieee'.
8218         * modules/fmod-ieee-tests: New file.
8219         * tests/test-fmod-ieee.c: New file.
8220
8221         New module 'fmod-ieee'.
8222         * modules/fmod-ieee: New file.
8223
8224         Tests for module 'fmodf-ieee'.
8225         * modules/fmodf-ieee-tests: New file.
8226         * tests/test-fmodf-ieee.c: New file.
8227         * tests/test-fmod-ieee.h: New file.
8228
8229         New module 'fmodf-ieee'.
8230         * modules/fmodf-ieee: New file.
8231
8232 2012-02-27  Bruno Haible  <bruno@clisp.org>
8233
8234         Tests for module 'rintl-ieee'.
8235         * modules/rintl-ieee-tests: New file.
8236         * tests/test-rintl-ieee.c: New file.
8237
8238         New module 'rintl-ieee'.
8239         * modules/rintl-ieee: New file.
8240
8241         Tests for module 'rint-ieee'.
8242         * modules/rint-ieee-tests: New file.
8243         * tests/test-rint-ieee.c: New file.
8244
8245         New module 'rint-ieee'.
8246         * modules/rint-ieee: New file.
8247
8248         Tests for module 'rintf-ieee'.
8249         * modules/rintf-ieee-tests: New file.
8250         * tests/test-rintf-ieee.c: New file.
8251         * tests/test-rint-ieee.h: New file.
8252
8253         New module 'rintf-ieee'.
8254         * modules/rintf-ieee: New file.
8255
8256 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8257
8258         regex: re_search etc. should return -2 when memory exhausted
8259         This bug was uncovered when testing 'grep'.  Without the fix,
8260         re_search and friends return -1 when memory is exhausted, but -1
8261         means no match, and this causes grep to falsely report no-match
8262         instead of memory-exhaustion.  See
8263         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8264         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8265         trouble; this can occur if re_search_internal ran out of memory.
8266
8267 2012-02-26  Bruno Haible  <bruno@clisp.org>
8268
8269         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8270         * m4/modfl-ieee.m4: New file.
8271         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8272         whether modfl works with Inf. Replace it if not.
8273         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8275         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8276         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8277         (Depends-on): Update dependencies.
8278         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8279         m4/signbit.m4.
8280         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8281         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8282
8283         modfl-ieee: Fix dependencies.
8284         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8285
8286         modfl-ieee: Fix test failures.
8287         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8288         * modules/modfl (Depends-on): Add isfinite, isinf.
8289
8290         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8291         * m4/modff-ieee.m4: New file.
8292         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8293         whether modff works with NaN and Inf. Replace it if not.
8294         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8296         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8297         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8298         (Depends-on): Update dependencies.
8299         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8300         m4/signbit.m4.
8301         (Depends-on): Add modf-ieee.
8302         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8303         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8304
8305         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8306         * m4/modf-ieee.m4: New file.
8307         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8308         whether modf works with NaN and Inf. Replace it if not.
8309         * lib/math.in.h (modf): New declaration.
8310         * lib/modf.c: New file.
8311         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8313         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8314         * modules/modf (Files): Add lib/modf.c.
8315         (Depends-on): Add math, isfinite, trunc, isinf.
8316         (configure.ac): Addrange to compile lib/modf.c if needed.
8317         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8318         m4/signbit.m4.
8319         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8320         * tests/test-math-c++.cc: Check the declaration of modf.
8321         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8322
8323         Tests for module 'modfl-ieee'.
8324         * modules/modfl-ieee-tests: New file.
8325         * tests/test-modfl-ieee.c: New file.
8326
8327         New module 'modfl-ieee'.
8328         * modules/modfl-ieee: New file.
8329
8330         Tests for module 'modf-ieee'.
8331         * modules/modf-ieee-tests: New file.
8332         * tests/test-modf-ieee.c: New file.
8333
8334         New module 'modf-ieee'.
8335         * modules/modf-ieee: New file.
8336
8337         Tests for module 'modff-ieee'.
8338         * modules/modff-ieee-tests: New file.
8339         * tests/test-modff-ieee.c: New file.
8340         * tests/test-modf-ieee.h: New file.
8341
8342         New module 'modff-ieee'.
8343         * modules/modff-ieee: New file.
8344
8345 2012-02-26  Bruno Haible  <bruno@clisp.org>
8346
8347         Tests for module 'fabsl-ieee'.
8348         * modules/fabsl-ieee-tests: New file.
8349         * tests/test-fabsl-ieee.c: New file.
8350
8351         New module 'fabsl-ieee'.
8352         * modules/fabsl-ieee: New file.
8353
8354         Tests for module 'fabs-ieee'.
8355         * modules/fabs-ieee-tests: New file.
8356         * tests/test-fabs-ieee.c: New file.
8357
8358         New module 'fabs-ieee'.
8359         * modules/fabs-ieee: New file.
8360
8361         Tests for module 'fabsf-ieee'.
8362         * modules/fabsf-ieee-tests: New file.
8363         * tests/test-fabsf-ieee.c: New file.
8364         * tests/test-fabs-ieee.h: New file.
8365
8366         New module 'fabsf-ieee'.
8367         * modules/fabsf-ieee: New file.
8368
8369 2012-02-26  Bruno Haible  <bruno@clisp.org>
8370
8371         Tests for module 'fmal-ieee'.
8372         * modules/fmal-ieee-tests: New file.
8373         * tests/test-fmal-ieee.c: New file.
8374
8375         New module 'fmal-ieee'.
8376         * modules/fmal-ieee: New file.
8377
8378         Tests for module 'fma-ieee'.
8379         * modules/fma-ieee-tests: New file.
8380         * tests/test-fma-ieee.c: New file.
8381
8382         New module 'fma-ieee'.
8383         * modules/fma-ieee: New file.
8384
8385         Tests for module 'fmaf-ieee'.
8386         * modules/fmaf-ieee-tests: New file.
8387         * tests/test-fmaf-ieee.c: New file.
8388         * tests/test-fma-ieee.h: New file.
8389
8390         New module 'fmaf-ieee'.
8391         * modules/fmaf-ieee: New file.
8392
8393 2012-02-26  Bruno Haible  <bruno@clisp.org>
8394
8395         Tests for module 'ldexpl-ieee'.
8396         * modules/ldexpl-ieee-tests: New file.
8397         * tests/test-ldexpl-ieee.c: New file.
8398
8399         New module 'ldexpl-ieee'.
8400         * modules/ldexpl-ieee: New file.
8401
8402         Tests for module 'ldexp-ieee'.
8403         * modules/ldexp-ieee-tests: New file.
8404         * tests/test-ldexp-ieee.c: New file.
8405
8406         New module 'ldexp-ieee'.
8407         * modules/ldexp-ieee: New file.
8408
8409         Tests for module 'ldexpf-ieee'.
8410         * modules/ldexpf-ieee-tests: New file.
8411         * tests/test-ldexpf-ieee.c: New file.
8412         * tests/test-ldexp-ieee.h: New file.
8413
8414         New module 'ldexpf-ieee'.
8415         * modules/ldexpf-ieee: New file.
8416
8417 2012-02-26  Bruno Haible  <bruno@clisp.org>
8418
8419         Refactor frexp*-ieee tests.
8420         * tests/test-frexp-ieee.h: New file.
8421         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8422         (main): Just call test_function.
8423         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8424         (main): Just call test_function.
8425         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8426         (main): Just call test_function.
8427         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8428         * modules/frexp-ieee-tests (Files): Likewise.
8429         * modules/frexpl-ieee-tests (Files): Likewise.
8430
8431         Tests for module 'frexpl-ieee'.
8432         * modules/frexpl-ieee-tests: New file.
8433         * tests/test-frexpl-ieee.c: New file.
8434
8435         New module 'frexpl-ieee'.
8436         * modules/frexpl-ieee: New file.
8437
8438         Tests for module 'frexp-ieee'.
8439         * modules/frexp-ieee-tests: New file.
8440         * tests/test-frexp-ieee.c: New file.
8441
8442         New module 'frexp-ieee'.
8443         * modules/frexp-ieee: New file.
8444
8445         Tests for module 'frexpf-ieee'.
8446         * modules/frexpf-ieee-tests: New file.
8447         * tests/test-frexpf-ieee.c: New file.
8448
8449         New module 'frexpf-ieee'.
8450         * modules/frexpf-ieee: New file.
8451
8452 2012-02-26  Bruno Haible  <bruno@clisp.org>
8453
8454         roundl-ieee tests: More tests.
8455         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8456         (main): Add tests for [MX] shaded specification in POSIX.
8457         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8458         (Depends-on): Add isnanl-nolibm.
8459
8460         round-ieee tests: More tests.
8461         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8462         (main): Add tests for [MX] shaded specification in POSIX.
8463         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8464         (Depends-on): Add isnand-nolibm.
8465
8466         roundf-ieee tests: More tests.
8467         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8468         (main): Add tests for [MX] shaded specification in POSIX.
8469         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8470         (Depends-on): Add isnanf-nolibm.
8471
8472         truncl-ieee tests: More tests.
8473         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8474         (main): Add tests for [MX] shaded specification in POSIX.
8475         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8476         (Depends-on): Add isnanl-nolibm.
8477
8478         trunc-ieee tests: More tests.
8479         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8480         (main): Add tests for [MX] shaded specification in POSIX.
8481         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8482         (Depends-on): Add isnand-nolibm.
8483
8484         truncf-ieee tests: More tests.
8485         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8486         (main): Add tests for [MX] shaded specification in POSIX.
8487         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8488         (Depends-on): Add isnanf-nolibm.
8489
8490         ceill-ieee tests: More tests.
8491         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8492         (main): Add tests for [MX] shaded specification in POSIX.
8493         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8494         (Depends-on): Add isnanl-nolibm.
8495
8496         ceil-ieee tests: More tests.
8497         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8498         (main): Add tests for [MX] shaded specification in POSIX.
8499         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8500         (Depends-on): Add isnand-nolibm.
8501
8502         ceilf-ieee tests: More tests.
8503         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8504         (main): Add tests for [MX] shaded specification in POSIX.
8505         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8506         (Depends-on): Add isnanf-nolibm.
8507
8508         floorl-ieee tests: More tests.
8509         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8510         (main): Add tests for [MX] shaded specification in POSIX.
8511         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8512         (Depends-on): Add isnanl-nolibm.
8513
8514         floor-ieee tests: More tests.
8515         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8516         (main): Add tests for [MX] shaded specification in POSIX.
8517         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8518         (Depends-on): Add isnand-nolibm.
8519
8520         floorf-ieee tests: More tests.
8521         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8522         (main): Add tests for [MX] shaded specification in POSIX.
8523         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8524         (Depends-on): Add isnanf-nolibm.
8525
8526 2012-02-26  Bruno Haible  <bruno@clisp.org>
8527
8528         fpieee: More comments.
8529         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8530
8531 2012-02-25  Bruno Haible  <bruno@clisp.org>
8532
8533         Tests for module 'log10l'.
8534         * modules/log10l-tests: New file.
8535         * tests/test-log10l.c: New file.
8536         * tests/test-math-c++.cc: Check the declaration of log10l.
8537
8538         New module 'log10l'.
8539         * lib/math.in.h (log10l): New declaration.
8540         * lib/log10l.c: New file.
8541         * m4/log10l.m4: New file.
8542         * modules/log10l: New file.
8543         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8545         HAVE_DECL_LOG10L.
8546         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8547         HAVE_DECL_LOG10L.
8548         * doc/posix-functions/log10l.texi: Mention the new module.
8549
8550 2012-02-25  Bruno Haible  <bruno@clisp.org>
8551
8552         fmodl, remainder*: Avoid wrong results due to rounding errors.
8553         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8554         expected bounds.
8555         * lib/remainderf.c (remainderf): Likewise.
8556         * lib/remainder.c (remainder): Likewise.
8557         * lib/remainderl.c (remainderl): Likewise.
8558
8559 2012-02-25  Bruno Haible  <bruno@clisp.org>
8560
8561         Tests for module 'remainderl'.
8562         * modules/remainderl-tests: New file.
8563         * tests/test-remainderl.c: New file.
8564         * tests/test-math-c++.cc: Check the declaration of remainderl.
8565
8566         New module 'remainderl'.
8567         * lib/math.in.h (remainderl): New declaration.
8568         * lib/remainderl.c: New file.
8569         * m4/remainderl.m4: New file.
8570         * modules/remainderl: New file.
8571         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8573         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8574         HAVE_REMAINDERL.
8575         * doc/posix-functions/remainderl.texi: Mention the new module.
8576
8577 2012-02-25  Bruno Haible  <bruno@clisp.org>
8578
8579         Tests for module 'remainderf'.
8580         * modules/remainderf-tests: New file.
8581         * tests/test-remainderf.c: New file.
8582         * tests/test-math-c++.cc: Check the declaration of remainderf.
8583
8584         New module 'remainderf'.
8585         * lib/math.in.h (remainderf): New declaration.
8586         * lib/remainderf.c: New file.
8587         * m4/remainderf.m4: New file.
8588         * modules/remainderf: New file.
8589         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8591         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8592         HAVE_REMAINDERF.
8593         * doc/posix-functions/remainderf.texi: Mention the new module.
8594
8595 2012-02-25  Bruno Haible  <bruno@clisp.org>
8596
8597         remainder: Support for MSVC.
8598         * lib/math.in.h (remainder): New declaration.
8599         * lib/remainder.c: New file.
8600         * m4/remainder.m4: New file.
8601         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8602         (Depends-on): Add math, round, fma.
8603         (configure.ac): Use results of gl_FUNC_REMAINDER.
8604         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8606         HAVE_DECL_REMAINDER.
8607         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8608         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8609         * tests/test-math-c++.cc: Check the declaration of remainder.
8610         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8611         problems are fixed.
8612
8613 2012-02-25  Bruno Haible  <bruno@clisp.org>
8614
8615         Tests for module 'fmodl'.
8616         * modules/fmodl-tests: New file.
8617         * tests/test-fmodl.c: New file.
8618         * tests/test-math-c++.cc: Check the declaration of fmodl.
8619
8620         New module 'fmodl'.
8621         * lib/math.in.h (fmodl): New declaration.
8622         * lib/fmodl.c: New file.
8623         * m4/fmodl.m4: New file.
8624         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8626         REPLACE_FMODL.
8627         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8628         REPLACE_FMODL.
8629         * modules/fmodl: New file.
8630         * doc/posix-functions/fmodl.texi: Mention the new module.
8631
8632 2012-02-25  Bruno Haible  <bruno@clisp.org>
8633
8634         Tests for module 'modfl'.
8635         * modules/modfl-tests: New file.
8636         * tests/test-modfl.c: New file.
8637         * tests/test-math-c++.cc: Check the declaration of modfl.
8638
8639         New module 'modfl'.
8640         * lib/math.in.h (modfl): New declaration.
8641         * lib/modfl.c: New file.
8642         * m4/modfl.m4: New file.
8643         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8645         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8646         * modules/modfl: New file.
8647         * doc/posix-functions/modfl.texi: Mention the new module.
8648
8649 2012-02-25  Bruno Haible  <bruno@clisp.org>
8650
8651         Tests for module 'fabsl'.
8652         * modules/fabsl-tests: New file.
8653         * tests/test-fabsl.c: New file.
8654         * tests/test-math-c++.cc: Check the declaration of fabsl.
8655
8656         New module 'fabsl'.
8657         * lib/math.in.h (fabsl): New declaration.
8658         * lib/fabsl.c: New file.
8659         * m4/fabsl.m4: New file.
8660         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8662         REPLACE_FABSL.
8663         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8664         REPLACE_FABSL.
8665         * modules/fabsl: New file.
8666         * doc/posix-functions/fabsl.texi: Mention the new module.
8667
8668 2012-02-25  Bruno Haible  <bruno@clisp.org>
8669
8670         fabs tests: More tests.
8671         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8672         (zero): New variable.
8673         (main): Add tests for signed zero.
8674         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8675
8676         fabsf tests: More tests.
8677         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8678         (zero): New variable.
8679         (main): Add tests for signed zero.
8680         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8681
8682 2012-02-24  Bruno Haible  <bruno@clisp.org>
8683
8684         atanl: Provide function definition on MSVC.
8685         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8686         function pointer.
8687         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8688
8689 2012-02-24  Bruno Haible  <bruno@clisp.org>
8690
8691         acosl: Provide function definition on MSVC.
8692         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8693         function pointer.
8694         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8695
8696 2012-02-24  Bruno Haible  <bruno@clisp.org>
8697
8698         asinl: Provide function definition on MSVC.
8699         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8700         function pointer.
8701         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8702
8703 2012-02-24  Bruno Haible  <bruno@clisp.org>
8704
8705         tanl: Provide function definition on MSVC.
8706         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8707         function pointer.
8708         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8709
8710 2012-02-24  Bruno Haible  <bruno@clisp.org>
8711
8712         cosl: Provide function definition on MSVC.
8713         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8714         function pointer.
8715         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8716
8717 2012-02-24  Bruno Haible  <bruno@clisp.org>
8718
8719         sinl: Provide function definition on MSVC.
8720         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8721         function pointer.
8722         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8723
8724 2012-02-24  Bruno Haible  <bruno@clisp.org>
8725
8726         logl: Provide function definition on MSVC.
8727         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8728         function pointer.
8729         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8730
8731 2012-02-24  Bruno Haible  <bruno@clisp.org>
8732
8733         expl: Provide function definition on MSVC.
8734         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8735         function pointer.
8736         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8737
8738 2012-02-24  Bruno Haible  <bruno@clisp.org>
8739
8740         sqrtl: Provide function definition on MSVC.
8741         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8742         a function pointer.
8743         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8744
8745 2012-02-24  Bruno Haible  <bruno@clisp.org>
8746
8747         ceill: Provide function definition on MSVC.
8748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8749         used as a function pointer.
8750         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8751
8752 2012-02-24  Bruno Haible  <bruno@clisp.org>
8753
8754         floorl: Provide function definition on MSVC.
8755         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8756         used as a function pointer.
8757         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8758
8759 2012-02-24  Bruno Haible  <bruno@clisp.org>
8760
8761         ceilf: Provide function definition on MSVC.
8762         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8763         used as a function pointer.
8764         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8765
8766 2012-02-24  Bruno Haible  <bruno@clisp.org>
8767
8768         floorf: Provide function definition on MSVC.
8769         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8770         used as a function pointer.
8771         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8772
8773 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         stdnoreturn: new module
8776         This implements a replacement for C11's <stdnoreturn.h>.
8777         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8778         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8779         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8780         * tests/test-stdnoreturn.c: New files.
8781
8782 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8783
8784         regex: fix false multibyte matches in some regular expressions
8785         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8786         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8787         * lib/regex_internal.c (re_string_skip_chars):
8788         Fix miscomputation of remain_len that may cause incomplete
8789         multi-byte character and false match.
8790
8791 2012-02-24  Jim Meyering  <meyering@redhat.com>
8792
8793         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8794         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8795         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8796         Remove now-unnecessary str''cmp obfuscation.
8797         Suggested by Akim Demaille.
8798
8799 2012-02-24  Bruno Haible  <bruno@clisp.org>
8800
8801         streq: Rename macro.
8802         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8803         * NEWS: Mention the change.
8804         * lib/mbrtowc.c (mbrtowc): Update.
8805         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8806         * lib/wcwidth.c (wcwidth): Update.
8807         Suggested by Akim Demaille and Jim Meyering.
8808
8809 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8810
8811         regex: fix typo in definition of MIN
8812         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8813         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8814
8815 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8816             Bruno Haible  <bruno@clisp.org>
8817
8818         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8819         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8820         entries into a stack-allocated buffer directly.
8821         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8822
8823 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8824             Bruno Haible  <bruno@clisp.org>
8825
8826         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8827
8828          - There were several instances of this pattern:
8829
8830              for (;;) {
8831                n = acl (f, GETACLCNT, 0, NULL);
8832                [ allocate an array A of size N ]
8833                if (acl (f, GETACL, n, a) == n)
8834                  break;
8835              }
8836
8837            This loop might never terminate if some other process is constantly
8838            manipulating the file's ACL.  The loop should be rewritten to
8839            terminate.
8840
8841          - The acl (... GETACLNT ...) call is merely an optimization; its value
8842            is merely a hint as to how big to make the array.  A better
8843            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8844            and just guess a reasonably-big size, growing the size and trying
8845            again if it's not large enough.  This guarantees termination, and
8846            saves a system call.
8847
8848         * lib/acl-internal.h: Include <limits.h>.
8849         (MIN, SIZE_MAX): New macros.
8850         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8851         a stack-allocated buffer, and use malloc if it does not fit. Don't
8852         use GETACLCNT.
8853         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8854
8855 2012-02-19  Bruno Haible  <bruno@clisp.org>
8856
8857         acl: Fix endless loop on Solaris with vxfs.
8858         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8859         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8860         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8861         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8862         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8863         Reported by Bill Jones in
8864         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8865
8866 2012-02-19  Bruno Haible  <bruno@clisp.org>
8867
8868         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8869         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8870         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8871         that this function returns 0 in some more cases.
8872
8873 2012-02-19  Bruno Haible  <bruno@clisp.org>
8874
8875         acl: Update doc references.
8876         * doc/acl-resources.txt: Update links to Solaris documentation.
8877
8878 2012-02-19  Bruno Haible  <bruno@clisp.org>
8879
8880         Fix test failure in many locales on Solaris 11.
8881         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8882         'tr' arguments.
8883         * tests/test-pipe-filter-ii1.c (main): Likewise.
8884         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8885         expressions in the C locale.
8886         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8887         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8888
8889 2012-02-19  Bruno Haible  <bruno@clisp.org>
8890
8891         gnulib-tool: Improve usage message.
8892         * gnulib-tool (func_usage): Move doc of --help and --version to the
8893         section "Operation modes".
8894
8895 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8896
8897         README-release: make it easier to execute commands
8898         * top/README-release: break commands out on to separate lines.
8899
8900 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8901
8902         GNUmakefile: simplify detection of unconfigured trees
8903         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8904         whether the tree make is being run from is already configured or
8905         not.  Related simplifications.
8906
8907 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8908
8909         * gnulib-tool (func_usage): Document --help and --version.
8910
8911 2012-02-11  Jim Meyering  <meyering@redhat.com>
8912
8913         bootstrap: don't exit 0 upon gnulib-tool failure
8914         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8915         its exit status, not 0.
8916
8917 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8918
8919         README-release: various improvements
8920         * top/README-release: Give a command to push changes for the
8921         release.  Add "distcheck" to list of other pre-release checks.
8922         Fix instance of "make stable" which should be "make TYPE".
8923
8924 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         maint: replace FSF snail-mail addresses with URLs
8927         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8928         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8929         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8930         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8931         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8932         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8933         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8934         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8935         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8936         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8937         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8938         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8939         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8940         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8941         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8942         * lib/glthread/thread.c, lib/glthread/thread.h:
8943         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8944         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8945         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8946         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8947         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8948         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8949         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8950         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8951         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8952         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8953         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8954         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8955         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8956         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8957         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8958         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8959         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8960         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8961         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8962         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8963         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8964         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8965         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8966         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8967         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8968         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8969         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8970         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8971         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8972         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8973         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8974         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8975         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8976         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8977         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8978         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8979         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8980         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8981         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8982         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8983         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8984         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8985         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8986         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8987         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8988         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8989         * tests/test-poll.c, tests/test-quotearg-simple.c:
8990         * tests/test-quotearg.c, tests/test-quotearg.h:
8991         * tests/test-round-ieee.c, tests/test-round1.c:
8992         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8993         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8994         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8995         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8996         * tests/test-strerror.c, tests/test-strerror_r.c:
8997         * tests/test-strsignal.c, tests/test-strverscmp.c:
8998         * tests/test-xmemdup0.c:
8999         Replace FSF snail mail addresses with URLs, as per GNU coding
9000         standards.  See glibc bug
9001         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9002
9003 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9004
9005         README-release: capitalize a word and split a line
9006         * top/README-release: Fix punctuation and spacing.
9007
9008 2012-02-08  Akim Demaille  <demaille@gostai.com>
9009
9010         fatal-signal: use C prototypes (with explicit void).
9011         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9012         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9013
9014 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         regex: spelling fix
9017         * lib/regexec.c: spelling fix
9018
9019         regex: rely on stdint.h for SIZE_MAX
9020         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9021
9022 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         regex: merge glibc changes
9025
9026         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9027         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9028         (init_word_char): Work even if bitset words are not exactly 32 or
9029         64 bits wide.  Don't assume there are no padding bits.
9030         * lib/regex.c [_LIBC]: Do not include <config.h>.
9031         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9032         and -Wtype-limits.
9033         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9034         needless disagreement with glibc.  All uses changed.  Define it to
9035         1 only if _GNU_SOURCE, to match glibc.
9036         (_REG_RM_NAME): Remove; no longer needed, since the names in
9037         question are now all protected by __USE_GNU.
9038         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9039         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9040         * lib/regex_internal.h (MIN): New macro.
9041
9042         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9043         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9044
9045         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9046         * lib/regex_internal.c (re_string_fetch_byte_case):
9047         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9048         is miscompiled, and it turns out it is because of an incorrect
9049         attribute on re_string_fetch_byte_case.  Unlike
9050         re_string_peek_byte_case, this one is really not pure, it modifies
9051         memory (increments pstr->cur_idx), and with the pure attribute GCC
9052         assumed it doesn't and it cached the presumed value of
9053         regexp->cur_idx in a variable across the
9054          for (;; ++i)
9055            {
9056              if (i >= BRACKET_NAME_BUF_SIZE)
9057                return REG_EBRACK;
9058              if (token->type == OP_OPEN_CHAR_CLASS)
9059                ch = re_string_fetch_byte_case (regexp);
9060              else
9061                ch = re_string_fetch_byte (regexp);
9062              if (re_string_eoi(regexp))
9063                return REG_EBRACK;
9064              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9065                break;
9066              elem->opr.name[i] = ch;
9067            }
9068
9069         2011-11-29 Andreas Schwab <schwab@redhat.com>
9070         * lib/regcomp.c (build_equiv_class):
9071         Fix access after end of search string in regex matcher.
9072
9073         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9074         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9075
9076         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9077         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9078
9079         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9080         * lib/regcomp.c (parse_branch, parse_sub_exp):
9081         More regex memory leak fixes and tests.
9082         (parse_sub_exp, parse_bracket_exp):
9083         Fix memory leak for some invalid regular expressions.
9084
9085         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9086         * lib/regex_internal.c, lib/regexec.c:
9087         Fix unnecessary overallocation due to incomplete character.  When
9088         incomplete characters are found at the end of a string the code
9089         ran amok and allocated lots of memory.  Stricter limits are now in
9090         place.
9091
9092         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9093         * lib/regex.h: Update documentation.
9094
9095         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9096         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9097
9098         2010-05-05 Andreas Schwab <schwab@redhat.com>
9099         * lib/regexec.c (find_collation_sequence_value):
9100         Fix lookup of collation sequence value during regexp matching.
9101
9102         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9103         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9104
9105         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9106         * lib/regex.h: Cleanup namespace.
9107
9108         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9109         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9110
9111         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9112         * lib/regex_internal.h: Prevent some declarations and definitions
9113         to be seen when used in tests.
9114
9115         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9116         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9117         __libc_lock_* macros if not _LIBC.
9118         (struct re_dfa_t): Add lock.
9119
9120 2012-02-07  Eric Blake  <eblake@redhat.com>
9121
9122         maint.mk: also prohibit lower-case @var@
9123         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9124         lower case, like @top_srcdir@.
9125
9126 2012-02-04  Eric Blake  <eblake@redhat.com>
9127
9128         canonicalize: avoid uninitialized memory use
9129         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9130         random '/' left in dest.
9131         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9132
9133 2012-02-04  Bruno Haible  <bruno@clisp.org>
9134
9135         isatty: Fix test failure of ptsname_r on native Windows.
9136         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9137         and don't set errno.
9138         (isatty): Test first whether fd is valid. Set errno when returning 0.
9139
9140 2012-02-04  Bruno Haible  <bruno@clisp.org>
9141
9142         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9143         * tests/test-spawn-pipe-main.c: Include progname.h.
9144         (main): Invoke set_program_name.
9145         * modules/spawn-pipe-tests (Depends-on): Add progname.
9146
9147         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9148         * tests/test-nonblocking-socket-main.c: Include progname.h.
9149         (main): Invoke set_program_name.
9150         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9151
9152         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9153         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9154         (main): Invoke set_program_name.
9155         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9156
9157 2012-02-04  Eric Blake  <eblake@redhat.com>
9158
9159         canonicalize-lgpl: fix // handling
9160         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9161
9162         canonicalize: fix // handling
9163         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9164         /// to //, since only // is special.
9165
9166 2012-02-04  Bruno Haible  <bruno@clisp.org>
9167
9168         ioctl: Fix test failure on native Windows.
9169         * lib/ioctl.c: Include msvc-nothrow.h.
9170         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9171
9172 2012-02-04  Bruno Haible  <bruno@clisp.org>
9173
9174         fsync: Avoid test failure on native Windows.
9175         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9176         read-only.
9177
9178 2012-02-04  Bruno Haible  <bruno@clisp.org>
9179
9180         sys_select: Avoid syntax error on OpenBSD 5.0.
9181         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9182         currently being included, just include the system's <sys/select.h>.
9183
9184 2012-02-04  Bruno Haible  <bruno@clisp.org>
9185
9186         sys_select: Avoid syntax error on OpenBSD 5.0.
9187         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9188         <sys/select.h>, not before.
9189         Reported by Jiri B <jirib@devio.us>.
9190
9191 2012-02-04  Bruno Haible  <bruno@clisp.org>
9192
9193         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9194         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9195         global variables.
9196         * tests/test-get-rusage-data.c (main): Likewise.
9197         Reported by Jim Meyering.
9198
9199 2012-02-04  Bruno Haible  <bruno@clisp.org>
9200
9201         stdioext: Fix last commit.
9202         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9203
9204 2012-02-03  Bruno Haible  <bruno@clisp.org>
9205
9206         stdioext: Add tentative support for Plan9.
9207         * lib/stdio-impl.h: Include <errno.h>.
9208         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9209         * lib/freadable.c (freadable): Likewise.
9210         * lib/fwritable.c (fwritable): Likewise.
9211         * lib/fbufmode.c (fbufmode): Likewise.
9212         * lib/freading.c (freading): Likewise.
9213         * lib/fwriting.c (fwriting): Likewise.
9214         * lib/freadptr.c (freadptr): Likewise.
9215         * lib/freadseek.c (freadptrinc): Likewise.
9216         * lib/freadahead.c (freadahead): Likewise.
9217         * lib/fpurge.c (fpurge): Likewise.
9218         * lib/fseeko.c (rpl_fseeko): Likewise.
9219         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9220         Reported by Jens Staal <staal1978@gmail.com>.
9221
9222 2012-02-02  Jim Meyering  <meyering@redhat.com>
9223
9224         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9225         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9226         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9227         not even to try to add the attribute.  Instead, add a pragma to suppress
9228         the suggestion/warning.
9229
9230 2012-01-31  Karl Berry  <karl@gnu.org>
9231
9232         setstate doc: typo.
9233         * doc/posix-functions/setstate.texi (setstate): { not (.
9234
9235 2012-01-31  Bruno Haible  <bruno@clisp.org>
9236
9237         popen: Make more robust on Windows.
9238         * lib/popen.c: On native Windows, use the _popen based code even if
9239         HAVE_POPEN is set.
9240         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9241         environment variable on native Windows.
9242
9243 2012-01-30  Bruno Haible  <bruno@clisp.org>
9244
9245         pclose: Fix typo.
9246         * lib/stdio.in.h (pclose): Fix typo in warning message.
9247
9248 2012-01-30  Bruno Haible  <bruno@clisp.org>
9249
9250         doc about getlogin_r, setstate.
9251         * doc/posix-functions/getlogin_r.texi: List the incompatible
9252         declaration problem under "not fixed by gnulib".
9253         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9254         problem on Solaris 11 and other platforms.
9255
9256 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9257             Bruno Haible  <bruno@clisp.org>
9258
9259         poll tests: Make test more robust.
9260         * tests/test-poll.c: Include macros.h.
9261         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9262         return value of various I/O operations.
9263         * modules/poll-tests (Files): Add tests/macros.h.
9264
9265 2012-01-30  Bruno Haible  <bruno@clisp.org>
9266
9267         sys_stat: Fix support for mingw64 and MSVC.
9268         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9269         header files already do it.
9270         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9271         stat itself.
9272         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9273
9274 2012-01-30  Bruno Haible  <bruno@clisp.org>
9275
9276         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9278         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9279
9280 2012-01-29  Bruno Haible  <bruno@clisp.org>
9281
9282         quotearg: Fix test failure on MacOS X 10.5.
9283         * tests/test-quotearg-simple.c: Include localcharset.h.
9284         (main): If the locale encoding is not ASCII, bypass the tests of
9285         locale_quoting_style and clocale_quoting_style.
9286         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9287
9288 2012-01-29  Jim Meyering  <meyering@redhat.com>
9289
9290         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9291         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9292         detect uses of canonicalize_file_name.
9293
9294 2012-01-28  Bruno Haible  <bruno@clisp.org>
9295
9296         test-framework-sh: Fix test failure with AIX 7.1 diff.
9297         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9298         in column 1, like 'diff -c' does.
9299         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9300         whether 'diff -u' is used. Instead, test whether the output contains
9301         some '@' character.
9302
9303 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9304
9305         strtoimax: eliminate need for stdint.h, inttypes.h checks
9306         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9307         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9308         the prerequisites for a recently-introduced strtoimax test.
9309         I guess this might cause strtoimax to be replaced when not
9310         strictly necessary on older hosts, but this shouldn't introduce
9311         any bugs and it should make Emacs 'configure' faster on typical
9312         modern hosts.  Problem discovered when importing the latest gnulib
9313         to an Emacs test version.
9314         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9315
9316 2012-01-28  Bruno Haible  <bruno@clisp.org>
9317
9318         sys_time: Override 'struct timeval' on some native Windows platforms.
9319         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9320         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9321         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9322         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9323         needs to be overridden.
9324         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9325         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9326         * tests/test-sys_select.c: Check that the tv_sec member has the same
9327         size as a 'time_t'.
9328         * tests/test-sys_time.c: Likewise.
9329         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9330         is set, set also REPLACE_GETTIMEOFDAY.
9331         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9332         convert the resulting 'struct timeval' before returning.
9333         * lib/select.c: Include <sys/time.h>.
9334         (select, timeval): Undefine at the right place.
9335         * modules/select (Depends-on): Add sys_time.
9336         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9337         some Windows platforms.
9338         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9339
9340 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9341
9342         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9343         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9344         an integer.
9345         * lib/fcntl.c (dupfd): Likewise.
9346         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9347
9348 2012-01-28  Bruno Haible  <bruno@clisp.org>
9349
9350         fcntl: Avoid compilation error on native Windows.
9351         * modules/fcntl (Depends-on): Add 'close'.
9352
9353 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9354
9355         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9356         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9357         pointer to an integer.
9358         * lib/poll.c (IsConsoleHandle): Likewise.
9359         * lib/isatty.c (IsConsoleHandle): Likewise.
9360
9361 2012-01-28  Jim Meyering  <meyering@redhat.com>
9362
9363         doc: clarify README-release
9364         * top/README-release: Clarify: you should make a point to have
9365         the latest stable versions of build tools in your PATH, and the
9366         reference to buildreq is solely for its list of tool names, not
9367         for its minimal-functional version numbers.
9368         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9369
9370         maint.mk: use more readable (yet functionally equivalent) quoting
9371         It is common to quote a single quote in a single quoted string like
9372         this:  '...'\''...'.  Unless you know the idiom, that looks like
9373         gibberish, so prefer to double-quote the string when possible.
9374         Then you can use a more readable, lone single quote: "...'..."
9375         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9376         "don't" is more readable than the equivalent 'don'\''t'.
9377         (sc_cast_of_x_alloc_return_value): Likewise.
9378         (sc_cast_of_alloca_return_value): Likewise.
9379         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9380         rather than '\'':'\''.
9381
9382 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9383
9384         stdalign: relax _Alignof and tighten _Alignas test
9385         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9386         as it was too strict: alignof must divide offsetof, but it need
9387         not equal offsetof.  Inspired by Joseph S. Myers's comment
9388         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9389         Conversely, tighten the _Alignas test a bit, as the resulting
9390         alignment must be exactly 8.
9391
9392 2012-01-27  Bruno Haible  <bruno@clisp.org>
9393
9394         stdalign: Document the last change.
9395         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9396
9397 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9398
9399         stdalign: check that alignof and offsetof are consistent
9400         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9401         Problem reported for gnulib by Richard W.M. Jones in
9402         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9403
9404 2012-01-27  Jim Meyering  <meyering@redhat.com>
9405
9406         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9407         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9408         convert a sequence with gaps to the minimal containing range.
9409         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9410         * tests/test-update-copyright.sh: Test for this.
9411         The FSF confirmed it is ok to do this, assuming there is at
9412         least one significant change per year in the affected range:
9413         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9414
9415 2012-01-26  Bruno Haible  <bruno@clisp.org>
9416
9417         pipe2: refine doc about thread-safety
9418         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9419         multithread-safety problem.
9420         * doc/glibc-functions/accept4.texi: Likewise.
9421
9422 2012-01-26  Bruno Haible  <bruno@clisp.org>
9423
9424         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9425         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9426         In the test program, include <fcntl.h>, for O_RDONLY.
9427
9428 2012-01-26  Eric Blake  <eblake@redhat.com>
9429
9430         pipe2: document lack of thread-safety in replacement
9431         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9432         issue in replacement.
9433         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9434         Based on a report by Eric Wong.
9435
9436 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9437             Bruno Haible  <bruno@clisp.org>
9438
9439         malloca: Avoid warnings on x86_64 mingw64.
9440         * lib/malloca.c: Include <stdint.h>.
9441         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9442         * modules/malloca (Depends-on): Add stdint.
9443         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9444
9445 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9446
9447         obstack: remove __STDC__ conditionals
9448         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9449         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9450         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9451         m4/include_next.m4 as the only gnulib-maintained places that still
9452         refer to __STDC__.
9453
9454 2012-01-24  Bruno Haible  <bruno@clisp.org>
9455
9456         havelib: Modern quoting.
9457         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9458         the recent change to the GNU coding standards.
9459
9460 2012-01-24  Bruno Haible  <bruno@clisp.org>
9461
9462         stdint: Improve support for Android.
9463         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9464         Reported by Simon Josefsson <simon@josefsson.org>.
9465
9466 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9467
9468         doc: omit trailing empty lines from INSTALL etc.
9469         * doc/Makefile (INSTALL): Omit trailing empty lines.
9470         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9471         omit trailing empty lines.  This simplifies the build procedure.
9472
9473 2012-01-23  Jim Meyering  <meyering@redhat.com>
9474
9475         tests: avoid spurious warnings about gl_sockets_startup
9476         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9477         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9478         reporting a "statement with no effect".
9479         * tests/test-accept.c (main): Mark as "(void)".
9480         * tests/test-accept4.c (main): Likewise.
9481         * tests/test-bind.c (main): Likewise.
9482         * tests/test-connect.c (main): Likewise.
9483         * tests/test-getpeername.c (main): Likewise.
9484         * tests/test-getsockname.c (main): Likewise.
9485         * tests/test-getsockopt.c (main): Likewise.
9486         * tests/test-listen.c (main): Likewise.
9487         * tests/test-recv.c (main): Likewise.
9488         * tests/test-recvfrom.c (main): Likewise.
9489         * tests/test-send.c (main): Likewise.
9490         * tests/test-sendto.c (main): Likewise.
9491         * tests/test-setsockopt.c (main): Likewise.
9492         * tests/test-shutdown.c (main): Likewise.
9493
9494 2012-01-21  Bruno Haible  <bruno@clisp.org>
9495
9496         locale-fr.m4: Fix for Android.
9497         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9498         failure of the test program on Bionic libc.
9499
9500 2012-01-21  Jim Meyering  <meyering@redhat.com>
9501
9502         bootstrap: fail when bootstrap_post_import_hook fails
9503         Otherwise, it's far too easy to miss diagnostics emitted
9504         between gnulib-tool's output and that of running configure.
9505         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9506
9507 2012-01-17  Jim Meyering  <meyering@redhat.com>
9508
9509         maint: enable sc_trailing_blank
9510         * build-aux/pmccabe.css: Remove trailing blanks.
9511         * doc/acl-cygwin.txt: Likewise.
9512         * doc/gnu-oids.texi: Likewise
9513         * cfg.mk: Enable sc_trailing_blank.
9514         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9515
9516 2012-01-17  Jim Meyering  <meyering@redhat.com>
9517
9518         maint: enable sc_prohibit_openat_without_use
9519         * cfg.mk: Enable sc_prohibit_openat_without_use.
9520         Exempt lib/selinux-at.c.
9521
9522 2012-01-17  Jim Meyering  <meyering@redhat.com>
9523
9524         maint: enable sc_prohibit_cloexec_without_use
9525         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9526         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9527
9528 2012-01-17  Jim Meyering  <meyering@redhat.com>
9529
9530         maint: enable sc_prohibit_intprops_without_use
9531         * cfg.mk: Enable sc_prohibit_intprops_without_use
9532         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9533
9534 2012-01-17  Jim Meyering  <meyering@redhat.com>
9535
9536         maint: enable sc_prohibit_hash_pjw_without_use
9537         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9538         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9539         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9540         following " (".
9541
9542 2012-01-17  Jim Meyering  <meyering@redhat.com>
9543
9544         maint: enable double-word-prohibiting rule
9545         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9546         Exempt three files.
9547
9548 2012-01-17  Jim Meyering  <meyering@redhat.com>
9549
9550         maint: remove empty lines at EOF, but excluding modules/*
9551         Apply syntax rules at home as well as abroad.  Most changes
9552         were induced by running this:
9553           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9554             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9555             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9556         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9557         Exempt modules/* and two binary files.
9558         Also exempt doc/INSTALL*, per request from Bruno Haible.
9559         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9560         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9561         * doc/Copyright/request-assign.future: Likewise.
9562         * doc/Copyright/request-disclaim.changes: Likewise.
9563         * doc/INSTALL: Likewise.
9564         * doc/INSTALL.ISO: Likewise.
9565         * doc/INSTALL.UTF-8: Likewise.
9566         * doc/acl-cygwin.txt: Likewise.
9567         * doc/acl-resources.txt: Likewise.
9568         * doc/fdl-1.2.texi: Likewise.
9569         * doc/fdl-1.3.texi: Likewise.
9570         * doc/fdl.texi: Likewise.
9571         * lib/argp-pin.c: Likewise.
9572         * lib/round.c: Likewise.
9573         * lib/unicase/u16-totitle.c: Likewise.
9574         * lib/unictype/block_test.c: Likewise.
9575         * lib/uninorm/canonical-decomposition.c: Likewise.
9576         * m4/README: Likewise.
9577         * m4/relocatable-lib.m4: Likewise.
9578         * tests/test-isnand-nolibm.c: Likewise.
9579         * tests/test-isnand.c: Likewise.
9580         * tests/uninorm/NormalizationTest.txt: Likewise.
9581
9582 2012-01-17  Jim Meyering  <meyering@redhat.com>
9583
9584         maint: add framework to run syntax-check rules against gnulib sources
9585         * cfg.mk: New file, to disable all currently-failing tests.
9586         We'll enable them one by one, as they are made to pass.
9587         * Makefile (sc_maint): New rule.
9588
9589 2012-01-21  Bruno Haible  <bruno@clisp.org>
9590
9591         stdint: Add support for Android.
9592         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9593         include the system's <stdint.h>.
9594         Reported by Simon Josefsson <simon@josefsson.org>.
9595
9596 2012-01-19  Jim Meyering  <meyering@redhat.com>
9597
9598         bootstrap: add bootstrap_post_import_hook
9599         Bison does still need something like the gnulib_mk_hook whose
9600         invocation I had to remove along with slurp in commit 767ccd40.
9601         Technically, we could get along without it, but doing so would
9602         have required living with a warning and a mandatory post-bootstrap
9603         automake rerun.
9604         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9605         (bootstrap_post_import_hook): New function.
9606         Invoke it after gnulib-tool --import and before autoreconf.
9607
9608 2012-01-18  Jim Meyering  <meyering@redhat.com>
9609
9610         gitlog-to-changelog: don't use "no_"-prefixed variable name
9611         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9612         to enable both --cluster and --no-cluster.  Change variable name,
9613         s/\$no_cluster/$cluster/, and reverse usage to match.
9614
9615         gitlog-to-changelog: use "||", not "or" in expressions
9616         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9617         expressions.
9618
9619 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9620
9621         gitlog-to-changelog: new option --no-cluster
9622         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9623         clustering of adjacent commit messages.
9624
9625 2012-01-17  Jim Meyering  <meyering@redhat.com>
9626
9627         maint: spell file systems with two words, not one
9628         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9629         two words, not one.
9630
9631 2012-01-16  Jim Meyering  <meyering@redhat.com>
9632
9633         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9634         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9635
9636 2012-01-16  Eric Blake  <eblake@redhat.com>
9637
9638         bootstrap: cater to autoconf 2.59
9639         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9640         is not available.
9641
9642         bootstrap: properly check for libtool
9643         * build-aux/bootstrap (libtoolize): Also run libtool when older
9644         usage is detected.
9645
9646 2012-01-15  Bruno Haible  <bruno@clisp.org>
9647
9648         Improve support for MSVC 9.
9649         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9650         clashes on MSVC.
9651         * lib/fcntl.in.h: Likewise.
9652         * lib/stdlib.in.h: Likewise.
9653         * lib/sys_stat.in.h: Likewise.
9654
9655 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9656
9657         gnupload: we hold the master copy of this script now
9658         For motivation and more information, see:
9659         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9660         * build-aux/gnupload: Make it clear in the heading comments that the
9661         master copy of this file is maintained by gnulib.  Since we are at
9662         it, bump its copyright year and ...
9663         ($scriptversion): ... the date in its version.
9664         ($usage): Patches and bug reports should be sent to the gnulib list,
9665         not the automake one.
9666         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9667         anymore.
9668
9669 2012-01-15  Bruno Haible  <bruno@clisp.org>
9670
9671         Fix module 'random'.
9672         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9673         initstate, setstate are declared.
9674
9675 2012-01-14  Bruno Haible  <bruno@clisp.org>
9676
9677         Tests for module 'random'.
9678         * modules/random-tests: New file.
9679         * tests/test-random.c: New file, based on tests/test-random_r.c.
9680
9681         New module 'random'.
9682         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9683         declarations.
9684         * lib/random.c: New file, based on glibc/stdlib/random.c.
9685         * m4/random.m4: New file.
9686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9687         HAVE_RANDOM.
9688         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9689         * modules/random: New file.
9690         * config/srclist.txt: Add an entry for random.c.
9691         * doc/posix-functions/random.texi: Mention the 'random' module.
9692         * doc/posix-functions/initstate.texi: Likewise.
9693         * doc/posix-functions/setstate.texi: Likewise.
9694         * doc/posix-functions/srandom.texi: Likewise.
9695
9696 2012-01-12  Bruno Haible  <bruno@clisp.org>
9697
9698         random_r: Use common idioms.
9699         * lib/random_r.c: Include <stdlib.h> first.
9700
9701         random_r: Override incompatible API on AIX, OSF/1.
9702         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9703         Override the system function if REPLACE_RANDOM_R is 1.
9704         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9705         and OSF/1, set REPLACE_RANDOM_R.
9706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9707         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9708         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9709         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9710         * doc/glibc-functions/random_r.texi: Likewise.
9711         * doc/glibc-functions/setstate_r.texi: Likewise.
9712
9713         random_r: Support for MSVC 9.
9714         * lib/random_r.c: Include stdint.h, not inttypes.h.
9715
9716 2012-01-12  Eric Blake  <eblake@redhat.com>
9717
9718         inet_ntop: guard extra work by IF_LINT
9719         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9720         better code generation when not checking for warnings.
9721         Suggested by Paul Eggert and Jim Meyering.
9722
9723         strptime: fix regression on mingw
9724         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9725         Fix regression.  Reported by Bruno Haible.
9726
9727 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9728             Bruno Haible  <bruno@clisp.org>
9729
9730         copy-file: add error-code-returning variant.
9731         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9732         (qcopy_file_preserving): New declaration.
9733         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9734         copy_file_preserving. Change return type to 'int'. Don't emit an error
9735         message here.
9736         (copy_file_preserving): New function.
9737         * tests/test-copy-file.c: Include <stdlib.h>.
9738         (main): Test qcopy_file_preserving if the environment variable
9739         NO_STDERR_OUTPUT is set.
9740         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9741         with NO_STDERR_OUTPUT
9742         * tests/test-copy-file-2.sh: Likewise.
9743
9744 2012-01-10  Bruno Haible  <bruno@clisp.org>
9745
9746         copy-file: Use 'quote' module consistently.
9747         * lib/copy-file.c (copy_file_preserving): Use quote().
9748
9749         copy-file: Refactor.
9750         * lib/copy-file.c: Include quote.h.
9751         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9752         message here.
9753         * modules/copy-file (Depends-on): Add quote.
9754
9755         acl: Export qcopy_acl.
9756         * lib/acl.h (qcopy_acl): New declaration.
9757         * lib/copy-acl.c (qcopy_acl): Make non-static.
9758
9759         acl: Rename a local variable.
9760         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9761
9762         acl: Align return values of copy_acl and qcopy_acl.
9763         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9764         maybe < -1.
9765
9766 2012-01-11  Eric Blake  <eblake@redhat.com>
9767
9768         strptime: silence gcc warnings
9769         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9770         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9771         Reported by Daniel P. Berrange.
9772
9773         inet_ntop: silence gcc warning
9774         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9775         Reported by Daniel P. Berrange.
9776
9777 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9778
9779         getloadavg test: skip the test on GNU/Linux without /proc mounted
9780         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9781         file.  When /proc is not mounted, it always fails with ENOENT.
9782         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9783         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9784
9785 2012-01-10  Bruno Haible  <bruno@clisp.org>
9786
9787         regex: Avoid link error on MSVC 9.
9788         * modules/regex (Depends-on): Add wctype.
9789
9790 2012-01-10  Bruno Haible  <bruno@clisp.org>
9791
9792         doc: Mention --with-tests option.
9793         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9794         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9795         --with-tests.
9796         Reported by Reuben Thomas.
9797
9798 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9799
9800         users.txt: order package names lexicographically.
9801         * users.txt: Order package names lexicographically.
9802
9803 2012-01-10  Jim Meyering  <meyering@redhat.com>
9804
9805         maint.mk: fix description in comment
9806         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9807
9808         ignore-value: remove deprecated ignore_ptr function
9809         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9810         * NEWS: Note this.
9811
9812 2012-01-09  Jim Meyering  <meyering@redhat.com>
9813
9814         test-init.sh: avoid a subshell
9815         * tests/test-init.sh: Remove protective subshell.
9816         Suggested by Bernhard Voelker.  While a subshell is normally
9817         required to protect against older shells (Solaris, FreeBSD) that
9818         warn about a missing program before performing redirection, the
9819         shell-selection tests performed by init.sh probably exclude any
9820         offending shell.
9821
9822 2012-01-08  Bruno Haible  <bruno@clisp.org>
9823
9824         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9825         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9826         variable.
9827
9828 2012-01-08  Bruno Haible  <bruno@clisp.org>
9829
9830         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9831         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9832         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9833         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9834         macro.
9835         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9836         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9837         * lib/spawn_faction_addopen.c: Add workaround implementation if
9838         HAVE_WORKING_POSIX_SPAWN.
9839         * modules/spawn (Makefile): Substitute
9840         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9841         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9842         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9844         (Depends-on): Update conditions.
9845         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9846         the Solaris 11 bug.
9847
9848 2012-01-08  Bruno Haible  <bruno@clisp.org>
9849
9850         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9851         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9852         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9853         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9854         macro.
9855         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9856         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9857         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9858         HAVE_WORKING_POSIX_SPAWN.
9859         * modules/spawn (Makefile): Substitute
9860         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9861         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9862         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9863         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9864         (Depends-on): Update conditions.
9865         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9866         the Solaris 11 bug.
9867
9868 2012-01-08  Bruno Haible  <bruno@clisp.org>
9869
9870         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9871         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9872         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9874         HAVE_WORKING_POSIX_SPAWN.
9875         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9876         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9878         * lib/spawn_faction_addclose.c: Add workaround implementation if
9879         HAVE_WORKING_POSIX_SPAWN.
9880         * modules/spawn (Makefile): Substitute
9881         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9882         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9883         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9885         (Depends-on): Update conditions.
9886         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9887         the Solaris 11 bug.
9888
9889 2012-01-08  Bruno Haible  <bruno@clisp.org>
9890
9891         doc: Update for Solaris 11 2011-11.
9892         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9893         * m4/printf.m4: Update comments.
9894
9895 2012-01-08  Bruno Haible  <bruno@clisp.org>
9896
9897         mktime: Avoid compilation error on Solaris 11.
9898         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9899
9900 2012-01-08  Bruno Haible  <bruno@clisp.org>
9901
9902         doc: Small fix.
9903         * doc/posix-headers/nl_types.texi: Correct platforms list.
9904
9905 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9906
9907         Add lgpl-3.0 module.
9908         * MODULES.html.sh (Support for building documentation): Add
9909         lgpl-3.0.
9910         * modules/lgpl-3.0: New file.
9911
9912 2012-01-08  Jim Meyering  <meyering@redhat.com>
9913
9914         select.c: indent with spaces, not TABs
9915         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9916
9917 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9918
9919         quotearg: do not use grave accent for left quote
9920         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9921         locale_quoting_style.
9922         (quotearg_buffer_restyled): Fix example.
9923         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9924
9925 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9926
9927         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9928         Most programs do not have translation catalogs for English and much
9929         less separate catalogs for British and American English.  Drop the
9930         suggestion to translators about these two, and provide it
9931         automatically for Unicode locales.  Like most programs, even those
9932         using American English, we use single quotation marks.  This conflicts
9933         with the American typographic convention, but works better when you
9934         cite the entire error message within double quotes.  It also tries not
9935         to clash with established practice and with what non-gnulib programs
9936         will usually do.
9937         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9938         using an UTF-8 or GB-18030 locale.  The list of other locales with
9939         quotes was provided by Bruno Haible.
9940         (quotearg_buffer_restyled): Adjust instructions to translators.
9941         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9942         text, since this would be wrong when using Unicode.
9943         * modules/quotearg: Depend on c-strcaseeq.
9944
9945 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9946
9947         quotearg: fix Wikipedia link
9948         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9949
9950 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9951
9952         Fix for mingw with MSVC9.
9953         * m4/ld-version-script.m4: Check that compiler rejects version
9954         scripts with syntax errors.  Reported by Bruno Haible
9955         <bruno@clisp.org>.
9956
9957 2012-01-06  Bruno Haible  <bruno@clisp.org>
9958
9959         Talk about "native Windows API", not "Woe32".
9960         * lib/accept4.c: Update comments to mention native Windows.
9961         * lib/execute.c: Likewise.
9962         * lib/fatal-signal.c: Likewise.
9963         * lib/localcharset.c: Likewise.
9964         * lib/nanosleep.c: Likewise.
9965         * lib/nl_langinfo.c: Likewise.
9966         * lib/pclose.c: Likewise.
9967         * lib/pipe-filter-gi.c: Likewise.
9968         * lib/pipe-filter-ii.c: Likewise.
9969         * lib/pipe.c: Likewise.
9970         * lib/pipe2.c: Likewise.
9971         * lib/popen.c: Likewise.
9972         * lib/progreloc.c: Likewise.
9973         * lib/relocatable.c: Likewise.
9974         * lib/sigaction.c: Likewise.
9975         * lib/sigprocmask.c: Likewise.
9976         * lib/spawn-pipe.h: Likewise.
9977         * lib/spawn-pipe.c: Likewise.
9978         * lib/spawni.c: Likewise.
9979         * lib/stat-time.h: Likewise.
9980         * lib/w32spawn.h: Likewise.
9981         * tests/test-isatty.c: Likewise.
9982         * lib/config.charset: More comments.
9983         * doc/gnulib-intro.texi: Mention native Windows.
9984         * doc/posix-functions/_Exit_C99.texi: Likewise.
9985         * doc/posix-headers/fcntl.texi: Likewise.
9986
9987 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9988
9989         argp: Avoid crash if translator uses % characters in a translation.
9990         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9991         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9992
9993 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9994
9995         doc: C11 and C++11 are now official
9996         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9997         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9998         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9999         * modules/stdalign:
10000         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10001
10002 2012-01-06  Bruno Haible  <bruno@clisp.org>
10003
10004         uc-is-grapheme-break tests: Tweak.
10005         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10006         message.
10007
10008 2012-01-06  Bruno Haible  <bruno@clisp.org>
10009
10010         test-init.sh: correct the test for diff -u
10011         * tests/test-init.sh: Also redirect stdout to /dev/null.
10012
10013 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10014
10015         Use ', not `, for quoting output.
10016         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10017         (print_changelog_deltas, get_tool_versions, main program):
10018         * build-aux/git-version-gen:
10019         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10020         * build-aux/move-if-change (help):
10021         * build-aux/useless-if-before-free (usage, main program):
10022         * check-module (parse_module_file, usage)
10023         (find_included_lib_files, check_module):
10024         * lib/argmatch.c (main) [TEST]:
10025         * lib/argp-help.c (_help):
10026         * lib/getopt1.c (main) [TEST]:
10027         * lib/git-merge-changelog.c (usage):
10028         * lib/xstrtol-error.c (xstrtol_error):
10029         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10030         * m4/argz.m4 (gl_FUNC_ARGZ):
10031         * m4/bison.m4 (gl_BISON):
10032         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10033         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10034         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10035         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10036         * m4/gc-random.m4 (gl_GC_RANDOM):
10037         * m4/intl.m4 (gt_CHECK_DECL):
10038         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10040         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10042         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10043         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10044         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10045         * tests/test-dirname.c (main):
10046         * tests/test-getpass.c (main):
10047         * tests/test-iconvme.c (main):
10048         * tests/test-parse-datetime.c (LOG):
10049         * tests/test-xstrtoimax.sh:
10050         * tests/test-xstrtol.sh:
10051         * tests/test-xstrtoll.sh:
10052         * tests/test-xstrtoumax.sh:
10053         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10054         * top/GNUmakefile (abort-due-to-no-makefile):
10055         Quote 'like this', not `like this', as per the recent change to
10056         the GNU coding standards.
10057
10058 2012-01-05  Bruno Haible  <bruno@clisp.org>
10059
10060         strtoimax: Don't force a replacement on systems where intmax_t is int.
10061         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10062         'intmax_t' is not larger than 'int'.
10063         Reported by Pádraig Brady <P@draigBrady.com>.
10064
10065 2012-01-05  Bruno Haible  <bruno@clisp.org>
10066
10067         doc: Mention NetBSD bugs.
10068         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10069         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10070
10071 2012-01-05  Bruno Haible  <bruno@clisp.org>
10072
10073         strtoumax tests: Enhance tests.
10074         * tests/test-strtoumax.c (main): Add tests for large values.
10075
10076 2012-01-05  Bruno Haible  <bruno@clisp.org>
10077
10078         strtoimax: Work around AIX 5.1 bug.
10079         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10080         definition.
10081         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10082         Set HAVE_STRTOIMAX.
10083         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10084         REPLACE_STRTOIMAX.
10085         * modules/inttypes-incomplete (Makefile.am): Substitute
10086         REPLACE_STRTOIMAX.
10087         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10088         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10089         (Depends-on): Update conditions.
10090         * tests/test-strtoimax.c (main): Add tests for large values.
10091         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10092
10093 2012-01-05  Bruno Haible  <bruno@clisp.org>
10094
10095         inttypes: Modernize.
10096         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10097         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10098         (Makefile.am): Update inttypes.h rule.
10099
10100 2012-01-05  Jim Meyering  <meyering@redhat.com>
10101
10102         init.sh: don't waste a subshell just to redirect stderr
10103         * tests/init.sh: In testing for diff -u and diff -c, use a
10104         stderr-redirecting exec inside `...` rather than a subshell.
10105
10106         test-init.sh: avoid failure on HP-UX 11.00
10107         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10108         resolves to diff -c or cmp.  Reported by Bruno Haible.
10109
10110 2012-01-05  Bruno Haible  <bruno@clisp.org>
10111
10112         Tests for module 'strtoull'.
10113         * modules/strtoull-tests: New file.
10114         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10115
10116 2012-01-05  Bruno Haible  <bruno@clisp.org>
10117
10118         Tests for module 'strtoll'.
10119         * modules/strtoll-tests: New file.
10120         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10121
10122 2012-01-05  Bruno Haible  <bruno@clisp.org>
10123
10124         Tests for module 'strtoul'.
10125         * modules/strtoul-tests: New file.
10126         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10127
10128 2012-01-05  Bruno Haible  <bruno@clisp.org>
10129
10130         Tests for module 'strtol'.
10131         * modules/strtol-tests: New file.
10132         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10133
10134 2012-01-04  Jim Meyering  <meyering@redhat.com>
10135
10136         test-init.sh: accommodate Solaris 5.10's different diff -u output
10137         * tests/test-init.sh: Also exempt @@ lines from the comparison
10138         of diff output, since Solaris 5.10 and GNU diff formats differ.
10139         Reported by Stefano Lattarini.
10140
10141 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10142
10143         test-posixtm: don't assume signed integer wraparound
10144         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10145         after signed integer overflow.  Inspired by (though it may not
10146         fix) Bruno Haible's bug report in
10147         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10148
10149         Spell out "Windows 9x" and "Windows XP".
10150         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10151         "Windows 9x" and "WinXP" with "Windows XP".
10152
10153 2012-01-04  Jim Meyering  <meyering@redhat.com>
10154
10155         test-vc-list-files-cvs.sh: remove obsolete comment
10156         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10157         double exit.  Now that's all encapsulated via skip_ and Exit.
10158
10159 2012-01-04  Bruno Haible  <bruno@clisp.org>
10160
10161         Talk about "native Windows API", not "Win32".
10162         * lib/classpath.c: Update comments to mention native Windows.
10163         * lib/csharpexec.c: Likewise.
10164         * lib/dup2.c: Likewise.
10165         * lib/error.c: Likewise.
10166         * lib/fcntl.c: Likewise.
10167         * lib/filename.h: Likewise.
10168         * lib/findprog.c: Likewise.
10169         * lib/get-rusage-as.c: Likewise.
10170         * lib/get-rusage-data.c: Likewise.
10171         * lib/getpagesize.c: Likewise.
10172         * lib/javaexec.c: Likewise.
10173         * lib/msvc-inval.c: Likewise.
10174         * lib/msvc-nothrow.c: Likewise.
10175         * lib/nanosleep.c: Likewise.
10176         * lib/nonblocking.c: Likewise.
10177         * lib/printf-parse.c: Likewise.
10178         * lib/setlocale.c: Likewise.
10179         * lib/sigaction.c: Likewise.
10180         * lib/strerror_r.c: Likewise.
10181         * lib/tmpdir.c: Likewise.
10182         * lib/vasnprintf.c: Likewise.
10183         * lib/w32spawn.h: Likewise.
10184         * lib/waitpid.c: Likewise.
10185         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10186         * m4/locale-ar.m4: Likewise.
10187         * m4/locale-fr.m4: Likewise.
10188         * m4/locale-ja.m4: Likewise.
10189         * m4/locale-tr.m4: Likewise.
10190         * m4/locale-zh.m4: Likewise.
10191         * m4/printf.m4: Likewise.
10192         * tests/test-cloexec.c: Likewise.
10193         * tests/test-copy-acl.sh: Likewise.
10194         * tests/test-copy-file.sh: Likewise.
10195         * tests/test-file-has-acl.sh: Likewise.
10196         * tests/test-set-mode-acl.sh: Likewise.
10197         * tests/test-dup-safer.c: Likewise.
10198         * tests/test-dup2.c: Likewise.
10199         * tests/test-dup3.c: Likewise.
10200         * tests/test-fcntl.c: Likewise.
10201         * tests/test-nonblocking-pipe.h: Likewise.
10202         * tests/test-nonblocking-socket.h: Likewise.
10203         * tests/test-pipe.c: Likewise.
10204         * tests/test-pipe2.c: Likewise.
10205         * tests/test-spawn-pipe-child.c: Likewise.
10206         * doc/acl-resources.txt: Likewise.
10207         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10208         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10209         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10210         * lib/localcharset.c: Update comments to mention native Windows.
10211         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10212         * lib/localename.c: Likewise.
10213         * lib/progreloc.c: Likewise.
10214         * lib/relocatable.c: Likewise.
10215         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10216         (windows_compute_revents): Renamed from win32_compute_revents.
10217         (windows_compute_revents_socket): Renamed from
10218         win32_compute_revents_socket.
10219         * lib/select.c: Update comments to mention native Windows.
10220         (windows_poll_handle): Renamed from win32_poll_handle.
10221         * m4/threadlib.m4: Update comments to mention native Windows.
10222         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10223         --enable-threads=windows instead of --enable-threads=win32. Set
10224         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10225         * lib/glthread/lock.h: Update comments to mention native Windows.
10226         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10227         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10228         USE_WIN32_THREADS.
10229         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10230         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10231         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10232         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10233         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10234         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10235         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10236         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10237         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10238         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10239         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10240         * tests/test-tls.c: Likewise.
10241         Rationale:
10242         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10243         on both 32-bit and 64-bit Windows systems.
10244         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10245         line of distinction is between "native Windows" on one side and Unix/
10246         POSIX systems on the other side. More details in
10247         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10248         Suggested by Paul Eggert.
10249
10250 2012-01-03  Bruno Haible  <bruno@clisp.org>
10251
10252         isatty: Support for MSVC 9.
10253         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10254         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10255         (_isatty_nothrow): New function.
10256         (isatty): Use it instead of _isatty.
10257         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10258         * lib/poll.c (IsConsoleHandle): Likewise.
10259         * lib/select.c (IsConsoleHandle): Likewise.
10260         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10261         (gl_PREREQ_ISATTY): New macro.
10262         * modules/isatty (Depends-on): Add msvc-inval.
10263         (configure.ac): Invoke gl_PREREQ_ISATTY.
10264
10265 2012-01-03  Jim Meyering  <meyering@redhat.com>
10266
10267         maint.mk: remove temporary transition aid from over 1.5 years ago
10268         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10269         purpose was to aid in the transition (avoiding silent malfunction)
10270         from that old name to the new _sc_search_regexp.  This shim was
10271         added by commit 219c504b.
10272
10273         init.sh: do not try to accommodate compare arguments starting with "-"
10274         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10275         compare arguments that start with "-".  Besides, we do not worry
10276         about this when invoking diff or cmp; why start now with sed?
10277         Using "--" to separate options from argument would trigger sed
10278         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10279         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10280
10281 2012-01-02  Bruno Haible  <bruno@clisp.org>
10282
10283         Enhance tests for module 'isatty'.
10284         * modules/isatty-tests (Depends-on): Add pipe-posix.
10285         * tests/test-isatty.c: Include <fcntl.h>.
10286         (DEV_NULL): New macro.
10287         (main): Test the resut of isatty() also on regular files, pipes, and
10288         /dev/null.
10289
10290         New module 'isatty'.
10291         * lib/unistd.in.h (isatty): New declaration.
10292         * lib/isatty.c: New file, based on an idea of
10293         Bastien Roucariès <roucaries.bastien@gmail.com>.
10294         * m4/isatty.m4: New file.
10295         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10296         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10297         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10298         REPLACE_ISATTY.
10299         * modules/isatty: New file.
10300         * doc/posix-functions/isatty.texi: Mention the new module.
10301         Suggested by Paolo Bonzini.
10302
10303 2012-01-02  Bruno Haible  <bruno@clisp.org>
10304
10305         canonicalize: Tweak 2011-12-29 commit.
10306         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10307         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10308
10309 2012-01-02  Jim Meyering  <meyering@redhat.com>
10310
10311         gitlog-to-changelog: describe input syntax in --help output
10312         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10313
10314         gitlog-to-changelog: fix typo in --help: show backslash before email @
10315         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10316         in sources, but not in actual output.
10317
10318 2011-12-30  Jim Meyering  <meyering@redhat.com>
10319
10320         gitlog-to-changelog: don't malfunction when name contains %-directive
10321         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10322         in a name string cause trouble.  E.g., with a user name of "%s",
10323         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10324
10325 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10326
10327         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10328         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10329         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10330         the "  (tiny change)" notation that is appended to the standard
10331         ChangeLog "date  name  email" header line.
10332
10333 2012-01-01  Jim Meyering  <meyering@redhat.com>
10334
10335         test-framework-sh: init.sh: fix "make dist" failure
10336         When using gnulib-tool's --with-tests option and any module that
10337         depends on test-framework-sh, "make dist" would fail due to the
10338         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10339         in the gltests directory, and not in the gllib/ directory.
10340         One way to work around that is to move the EXTRA_DIST += init.sh
10341         from the primary module to the -tests one:
10342         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10343         * modules/test-framework-sh (Makefile.am): ...not here.
10344         Reported by Tom G. Christensen in
10345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10346
10347         version-etc: update copyright year reported by --version
10348         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10349
10350 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10351
10352         canonicalize: only stat() if required
10353         * lib/canonicalize.c (canonicalize_filename_mode):
10354         Avoid calling l?stat() when both CAN_MISSING,
10355         and CAN_NOLINKS are set, as we neither need
10356         to resolve symlinks or test component existence.
10357
10358 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10359
10360         doc: cover st_ino issues once; add OpenVMS etc.
10361         * doc/posix-functions/stat.texi (stat):
10362         * doc/posix-functions/lstat.texi (lstat):
10363         * doc/posix-functions/fstatat.texi (fstatat):
10364         * doc/posix-functions/fstat.texi (fstat):
10365         Move general 'struct stat' stuff to sys_stat.texi,
10366         leaving behind a pointer.
10367         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10368         Merge duplicate info about 'struct stat' problems into here.
10369         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10370         and suggest partial workarounds.
10371
10372         same-inode: port to OpenVMS
10373         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10374         three st_ino values.
10375
10376 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10377
10378         canonicalize: fix references to stat() and lstat()
10379         * lib/canonicalize.c (canonicalize_filename_mode):
10380         Ensure references always resolve to a replacement
10381         function if required (even via a macro).
10382
10383 2011-12-30  Jim Meyering  <meyering@redhat.com>
10384
10385         gitlog-to-changelog: remove a little duplication
10386         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10387         rather than twice.
10388
10389 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10390
10391         canonicalize: add support for not resolving symlinks
10392         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10393         indicate we don't want to follow symlinks.  Also
10394         provide CAN_MODE_MASK to aid setting these existing
10395         mutually exclusive values.
10396         * lib/canonicalize.c (canonicalize_filename_mode):
10397         Extract the flags from can_mode parameter, which
10398         are currently just used to select between stat()
10399         and lstat().  Also ensure that mutually exclusive
10400         values are flagged immediately as invalid.
10401         * tests/test-canonicalize.c: Verify symlinks are
10402         not followed, and that invalid flag combinations
10403         are diagnosed.
10404
10405 2011-12-25  Jim Meyering  <meyering@redhat.com>
10406
10407         gitlog-to-changelog: do not clump multi-paragraph entries
10408         Identical header lines (date,name,email+coauthors) are suppressed,
10409         thus putting all entries with those same characteristics under
10410         a single header.  However, when a log entry consists of two or
10411         more paragraphs, it may not be clear where it starts and ends.
10412         This change makes it so that such an entry is always separated
10413         from others by a header line, even when that header would
10414         otherwise be suppressed.
10415         * build-aux/gitlog-to-changelog: Implement the above.
10416         Inspired by a related request from Stefano Lattarini in
10417         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10418
10419 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10420
10421         announce-gen: fix `cmd' typo in diagnostic
10422         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10423         diagnostic: a missing '$' meant that the command was not output.
10424
10425 2011-12-23  Jim Meyering  <meyering@redhat.com>
10426
10427         test-framework-sh: distribute init.sh
10428         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10429         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10430         fail due to the lack of init.sh.
10431
10432         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10433         * modules/atexit-tests: Rather than listing tests/init.sh,
10434         now that there's a module for it, simply depend on that new module.
10435         * modules/closein-tests: Likewise.
10436         * modules/exclude-tests: Likewise.
10437         * modules/getcwd-tests: Likewise.
10438         * modules/perror-tests: Likewise.
10439         * modules/pread-tests: Likewise.
10440         * modules/pwrite-tests: Likewise.
10441         * modules/vc-list-files-tests: Likewise.
10442         * modules/verify-tests: Likewise.
10443         * modules/xalloc-die-tests: Likewise.
10444         * modules/xstrtoimax-tests: Likewise.
10445         * modules/xstrtol-tests: Likewise.
10446         * modules/xstrtoll-tests: Likewise.
10447         * modules/xstrtoumax-tests: Likewise.
10448         * modules/yesno-tests: Likewise.
10449
10450 2011-12-22  Jim Meyering  <meyering@redhat.com>
10451
10452         test-framework-sh: add minimal tests of init.sh's compare function
10453         * modules/test-framework-sh-tests: New file.
10454         * tests/test-init.sh: New file.
10455
10456         test-framework-sh: new module
10457         * modules/test-framework-sh: New file.
10458         * MODULES.html.sh (Support for maintaining and releasing projects):
10459         List it.
10460
10461         init.sh: do not emit simulated diff output to stderr
10462         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10463
10464 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10465
10466         .gitignore: ignore gnulib.dvi and regex.info
10467         * doc/.gitignore:add gnulib.dvi and regex.info
10468
10469 2011-12-22  Jim Meyering  <meyering@redhat.com>
10470
10471         init.sh: correct previous change
10472         * tests/init.sh (compare): My previous change was wrong.
10473         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10474
10475         init.sh: avoid unwarranted test failure when using "set -e"
10476         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10477         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10478         a use like "compare exp out" would get evoke an unconditional failure.
10479
10480 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10481
10482         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10483         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10484         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10485         autoreconf that did not.
10486         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10487         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10488
10489 2011-12-17  Jim Meyering  <meyering@redhat.com>
10490
10491         bootstrap: remove some now-unneeded code
10492         This script arose back when gnulib-tool was young.
10493         Since then, it has seen improvements that render much of this
10494         script unnecessary.  In particular, it can now make symlinks
10495         to the files it uses.  Also, I no longer see as much value in
10496         marking files as read-only via comments.
10497         If you relied on the symlink-creation feature of the preceding
10498         version of this script, you can get most of that functionality
10499         by adding the --symlink option to the definition of
10500         gnulib_tool_option_extras in your bootstrap.conf file.
10501         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10502         Run autopoint and libtoolize *before* gnulib-tool.
10503         After it, run an abbreviated autoreconf, rather than a loop around
10504         all tools.
10505         (slirp, bt_mark_as_generated): Remove functions.
10506
10507 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         ftoastr: fix typo
10510         * lib/ftoastr.h: Fix misspelling in comment.
10511
10512 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10513
10514         * top/README-release: fix punctuation.
10515
10516 2011-12-17  Jim Meyering  <meyering@redhat.com>
10517
10518         bootstrap: correct the recent buildreq change
10519         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10520         had no effect.
10521         * build-aux/bootstrap (buildreq): Bracket each search term with
10522         "*...*", so that the shell "case" statement works as intended.
10523         Add comments.
10524
10525 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10526
10527         build: let bootstrap resort to wget when downloading .po files
10528         * build-aux/bootstrap (download_po_files): Fallback to wget when
10529         downloading the .po files via rsync fails.  This is necessary to
10530         bootstrap from behind a strict firewall.
10531
10532 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10533
10534         stdint: don't assume C++11 when compiling with g++
10535         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10537         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10538         work also in C++ before C++11, as that improperly inhibits
10539         generating a substitute stdint.h for that case.
10540
10541 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         alloca: protect comment from gnulib-tool
10544         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10545         that gnulib-tool doesn't think it's a license, and munge it to
10546         say "GCC version 3".
10547
10548 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10549
10550         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10551         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10552         $(abs_top_builddir) instead of $(top_builddir).
10553
10554 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10555
10556         strftime-tests: also test nanoseconds
10557         * tests/test-strftime.c (T): Add a test of %N.
10558
10559 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10560
10561         inttypes, stdint: add C++11 support
10562         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10563         when including inttypes.h and stdint.h.  Support this change to
10564         the standard.
10565         * doc/posix-headers/inttypes.texi (inttypes.h):
10566         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10567         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10568         Define if not defined already, for the benefit of pre-C++11 hosts.
10569         Define the standard format macros (e.g., PRId8) always.
10570         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10571         Likewise, if __cpluspus.  Define the standard constant and limit
10572         macros (e.g., INT8_C, INT8_MAX) always.
10573         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10574         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10575         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10576         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10577         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10578         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10579         Likewise.
10580
10581 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         nonblocking tests: Fix test failure on Linux/PPC.
10584         Suggested by Prerna Saxena in
10585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10586         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10587         Set to 1100000.
10588
10589 2011-12-12  Jim Meyering  <meyering@redhat.com>
10590
10591         argmatch: don't hard-code `' when listing valid option arguments
10592         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10593         use the quote function to add quotes.  Use fputs rather than
10594         fprintf for the format string with no format directive.
10595
10596 2011-12-07  Eric Blake  <eblake@redhat.com>
10597
10598         bootstrap: detect tools required by gnulib-tool
10599         * build-aux/bootstrap (buildreq): Provide minimum implicit
10600         dependencies.
10601         * DEPENDENCIES: Mention patch as a prereq.
10602
10603 2011-12-04  Bruno Haible  <bruno@clisp.org>
10604
10605         sethostname: Port to Windows platforms.
10606         * lib/sethostname.c: Provide an alternate implementation for Windows
10607         platforms.
10608         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10609         (main): Skip the test if sethostname() fails with EPERM. On Windows
10610         platforms, don't check the result of gethostname().
10611
10612 2011-12-04  Bruno Haible  <bruno@clisp.org>
10613             Jim Meyering  <meyering@redhat.com>
10614
10615         tests: Avoid spurious error message on platforms without mktemp program.
10616         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10617
10618 2011-12-04  Bruno Haible  <bruno@clisp.org>
10619
10620         sethostname: Fix documentation.
10621         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10622         "not fixed" section.
10623
10624 2011-12-03  Bruno Haible  <bruno@clisp.org>
10625
10626         gnulib-tool: Verify that the License field is present and non-empty.
10627         * gnulib-tool (func_get_license_raw): New function, extracted from
10628         func_get_license.
10629         (func_get_license): Use it. Warn if the module is not a test module and
10630         has no license.
10631         Suggested by Jim Meyering.
10632
10633 2011-12-03  Bruno Haible  <bruno@clisp.org>
10634
10635         sethostname tests: Fix link error on mingw.
10636         * tests/test-sethostname1.c: New file, extracted from
10637         tests/test-sethostname.c.
10638         * tests/test-sethostname2.c: New file, extracted from
10639         tests/test-sethostname.c.
10640         * tests/test-sethostname.c: Remove file.
10641         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10642         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10643         (Depends-on): Add gethostname.
10644         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10645         Link the latter with $(GETHOSTNAME_LIB).
10646
10647         sethostname tests: Fix compilation error on mingw.
10648         * tests/test-sethostname.c: Don't include <sys/types.h>.
10649         (geteuid): Use a dummy value without uid_t.
10650         * modules/sethostname-tests (Depends-on): Remove sys_types.
10651
10652         sethostname tests: Avoid a gcc warning.
10653         * tests/test-sethostname.c (main): Remove an unused variable.
10654
10655         Tweak last commit.
10656         * modules/sethostname-tests (Files): Sort by decreasing importance.
10657         (configure.ac): Check for geteuid.
10658         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10659         the test when there's nothing to test. Drop an unnecessary cast.
10660         Improve an error message. Verify that the final sethostname() call
10661         succeeds.
10662
10663 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10664
10665         Add a test suite for the sethostname module.
10666         * modules/sethostname-tests: New file.  A test program
10667         for the sethostname module.
10668         * tests/test-sethostname.c: Likewise.
10669
10670 2011-12-03  Bruno Haible  <bruno@clisp.org>
10671
10672         Tweak last commit.
10673         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10674         Fix preprocessor directives indentation. Fix typos.
10675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10676         * modules/unistd (Makefile): Likewise.
10677
10678 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10679
10680         Integrate the sethostname module into unistd.
10681         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10682         into the unistd.h header.
10683         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10684         preprocessor directives.
10685         * modules/unistd: Setup the Makefile substitutions of the
10686         SETHOSTNAME preprocessor directives.
10687
10688 2011-12-03  Bruno Haible  <bruno@clisp.org>
10689
10690         Tweak last commit.
10691         * lib/sethostname.c: Don't include <string.h>.
10692         (sethostname): No need to copy the argument string to the stack. Don't
10693         call clearerr. Preserve errno when fprintf failed.
10694         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10695         Don't invoke AC_REPLACE_FUNCS.
10696         * modules/sethostname (Link): Remove empty section.
10697         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10698         failure problem.
10699
10700 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10701
10702         New module 'sethostname'.
10703         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10704         for systems that lack it.
10705         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10706         sethostname declaration and function.
10707         * modules/sethostname: New file.  Define the sethostname module.
10708
10709 2011-12-03  Bruno Haible  <bruno@clisp.org>
10710
10711         Tweak last commit.
10712         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10713
10714 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10715
10716         Split the HOST_NAME_MAX detection into a separate m4 macro.
10717         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10718         macro so it can be used by the pending sethostname module.
10719
10720 2011-12-03  Bruno Haible  <bruno@clisp.org>
10721
10722         Fix module descriptions syntax.
10723         * modules/argv-iter (License): Fix syntax.
10724         * modules/di-set (License): Likewise.
10725         * modules/ino-map (License): Likewise.
10726         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10727
10728 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         stdalign: port to Clang 3.0
10731         Problem reported by Simon Josefsson in
10732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10733         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10734         which has <stdalign.h> but which does not define alignof.
10735         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10736
10737 2011-12-01  Eric Blake  <eblake@redhat.com>
10738
10739         mktempd: silence dd usage
10740         * build-aux/mktempd (rand_bytes): Silence dd.
10741
10742 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10743
10744         manywarnings: Don't mention gcc version in docstring.
10745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10746         Jim Meyering <meyering@redhat.com>.
10747
10748 2011-11-30  Jim Meyering  <meyering@redhat.com>
10749
10750         hash: mark a few floating point constants with "f" suffix
10751         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10752         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10753         floating point constants with "f", since they're destined to be
10754         saved/used as "float"s.
10755
10756 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10757
10758         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10759         * tests/test-float.c (test_long_double): Correct and re-enable the
10760         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10761
10762 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10763
10764         Avoid subtracting two pointers that don't point into the same block.
10765         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10766         only pointers into the same memory block are subtracted. We cannot
10767         assume that sizeof (ptrdiff_t) == sizeof (void *).
10768
10769 2011-11-29  Eric Blake  <eblake@redhat.com>
10770
10771         maint.mk: add syntax check for use of compare from init.sh
10772         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10773         moved here from coreutils.
10774
10775         manywarnings: drop -Wunsuffixed-float-constants
10776         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10777         '1.0D', which is the only way to silence this warning for 'double'.
10778
10779 2011-11-29  Jim Meyering  <meyering@redhat.com>
10780
10781         hash: mark compute_bucket_size with the pure attribute
10782         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10783
10784         quotearg, propername: correct pragma guard expression
10785         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10786         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10787
10788 2011-11-28  Jim Meyering  <meyering@redhat.com>
10789
10790         propername: do not mark proper_name with the const attribute
10791         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10792         since it examines data pointed to by its parameter.
10793         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10794         the suggestion from -Wsuggest-attribute=const.
10795
10796         propername: mark one more function as const
10797         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10798
10799 2011-11-27  Jim Meyering  <meyering@redhat.com>
10800
10801         mark functions with const and pure attributes
10802
10803         Mark functions per suggestions from gcc-4.6 when using these options:
10804         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10805         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10806         Follow these guidelines: when possible, apply the attribute to
10807         an extern declaration, not to its definition.  Apply it to the
10808         definition only when the definition is static.
10809         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10810         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10811         * lib/base64.h (isbase64): Likewise.
10812         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10813         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10814         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10815         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10816         (c_tolower, c_toupper): Likewise.
10817         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10818         * lib/chdir-long.c (find_non_slash): Likewise.
10819         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10820         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10821         * lib/file-type.h (file_type): Likewise.
10822         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10823         * lib/filevercmp.c (verrevcmp): Likewise.
10824         * lib/freadahead.h (freadahead): Likewise.
10825         * lib/fts.c (fts_maxarglen): Likewise.
10826         * lib/hash-pjw.h (hash_pjw): Likewise.
10827         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10828         * lib/hash.c (is_prime, next_prime): Likewise.
10829         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10830         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10831         (hash_table_ok, hash_get_first, hash_string): Likewise.
10832         (compute_bucket_size): Likewise.
10833         * lib/i-ring.h (i_ring_empty): Likewise.
10834         * lib/isnan.c (isnanl): Likewise.
10835         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10836         * lib/memcasecmp.h (memcasecmp): Likewise.
10837         * lib/memchr2.h (memchr2): Likewise.
10838         * lib/memcmp2.h (memcmp2): Likewise.
10839         * lib/parse-datetime.y (lookup_zone): Likewise.
10840         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10841         [!WINDOWS_SOCKETS]: Likewise.
10842         * lib/strnlen1.h (strnlen1): Likewise.
10843         * lib/uniwidth.in.h (uc_width): Likewise.
10844         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10845         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10846         (quoting_options_from_style): Add a comment.
10847         * lib/propername.h (proper_name): Add a comment.
10848
10849 2011-11-27  Bruno Haible  <bruno@clisp.org>
10850
10851         Remove unused macros from !_LIBC code in glibc-borrowed files.
10852         * lib/fnmatch.c (STRCOLL): Remove macro.
10853         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10854         * lib/glob.c (__stat, __readdir64): Remove macros.
10855         * lib/tempname.c (__open64, __xstat64): Remove macros.
10856         Suggested by Paul Eggert.
10857
10858 2011-11-27  Bruno Haible  <bruno@clisp.org>
10859
10860         getcwd: Fix link error on MSVC 9.
10861         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10862
10863 2011-11-27  Bruno Haible  <bruno@clisp.org>
10864
10865         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10866         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10867         HAVE_OPENDIR is 0.
10868         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10869         HAVE_CLOSEDIR is 0.
10870         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10871         is 0.
10872         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10873
10874 2011-11-27  Bruno Haible  <bruno@clisp.org>
10875
10876         getcwd: Fix bug from 2011-08-17.
10877         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10878         platforms that need it.
10879         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10880         code of 4 to be a failure, not a success. This ensures that
10881         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10882
10883 2011-11-27  Bruno Haible  <bruno@clisp.org>
10884
10885         binary-io tests: Avoid test failure on mingw when libtool is used.
10886         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10887         Don't verify the size of t-bin-out1.tmp here.
10888         * tests/test-binary-io.sh: Verify it here.
10889         Reported by Simon Josefsson.
10890
10891 2011-11-26  Bruno Haible  <bruno@clisp.org>
10892
10893         Fix conflict between two instantiations of module 'unistd'.
10894         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10895         ${include_guard_prefix} also in the autoconf snippet.
10896         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10898         GNULIB_UNISTD_H_GETOPT.
10899         * modules/getopt-posix (configure.ac): Set the
10900         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10901         * modules/getopt-gnu (configure.ac): Likewise.
10902         * modules/unistd (Makefile.am): Change the substitution value of
10903         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10904         Reported by Simon Josefsson.
10905
10906 2011-11-25  Bruno Haible  <bruno@clisp.org>
10907
10908         pagealign_alloc: Doc and comments.
10909         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10910         module.
10911         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10912
10913 2011-11-25  Jim Meyering  <meyering@redhat.com>
10914
10915         test-update-copyright.sh: avoid false-positive failure
10916         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10917         around false positive failure on Cygwin/Windows.  The latter was
10918         matching erroneously-created files with names like
10919         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10920
10921 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10922
10923         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10924         * m4/valgrind-tests.m4: Check that the parameters that will be
10925         used works, not just a subset of them.  Reported by Bruno Haible
10926         <bruno@clisp.org>.
10927
10928 2011-11-24  Jim Meyering  <meyering@redhat.com>
10929
10930         test-stdalign.c: comment out long double tests
10931         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10932         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10933         error: '_Alignas' specifiers cannot reduce alignment of \
10934         'static_longdouble_alignas'.
10935
10936 2011-11-22  Jim Meyering  <meyering@redhat.com>
10937
10938         init.sh: make "compare /dev/null FILE" output more readable
10939         * tests/init.sh (compare_): Document the preferred order of arguments.
10940         (emit_diff_u_header_): New function.
10941         (compare_dev_null_): Emit a simulated diff, rather than just the
10942         contents of the unexpected file.  Suggestion from Bruno Haible.
10943
10944 2011-11-21  Jim Meyering  <meyering@redhat.com>
10945             Eric Blake  <eblake@redhat.com>
10946
10947         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10948         * tests/init.sh: Make our compare function slightly more portable.
10949         Reported by Bruno Haible in
10950         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10951
10952 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10953
10954         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10955         before using it, in code that ends up in config.h.
10956
10957 2011-11-20  Bruno Haible  <bruno@clisp.org>
10958
10959         getcwd: Work around getcwd bug on AIX 5..7.
10960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10961         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10962         Use a different value for gl_cv_func_getcwd_path_max. Move the
10963         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10964         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10965         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10966         Define HAVE_MINIMALLY_WORKING_GETCWD.
10967         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10968         where it is not even minimally working, that is, on AIX.
10969         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10970         m4/getcwd-path-max.m4.
10971         (main): Update exit code computation.
10972         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10973         getcwd does not handle long file names.
10974
10975 2011-11-20  Bruno Haible  <bruno@clisp.org>
10976
10977         getcwd: Fix bug from 2009-09-10.
10978         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10979         like "no".
10980
10981 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10982
10983         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10984
10985 2011-11-20  Bruno Haible  <bruno@clisp.org>
10986
10987         fma tests: Avoid shadowing local variables.
10988         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10989         expected.
10990
10991 2011-11-20  Bruno Haible  <bruno@clisp.org>
10992
10993         copysignf tests: Fix.
10994         * tests/test-copysignf.c: Fix signature check.
10995
10996 2011-11-20  Bruno Haible  <bruno@clisp.org>
10997
10998         fma: Remove unused code.
10999         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11000         unused macros.
11001
11002 2011-11-20  Bruno Haible  <bruno@clisp.org>
11003
11004         sethostname: Fix doc about AIX.
11005         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11006         sethostname; it has it.
11007
11008         sethostname: Mention more portability problems.
11009         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11010         problem.
11011         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11012
11013 2011-11-19  Bruno Haible  <bruno@clisp.org>
11014
11015         Depend on module fcntl-h when AT_FDCWD is used.
11016         * modules/utimens (Depends-on): Add fcntl-h.
11017         * modules/areadlinkat (Depends-on): Likewise.
11018         * modules/areadlinkat-with-size (Depends-on): Likewise.
11019         * modules/faccessat (Depends-on): Likewise.
11020         * modules/fchmodat (Depends-on): Likewise.
11021         * modules/fchownat (Depends-on): Likewise.
11022         * modules/getcwd (Depends-on): Likewise.
11023         * modules/mkdirat (Depends-on): Likewise.
11024         * modules/mkfifoat (Depends-on): Likewise.
11025         * modules/readlinkat (Depends-on): Likewise.
11026         * modules/symlinkat (Depends-on): Likewise.
11027         * modules/dup2-tests (Depends-on): Likewise.
11028         * modules/fdutimensat-tests (Depends-on): Likewise.
11029         * modules/futimens-tests (Depends-on): Likewise.
11030
11031 2011-11-19  Bruno Haible  <bruno@clisp.org>
11032
11033         euidaccess: Update a comment.
11034         * lib/euidaccess.c: Update comment about platforms with faccessat.
11035
11036 2011-11-19  Bruno Haible  <bruno@clisp.org>
11037
11038         openat: Fix file list.
11039         * modules/openat (Files): Remove lib/at-func.c.
11040
11041 2011-11-19  Bruno Haible  <bruno@clisp.org>
11042
11043         fstatat: Simplify.
11044         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11045         gnulib should define rpl_fstatat, there is a
11046         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11047
11048 2011-11-19  Bruno Haible  <bruno@clisp.org>
11049
11050         Ensure 'inline' can be used in tests/test-utimens-common.h.
11051         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11052         * modules/futimens-tests (configure.ac): Likewise.
11053         * modules/utimens-tests (configure.ac): Likewise.
11054         * modules/utimensat-tests (configure.ac): Likewise.
11055
11056 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11057
11058         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11059         not hash_insert0.
11060         (hash_insert_if_absent): Doc fix.
11061
11062 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11063
11064         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11065
11066 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11067
11068         test-getcwd: disambiguate exit status
11069         * tests/test-getcwd.c (test_long_name): Return 0..7.
11070         (main): Exit with an unambiguous exit status.  The old
11071         code yielded a mysterious mixture of two failure codes.
11072
11073         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11074         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11075         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11076         rpl_fstatat or fstatat.  This should fix the other problem
11077         reported by Kai Habel in
11078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11079         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11081         and I reproduced it on a Solaris 8 host we still have in production.
11082
11083 2011-11-18  Jim Meyering  <meyering@redhat.com>
11084
11085         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11086         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11087         Add a sentence to the comment.
11088         (hash_insert0): New function that simply calls hash_insert_if_absent.
11089         * lib/hash.h (hash_insert_if_absent): Declare it.
11090         (hash_insert0): Add deprecation attribute.
11091         (_GL_ATTRIBUTE_DEPRECATED): Define.
11092         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11093         not hash_insert0.
11094         * NEWS: Mention it, even though it's not really an incompatible change.
11095
11096 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11097
11098         openat: avoid compilation failure due to lack of <errno.h> inclusion
11099         * lib/openat.c: Include <errno.h>.
11100
11101 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11102
11103         * modules/getcwd (Depends-on): Add fdopendir.
11104         This fixes one of the two problems reported by Kai Habel in
11105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11106
11107         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11108         stdalign problem reported by Ian Beckwith in
11109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11110         * modules/crypto/gc-arcfour (Depends-on):
11111         Depend conditionally on crypto/arcfour.
11112         * modules/crypto/gc-arctwo (Depends-on):
11113         Depend conditionally on crypto/arctwo.
11114         * modules/crypto/gc-des (Depends-on):
11115         Depend conditionally on crypto/des.
11116         * modules/crypto/gc-hmac-md5 (Depends-on):
11117         Depend conditionally on crypto/hmac-md5.
11118         * modules/crypto/gc-hmac-sha1 (Depends-on):
11119         Depend conditionally on crypto/hmac-sha1.
11120         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11121         * modules/crypto/gc-md4 (Depends-on):
11122         Depend conditionally on crypto/md4.
11123         * modules/crypto/gc-md5 (Depends-on):
11124         Depend conditionally on crypto/md5.
11125         * modules/crypto/gc-rijndael (Depends-on):
11126         Depend conditionally on crypto/rijndael.
11127         * modules/crypto/gc-sha1 (Depends-on):
11128         Depend conditionally on crypto/sha1.
11129         * modules/crypto/gc-arcfour:
11130         * modules/crypto/gc-arctwo:
11131         * modules/crypto/gc-des:
11132         * modules/crypto/gc-hmac-md5:
11133         * modules/crypto/gc-hmac-sha1:
11134         * modules/crypto/gc-md2:
11135         * modules/crypto/gc-md4:
11136         * modules/crypto/gc-md5:
11137         * modules/crypto/gc-rijndael:
11138         * modules/crypto/gc-sha1:
11139         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11140         now that the conditional dependencies do the work for us.
11141
11142 2011-11-17  Jim Meyering  <meyering@redhat.com>
11143
11144         tests: factor st_ctime-comparison out of two headers
11145         * tests/test-utimens-common.h (ctime_compare): Define.
11146         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11147         * tests/test-lutimens.h (test_lutimens): Likewise.
11148         * tests/test-utimens.h (test_utimens): Likewise.
11149
11150         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11151         Invoke the test program via an init.sh-using wrapper.
11152         * tests/test-getcwd.sh: New file.
11153         * modules/getcwd-tests (Files): Add it.
11154         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11155
11156 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11157
11158         gitlog-to-changelog: support multi-author commits.
11159         The FSF cares about keeping track of all authors of patches to its
11160         projects, but Git doesn't provide obvious support for multi-author
11161         changesets. Consensus seems to be forming around the use of extra
11162         Signed-off-by inspired lines in the log message formatted as
11163         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11164         multi-author commits between version control systems.
11165         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11166         log message and output in standard ChangeLog multi-author format.
11167         Reported by Peter Rosin <peda@lysator.liu.se>
11168
11169 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11170             Bruno Haible  <bruno@clisp.org>
11171
11172         Fix some modules' file list.
11173         * modules/fstatat (Files): Add m4/lstat.m4.
11174         * modules/openat (Files): Likewise.
11175         * modules/unlinkat (Files): Likewise.
11176
11177 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11178
11179         maint.mk: fix tight-scope.mk generation in VPATH builds.
11180         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11181         reference with $(srcdir) so that the file is found correctly even
11182         when running `make syntax-check' in a VPATH build.
11183
11184 2011-11-13  Bruno Haible  <bruno@clisp.org>
11185             Jim Meyering  <meyering@redhat.com>
11186
11187         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11188         * tests/init.sh (compare): Remove "No differences encountered" or
11189         synonymous output from the 'diff' program.
11190
11191 2011-11-13  Bruno Haible  <bruno@clisp.org>
11192
11193         Makefile: Tweak indentation.
11194         * Makefile: Use tab as first character in every line that contains rule
11195         commands.
11196
11197 2011-11-13  Bruno Haible  <bruno@clisp.org>
11198
11199         Syntax check for copyright statements.
11200         * check-copyright: New file.
11201         * Makefile (sc_check_copyright): New rule.
11202
11203 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11204
11205         * build-aux/git-version-gen: Add --prefix to configure the tag
11206         match string.
11207
11208 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11209
11210         * build-aux/git-version-gen: Add --help and --version.
11211
11212 2011-11-12  Jim Meyering  <meyering@redhat.com>
11213
11214         revamp the other test-exclude?.sh scripts to use init.sh, too
11215         * tests/test-exclude1.sh: Use init.sh.
11216         * tests/test-exclude2.sh: Likewise.
11217         * tests/test-exclude3.sh: Likewise.
11218         * tests/test-exclude4.sh: Likewise.
11219         * tests/test-exclude5.sh: Likewise.
11220         * tests/test-exclude6.sh: Likewise.
11221         * tests/test-exclude7.sh: Likewise.
11222         * tests/test-exclude8.sh: Likewise.
11223         * modules/exclude-tests (Files): List init.sh.
11224
11225         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11226         These shell scripts ignored failure of the binary test-exclude,
11227         so making the latter return 77 didn't cause them to be skipped.
11228         * tests/test-exclude5.sh: Exit with test-exclude's error status
11229         when that program fails.  Revamp to use init.sh.
11230         * tests/test-exclude2.sh: Likewise.
11231
11232         test-exclude: fix a typo
11233         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11234
11235 2011-11-11  Bruno Haible  <bruno@clisp.org>
11236
11237         obstack: Fix compilation error on MSVC 9.
11238         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11239
11240 2011-11-11  Jim Meyering  <meyering@redhat.com>
11241
11242         test-exclude: skip tests rather than failing on deficient systems
11243         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11244         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11245         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11246         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11247
11248 2011-11-10  Bruno Haible  <bruno@clisp.org>
11249
11250         ptsname_r test: Avoid gcc warning on glibc systems.
11251         * tests/test-ptsname_r.c (null_ptr): New function.
11252         (test_errors): Use it.
11253
11254 2011-11-10  Bruno Haible  <bruno@clisp.org>
11255
11256         ptsname_r: Avoid compilation error on OSF/1 5.1.
11257         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11259         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11260         function is not declared or incompatibly declared.
11261         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11262         * modules/ptsname_r (Depends-on, configure.ac): Update.
11263         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11264
11265 2011-11-10  Bruno Haible  <bruno@clisp.org>
11266
11267         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11268         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11269         When cross-compiling, guess yes on all platforms except AIX.
11270         Reported by Ludovic Courtès <ludo@gnu.org>.
11271
11272 2011-11-09  Bruno Haible  <bruno@clisp.org>
11273
11274         ptsname_r tests: Fix bugs.
11275         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11276         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11277
11278 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11279
11280         fstatat: work with cross-compilation
11281         Problem reported by Ludovic Courtès in
11282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11283         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11284         "cross-compiling" and assume the bug is present.  Replace
11285         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11286         an inverted sense, to be more conservative about our assumptions.
11287         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11288
11289 2011-11-09  Bruno Haible  <bruno@clisp.org>
11290
11291         Improve MODULES.html output.
11292         * modules/mkfifoat (Description): Use the word "function".
11293         * modules/readlinkat (Description): Likewise.
11294         * modules/symlinkat (Description): Likewise.
11295
11296 2011-11-09  Eric Blake  <eblake@redhat.com>
11297
11298         ptsname_r-tests: new test module
11299         * modules/ptsname_r-tests: New module.
11300         * tests/test-ptsname_r.c: New file.
11301
11302         ptsname_r: new module
11303         * modules/ptsname_r: New module.
11304         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11305         * lib/ptsname.c (__ptsname_r): Split...
11306         * lib/ptsname_r.c: ...into new file.
11307         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11308         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11309         * modules/stdlib (Makefile.am): Substitute witnesses.
11310         * lib/stdlib.in.h (ptsname_r): Declare it.
11311         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11312         * MODULES.html.sh (Misc): Likewise.
11313         * modules/ptsname (Depends-on): Alter dependency.
11314         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11315
11316 2011-11-09  Jim Meyering  <meyering@redhat.com>
11317
11318         announce-gen: be more concise when there's only one URL+tarball
11319         * build-aux/announce-gen (get_tool_versions): When you distribute
11320         only one type of tarball, combine the first two "Here are..."
11321         sections and make the key-checking grammar independent of
11322         how many tarballs there are.
11323
11324 2011-11-09  Eric Blake  <eblake@redhat.com>
11325
11326         openpty: provide a stub on mingw
11327         * lib/pty.in.h (includes): Provide forward declarations.
11328         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11329
11330         raise: fix mingw handling of SIGPIPE
11331         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11332
11333 2011-11-08  Bruno Haible  <bruno@clisp.org>
11334
11335         More conditional dependencies.
11336         * modules/faccessat (Depends-on): Add conditions.
11337         * modules/fchmodat (Depends-on): Likewise.
11338         * modules/fchownat (Depends-on): Likewise.
11339         * modules/fstatat (Depends-on): Likewise.
11340         * modules/mkfifoat (Depends-on): Likewise.
11341         * modules/readlinkat (Depends-on): Likewise.
11342         * modules/symlinkat (Depends-on): Likewise.
11343         * modules/unlinkat (Depends-on): Likewise.
11344         * modules/utimensat (Depends-on): Likewise.
11345         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11346         * modules/linkat (Depends-on): Refine the conditions.
11347         * modules/renameat (Depends-on): Likewise.
11348
11349 2011-11-08  Bruno Haible  <bruno@clisp.org>
11350
11351         faccessat: Move AC_LIBOBJ invocation to module description.
11352         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11353         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11354         invocation from here...
11355         * modules/faccessat (configure.ac): ... to here. Invoke
11356         gl_PREREQ_FACCESSAT.
11357
11358 2011-11-08  Bruno Haible  <bruno@clisp.org>
11359
11360         faccessat: Simplify autoconf macro.
11361         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11362         gl_FUNC_EUIDACCESS.
11363
11364 2011-11-08  Bruno Haible  <bruno@clisp.org>
11365
11366         renameat: Fix dependencies.
11367         * modules/renameat (Depends-on): Add stdbool.
11368
11369 2011-11-08  Bruno Haible  <bruno@clisp.org>
11370
11371         mkfifoat: Fix module description.
11372         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11373         not gl_UNISTD_MODULE_INDICATOR.
11374
11375 2011-11-08  Bruno Haible  <bruno@clisp.org>
11376
11377         fstatat: Remove unused dependency.
11378         * modules/fstatat (Depends-on): Remove fstat.
11379
11380 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11381
11382         GNUmakefile: behave when Makefile is missing.
11383         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11384
11385 2011-11-08  Bruno Haible  <bruno@clisp.org>
11386
11387         openat: Conditionalize dependencies.
11388         * lib/openat.c: Reduce the scope of some #includes.
11389         * modules/openat (Depends-on): Add conditions.
11390
11391 2011-11-07  Jim Meyering  <meyering@redhat.com>
11392
11393         maint.mk: extract GPG key ID without using a temporary file
11394         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11395         without using a temporary file.  Based on a suggestion from Werner Koch
11396         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11397
11398 2011-11-07  Eric Blake  <eblake@redhat.com>
11399
11400         grantpt: fix typo
11401         * lib/stdlib.in.h (grantpt): Check correct function.
11402
11403         maint.mk: silence new syntax check
11404         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11405
11406 2011-11-06  Bruno Haible  <bruno@clisp.org>
11407
11408         Doc about floating-point and math API.
11409         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11410         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11411
11412 2011-11-06  Bruno Haible  <bruno@clisp.org>
11413
11414         stdalign tests: Skip the test when compiled by Sun C.
11415         * tests/test-stdalign.c (main): Skip the test on Sun C.
11416
11417 2011-11-06  Bruno Haible  <bruno@clisp.org>
11418
11419         ansi-c++-opt: Complete the 2011-06-05 change.
11420         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11421         does not support namespaces, set the variable to "no", not to ":".
11422
11423 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11424
11425         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11426
11427 2011-11-06  Bruno Haible  <bruno@clisp.org>
11428
11429         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11430         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11431         (minus_zerol) [HP-UX]: New macro.
11432         (unary_minus) [HP-UX]: New function.
11433         (copysignl) [HP-UX]: Use unary_minus function.
11434
11435 2011-11-06  Bruno Haible  <bruno@clisp.org>
11436
11437         ldexp, ldexpf, ldexpl: Enhance tests.
11438         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11439         and tests/test-ldexpl.c.
11440         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11441         LDEXP, MIN_EXP, MAX_EXP): New macros.
11442         Include test-ldexp.h.
11443         (main): Just call test_function.
11444         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11445         infinity.h, nan.h.
11446         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11447         MAX_EXP): New macros.
11448         Include test-ldexp.h.
11449         (x, y): Remove variables.
11450         (main): Just call test_function.
11451         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11452         infinity.h, nan.h.
11453         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11454         MAX_EXP): New macros.
11455         Include test-ldexp.h.
11456         (x, y): Remove variables.
11457         (main): Just call test_function.
11458         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11459         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11460         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11461         (Depends-on): Add isnand-nolibm, signbit, float.
11462         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11463         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11464         (Depends-on): Add isnanf-nolibm, signbit, float.
11465
11466 2011-11-06  Bruno Haible  <bruno@clisp.org>
11467
11468         math tests: Cosmetics.
11469         * tests/test-math-c++.cc: Reorder declarations.
11470
11471 2011-11-05  Bruno Haible  <bruno@clisp.org>
11472
11473         fma*: Simplify test.
11474         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11475         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11476
11477         Tests for module 'fmal'.
11478         * modules/fmal-tests: New file.
11479         * tests/test-fmal1.c: New file.
11480         * tests/test-fmal2.c: New file.
11481
11482         New module 'fmal'.
11483         * lib/math.in.h (fmal): New declaration.
11484         * lib/fmal.c: New file.
11485         * m4/fmal.m4: New file.
11486         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11488         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11489         REPLACE_FMAL.
11490         * modules/fmal: New file.
11491         * doc/posix-functions/fmal.texi: Mention the new module and the various
11492         bugs.
11493
11494         Tests for module 'fmaf'.
11495         * modules/fmaf-tests: New file.
11496         * tests/test-fmaf1.c: New file.
11497         * tests/test-fmaf2.c: New file.
11498
11499         New module 'fmaf'.
11500         * lib/math.in.h (fmaf): New declaration.
11501         * lib/fmaf.c: New file.
11502         * m4/fmaf.m4: New file.
11503         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11505         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11506         REPLACE_FMAF.
11507         * modules/fmaf: New file.
11508         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11509         bugs.
11510
11511         Tests for module 'fma'.
11512         * modules/fma-tests: New file.
11513         * tests/test-fma1.c: New file.
11514         * tests/test-fma1.h: New file.
11515         * tests/test-fma2.c: New file.
11516         * tests/test-fma2.h: New file.
11517
11518         New module 'fma'.
11519         * lib/math.in.h (fma): New declaration.
11520         * lib/fma.c: New file.
11521         * m4/fma.m4: New file.
11522         * m4/fegetround.m4: New file.
11523         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11525         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11526         REPLACE_FMA.
11527         * modules/fma: New file.
11528         * doc/posix-functions/fma.texi: Mention the new module and the various
11529         bugs.
11530
11531         Extend gl_MATHFUNC.
11532         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11533         Support 'void' as argument type.
11534         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11535
11536 2011-11-05  Jim Meyering  <meyering@redhat.com>
11537
11538         maint.mk: also prohibit inclusion of dirent.h without use
11539         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11540
11541 2011-11-05  Bruno Haible  <bruno@clisp.org>
11542
11543         ldexpl tests: Avoid test failure on MSVC 9.
11544         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11545         value. Needed in order to enforce the conversion from a value greater
11546         than LDBL_MAX to Infinity.
11547
11548 2011-11-05  Bruno Haible  <bruno@clisp.org>
11549
11550         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11551         * modules/at-internal: New file, extracted from modules/openat.
11552         * modules/openat-h: New file.
11553         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11554         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11555         * modules/openat (Description): Add reference to POSIX function.
11556         (Files): Remove lib/openat.h, lib/openat-proc.c.
11557         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11558         intprops, unistd.
11559         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11560         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11561         gl_FCNTL_MODULE_INDICATOR.
11562         (Include): Remove unistd.h, openat.h.
11563         * modules/areadlinkat (Files): Add lib/at-func.c.
11564         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11565         openat-die, openat-h, save-cwd.
11566         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11567         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11568         openat-die, openat-h, save-cwd, unistd.
11569         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11570         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11571         openat-h, save-cwd. Remove fcntl-h, openat.
11572         * modules/fchmodat (Files): Remove lib/openat.h.
11573         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11574         openat, stdbool, unistd.
11575         * modules/fchownat (Files): Remove lib/openat.h.
11576         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11577         openat, stdbool, sys_stat.
11578         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11579         lib/openat-proc.c.
11580         (Depends-on): Add at-internal.
11581         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11582         * modules/fstatat (Files): Remove lib/openat.h.
11583         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11584         stdbool, unistd.
11585         * modules/fts (Depends-on): Add openat-h.
11586         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11587         openat.
11588         * modules/mkdirat (Files): Remove lib/openat.h.
11589         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11590         openat, stdbool, sys_stat.
11591         * modules/mkfifoat (Files): Add lib/at-func.c.
11592         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11593         openat-h, save-cwd. Remove fcntl-h, openat.
11594         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11595         * modules/readlinkat (Files): Add lib/at-func.c.
11596         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11597         openat-h, save-cwd. Remove fcntl-h, openat.
11598         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11599         openat.
11600         * modules/selinux-at (Files): Add lib/at-func.c.
11601         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11602         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11603         * modules/symlinkat (Files): Add lib/at-func.c.
11604         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11605         openat-h, save-cwd. Remove fcntl-h, openat.
11606         * modules/unlinkat (Files): Remove lib/openat.h.
11607         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11608         stdbool.
11609         * modules/utimensat (Files): Add lib/at-func.c.
11610         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11611         openat-die, openat-h, save-cwd.
11612         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11613         * modules/fdutimensat-tests (Depends-on): Add openat.
11614         * modules/fstatat-tests (Depends-on): Add openat-h.
11615         * modules/readlinkat-tests (Depends-on): Add openat.
11616         * modules/symlinkat-tests (Depends-on): Add openat.
11617
11618 2011-11-05  Bruno Haible  <bruno@clisp.org>
11619
11620         openat: Include <stdbool.h>.
11621         * lib/openat.c: Include <stdbool.h>.
11622
11623 2011-11-04  Bruno Haible  <bruno@clisp.org>
11624
11625         fchownat, renameat, unlinkat: Fix dependencies.
11626         * modules/fchownat (Depends-on): Add fstatat.
11627         * modules/renameat (Depends-on): Likewise.
11628         * modules/unlinkat (Depends-on): Likewise.
11629
11630 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11631
11632         openat: remove direct dependency on dirent
11633         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11634         and hasn't been needed ever since fdopendir was split into its own
11635         module on 2009-08-31.
11636         * modules/openat (Depends-on): Remove dirent.
11637
11638 2011-11-04  Bruno Haible  <bruno@clisp.org>
11639
11640         renameat: Optimize code size.
11641         * modules/renameat (configure.ac): Don't compile at-func2.c if
11642         REPLACE_RENAMEAT is 1.
11643
11644 2011-11-04  Bruno Haible  <bruno@clisp.org>
11645
11646         openat tests: Fix file list.
11647         * modules/openat-tests (Files): Add tests/test-open.h.
11648
11649 2011-11-04  Bruno Haible  <bruno@clisp.org>
11650
11651         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11652         * modules/fchmodat (Depends-on): Add openat-die.
11653         * modules/fchownat (Depends-on): Likewise.
11654         * modules/linkat (Depends-on): Likewise.
11655         * modules/renameat (Depends-on): Likewise.
11656         * modules/openat (Depends-on): Add dirent.
11657
11658 2011-11-04  Jim Meyering  <meyering@redhat.com>
11659
11660         at-func*.c: fix comments
11661         * lib/at-func2.c: Correct/improve first-line comment.
11662         * lib/at-func.c: Correct grammar in first-line comment.
11663
11664 2011-11-04  Bruno Haible  <bruno@clisp.org>
11665
11666         New module 'mkdirat', split off from module 'openat'.
11667         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11668         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11669         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11670         * modules/mkdirat: New file, extracted from modules/openat.
11671         * modules/openat (Files): Remove lib/mkdirat.c.
11672         (Depends-on): Remove mkdir.
11673         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11674         (Include): Remove <sys/stat.h>.
11675         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11676         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11677         tests/test-mkdir.h.
11678         (Depends-on): Remove ignore-value.
11679         (Makefile.am): Remove rules for test-mkdirat.
11680         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11681         of module 'openat'.
11682         * NEWS: Mention the change.
11683
11684 2011-11-04  Bruno Haible  <bruno@clisp.org>
11685
11686         closedir: Avoid warning on mingw.
11687         * lib/closedir.c: Include <unistd.h>.
11688
11689 2011-11-04  Bruno Haible  <bruno@clisp.org>
11690
11691         New module 'fstatat', split off from module 'openat'.
11692         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11693         defined.
11694         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11695         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11696         gl_FUNC_FSTATAT.
11697         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11698         * modules/fstatat: New file, extracted from modules/openat.
11699         * modules/openat (Files): Remove lib/fstatat.c.
11700         (Depends-on): Remove lstat.
11701         (configure.ac): Remove AC_LIBOBJ of fstatat.
11702         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11703         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11704         tests/test-lstat.h, tests/test-stat.h.
11705         (Depends-on): Remove getcwd-lgpl.
11706         (Makefile.am): Remove rules for test-fstatat.
11707         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11708         of module 'openat'.
11709         * NEWS: Mention the change.
11710         * modules/getcwd (Depends-on): Add fstatat.
11711         * modules/linkat (Depends-on): Likewise.
11712         * modules/mkfifoat-tests (Depends-on): Likewise.
11713         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11714
11715 2011-11-03  Bruno Haible  <bruno@clisp.org>
11716
11717         New module 'unlinkat', split off from module 'openat'.
11718         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11719         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11720         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11721         * modules/unlinkat: New file, extracted from modules/openat. Correct
11722         the dependency conditions.
11723         * modules/openat (Files): Remove lib/unlinkat.c.
11724         (Depends-on): Remove rmdir, unlink.
11725         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11726         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11727         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11728         tests/test-rmdir.h, tests/test-unlink.h.
11729         (Depends-on): Remove unlinkdir.
11730         (Makefile.am): Remove rules for test-unlinkat.
11731         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11732         of module 'openat'.
11733         * NEWS: Mention the change.
11734         * modules/linkat-tests (Depends-on): Add unlinkat.
11735         * modules/mkfifoat-tests (Depends-on): Likewise.
11736         * modules/readlinkat-tests (Depends-on): Likewise.
11737
11738 2011-11-02  Bruno Haible  <bruno@clisp.org>
11739
11740         New module 'fchmodat', split off from module 'openat'.
11741         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11742         defined.
11743         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11744         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11745         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11746         * modules/fchmodat: New file, extracted from modules/openat.
11747         * modules/openat (Files): Remove lib/fchmodat.c.
11748         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11749         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11750         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11751         (Makefile.am): Remove rules for test-fchmodat.
11752         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11753         of module 'openat'.
11754         * NEWS: Mention the change.
11755
11756 2011-11-02  Jim Meyering  <meyering@redhat.com>
11757
11758         putenv: indent #definition of "environ" to placate cppi
11759         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11760
11761         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11762         Git logs are often treated as immutable, because editing them
11763         changes the SHA1 checksums of all descendants.  Thus, errors in
11764         git logs tend to stay there forever.  However, when we generate
11765         a ChangeLog file -- typically for distribution -- from that git log,
11766         we can actually make corrections in the generated file.  The key
11767         lies in recording in machine-readable/applicable form the desired
11768         corrections.  See --help for description and an example.
11769         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11770         (usage): Describe it; alphabetize option descriptions.
11771         (main): Honor the new option, carefully.
11772
11773 2011-11-01  Jim Meyering  <meyering@redhat.com>
11774
11775         gitlog-to-changelog: avoid an infloop
11776         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11777         that ends up being empty.
11778
11779 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11780
11781         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11782         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11783         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11784         contains (possibly-quoted) backslashes.  This should avoid
11785         all-too-common shell bugs if COMPLICATED contains backslashes in
11786         the "wrong" places.  Reported by David Evans in
11787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11788         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11789         because we want ASCII ranges.  Is there some reason we don't use
11790         the C locale everywhere in this script?
11791         (func_module, top level): Avoid unwanted pathname expansion when
11792         $repo_url_prefix or $repo_url_suffix_repl contain shell
11793         metacharacters like '?' and '*'.
11794
11795 2011-11-01  Bruno Haible  <bruno@clisp.org>
11796
11797         fchownat: Improve description.
11798         * modules/fchownat (Description): Add link to function.
11799
11800 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11801
11802         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11803         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11805         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11806
11807 2011-11-01  Bruno Haible  <bruno@clisp.org>
11808
11809         alignof: Avoid collision with stdalign module.
11810         * lib/alignof.h (alignof): Remove macro.
11811         * NEWS: Mention the change.
11812         Reported by Paul Eggert.
11813
11814 2011-11-01  Bruno Haible  <bruno@clisp.org>
11815
11816         New module 'fchownat', split off from module 'openat'.
11817         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11818         defined.
11819         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11820         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11821         invoke gl_FUNC_FCHOWNAT.
11822         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11823         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11824         * modules/fchownat: New file, extracted from modules/openat.
11825         * modules/openat (Files): Remove lib/fchownat.c.
11826         (Depends-on): Remove lchown.
11827         (configure.ac): Remove AC_LIBOBJ of fchownat.
11828         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11829         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11830         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11831         (Depends-on): Remove mgetgroups, usleep, stat-time.
11832         (configure.ac): Remove test for getegid.
11833         (Makefile.am): Remove rules for test-fchownat.
11834         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11835         of module 'openat'.
11836         * NEWS: Mention the change.
11837
11838 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11839
11840         stdalign: port better to MSVC and to Sun C 5.11
11841         This fixes some of the problems reported by Bruno Haible in
11842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11843         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11844         shortcomings of MSVC and of Sun C 5.11.
11845         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11846         around __declspec arg.
11847         * modules/stdalign-tests (Files): Add tests/macros.h.
11848         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11849         Include macros.h, for ASSERT.
11850         (DECLARE_ALIGNED): Remove.
11851         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11852         to catch bug), and to 1 if not (simplifies the rest of the code).
11853         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11854         (CHECK_AUTO): Remove.
11855         (CHECK_ALIGNED): Check only the alignment of the static vars,
11856         since auto var alignment isn't supported by Sun C 5.11.
11857         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11858         ASSERT failures are easier to diagnose.
11859
11860 2011-10-31  Bruno Haible  <bruno@clisp.org>
11861
11862         doc about some IRIX 5.3 problems.
11863         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11864         on IRIX 5.3.
11865         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11866         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11867         5.3.
11868         * doc/posix-functions/grantpt.texi: Likewise.
11869         * doc/posix-functions/unlockpt.texi: Likewise.
11870         * doc/posix-functions/lgamma.texi: Likewise.
11871         * doc/posix-functions/nextafter.texi: Likewise.
11872         * doc/posix-functions/remainder.texi: Likewise.
11873         * doc/posix-functions/select.texi: Mention misplaced declaration on
11874         IRIX 5.3.
11875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11876
11877 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11878
11879         gitlog-to-changelog: fix git-log invocation.
11880         git-log mishandles date strings before 1970-01-01 UTC, and there is
11881         no use to specify --since=1970-01-01 by default anyway.
11882         * build-aux/gitlog-to-changelog: By default, when no --since option
11883         was given, do not specify explicit --since option to git-log.
11884
11885 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11886
11887         gitlog-to-changelog: new option --append-dot.
11888         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11889         first non-blank line of each commit message terminated with a dot.
11890
11891 2011-10-30  Bruno Haible  <bruno@clisp.org>
11892
11893         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11894         * lib/ffsl.h: Include <config.h>.
11895         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11896
11897 2011-10-30  Jim Meyering  <meyering@redhat.com>
11898
11899         GNUmakefile: reenable "make syntax-check" for most projects
11900         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11901         build-aux variable", "syntax-check" would do nothing but succeed with
11902         the "No version control files detected..." diagnostic (unless you
11903         happened to override _build-aux via cfg.mk).
11904         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11905         to precede inclusion of maint.mk.  Otherwise, these variables would
11906         be used undefined in any project that does not override the default.
11907
11908 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11909
11910         gitlog-to-changelog: treat a message with only blank lines as empty.
11911         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11912         trailing blank lines before the code that issues a warning about an
11913         empty commit message.
11914
11915 2011-10-30  Jim Meyering  <meyering@redhat.com>
11916
11917         test-parse-datetime.c: avoid new DST-related false positive test failure
11918         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11919         based on the time/date we'll convert, not the current time.
11920         Otherwise, the moment we cross a DST boundary like today's in
11921         Europe, (CEST to CET), that offset ends up being one hour off.
11922
11923 2011-10-27  Bruno Haible  <bruno@clisp.org>
11924
11925         fstat: Tweak documentation.
11926         * modules/fstat (Description): More precise description.
11927
11928 2011-10-27  Bruno Haible  <bruno@clisp.org>
11929
11930         Update documentation regarding 'largefile' module.
11931         * doc/posix-functions/fstat.texi: Tweak wording.
11932         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11933         problems with huge directories and/or small ino_t types.
11934         * doc/posix-functions/readdir.texi: Likewise.
11935         * doc/posix-functions/rewinddir.texi: Likewise.
11936
11937 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11938
11939         maint.mk: don't maintain a second build-aux variable.
11940         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11941         depends on GNUmakefile, which already maintains a cfg.mk
11942         overridable $(_build-aux) for projects with a non-standard
11943         build-aux directory location, although without the $(srcdir)
11944         prefix.  Use that variable consistently instead of introducing a
11945         second one.  Adjust all call sites.
11946
11947 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11948
11949         Add stdalign module and use it in other modules.
11950         This is based on a previous proposal by Bruno Haible
11951         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11952
11953         stdalign: new module
11954         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11955         * modules/stdalign: New files.
11956         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11957         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11958
11959         stdalign-tests: new module
11960         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11961
11962         argp: use stdalign
11963         * lib/argp-parse.c: Include <stdalign.h>.
11964         (alignof): Remove.
11965         * modules/argp (Depends-on): Add stdalign.
11966
11967         crypto libraries: use stdalign
11968         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11969         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11970         Do not include <stdlib.h> twice, in md4.c.
11971         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11972         because we are accessing a pointer's bit-pattern, not a size.
11973         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11974         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11975         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11976         * modules/crypto/sha512: Likewise.
11977
11978         sys_socket: use stdalign, not alignof
11979         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11980         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11981
11982 2011-10-27  Bruno Haible  <bruno@clisp.org>
11983
11984         raise test: Avoid a test failure on Linux/MIPS.
11985         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11986         because 99 is a valid signal on Linux/MIPS.
11987
11988 2011-10-27  Bruno Haible  <bruno@clisp.org>
11989
11990         nonblocking tests: Fix test failure on Linux/MIPS.
11991         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11992         Set to 270000.
11993
11994 2011-10-27  Bruno Haible  <bruno@clisp.org>
11995
11996         utimensat: Work around problem on Linux/hppa.
11997         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11998         values.
11999         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12000
12001 2011-10-25  Jim Meyering  <meyering@redhat.com>
12002
12003         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12004         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12005         after symbols like NULL, size_t, etc.
12006         Reported by Alfred M. Szmidt.
12007
12008         maint.mk: exempt ENODATA from a syntax-check rule
12009         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12010         from the sc_prohibit_always-defined_macros syntax-check rule.
12011         Add a comment.  See this for more details:
12012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12013
12014 2011-10-23  Jim Meyering  <meyering@redhat.com>
12015
12016         fts: close parent dir FD before returning from post-traversal fts_read
12017         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12018         unlink A, even though an FD open on A remained.  This is suboptimal
12019         (holding a file descriptor open longer than needed), but otherwise not
12020         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12021         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12022         that represents a real problem: it causes the removal of A to fail
12023         with e.g., "rm: cannot remove `A': Device or resource busy"
12024
12025         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12026         directory file descriptors.  After completing the final, FTS_DP,
12027         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12028         cache, but then proceeded to add a new FD to it via the subsequent
12029         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12030         final file descriptor would be closed only via fts_close's call to
12031         fd_ring_clear.  Now, it is usually closed earlier, via the final
12032         FTS_DP-returning fts_read call.
12033         * lib/fts.c (restore_initial_cwd): New function, converted from
12034         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12035         Update callers.
12036         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12037         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12038
12039 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12040             Bruno Haible  <bruno@clisp.org>
12041             Jim Meyering  <jim@meyering.net>
12042
12043         readme-release: improve safety of release prep instructions.
12044         * README-release: Don't git pull all branches when only master
12045         is needed for the release process.
12046         Run make maintainer-clean before changing trees and merging.
12047         Don't try to run ./configure right after git pull in case files
12048         that influence the bootstrap process have changed, move the
12049         ./configure step to after running ./bootstrap.
12050         Don't bootstrap "one last time"... it's the first time!
12051
12052 2011-10-22  Bruno Haible  <bruno@clisp.org>
12053
12054         errno, strerror-override: Support for MSVC 10.
12055         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12056         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12057         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12058         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12059         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12060         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12061         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12062         Assign values compatible with MSVC 10.
12063         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12064         New macros.
12065         (GNULIB_defined_EWINSOCK): New macro.
12066         * lib/strerror-override.c (strerror_override): Update accordingly.
12067         * lib/strerror-override.h: Likewise.
12068         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12069         longer equal to the corresponding errno value.
12070         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12071
12072 2011-10-22  Bruno Haible  <bruno@clisp.org>
12073
12074         perror: Recognize when test program crashes.
12075         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12076         strerror, set gl_cv_func_perror_works to no.
12077         Reported by Daniel Richard G. <skunk@iskunk.org>.
12078
12079         perror: Fix indentation.
12080         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12081
12082 2011-10-22  Bruno Haible  <bruno@clisp.org>
12083
12084         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12085         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12086         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12087         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12088         functions, not as a macro.
12089         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12090         macros.
12091         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12092         absence of macro.
12093         Suggested by Eric Blake.
12094         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12095
12096 2011-10-21  Bruno Haible  <bruno@clisp.org>
12097
12098         relocatable-prog-wrapper: Don't leave object files behind.
12099         * build-aux/install-reloc: Re-synchronize list of .o files to be
12100         removed with list of compilation units.
12101
12102 2011-10-20  Bruno Haible  <bruno@clisp.org>
12103
12104         openpty, posix_openpt: Remove code duplication.
12105         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12106         * lib/openpty.c: Include <stdlib.h>.
12107         (openpty): Use posix_openpt on all platforms except IRIX.
12108         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12109
12110 2011-10-20  Bruno Haible  <bruno@clisp.org>
12111
12112         unlockpt: Detect invalid argument.
12113         * lib/unlockpt.c: Include <fcntl.h>.
12114         (unlockpt): Check whether fd is valid, using fcntl().
12115         * modules/unlockpt (Depends-on): Add fcntl-h.
12116
12117 2011-10-20  Bruno Haible  <bruno@clisp.org>
12118
12119         openpty: Avoid compilation error on AIX 6.1.
12120         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12121
12122 2011-10-20  Bruno Haible  <bruno@clisp.org>
12123
12124         posix_openpt: Support for OpenBSD.
12125         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12126         (posix_openpt) [OpenBSD]: New code.
12127         * lib/grantpt.c: Include <fcntl.h>.
12128         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12129         * modules/grantpt (Depends-on): Add fcntl-h.
12130
12131 2011-10-20  Bruno Haible  <bruno@clisp.org>
12132
12133         posix_openpt test: Coding style.
12134         * tests/test-posix_openpt.c: Use GNU coding style.
12135
12136 2011-10-20  Bruno Haible  <bruno@clisp.org>
12137
12138         grantpt: Support --avoid=pt_chown.
12139         * modules/grantpt (Files): Add lib/pty-private.h.
12140
12141 2011-10-20  Bruno Haible  <bruno@clisp.org>
12142
12143         posix_openpt: Fix autoconf macro.
12144         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12145         unneeded check for _getpty.
12146
12147 2011-10-20  Bruno Haible  <bruno@clisp.org>
12148
12149         openpty: Update comments.
12150         * lib/openpty.c: Add comments about Minix.
12151
12152 2011-10-19  Eric Blake  <eblake@redhat.com>
12153
12154         openpty: relax license
12155         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12156
12157         pt_chown: use configmake to simplify build
12158         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12159
12160         ptsname and others: relax license
12161         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12162         * modules/unlockpt (License): Likewise.
12163         * modules/pt_chown (License): Likewise.
12164         * modules/ptsname (License): Likewise.
12165         * modules/ttyname_r (License): Likewise.
12166
12167 2011-10-19  Jim Meyering  <meyering@redhat.com>
12168
12169         posix_openpt: remove spurious #endif
12170         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12171
12172 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12173
12174         maint.mk: Respect $(build_aux) in web-manual rule.
12175         * top/maint.mk (web-manual): Find gen-announce script in user's
12176         $(build_aux) directory instead of hard-coding 'build-aux'.
12177
12178 2011-10-19  Bruno Haible  <bruno@clisp.org>
12179
12180         posix_openpt: Fix compilation error.
12181         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12182         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12183         Mention the openpty module as an alternative.
12184
12185 2011-10-19  Bruno Haible  <bruno@clisp.org>
12186
12187         Support for old NeXTstep 3.3 frexp().
12188         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12189         execution time of the test to 5 seconds.
12190         Reported by Daniel Richard G. <skunk@iskunk.org>.
12191
12192 2011-10-19  Bruno Haible  <bruno@clisp.org>
12193
12194         Support for old NeXTstep 3.3 sed.
12195         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12196         part, use /.../, not \|...|. Escape periods in the header file name.
12197         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12198         Reported by Daniel Richard G. <skunk@iskunk.org>.
12199
12200 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12201
12202         Support for old NeXTstep 3.3 gcc.
12203         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12204         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12205         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12206         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12207         * lib/regex.h (_Restrict_arr_): Likewise.
12208         * lib/regex_internal.h (re_token_t): Likewise.
12209         * lib/regexec.c (check_node_accept_bytes): Likewise.
12210         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12211
12212 2011-10-18  Eric Blake  <eblake@redhat.com>
12213
12214         posix_openpt: new module
12215         * modules/posix_openpt: New module.
12216         * m4/posix_openpt.m4: New file.
12217         * lib/posix_openpt.c: Likewise.
12218         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12219         (gl_STDLIB_H_DEFAULTS): Set defaults.
12220         * modules/stdlib (Makefile.am): Substitute macros.
12221         * lib/stdlib.in.h (posix_openpt): Declare.
12222         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12223         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12224         * modules/posix_openpt-tests: New test module.
12225         * tests/test-posix_openpt.c: New test.
12226
12227 2011-10-15  Bruno Haible  <bruno@clisp.org>
12228
12229         xstrtoll: Fix compilation failure.
12230         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12231         from lib/strtol.c.
12232         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12233         some platforms.
12234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12235
12236 2011-10-15  Bruno Haible  <bruno@clisp.org>
12237
12238         vasnprintf: Optimize bit search operation.
12239         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12241         gl_DOUBLE_EXPONENT_LOCATION.
12242         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12243         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12244         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12245         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12246         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12247         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12248         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12249         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12250         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12251
12252 2011-10-15  Bruno Haible  <bruno@clisp.org>
12253
12254         vasnprintf: Fix comments.
12255         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12256
12257 2011-10-14  Bruno Haible  <bruno@clisp.org>
12258
12259         Tests for module 'integer_length_ll'.
12260         * modules/integer_length_ll-tests: New file.
12261         * tests/test-integer_length_ll.c: New file.
12262
12263         New module 'integer_length_ll'.
12264         * lib/integer_length_ll.c: New file.
12265         * modules/integer_length_ll: New file.
12266
12267 2011-10-14  Bruno Haible  <bruno@clisp.org>
12268
12269         Tests for module 'integer_length_l'.
12270         * modules/integer_length_l-tests: New file.
12271         * tests/test-integer_length_l.c: New file.
12272
12273         New module 'integer_length_l'.
12274         * lib/integer_length_l.c: New file.
12275         * modules/integer_length_l: New file.
12276
12277 2011-10-14  Bruno Haible  <bruno@clisp.org>
12278
12279         Tests for module 'integer_length'.
12280         * modules/integer_length-tests: New file.
12281         * tests/test-integer_length.c: New file.
12282
12283         New module 'integer_length'.
12284         * lib/integer_length.h: New file.
12285         * lib/integer_length.c: New file.
12286         * modules/integer_length: New file.
12287
12288 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12289
12290         popen: Fix dependency conditions.
12291         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12292
12293 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12294
12295         perror: Fix autoconf test.
12296         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12297         <stdlib.h> and <string.h>.
12298
12299 2011-10-14  Bruno Haible  <bruno@clisp.org>
12300
12301         ffsl: Optimize on 64-bit platforms.
12302         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12303         unrolling.
12304
12305 2011-10-13  Bruno Haible  <bruno@clisp.org>
12306
12307         ffsl: Optimize on 32-bit platforms.
12308         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12309         use ffs() without a loop.
12310
12311         ffsl, ffsll: Optimize for GCC.
12312         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12313         * lib/ffsl.c (GCC_BUILTIN): New macro.
12314         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12315
12316 2011-10-13  Bruno Haible  <bruno@clisp.org>
12317
12318         ffs, bcopy, memset: Support symbol renaming via config.h.
12319         * lib/ffs.c: Include <config.h>.
12320         * lib/bcopy.c: Likewise.
12321         * lib/memset.c: Likewise.
12322
12323 2011-10-10  Bruno Haible  <bruno@clisp.org>
12324
12325         atanl: Simplify for platforms where 'long double' == 'double'.
12326         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12327         alternative implementation.
12328         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12329         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12330         * modules/atanl (Depends-on): Add atan. Update conditions.
12331
12332 2011-10-10  Bruno Haible  <bruno@clisp.org>
12333
12334         acosl: Simplify for platforms where 'long double' == 'double'.
12335         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12336         alternative implementation.
12337         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12338         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12339         * modules/acosl (Depends-on): Add acos. Update conditions.
12340
12341 2011-10-10  Bruno Haible  <bruno@clisp.org>
12342
12343         asinl: Simplify for platforms where 'long double' == 'double'.
12344         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12345         alternative implementation.
12346         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12347         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12348         * modules/asinl (Depends-on): Add asin. Update conditions.
12349
12350 2011-10-10  Bruno Haible  <bruno@clisp.org>
12351
12352         tanl: Simplify for platforms where 'long double' == 'double'.
12353         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12354         implementation.
12355         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12356         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12357         * modules/tanl (Depends-on): Add tan. Update conditions.
12358         (configure.ac): Don't compile trigl.c if
12359         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12360
12361 2011-10-10  Bruno Haible  <bruno@clisp.org>
12362
12363         cosl: Simplify for platforms where 'long double' == 'double'.
12364         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12365         implementation.
12366         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12367         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12368         * modules/cosl (Depends-on): Add cos. Update conditions.
12369         (configure.ac): Don't compile sincosl.c and trigl.c if
12370         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12371
12372 2011-10-10  Bruno Haible  <bruno@clisp.org>
12373
12374         sinl: Simplify for platforms where 'long double' == 'double'.
12375         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12376         implementation.
12377         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12378         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12379         * modules/sinl (Depends-on): Add sin. Update conditions.
12380         (configure.ac): Don't compile sincosl.c and trigl.c if
12381         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12382
12383 2011-10-10  Bruno Haible  <bruno@clisp.org>
12384
12385         logl: Simplify for platforms where 'long double' == 'double'.
12386         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12387         implementation.
12388         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12389         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12390         * modules/logl (Depends-on): Add log. Update conditions.
12391
12392 2011-10-10  Bruno Haible  <bruno@clisp.org>
12393
12394         expl: Simplify for platforms where 'long double' == 'double'.
12395         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12396         implementation.
12397         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12398         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12399         * modules/expl (Depends-on): Add exp. Update conditions.
12400
12401 2011-10-10  Bruno Haible  <bruno@clisp.org>
12402
12403         sqrtl: Simplify for platforms where 'long double' == 'double'.
12404         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12405         alternative implementation.
12406         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12407         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12408         * modules/sqrtl (Depends-on): Update conditions.
12409
12410 2011-10-10  Bruno Haible  <bruno@clisp.org>
12411
12412         ldexpl: Simplify for platforms where 'long double' == 'double'.
12413         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12414         alternative implementation.
12415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12416         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12417         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12418
12419 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12420
12421         ffsll: set correct witness
12422         * modules/ffsll (configure.ac): Fix typo.
12423
12424 2011-10-10  Bruno Haible  <bruno@clisp.org>
12425
12426         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12427         * lib/printf-frexpl.c: Include <config.h>.
12428         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12429         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12430         second time.
12431         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12432         gl_LONG_DOUBLE_VS_DOUBLE.
12433         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12434         conditions.
12435
12436 2011-10-10  Bruno Haible  <bruno@clisp.org>
12437
12438         frexpl: Simplify for platforms where 'long double' == 'double'.
12439         * lib/frexpl.c: Include <config.h>.
12440         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12441         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12442         time.
12443         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12444         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12445         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12446         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12447         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12448         conditions.
12449
12450 2011-10-10  Jim Meyering  <meyering@redhat.com>
12451
12452         test-renameat: don't leave behind a temporary file
12453         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12454           ERROR: files left in build directory after distclean:
12455           ./gltests/test-renameat.too
12456           make[1]: *** [distcleancheck] Error 1
12457         Reported by Tom G. Christensen.
12458
12459 2011-10-09  Bruno Haible  <bruno@clisp.org>
12460
12461         rint: Determine RINT_LIBM correctly on AIX 7.
12462         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12463         directly, not only through a function pointer. Also accept an optional
12464         4th argument with extra code.
12465         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12466         rintf() call by gcc when optimizing.
12467
12468         mathfunc.m4: Refactor.
12469         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12470         m4 variable.
12471
12472 2011-10-09  Bruno Haible  <bruno@clisp.org>
12473
12474         rintl: Simplify for platforms where 'long double' == 'double'.
12475         * lib/rintl.c: Include <config.h>.
12476         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12477         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12478         time.
12479         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12480         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12481         * modules/rintl (Depends-on): Add rint. Update conditions.
12482
12483 2011-10-09  Bruno Haible  <bruno@clisp.org>
12484
12485         roundl: Simplify for platforms where 'long double' == 'double'.
12486         * lib/roundl.c: Include <config.h>.
12487         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12488         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12489         time.
12490         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12491         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12492         * modules/roundl (Depends-on): Add round. Update conditions.
12493
12494 2011-10-09  Bruno Haible  <bruno@clisp.org>
12495
12496         truncl: Simplify for platforms where 'long double' == 'double'.
12497         * lib/truncl.c: Include <config.h>.
12498         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12499         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12500         time.
12501         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12502         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12503         * modules/truncl (Depends-on): Add trunc. Update conditions.
12504
12505 2011-10-09  Bruno Haible  <bruno@clisp.org>
12506
12507         ceill: Simplify for platforms where 'long double' == 'double'.
12508         * lib/ceill.c: Include <config.h>.
12509         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12510         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12511         time.
12512         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12513         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12514         * modules/ceill (Depends-on): Add ceil. Update conditions.
12515
12516 2011-10-09  Bruno Haible  <bruno@clisp.org>
12517
12518         floorl: Simplify for platforms where 'long double' == 'double'.
12519         * lib/floorl.c: Include <config.h>.
12520         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12521         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12522         time.
12523         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12524         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12525         * modules/floorl (Depends-on): Add floor. Update conditions.
12526
12527 2011-10-09  Bruno Haible  <bruno@clisp.org>
12528
12529         rint: Fix ordering constraints.
12530         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12531         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12532         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12533
12534 2011-10-09  Bruno Haible  <bruno@clisp.org>
12535
12536         copysignl: Simplify for platforms where 'long double' == 'double'.
12537         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12538         alternative.
12539         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12540         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12541         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12542
12543 2011-10-09  Bruno Haible  <bruno@clisp.org>
12544
12545         Tests for module 'rintl'.
12546         * modules/rintl-tests: New file.
12547         * tests/test-rintl.c: New file.
12548
12549         New module 'rintl'.
12550         * lib/math.in.h (rintl): New declaration.
12551         * lib/rintl.c: New file.
12552         * m4/rintl.m4: New file.
12553         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12555         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12556         * modules/rintl: New file.
12557         * tests/test-math-c++.cc: Check the declaration of rintl.
12558         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12559         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12560         * doc/posix-functions/rintl.texi: Mention the new module.
12561
12562 2011-10-09  Bruno Haible  <bruno@clisp.org>
12563
12564         Tests for module 'rintf'.
12565         * modules/rintf-tests: New file.
12566         * tests/test-rintf.c: New file.
12567
12568         New module 'rintf'.
12569         * lib/math.in.h (rintf): New declaration.
12570         * lib/rintf.c: New file.
12571         * m4/rintf.m4: New file.
12572         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12574         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12575         * modules/rintf: New file.
12576         * tests/test-math-c++.cc: Check the declaration of rintf.
12577         * doc/posix-functions/rintf.texi: Mention the new module.
12578
12579 2011-10-09  Bruno Haible  <bruno@clisp.org>
12580
12581         rint: Support for MSVC.
12582         * lib/math.in.h (rint): New declaration.
12583         * lib/rint.c: New file.
12584         * m4/rint.m4: New file.
12585         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12587         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12588         * modules/rint (Description): Fix.
12589         (Files): Add lib/rint.c, m4/rint.m4.
12590         (Depends-on): Add math.
12591         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12592         gl_MATH_MODULE_INDICATOR.
12593         * tests/test-math-c++.cc: Check the declaration of rint.
12594         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12595         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12596         * doc/posix-functions/rint.texi: Mention the replacement provided by
12597         the module.
12598
12599         rint tests: More tests.
12600         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12601         minus-zero.h, infinity.h, nan.h.
12602         (main): Skip the test if the current rounding mode is not standard. Add
12603         tests for negative numbers, minus zero, infinity, NaN.
12604         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12605         tests/nan.h.
12606         (Depends-on): Add isnand-nolibm.
12607
12608 2011-10-09  Bruno Haible  <bruno@clisp.org>
12609
12610         Tests for module 'copysignl'.
12611         * modules/copysignl-tests: New file.
12612         * tests/test-copysignl.c: New file.
12613
12614         New module 'copysignl'.
12615         * lib/math.in.h (copysignl): New declaration.
12616         * lib/copysignl.c: New file.
12617         * m4/copysignl.m4: New file.
12618         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12620         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12621         HAVE_COPYSIGNL.
12622         * modules/copysignl: New file.
12623         * tests/test-math-c++.cc: Check the declaration of copysignl.
12624         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12625         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12626         * doc/posix-functions/copysignl.texi: Mention the new module.
12627
12628 2011-10-09  Bruno Haible  <bruno@clisp.org>
12629
12630         Tests for module 'copysignf'.
12631         * modules/copysignf-tests: New file.
12632         * tests/test-copysignf.c: New file.
12633
12634         New module 'copysignf'.
12635         * lib/math.in.h (copysignf): New declaration.
12636         * lib/copysignf.c: New file.
12637         * m4/copysignf.m4: New file.
12638         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12640         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12641         HAVE_COPYSIGNF.
12642         * modules/copysignf: New file.
12643         * tests/test-math-c++.cc: Check the declaration of copysignf.
12644         * doc/posix-functions/copysignf.texi: Mention the new module.
12645
12646 2011-10-09  Bruno Haible  <bruno@clisp.org>
12647
12648         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12649         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12650         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12651         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12652         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12653         gl_SIGNAL_H_DEFAULTS.
12654
12655 2011-10-09  Bruno Haible  <bruno@clisp.org>
12656
12657         poll: Make macro safer.
12658         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12659         ac_cv_header_poll_h is not set.
12660
12661 2011-10-09  Bruno Haible  <bruno@clisp.org>
12662
12663         copysign: Provide replacement.
12664         * lib/math.in.h (copysign): New declaration.
12665         * lib/copysign.c: New file.
12666         * m4/copysign.m4: New file.
12667         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12669         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12670         HAVE_COPYSIGN.
12671         * modules/copysign (Description): Clarify.
12672         (Files): Add lib/copysign.c, m4/copysign.m4.
12673         (Depends-on): Add math, signbit.
12674         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12675         gl_MATH_MODULE_INDICATOR.
12676         * tests/test-math-c++.cc: Check the declaration of copysign.
12677         * doc/posix-functions/copysign.texi: Mention the effects of the module
12678         on Minix and MSVC.
12679
12680 2011-10-09  Bruno Haible  <bruno@clisp.org>
12681
12682         isinf: Ensure macro on AIX 5.1.
12683         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12684         macro.
12685         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12686
12687 2011-10-09  Bruno Haible  <bruno@clisp.org>
12688
12689         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12690         * modules/snprintf-posix-tests (configure.ac): Require
12691         gl_LONG_DOUBLE_VS_DOUBLE.
12692         * modules/sprintf-posix-tests (configure.ac): Likewise.
12693         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12694         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12695         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12696         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12697         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12698         tests on platforms where 'long double' is the same as 'double'.
12699         * tests/test-sprintf-posix.h (test_function): Likewise.
12700         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12701         * tests/test-vasprintf-posix.c (test_function): Likewise.
12702
12703         *printf: Fix for platforms where 'long double' == 'double'.
12704         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12705         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12706         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12707         * modules/fprintf-posix (Files): Likewise.
12708         * modules/obstack-printf-posix (Files): Likewise.
12709         * modules/snprintf-posix (Files): Likewise.
12710         * modules/sprintf-posix (Files): Likewise.
12711         * modules/vasnprintf (Files): Likewise.
12712         * modules/vasnprintf-posix (Files): Likewise.
12713         * modules/vasprintf-posix (Files): Likewise.
12714         * modules/vdprintf-posix (Files): Likewise.
12715         * modules/vfprintf-posix (Files): Likewise.
12716         * modules/vsnprintf-posix (Files): Likewise.
12717         * modules/vsprintf-posix (Files): Likewise.
12718         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12719         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12720         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12721         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12722         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12723         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12724         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12725
12726         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12727         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12728         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12729         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12730         'long double'.
12731         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12732
12733         isinf: Fix for platforms where 'long double' == 'double'.
12734         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12735         Don't blindly assume 80-bit 'long double'.
12736
12737         isfinite: Fix for platforms where 'long double' == 'double'.
12738         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12739         Don't blindly assume 80-bit 'long double'.
12740
12741         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12742         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12743         * modules/isfinite-tests (configure.ac): Require
12744         gl_LONG_DOUBLE_VS_DOUBLE.
12745         * modules/isinf-tests (configure.ac): Likewise.
12746         * modules/isnan-tests (configure.ac): Likewise.
12747         * modules/isnanl-tests (configure.ac): Likewise.
12748         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12749         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12750         tests on platforms where 'long double' is the same as 'double'.
12751         * tests/test-isinf.c (test_isinfl): Likewise.
12752         * tests/test-isnan.c (test_long_double): Likewise.
12753         * tests/test-isnanl.h (main): Likewise.
12754
12755 2011-10-08  Bruno Haible  <bruno@clisp.org>
12756
12757         Tests for module 'tanhf'.
12758         * modules/tanhf-tests: New file.
12759         * tests/test-tanhf.c: New file.
12760
12761         New module 'tanhf'.
12762         * lib/math.in.h (tanhf): New declaration.
12763         * lib/tanhf.c: New file.
12764         * m4/tanhf.m4: New file.
12765         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12767         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12768         * modules/tanhf: New file.
12769         * tests/test-math-c++.cc: Check the declaration of tanhf.
12770         * doc/posix-functions/tanhf.texi: Mention the new module.
12771
12772         tanh: Use a .m4 file.
12773         * m4/tanh.m4: New file.
12774         * modules/tanh (Files): Add it.
12775         (configure.ac): Just invoke gl_FUNC_TANH.
12776
12777 2011-10-08  Bruno Haible  <bruno@clisp.org>
12778
12779         Tests for module 'coshf'.
12780         * modules/coshf-tests: New file.
12781         * tests/test-coshf.c: New file.
12782
12783         New module 'coshf'.
12784         * lib/math.in.h (coshf): New declaration.
12785         * lib/coshf.c: New file.
12786         * m4/coshf.m4: New file.
12787         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12789         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12790         * modules/coshf: New file.
12791         * tests/test-math-c++.cc: Check the declaration of coshf.
12792         * doc/posix-functions/coshf.texi: Mention the new module.
12793
12794         cosh: Use a .m4 file.
12795         * m4/cosh.m4: New file.
12796         * modules/cosh (Files): Add it.
12797         (configure.ac): Just invoke gl_FUNC_COSH.
12798
12799 2011-10-08  Bruno Haible  <bruno@clisp.org>
12800
12801         Tests for module 'sinhf'.
12802         * modules/sinhf-tests: New file.
12803         * tests/test-sinhf.c: New file.
12804
12805         New module 'sinhf'.
12806         * lib/math.in.h (sinhf): New declaration.
12807         * lib/sinhf.c: New file.
12808         * m4/sinhf.m4: New file.
12809         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12811         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12812         * modules/sinhf: New file.
12813         * tests/test-math-c++.cc: Check the declaration of sinhf.
12814         * doc/posix-functions/sinhf.texi: Mention the new module.
12815
12816         sinh: Use a .m4 file.
12817         * m4/sinh.m4: New file.
12818         * modules/sinh (Files): Add it.
12819         (configure.ac): Just invoke gl_FUNC_SINH.
12820
12821 2011-10-08  Bruno Haible  <bruno@clisp.org>
12822
12823         Tests for module 'atan2f'.
12824         * modules/atan2f-tests: New file.
12825         * tests/test-atan2f.c: New file.
12826
12827         New module 'atan2f'.
12828         * lib/math.in.h (atan2f): New declaration.
12829         * lib/atan2f.c: New file.
12830         * m4/atan2f.m4: New file.
12831         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12833         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12834         * modules/atan2f: New file.
12835         * tests/test-math-c++.cc: Check the declaration of atan2f.
12836         * doc/posix-functions/atan2f.texi: Mention the new module.
12837
12838         atan2: Use a .m4 file.
12839         * m4/atan2.m4: New file.
12840         * modules/atan2 (Files): Add it.
12841         (configure.ac): Just invoke gl_FUNC_ATAN2.
12842
12843 2011-10-08  Bruno Haible  <bruno@clisp.org>
12844
12845         Tests for module 'atanf'.
12846         * modules/atanf-tests: New file.
12847         * tests/test-atanf.c: New file.
12848
12849         New module 'atanf'.
12850         * lib/math.in.h (atanf): New declaration.
12851         * lib/atanf.c: New file.
12852         * m4/atanf.m4: New file.
12853         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12855         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12856         * modules/atanf: New file.
12857         * tests/test-math-c++.cc: Check the declaration of atanf.
12858         * doc/posix-functions/atanf.texi: Mention the new module.
12859
12860         atan: Use a .m4 file.
12861         * m4/atan.m4: New file.
12862         * modules/atan (Files): Add it.
12863         (configure.ac): Just invoke gl_FUNC_ATAN.
12864
12865 2011-10-08  Bruno Haible  <bruno@clisp.org>
12866
12867         Tests for module 'acosf'.
12868         * modules/acosf-tests: New file.
12869         * tests/test-acosf.c: New file.
12870
12871         New module 'acosf'.
12872         * lib/math.in.h (acosf): New declaration.
12873         * lib/acosf.c: New file.
12874         * m4/acosf.m4: New file.
12875         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12877         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12878         * modules/acosf: New file.
12879         * tests/test-math-c++.cc: Check the declaration of acosf.
12880         * doc/posix-functions/acosf.texi: Mention the new module.
12881
12882         acos: Use a .m4 file.
12883         * m4/acos.m4: New file.
12884         * modules/acos (Files): Add it.
12885         (configure.ac): Just invoke gl_FUNC_ACOS.
12886
12887 2011-10-08  Bruno Haible  <bruno@clisp.org>
12888
12889         Tests for module 'asinf'.
12890         * modules/asinf-tests: New file.
12891         * tests/test-asinf.c: New file.
12892
12893         New module 'asinf'.
12894         * lib/math.in.h (asinf): New declaration.
12895         * lib/asinf.c: New file.
12896         * m4/asinf.m4: New file.
12897         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12899         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12900         * modules/asinf: New file.
12901         * tests/test-math-c++.cc: Check the declaration of asinf.
12902         * doc/posix-functions/asinf.texi: Mention the new module.
12903
12904         asin: Use a .m4 file.
12905         * m4/asin.m4: New file.
12906         * modules/asin (Files): Add it.
12907         (configure.ac): Just invoke gl_FUNC_ASIN.
12908
12909 2011-10-08  Bruno Haible  <bruno@clisp.org>
12910
12911         Tests for module 'tanf'.
12912         * modules/tanf-tests: New file.
12913         * tests/test-tanf.c: New file.
12914
12915         New module 'tanf'.
12916         * lib/math.in.h (tanf): New declaration.
12917         * lib/tanf.c: New file.
12918         * m4/tanf.m4: New file.
12919         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12921         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12922         * modules/tanf: New file.
12923         * tests/test-math-c++.cc: Check the declaration of tanf.
12924         * doc/posix-functions/tanf.texi: Mention the new module.
12925
12926         tan: Use a .m4 file.
12927         * m4/tan.m4: New file.
12928         * modules/tan (Files): Add it.
12929         (configure.ac): Just invoke gl_FUNC_TAN.
12930
12931 2011-10-08  Bruno Haible  <bruno@clisp.org>
12932
12933         Tests for module 'cosf'.
12934         * modules/cosf-tests: New file.
12935         * tests/test-cosf.c: New file.
12936
12937         New module 'cosf'.
12938         * lib/math.in.h (cosf): New declaration.
12939         * lib/cosf.c: New file.
12940         * m4/cosf.m4: New file.
12941         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12943         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12944         * modules/cosf: New file.
12945         * tests/test-math-c++.cc: Check the declaration of cosf.
12946         * doc/posix-functions/cosf.texi: Mention the new module.
12947
12948         cos: Use a .m4 file.
12949         * m4/cos.m4: New file.
12950         * modules/cos (Files): Add it.
12951         (configure.ac): Just invoke gl_FUNC_COS.
12952
12953 2011-10-08  Bruno Haible  <bruno@clisp.org>
12954
12955         Tests for module 'sinf'.
12956         * modules/sinf-tests: New file.
12957         * tests/test-sinf.c: New file.
12958
12959         New module 'sinf'.
12960         * lib/math.in.h (sinf): New declaration.
12961         * lib/sinf.c: New file.
12962         * m4/sinf.m4: New file.
12963         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12965         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12966         * modules/sinf: New file.
12967         * tests/test-math-c++.cc: Check the declaration of sinf.
12968         * doc/posix-functions/sinf.texi: Mention the new module.
12969
12970         sin: Use a .m4 file.
12971         * m4/sin.m4: New file.
12972         * modules/sin (Files): Add it.
12973         (configure.ac): Just invoke gl_FUNC_SIN.
12974
12975 2011-10-08  Bruno Haible  <bruno@clisp.org>
12976
12977         Tests for module 'powf'.
12978         * modules/powf-tests: New file.
12979         * tests/test-powf.c: New file.
12980
12981         New module 'powf'.
12982         * lib/math.in.h (powf): New declaration.
12983         * lib/powf.c: New file.
12984         * m4/powf.m4: New file.
12985         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12987         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12988         * modules/powf: New file.
12989         * tests/test-math-c++.cc: Check the declaration of powf.
12990         * doc/posix-functions/powf.texi: Mention the new module.
12991
12992         pow: Use a .m4 file.
12993         * m4/pow.m4: New file.
12994         * modules/pow (Files): Add it.
12995         (configure.ac): Just invoke gl_FUNC_POW.
12996
12997 2011-10-08  Bruno Haible  <bruno@clisp.org>
12998
12999         Tests for module 'log10f'.
13000         * modules/log10f-tests: New file.
13001         * tests/test-log10f.c: New file.
13002
13003         New module 'log10f'.
13004         * lib/math.in.h (log10f): New declaration.
13005         * lib/log10f.c: New file.
13006         * m4/log10f.m4: New file.
13007         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13009         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13010         * modules/log10f: New file.
13011         * tests/test-math-c++.cc: Check the declaration of log10f.
13012         * doc/posix-functions/log10f.texi: Mention the new module.
13013
13014         log10: Use a .m4 file.
13015         * m4/log10.m4: New file.
13016         * modules/log10 (Files): Add it.
13017         (configure.ac): Just invoke gl_FUNC_LOG10.
13018
13019 2011-10-08  Bruno Haible  <bruno@clisp.org>
13020
13021         Tests for module 'logf'.
13022         * modules/logf-tests: New file.
13023         * tests/test-logf.c: New file.
13024
13025         New module 'logf'.
13026         * lib/math.in.h (logf): New declaration.
13027         * lib/logf.c: New file.
13028         * m4/logf.m4: New file.
13029         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13031         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13032         * modules/logf: New file.
13033         * tests/test-math-c++.cc: Check the declaration of logf.
13034         * doc/posix-functions/logf.texi: Mention the new module.
13035
13036         log: Use a .m4 file.
13037         * m4/log.m4: New file.
13038         * modules/log (Files): Add it.
13039         (configure.ac): Just invoke gl_FUNC_LOG.
13040
13041 2011-10-08  Bruno Haible  <bruno@clisp.org>
13042
13043         Tests for module 'expf'.
13044         * modules/expf-tests: New file.
13045         * tests/test-expf.c: New file.
13046
13047         New module 'expf'.
13048         * lib/math.in.h (expf): New declaration.
13049         * lib/expf.c: New file.
13050         * m4/expf.m4: New file.
13051         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13053         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13054         * modules/expf: New file.
13055         * tests/test-math-c++.cc: Check the declaration of expf.
13056         * doc/posix-functions/expf.texi: Mention the new module.
13057
13058         exp: Use a .m4 file.
13059         * m4/exp.m4: New file.
13060         * modules/exp (Files): Add it.
13061         (configure.ac): Just invoke gl_FUNC_EXP.
13062
13063 2011-10-08  Bruno Haible  <bruno@clisp.org>
13064
13065         Tests for module 'sqrtf'.
13066         * modules/sqrtf-tests: New file.
13067         * tests/test-sqrtf.c: New file.
13068
13069         New module 'sqrtf'.
13070         * lib/math.in.h (sqrtf): New declaration.
13071         * lib/sqrtf.c: New file.
13072         * m4/sqrtf.m4: New file.
13073         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13075         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13076         * modules/sqrtf: New file.
13077         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13078         * doc/posix-functions/sqrtf.texi: Mention the new module.
13079
13080 2011-10-08  Bruno Haible  <bruno@clisp.org>
13081
13082         Tests: Avoid link failures w.r.t. libintl.
13083         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13084         $(LIBINTL).
13085         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13086         $(LIBINTL).
13087         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13088         against $(LIBINTL).
13089         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13090         $(LIBINTL).
13091         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13092         $(LIBINTL).
13093         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13094
13095 2011-10-08  Bruno Haible  <bruno@clisp.org>
13096
13097         pow tests: Defeat compiler optimizations.
13098         * tests/test-pow.c (main): Assign arguments to x and y before use.
13099
13100 2011-10-08  Bruno Haible  <bruno@clisp.org>
13101
13102         gnulib-tool: Improve last commit.
13103         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13104         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13105         ignore dependencies that are not among the modules list.
13106
13107 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13108
13109         gnulib-tool: don't follow dependencies to avoided modules
13110         This fixes a bug that is related to the previous one.
13111         * gnulib-tool (func_modules_transitive_closure)
13112         (func_emit_autoconf_snippets):
13113         Check whether a dependency is acceptable before using it.
13114         (--extract-dependencies): Report an error if --avoid is also used,
13115         since this combination of options is not yet supported.
13116
13117         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13118         Problem reported by Peter Dyballa in
13119         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13120         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13121         when echoing "$condition".
13122
13123 2011-10-07  Bruno Haible  <bruno@clisp.org>
13124
13125         Fix documentation about math functions on MacOS X.
13126         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13127         MacOS X 10.5.
13128         * doc/posix-functions/fdim.texi: Likewise.
13129         * doc/posix-functions/feclearexcept.texi: Likewise.
13130         * doc/posix-functions/fegetenv.texi: Likewise.
13131         * doc/posix-functions/fegetround.texi: Likewise.
13132         * doc/posix-functions/feholdexcept.texi: Likewise.
13133         * doc/posix-functions/feraiseexcept.texi: Likewise.
13134         * doc/posix-functions/fesetenv.texi: Likewise.
13135         * doc/posix-functions/fesetround.texi: Likewise.
13136         * doc/posix-functions/fetestexcept.texi: Likewise.
13137         * doc/posix-functions/feupdateenv.texi: Likewise.
13138         * doc/posix-functions/fmax.texi: Likewise.
13139         * doc/posix-functions/fmin.texi: Likewise.
13140         * doc/posix-functions/log2.texi: Likewise.
13141         * doc/posix-functions/modff.texi: Likewise.
13142         * doc/posix-functions/nan.texi: Likewise.
13143         * doc/posix-functions/nanf.texi: Likewise.
13144         * doc/posix-functions/nextafterf.texi: Likewise.
13145         * doc/posix-functions/remquo.texi: Likewise.
13146
13147 2011-10-07  Bruno Haible  <bruno@clisp.org>
13148
13149         modff: Drop assumption about library that defines modff.
13150         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13151         AC_CHECK_FUNCS.
13152         * modules/modff (Files): Add m4/mathfunc.m4.
13153
13154 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13155
13156         raise tests: Avoid a GCC warning.
13157         * tests/test-raise.c (handler): Use _Noreturn.
13158
13159 2011-10-07  Bruno Haible  <bruno@clisp.org>
13160
13161         Tests for module 'ldexpf'.
13162         * modules/ldexpf-tests: New file.
13163         * tests/test-ldexpf.c: New file.
13164
13165         New module 'ldexpf'.
13166         * lib/math.in.h (ldexpf): New declaration.
13167         * lib/ldexpf.c: New file.
13168         * m4/ldexpf.m4: New file.
13169         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13171         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13172         * modules/ldexpf: New file.
13173         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13174         * doc/posix-functions/ldexpf.texi: Mention the new module.
13175
13176 2011-10-06  Bruno Haible  <bruno@clisp.org>
13177
13178         frexpf: Work around problems on IRIX and mingw.
13179         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13181         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13182         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13183         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13184         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13185         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13186
13187 2011-10-06  Bruno Haible  <bruno@clisp.org>
13188
13189         fabsf: Drop assumption about library that defines fabsf.
13190         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13191         AC_CHECK_FUNCS.
13192         * modules/fabsf (Files): Add m4/mathfunc.m4.
13193
13194 2011-10-06  Bruno Haible  <bruno@clisp.org>
13195
13196         frexpf: Drop assumption about library that defines frexpf.
13197         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13198         'int *', 'float *', 'long double *', 'float', 'long double'.
13199         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13200         AC_CHECK_FUNCS.
13201         * modules/frexpf (Files): Add m4/mathfunc.m4.
13202
13203         Tests for module 'frexpf'.
13204         * modules/frexpf-tests: New file.
13205         * tests/test-frexpf.c: New file.
13206
13207         New module 'frexpf'.
13208         * lib/math.in.h (frexpf): New declaration.
13209         * lib/frexpf.c: New file.
13210         * m4/frexpf.m4: New file.
13211         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13213         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13214         * modules/frexpf: New file.
13215         * tests/test-math-c++.cc: Check the declaration of frexpf.
13216         * doc/posix-functions/frexpf.texi: Mention the new module.
13217
13218 2011-10-06  Bruno Haible  <bruno@clisp.org>
13219
13220         math: Sort function declarations of math.in.h.
13221         * lib/math.in.h (frexp, logb): Move declarations.
13222
13223 2011-10-05  Bruno Haible  <bruno@clisp.org>
13224
13225         Tests for module 'modff'.
13226         * modules/modff-tests: New file.
13227         * tests/test-modff.c: New file.
13228
13229         New module 'modff'.
13230         * lib/math.in.h (modff): New declaration.
13231         * lib/modff.c: New file.
13232         * m4/modff.m4: New file.
13233         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13235         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13236         * modules/modff: New file.
13237         * tests/test-math-c++.cc: Check the declaration of modff.
13238         * doc/posix-functions/modff.texi: Mention the new module.
13239
13240         modf tests: Make test sharper.
13241         * tests/test-modf.c (main): Strengthen upper bound.
13242
13243         modf: Use a .m4 file.
13244         * m4/modf.m4: New file.
13245         * modules/modf (Files): Add it.
13246         (configure.ac): Just invoke gl_FUNC_MODF.
13247
13248 2011-10-05  Bruno Haible  <bruno@clisp.org>
13249
13250         Tests for module 'fmodf'.
13251         * modules/fmodf-tests: New file.
13252         * tests/test-fmodf.c: New file.
13253
13254         New module 'fmodf'.
13255         * lib/math.in.h (fmodf): New declaration.
13256         * lib/fmodf.c: New file.
13257         * m4/fmodf.m4: New file.
13258         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13260         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13261         * modules/fmodf: New file.
13262         * tests/test-math-c++.cc: Check the declaration of fmodf.
13263         * doc/posix-functions/fmodf.texi: Mention the new module.
13264
13265         fmod: Use a .m4 file.
13266         * m4/fmod.m4: New file.
13267         * modules/fmod (Files): Add it.
13268         (configure.ac): Just invoke gl_FUNC_FMOD.
13269
13270 2011-10-05  Bruno Haible  <bruno@clisp.org>
13271
13272         Tests for module 'fabsf'.
13273         * modules/fabsf-tests: New file.
13274         * tests/test-fabsf.c: New file.
13275
13276         New module 'fabsf'.
13277         * lib/math.in.h (fabsf): New declaration.
13278         * lib/fabsf.c: New file.
13279         * m4/fabsf.m4: New file.
13280         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13282         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13283         * modules/fabsf: New file.
13284         * tests/test-math-c++.cc: Check the declaration of fabsf.
13285         * doc/posix-functions/fabsf.texi: Mention the new module.
13286
13287         fabs: Use a .m4 file.
13288         * m4/fabs.m4: New file.
13289         * modules/fabs (Files): Add it.
13290         (configure.ac): Just invoke gl_FUNC_FABS.
13291
13292 2011-10-05  Jim Meyering  <meyering@redhat.com>
13293
13294         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13295         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13296         ls -lL regression introduced in coreutils-8.12, it does so at the
13297         cost of an additional stat call in the common case.  Besides, now
13298         that the kernel change that prompted commit 95f7c57f has been reverted
13299         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13300         we have no use for commit 95f7c57f, "file-has-acl: use
13301         acl_extended_file_nofollow if available".
13302
13303 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13304
13305         file-has-acl: revert unintended change in behavior of ls -L
13306         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13307         derived from...
13308         (file_has_acl): ...code here.  Call it.
13309         This problem was introduced with 2011-07-22 commit 95f7c57f,
13310         "file-has-acl: use acl_extended_file_nofollow if available".
13311         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13312
13313 2011-10-03  Bruno Haible  <bruno@clisp.org>
13314
13315         poll: Avoid link errors on MSVC.
13316         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13317         * modules/poll (Depends-on): Add sockets.
13318         (Link): New section.
13319         * NEWS: Mention the change.
13320         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13321         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13322         $(LIB_POLL) instead of $(LIBSOCKET).
13323
13324 2011-10-03  Bruno Haible  <bruno@clisp.org>
13325
13326         sys_select tests: Fix link error on MSVC 9.
13327         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13328         with $(LIB_SELECT) instead of $(LIBSOCKET).
13329
13330 2011-10-03  Bruno Haible  <bruno@clisp.org>
13331
13332         sys_select: Fix compilation error on mingw.
13333         * lib/sys_select.in.h: On native Windows, include <io.h>.
13334
13335 2011-10-03  Bruno Haible  <bruno@clisp.org>
13336
13337         wmemset: Support for MSVC.
13338         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13339         whether wmemset() exists.
13340
13341 2011-10-03  Bruno Haible  <bruno@clisp.org>
13342
13343         wmemmove: Support for MSVC.
13344         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13345         whether wmemmove() exists.
13346
13347 2011-10-03  Bruno Haible  <bruno@clisp.org>
13348
13349         wmemcpy: Support for MSVC.
13350         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13351         whether wmemcpy() exists.
13352
13353 2011-10-03  Bruno Haible  <bruno@clisp.org>
13354
13355         wmemcmp: Support for MSVC.
13356         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13357         whether wmemcmp() exists.
13358
13359 2011-10-03  Bruno Haible  <bruno@clisp.org>
13360
13361         wmemchr: Support for MSVC.
13362         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13363         whether wmemchr() exists.
13364
13365 2011-10-03  Bruno Haible  <bruno@clisp.org>
13366
13367         glthread/*, strsignal: Support for MSVC.
13368         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13369         including <winsock.h> on MSVC 9.
13370         * lib/glthread/lock.h: Likewise.
13371         * lib/glthread/thread.h: Likewise.
13372         * lib/glthread/tls.h: Likewise.
13373         * lib/glthread/yield.h: Likewise.
13374         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13375         if HAVE_UNISTD_H is false.
13376         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13377
13378 2011-10-03  Bruno Haible  <bruno@clisp.org>
13379
13380         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13381         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13382         Set to 100000.
13383
13384 2011-10-03  Bruno Haible  <bruno@clisp.org>
13385
13386         acl: Fix specification.
13387         * lib/file-has-acl.c (file_has_acl): Fix specification.
13388
13389 2011-10-03  Bruno Haible  <bruno@clisp.org>
13390
13391         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13392         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13393         (compute_curr_prefix, shared_library_fullname,
13394         find_shared_library_fullname, get_shared_library_fullname, relocate):
13395         Use it together with PIC && INSTALLDIR.
13396         Reported by <jojelino@gmail.com>
13397         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13398
13399 2011-10-01  Jim Meyering  <meyering@redhat.com>
13400
13401         maint.mk: adjust a release-related rule not to require use of gzip
13402         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13403         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13404         projects that build only .tar.xz files.  Also fix an erroneous test.
13405
13406         test-linkat: don't leave behind a temporary file
13407         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13408         Otherwise, coreutils' "make distcheck" would fail with this:
13409           Only in /c/cu/tests/torture/coreutils/test/\
13410             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13411           make[2]: *** [my-distcheck] Error 1
13412
13413         float, math: add omitted file
13414         * lib/itold.c: Add file, required for yesterday's float change.
13415
13416 2011-10-01  Bruno Haible  <bruno@clisp.org>
13417
13418         isinf: Fix for OpenBSD/x86.
13419         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13420         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13421         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13422
13423 2011-10-01  Bruno Haible  <bruno@clisp.org>
13424
13425         isfinite: Fix syntax error in configure test.
13426         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13427
13428         isfinite: Fix typo.
13429         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13430         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13431
13432 2011-10-01  Bruno Haible  <bruno@clisp.org>
13433
13434         nonblocking tests: Fix test failure on Linux/IA-64.
13435         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13436         Set to 270000.
13437
13438 2011-10-01  Bruno Haible  <bruno@clisp.org>
13439
13440         mkfifoat tests: Fix a test failure on mingw.
13441         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13442         with error ENOSYS.
13443
13444 2011-09-30  Bruno Haible  <bruno@clisp.org>
13445
13446         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13447         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13448         'long double'. Set REPLACE_ITOLD.
13449         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13450         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13451         * lib/itold.c: New file.
13452         * modules/float (Files): Add lib/itold.c.
13453         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13454         (Makefile.am): Substitute REPLACE_ITOLD.
13455         * modules/math (Depends-on): Add float.
13456         (Makefile.am): Substitute REPLACE_ITOLD.
13457         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13458         * doc/posix-headers/math.texi: Likewise.
13459         * doc/posix-functions/logl.texi: Likewise.
13460
13461 2011-09-30  Bruno Haible  <bruno@clisp.org>
13462
13463         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13464         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13465         Set to 140000.
13466
13467 2011-09-30  Bruno Haible  <bruno@clisp.org>
13468
13469         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13470         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13471         invocation, say "right after AC_PROG_CC_STDC", not "right after
13472         AC_PROG_CC".
13473         Reported by Gary V. Vaughan <gary@gnu.org>.
13474
13475 2011-09-30  Bruno Haible  <bruno@clisp.org>
13476
13477         Centralize C99 requirement.
13478         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13479         * modules/stdarg (configure.ac-early): Invoke it instead of
13480         AC_PROG_CC_STDC.
13481         Reported by Gary V. Vaughan and Paul Eggert.
13482
13483 2011-09-29  Bruno Haible  <bruno@clisp.org>
13484
13485         float: Fix LDBL_MAX value on Linux/PowerPC.
13486         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13487         on Linux/PowerPC.
13488         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13489         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13490         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13491         platform.
13492         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13493
13494 2011-09-29  Bruno Haible  <bruno@clisp.org>
13495
13496         doc: Improve doc about gl_EARLY.
13497         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13498         AC_PROG_CC_STDC invocation.
13499         Reported by Gary V. Vaughan <gary@gnu.org>.
13500
13501 2011-09-28  Bruno Haible  <bruno@clisp.org>
13502
13503         fgetc, fputc, fread, fwrite tests: Fix link error.
13504         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13505         on non-MSVC platforms.
13506         * tests/test-fputc.c (main): Likewise.
13507         * tests/test-fread.c (main): Likewise.
13508         * tests/test-fwrite.c (main): Likewise.
13509         Reported by Jim Meyering.
13510
13511 2011-09-27  Bruno Haible  <bruno@clisp.org>
13512
13513         fputc, fwrite tests: Avoid test failure on MSVC.
13514         * tests/test-fgetc.c: Include msvc-inval.h.
13515         (main): Invoke gl_msvc_inval_ensure_handler.
13516         * tests/test-fputc.c: Include msvc-inval.h.
13517         (main): Invoke gl_msvc_inval_ensure_handler.
13518         * tests/test-fread.c: Include msvc-inval.h.
13519         (main): Invoke gl_msvc_inval_ensure_handler.
13520         * tests/test-fwrite.c: Include msvc-inval.h.
13521         (main): Invoke gl_msvc_inval_ensure_handler.
13522         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13523         * modules/fputc-tests (Depends-on): Likewise.
13524         * modules/fread-tests (Depends-on): Likewise.
13525         * modules/fwrite-tests (Depends-on): Likewise.
13526
13527 2011-09-27  Bruno Haible  <bruno@clisp.org>
13528
13529         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13530         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13531         (raise): Remove older, duplicated declaration.
13532         (_gl_raise_SIGPIPE): New declaration.
13533         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13534         (rpl_raise): Remove function.
13535         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13536         a gnulib-defined SIGPIPE here.
13537         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13538         'sigprocmask' has detected missing signal-blocking and the module
13539         'sigpipe' is enabled.
13540         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13541
13542 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13543
13544         base64-tests: avoid memory leak
13545         * tests/test-base64.c (main): Plug memory leak.
13546
13547         base32: new module
13548         * modules/base32: New module.
13549         * lib/base32.c: New file.
13550         * lib/base32.h: Likewise.
13551         * m4/base32.m4: Likewise.
13552         * modules/base32-tests: New test.
13553         * tests/test-base32.c: Likewise.
13554         * MODULES.html.sh (Misc): Mention it.
13555
13556 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13557
13558         gnulib: use more-standard license notice wording
13559         * gnulib-tool (func_emit_copyright_notice): When emitting a
13560         license notice into a file, use the standard wording as suggested
13561         by the current information for GNU maintainers, except say "file"
13562         rather than "program".  The new wording gives a license version
13563         number, which addresses an issue raised by Glenn Morris in
13564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13565         * m4/onceonly.m4: Use that same wording here, too.
13566
13567         dup2: minor simplification
13568         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13569         as lib/dup2.c no longer uses 'inline'.
13570
13571 2011-09-25  Bruno Haible  <bruno@clisp.org>
13572
13573         strings: Fix compilation error on MSVC.
13574         * lib/strings.in.h: Include <stddef.h> for size_t.
13575
13576 2011-09-25  Bruno Haible  <bruno@clisp.org>
13577
13578         fflush et al.: Document limitation on MSVC.
13579         * doc/posix-functions/fflush.texi: Document possible crash in handling
13580         mode other than DEFAULT_HANDLING.
13581         * doc/posix-functions/fgetc.texi: Likewise.
13582         * doc/posix-functions/fputc.texi: Likewise.
13583         * doc/posix-functions/fread.texi: Likewise.
13584         * doc/posix-functions/fwrite.texi: Likewise.
13585
13586 2011-09-25  Bruno Haible  <bruno@clisp.org>
13587
13588         msvc-inval: Allow three invalid parameter handling modes.
13589         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13590         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13591         macros.
13592         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13593         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13594         SANE_LIBRARY_HANDLING as a no-op.
13595         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13596         <stdlib.h>.
13597         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13598
13599 2011-09-25  Bruno Haible  <bruno@clisp.org>
13600
13601         msvc-inval: Make handler multithread-safe.
13602         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13603         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13604         declarations.
13605         (gl_msvc_inval_current): New declaration.
13606         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13607         Operate on the structure returned by gl_msvc_inval_current().
13608         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13609         Remove varaiables.
13610         (tls_index, tls_initialized): New variables.
13611         (not_per_thread): New variable.
13612         (gl_msvc_inval_current): New function.
13613         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13614         returned by gl_msvc_inval_current().
13615
13616 2011-09-25  Bruno Haible  <bruno@clisp.org>
13617
13618         msvc-inval: Install handler globally.
13619         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13620         !_MSC_VER.
13621         (gl_msvc_invalid_parameter_handler): Remove declaration.
13622         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13623         declarations.
13624         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13625         Install the handler globally, don't uninstall it.
13626         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13627         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13628         currently valid, call RaiseException instead.
13629         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13630         for !_MSC_VER.
13631
13632 2011-09-25  Bruno Haible  <bruno@clisp.org>
13633
13634         strerror_r-posix: Fix for MSVC 9.
13635         * lib/strerror_r.c (local_snprintf): New function.
13636         (snprintf): Define to local_snprintf, not to _snprintf.
13637
13638 2011-09-25  Bruno Haible  <bruno@clisp.org>
13639
13640         ftruncate: Support for MSVC 9.
13641         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13642         (chsize_nothrow): New function.
13643         (chsize): Redefine as a macro.
13644         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13645         * modules/ftruncate (Depends-on): Add msvc-inval.
13646
13647 2011-09-25  Bruno Haible  <bruno@clisp.org>
13648
13649         New module 'fstat'.
13650         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13651         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13652         * lib/fchdir.c (rpl_fstat): Remove function.
13653         * m4/fstat.m4: New file.
13654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13656         declared.
13657         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13658         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13659         * modules/fstat: New file.
13660         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13661         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13662         is set.
13663         * doc/posix-functions/fstat.texi: Mention the new module and the
13664         problem on MSVC.
13665         * NEWS: Mention the change.
13666         * modules/acl (Depends-on): Add fstat.
13667         * modules/chdir-safer (Depends-on): Likewise.
13668         * modules/chown (Depends-on): Likewise.
13669         * modules/copy-file (Depends-on): Likewise.
13670         * modules/fchdir (Depends-on): Likewise.
13671         * modules/fdopendir (Depends-on): Likewise.
13672         * modules/fopen (Depends-on): Likewise.
13673         * modules/fts (Depends-on): Likewise.
13674         * modules/getcwd (Depends-on): Likewise.
13675         * modules/isapipe (Depends-on): Likewise.
13676         * modules/linkat (Depends-on): Likewise.
13677         * modules/lseek (Depends-on): Likewise.
13678         * modules/mkdir-p (Depends-on): Likewise.
13679         * modules/open (Depends-on): Likewise.
13680         * modules/openat (Depends-on): Likewise.
13681         * modules/read-file (Depends-on): Likewise.
13682         * modules/renameat (Depends-on): Likewise.
13683         * modules/utimens (Depends-on): Likewise.
13684
13685 2011-09-25  Bruno Haible  <bruno@clisp.org>
13686
13687         linkat: Fix compilation on MSVC 9.
13688         * lib/linkat.c: Don't include <stdint.h>.
13689
13690 2011-09-25  Bruno Haible  <bruno@clisp.org>
13691
13692         fclose: Support for MSVC 9.
13693         * lib/fclose.c: Include msvc-inval.h.
13694         (fclose_nothrow): New function.
13695         (rpl_fclose): Use it.
13696         * modules/fclose (Depends-on): Add msvc-inval.
13697         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13698
13699 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13700
13701         dup2: minor simplifications
13702         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13703         that it's a performance win.
13704         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13705         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13706
13707 2011-09-24  Jim Meyering  <meyering@redhat.com>
13708
13709         test-futimens: avoid a warning from gcc -Wshadow
13710         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13711         to avoid a shadowing warning.
13712
13713 2011-09-24  Bruno Haible  <bruno@clisp.org>
13714
13715         fdopen: Support for MSVC 9.
13716         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13717         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13718         * lib/fdopen.c: Include msvc-inval.h.
13719         (fdopen_nothrow): New function.
13720         (rpl_fdopen): Use it.
13721         * modules/fdopen (Depends-on): Add msvc-inval.
13722         * modules/fclose-tests (Depends-on): Add fdopen.
13723         * modules/fflush-tests (Depends-on): Likewise.
13724         * modules/fgetc-tests (Depends-on): Likewise.
13725         * modules/fputc-tests (Depends-on): Likewise.
13726         * modules/fread-tests (Depends-on): Likewise.
13727         * modules/freopen-tests (Depends-on): Likewise.
13728         * modules/fseeko-tests (Depends-on): Likewise.
13729         * modules/ftello-tests (Depends-on): Likewise.
13730         * modules/fwrite-tests  (Depends-on): Likewise.
13731         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13732
13733 2011-09-24  Bruno Haible  <bruno@clisp.org>
13734
13735         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13736         * modules/fgetc-tests (Depends-on): Add unistd.
13737         * modules/fputc-tests (Depends-on): Likewise.
13738         * modules/fread-tests (Depends-on): Likewise.
13739         * modules/fwrite-tests (Depends-on): Likewise.
13740
13741 2011-09-24  Bruno Haible  <bruno@clisp.org>
13742
13743         dup: Simplify autoconf test.
13744         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13745         on gl_MSVC_INVAL's result.
13746
13747 2011-09-24  Bruno Haible  <bruno@clisp.org>
13748
13749         Tests for function fwrite().
13750         * modules/fwrite-tests: New file.
13751         * tests/test-fwrite.c: New file.
13752         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13753
13754         Tests for function fread().
13755         * modules/fread-tests: New file.
13756         * tests/test-fread.c: New file.
13757         * modules/stdio-tests (Depends-on): Add fread-tests.
13758
13759         Activate fputc tests.
13760         * modules/stdio-tests (Depends-on): Add fputc-tests.
13761
13762         Enhance fgetc, fputc tests.
13763         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13764         * tests/test-fputc.c (main): Likewise.
13765
13766 2011-09-24  Bruno Haible  <bruno@clisp.org>
13767
13768         write: Support for MSVC 9.
13769         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13770         is not 1.
13771         * lib/write.c (write_nothrow): New function.
13772         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13773         not 1. Use write_nothrow.
13774         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13775         invalid parameter handler.
13776         (gl_PREREQ_WRITE): New macro.
13777         * modules/write (Depends-on): Add msvc-inval.
13778         (configure.ac): Invoke gl_PREREQ_WRITE.
13779         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13780
13781 2011-09-24  Bruno Haible  <bruno@clisp.org>
13782
13783         read: Fix last commit.
13784         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13785
13786 2011-09-24  Bruno Haible  <bruno@clisp.org>
13787
13788         dup2: Fix last commit.
13789         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13790         (rpl_dup2): Disable fcntl workaround on native Windows.
13791
13792         sigprocmask: Make code safer.
13793         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13794         section that changes macro definitions for this compilation unit.
13795
13796 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13797
13798         dup2: clarify by coalescing Windows-specific material
13799         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13800         "msvc-nothrow.h"' to the Windows-specific section, so that the
13801         Emacs source need not contain these include files.
13802         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13803         Windows-specific fixes into this function rather than just the
13804         nothrow fix, as this shortens and clarifies the code.  Always
13805         define as a function, as that's a bit cleaner than having it be
13806         sometimes a function and sometimes a macro.
13807         (rpl_dup2): Move the Windows-specific stuff out of here and into
13808         ms_windows_dup2.  Don't protect the Haiku-related fix with
13809         "#if !defined __linux__", as the same code also works around
13810         a Linux kernel bug, and it doesn't add any system calls on any
13811         platform.  Add comment about FreeBSD 6.1.
13812
13813         sigprocmask: move #include directive
13814         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13815         Windows-specific section, so that the Emacs source need not
13816         contain msvc-inval.h.
13817
13818 2011-09-23  Bruno Haible  <bruno@clisp.org>
13819
13820         read: Support for MSVC 9.
13821         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13822         is not 1.
13823         * lib/read.c (read_nothrow): New function.
13824         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13825         read_nothrow.
13826         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13827         invalid parameter handler.
13828         (gl_PREREQ_READ): New macro.
13829         * modules/read (Depends-on): Add msvc-inval.
13830         (configure.ac): Invoke gl_PREREQ_READ.
13831         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13832
13833 2011-09-23  Bruno Haible  <bruno@clisp.org>
13834
13835         close: Support for MSVC 9.
13836         * lib/close.c: Include <errno.h>, msvc-inval.h.
13837         (close_nothrow): New function.
13838         (rpl_close): Use it.
13839         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13840         invalid parameter handler.
13841         * modules/close (Depends-on): Add msvc-inval.
13842         * modules/dup2-tests (Depends-on): Add close.
13843         * modules/dup3-tests (Depends-on): Likewise.
13844         * modules/fcntl-tests (Depends-on): Likewise.
13845         * modules/spawn-pipe-tests (Depends-on): Likewise.
13846         * modules/unistd-safer-tests (Depends-on): Likewise.
13847         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13848
13849 2011-09-23  Bruno Haible  <bruno@clisp.org>
13850
13851         New module 'dup'.
13852         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13853         Allow replacement.
13854         * lib/dup.c: New file.
13855         * lib/fchdir.c (rpl_dup): Remove function.
13856         * m4/dup.m4: New file.
13857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13858         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13859         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13860         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13861         * modules/dup: New file.
13862         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13863         'dup' module is in use.
13864         * modules/fdopendir (Depends-on): Add dup.
13865         * modules/fdutimensat-tests (Depends-on): Likewise.
13866         * modules/fts (Depends-on): Likewise.
13867         * modules/futimens-tests (Depends-on): Likewise.
13868         * modules/posix_spawnp-tests (Depends-on): Likewise.
13869         * modules/unistd-safer-tests (Depends-on): Likewise.
13870         * modules/utimens-tests (Depends-on): Likewise.
13871         * doc/posix-functions/dup.texi: Mention the new module and the problem
13872         on MSVC.
13873
13874 2011-09-23  Bruno Haible  <bruno@clisp.org>
13875
13876         getdtablesize: Support for MSVC 9.
13877         * lib/getdtablesize.c: Include msvc-inval.h.
13878         (_setmaxstdio_nothrow): New function.
13879         (_setmaxstdio): Redefine it.
13880         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13881         * modules/getdtablesize (Depends-on): Add msvc-inval.
13882         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13883
13884 2011-09-23  Bruno Haible  <bruno@clisp.org>
13885
13886         signal-h: Rename from signal.
13887         * modules/signal-h: Renamed from modules/signal.
13888         * modules/pthread_sigmask (Depends-on): Update.
13889         * modules/raise (Depends-on): Likewise.
13890         * modules/sigaction (Depends-on): Likewise.
13891         * modules/sigpipe (Depends-on): Likewise.
13892         * modules/sigprocmask (Depends-on): Likewise.
13893         * modules/sys_select (Depends-on): Likewise.
13894         * modules/signal-h-tests: Renamed from modules/signal-tests.
13895         (Files, Depends-on, Makefile.am): Update.
13896         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13897         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13898         (Files, Makefile.am): Update.
13899         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13900         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13901         * modules/signal: New placeholder file.
13902         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13903         * doc/posix-headers/signal.texi: Update.
13904         * NEWS: Mention the change.
13905
13906 2011-09-23  Bruno Haible  <bruno@clisp.org>
13907
13908         sigprocmask: Avoid crashes through signal() on MSVC 9.
13909         * lib/sigprocmask.c: Include msvc-inval.h.
13910         (signal_nothrow): New function.
13911         (signal): Redefine it.
13912         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13913         * modules/sigprocmask (Depends-on): Add msvc-inval.
13914         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13915
13916 2011-09-23  Bruno Haible  <bruno@clisp.org>
13917
13918         Tests for module 'raise'.
13919         * modules/raise-tests: New file.
13920         * tests/test-raise.c: New file.
13921
13922         raise: Support for MSVC.
13923         * lib/signal.in.h (raise): New declaration.
13924         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13925         for native Windows platforms.
13926         * m4/raise.m4: New file.
13927         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13928         HAVE_RAISE, REPLACE_RAISE.
13929         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13930         REPLACE_RAISE.
13931         * modules/raise (Status, Notice): Remove fields.
13932         (Files): Add m4/raise.m4.
13933         (Depends-on): Add signal, msvc-inval.
13934         (configure.ac): Use the common idioms.
13935         (Maintainer): Add me.
13936         * tests/test-signal-c++.cc: Check the signature of raise.
13937         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13938
13939 2011-09-23  Bruno Haible  <bruno@clisp.org>
13940
13941         pipe2: Fix compilation on pre-C99 compilers.
13942         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13943
13944 2011-09-23  Bruno Haible  <bruno@clisp.org>
13945
13946         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13947         * lib/msvc-nothrow.h: New file.
13948         * lib/msvc-nothrow.c: New file.
13949         * m4/msvc-nothrow.m4: New file.
13950         * modules/msvc-nothrow: New file.
13951         * lib/dup2.c: Include msvc-nothrow.h.
13952         (rpl_dup2): No need to protect _get_osfhandle call here.
13953         * lib/accept4.c: Include msvc-nothrow.h.
13954         * lib/error.c: Likewise.
13955         * lib/fcntl.c: Likewise.
13956         * lib/lseek.c: Likewise.
13957         * lib/nonblocking.c: Likewise.
13958         * lib/poll.c: Likewise.
13959         * lib/read.c: Likewise.
13960         * lib/select.c: Likewise.
13961         * lib/sockets.h: Likewise.
13962         * lib/sockets.c: Likewise.
13963         * lib/stdio-read.c: Likewise.
13964         * lib/stdio-write.c: Likewise.
13965         * lib/write.c: Likewise.
13966         * lib/w32sock.h: Likewise.
13967         * lib/w32spawn.h: Likewise.
13968         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13969         * lib/fsync.c: Likewise.
13970         * lib/isapipe.c: Likewise.
13971         * modules/dup2 (Depends-on): Add msvc-nothrow.
13972         * modules/accept4 (Depends-on): Likewise.
13973         * modules/error (Depends-on): Likewise.
13974         * modules/fcntl (Depends-on): Likewise.
13975         * modules/lseek (Depends-on): Likewise.
13976         * modules/nonblocking (Depends-on): Likewise.
13977         * modules/poll (Depends-on): Likewise.
13978         * modules/read (Depends-on): Likewise.
13979         * modules/select (Depends-on): Likewise.
13980         * modules/sockets (Depends-on): Likewise.
13981         * modules/sigpipe (Depends-on): Likewise.
13982         * modules/write (Depends-on): Likewise.
13983         * modules/accept (Depends-on): Likewise.
13984         * modules/bind (Depends-on): Likewise.
13985         * modules/connect (Depends-on): Likewise.
13986         * modules/gethostname (Depends-on): Likewise.
13987         * modules/getpeername (Depends-on): Likewise.
13988         * modules/getsockname (Depends-on): Likewise.
13989         * modules/getsockopt (Depends-on): Likewise.
13990         * modules/ioctl (Depends-on): Likewise.
13991         * modules/listen (Depends-on): Likewise.
13992         * modules/recv (Depends-on): Likewise.
13993         * modules/recvfrom (Depends-on): Likewise.
13994         * modules/send (Depends-on): Likewise.
13995         * modules/sendto (Depends-on): Likewise.
13996         * modules/setsockopt (Depends-on): Likewise.
13997         * modules/shutdown (Depends-on): Likewise.
13998         * modules/socket (Depends-on): Likewise.
13999         * modules/execute (Depends-on): Likewise.
14000         * modules/spawn-pipe (Depends-on): Likewise.
14001         * modules/flock (Depends-on): Likewise.
14002         * modules/fsync (Depends-on): Likewise.
14003         * modules/isapipe (Depends-on): Likewise.
14004         * tests/test-cloexec.c: Include msvc-nothrow.h.
14005         * tests/test-dup-safer.c: Likewise.
14006         * tests/test-dup2.c: Likewise.
14007         * tests/test-dup3.c: Likewise.
14008         * tests/test-fcntl.c: Likewise.
14009         * tests/test-pipe.c: Likewise.
14010         * tests/test-pipe2.c: Likewise.
14011         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14012         * modules/unistd-safer-tests (Depends-on): Likewise.
14013         * modules/dup2-tests (Depends-on): Likewise.
14014         * modules/dup3-tests (Depends-on): Likewise.
14015         * modules/fcntl-tests (Depends-on): Likewise.
14016         * modules/pipe-posix-tests (Depends-on): Likewise.
14017         * modules/pipe2-tests (Depends-on): Likewise.
14018
14019 2011-09-23  Bruno Haible  <bruno@clisp.org>
14020
14021         dup2: Make code more maintainable.
14022         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14023         (rpl_dup2): Use it.
14024         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14025         * modules/dup2 (configure.ac): Invoke it.
14026         Reported by Paul Eggert.
14027
14028 2011-09-23  Bruno Haible  <bruno@clisp.org>
14029
14030         msvc-inval: Fix compilation error.
14031         * lib/msvc-inval.h: Include <excpt.h>.
14032
14033 2011-09-23  Bruno Haible  <bruno@clisp.org>
14034
14035         mkdir: Tweak for MSVC 9.
14036         * lib/sys_stat.in.h: Update comments.
14037         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14038
14039         Tests for module 'chdir'.
14040         * modules/chdir-tests: New file.
14041         * tests/test-chdir.c: New file.
14042
14043         New module 'chdir'.
14044         * modules/chdir: New file.
14045         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14046         (chdir): New declaration.
14047         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14048         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14049         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14050         * tests/test-unistd-c++.cc: Check signature of chdir.
14051         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14052         * modules/chdir-long (Depends-on): Add chdir.
14053         * modules/fchdir (Depends-on): Likewise.
14054         * modules/rename (Depends-on): Likewise.
14055         * modules/savewd (Depends-on): Likewise.
14056
14057         rmdir: Support for mingw, MSVC 9.
14058         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14059         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14060
14061         getcwd: Tweak for MSVC 9.
14062         * lib/unistd.in.h: Update comments.
14063         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14064
14065 2011-09-22  Bruno Haible  <bruno@clisp.org>
14066
14067         strerror_r-posix: Avoid a link error on MSVC.
14068         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14069         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14070
14071 2011-09-22  Bruno Haible  <bruno@clisp.org>
14072
14073         select: Avoid link errors on MSVC.
14074         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14075         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14076         * modules/pselect (Link): Likewise.
14077         * NEWS: Mention the change.
14078         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14079         test-select-stdin against $(LIB_SELECT).
14080         * modules/pselect-tests (Makefile.am): Link test-pselect against
14081         $(LIB_SELECT).
14082
14083 2011-09-22  Bruno Haible  <bruno@clisp.org>
14084
14085         select: Avoid compilation error on MSVC.
14086         * lib/select.c: Don't include <stdbool.h>.
14087
14088 2011-09-21  Bruno Haible  <bruno@clisp.org>
14089
14090         Consolidate all uses of PATH_MAX in *.m4 files.
14091         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14092         macros.
14093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14094         and gl_PATHMAX_SNIPPET.
14095         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14097         * modules/chdir-long (Files): Add m4/pathmax.m4.
14098         * modules/getcwd (Files): Likewise.
14099
14100 2011-09-21  Bruno Haible  <bruno@clisp.org>
14101
14102         ftruncate: Un-deprecate, concentrate on Win32 support.
14103         * modules/ftruncate (Status, Notice): Remove sections.
14104         (Depends-on): Add largefile.
14105         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14106         non-mingw platforms.
14107         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14108         include <io.h>.
14109         * modules/perror-tests (Depends-on): Add ftruncate.
14110         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14111         'ftruncate' module.
14112
14113 2011-09-21  Bruno Haible  <bruno@clisp.org>
14114
14115         Add dependencies to new dirent related modules.
14116         * modules/opendir (Depends-on): Add closedir.
14117         * modules/getcwd (Depends-on): Add opendir, closedir.
14118         * modules/dirent-safer-tests (Depends-on): Likewise.
14119         * modules/fdopendir-tests (Depends-on): Likewise.
14120         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14121         * modules/renameat-tests (Depends-on): Likewise.
14122
14123 2011-09-21  Bruno Haible  <bruno@clisp.org>
14124
14125         opendir: Avoid compilation error on mingw.
14126         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14127         * modules/opendir (Depends-on): Add unistd.
14128
14129 2011-09-21  Bruno Haible  <bruno@clisp.org>
14130
14131         ftruncate tests: Avoid a test failure on mingw.
14132         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14133
14134 2011-09-21  Bruno Haible  <bruno@clisp.org>
14135
14136         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14137         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14138         native Windows.
14139
14140 2011-09-21  Bruno Haible  <bruno@clisp.org>
14141
14142         New module 'fdopen'.
14143         * lib/stdio.in.h (fdopen): New declaration.
14144         * lib/fdopen.c: New file.
14145         * m4/fdopen.m4: New file.
14146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14147         REPLACE_FDOPEN.
14148         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14149         REPLACE_FDOPEN.
14150         * modules/fdopen: New file.
14151         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14152         * tests/test-stdio-c++.cc: Check signature of fdopen.
14153         * doc/posix-functions/fdopen.texi: Mention the new module.
14154
14155 2011-09-21  Bruno Haible  <bruno@clisp.org>
14156
14157         unlockpt tests: Avoid test failure on NetBSD 5.1.
14158         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14159         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14160
14161 2011-09-21  Bruno Haible  <bruno@clisp.org>
14162
14163         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14164         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14165         * tests/test-getlogin_r.c (main): Likewise.
14166
14167 2011-09-20  Bruno Haible  <bruno@clisp.org>
14168
14169         time tests: Don't require pid_t.
14170         * doc/posix-headers/time.texi: Revert last change.
14171         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14172         * tests/test-time.c: Comment out the check for pid_t.
14173
14174 2011-09-20  Bruno Haible  <bruno@clisp.org>
14175
14176         fsync tests: Avoid a test failure on mingw.
14177         * tests/test-fsync.c (main): Allow a failure with EIO.
14178
14179 2011-09-20  Bruno Haible  <bruno@clisp.org>
14180
14181         euidaccess: Update comments.
14182         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14183
14184 2011-09-20  Bruno Haible  <bruno@clisp.org>
14185
14186         Ensure EBADF returns for socket functions on mingw.
14187         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14188         descriptor is invalid.
14189         * lib/bind.c (rpl_bind): Likewise.
14190         * lib/connect.c (rpl_connect): Likewise.
14191         * lib/getpeername.c (rpl_getpeername): Likewise.
14192         * lib/getsockname.c (rpl_getsockname): Likewise.
14193         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14194         * lib/listen.c (rpl_listen): Likewise.
14195         * lib/recv.c (rpl_recv): Likewise.
14196         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14197         * lib/send.c (rpl_send): Likewise.
14198         * lib/sendto.c (rpl_sendto): Likewise.
14199         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14200         * lib/shutdown.c (rpl_shutdown): Likewise.
14201
14202 2011-09-20  Bruno Haible  <bruno@clisp.org>
14203
14204         select tests: EBADF tests.
14205         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14206         test_bad_fd): New functions.
14207         (test_function): Invoke also test_bad_fd.
14208
14209 2011-09-20  Bruno Haible  <bruno@clisp.org>
14210
14211         Tests for module 'posix_spawn_file_actions_addopen.
14212         * modules/posix_spawn_file_actions_addopen-tests: New file.
14213         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14214
14215         Tests for module 'posix_spawn_file_actions_adddup2'.
14216         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14217         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14218
14219         Tests for module 'posix_spawn_file_actions_addclose'.
14220         * modules/posix_spawn_file_actions_addclose-tests: New file.
14221         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14222
14223 2011-09-20  Bruno Haible  <bruno@clisp.org>
14224
14225         Tests for module 'unlockpt'.
14226         * modules/unlockpt-tests: New file.
14227         * tests/test-unlockpt.c: New file.
14228         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14229
14230         Tests for module 'grantpt'.
14231         * modules/grantpt-tests: New file.
14232         * tests/test-grantpt.c: New file.
14233         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14234
14235 2011-09-20  Bruno Haible  <bruno@clisp.org>
14236
14237         freopen tests: EBADF tests.
14238         * tests/test-freopen.c: Include errno.h, unistd.h.
14239         (main): Add tests for EBADF, commented out for the moment.
14240
14241         fclose tests: EBADF tests.
14242         * tests/test-fclose.c (main): Add tests for EBADF.
14243
14244         fflush tests: EBADF tests.
14245         * tests/test-fflush.c: Include errno.h, macros.h.
14246         (main): Add tests for EBADF.
14247
14248         ftello tests: EBADF tests.
14249         * tests/test-ftello4.sh: New file.
14250         * tests/test-ftello4.c: New file.
14251         * modules/ftello-tests (Files): Add them.
14252         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14253
14254         fseeko tests: EBADF tests.
14255         * tests/test-fseeko4.sh: New file.
14256         * tests/test-fseeko4.c: New file.
14257         * modules/fseeko-tests (Files): Add them.
14258         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14259
14260         Tests for function fputc().
14261         * modules/fputc-tests: New file.
14262         * tests/test-fputc.c: New file.
14263         * modules/stdio-tests (Depends-on): Add fputc-tests.
14264
14265         Tests for function fgetc().
14266         * modules/fgetc-tests: New file.
14267         * tests/test-fgetc.c: New file.
14268         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14269
14270         Tests for function fdopen().
14271         * modules/fdopen-tests: New file.
14272         * tests/test-fdopen.c: New file.
14273         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14274
14275         Tests for module 'vdprintf'.
14276         * modules/vdprintf-tests: New file.
14277         * tests/test-vdprintf.c: New file.
14278
14279         Tests for module 'dprintf'.
14280         * modules/dprintf-tests: New file.
14281         * tests/test-dprintf.c: New file.
14282
14283 2011-09-20  Bruno Haible  <bruno@clisp.org>
14284
14285         Tests for module 'ioctl'.
14286         * modules/ioctl-tests: New file.
14287         * tests/test-ioctl.c: New file.
14288
14289 2011-09-20  Bruno Haible  <bruno@clisp.org>
14290
14291         fcntl tests: EBADF tests.
14292         * tests/test-fcntl.c (main): Add more tests for EBADF.
14293
14294 2011-09-20  Bruno Haible  <bruno@clisp.org>
14295
14296         utimensat tests: EBADF tests.
14297         * tests/test-utimensat.c (main): Add tests for EBADF.
14298
14299         renameat tests: EBADF tests.
14300         * tests/test-renameat.c (main): Add tests for EBADF.
14301
14302         mkfifoat tests: EBADF tests.
14303         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14304
14305         readlinkat tests: EBADF tests.
14306         * tests/test-readlinkat.c (main): Add tests for EBADF.
14307
14308         symlinkat tests: EBADF tests.
14309         * tests/test-symlinkat.c (main): Add tests for EBADF.
14310
14311         linkat tests: EBADF tests.
14312         * tests/test-linkat.c (main): Add tests for EBADF.
14313
14314         Tests for module 'faccessat'.
14315         * modules/faccessat-tests: New file.
14316         * tests/test-faccessat.c: New file.
14317
14318         fdopendir tests: EBADF tests.
14319         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14320
14321         openat tests: EBADF tests.
14322         * tests/test-fchownat.c (main): Add tests for EBADF.
14323         * tests/test-fstatat.c (main): Likewise.
14324         * tests/test-mkdirat.c (main): Likewise.
14325         * tests/test-openat.c (main): Likewise.
14326         * tests/test-unlinkat.c (main): Likewise.
14327         * tests/test-fchmodat.c: New file.
14328         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14329         (Makefile.am): Also run 'test-fchmodat'.
14330
14331 2011-09-20  Bruno Haible  <bruno@clisp.org>
14332
14333         utimens, futimens, fdutimensat tests: EBADF tests.
14334         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14335
14336         Tests for function fstat().
14337         * modules/fstat-tests: New file.
14338         * tests/test-fstat.c: New file.
14339         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14340
14341 2011-09-20  Bruno Haible  <bruno@clisp.org>
14342
14343         test-ttyname_r tests: EBADF tests.
14344         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14345
14346         Tests for module 'isatty'.
14347         * modules/isatty-tests: New file.
14348         * tests/test-isatty.c: New file.
14349
14350         Tests for module 'write'.
14351         * modules/write-tests: New file.
14352         * tests/test-write.c: New file.
14353
14354         Tests for module 'read'.
14355         * modules/read-tests: New file.
14356         * tests/test-read.c: New file.
14357
14358         pwrite tests: EBADF tests.
14359         * tests/test-pwrite.c (main): Add tests for EBADF.
14360
14361         pread tests: EBADF tests.
14362         * tests/test-pread.c (main): Add tests for EBADF.
14363
14364         lseek tests: EBADF tests.
14365         * tests/test-lseek.c (main): Add more tests for EBADF.
14366
14367         Tests for module 'ftruncate'.
14368         * modules/ftruncate-tests: New file.
14369         * tests/test-ftruncate.sh: New file.
14370         * tests/test-ftruncate.c: New file.
14371
14372         fsync tests: EBADF tests.
14373         * tests/test-fsync.c (main): Add more tests for EBADF.
14374
14375         fdatasync tests: EBADF tests.
14376         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14377
14378         Tests for module 'fchown'.
14379         * modules/fchown-tests: New file.
14380         * tests/test-fchown.c: New file.
14381
14382         Tests for module 'fchmod'.
14383         * modules/fchmod-tests: New file.
14384         * tests/test-fchmod.c: New file.
14385
14386         fchdir tests: EBADF tests.
14387         * tests/test-fchdir.c (main): Add more tests for EBADF.
14388
14389         dup2 tests: EBADF tests.
14390         * tests/test-dup2.c (main): Add more tests for EBADF.
14391
14392         Tests for module 'dup'.
14393         * modules/dup-tests: New file.
14394         * tests/test-dup.c: New file.
14395
14396         Tests for module 'close'.
14397         * modules/close-tests: New file.
14398         * tests/test-close.c: New file.
14399
14400 2011-09-20  Bruno Haible  <bruno@clisp.org>
14401
14402         Tests for module 'shutdown'.
14403         * modules/shutdown-tests: New file.
14404         * tests/test-shutdown.c: New file.
14405
14406         Tests for module 'setsockopt'.
14407         * modules/setsockopt-tests: New file.
14408         * tests/test-setsockopt.c: New file.
14409
14410         Tests for module 'sendto'.
14411         * modules/sendto-tests: New file.
14412         * tests/test-sendto.c: New file.
14413
14414         Tests for module 'send'.
14415         * modules/send-tests: New file.
14416         * tests/test-send.c: New file.
14417
14418         Tests for module 'recvfrom'.
14419         * modules/recvfrom-tests: New file.
14420         * tests/test-recvfrom.c: New file.
14421
14422         Tests for module 'recv'.
14423         * modules/recv-tests: New file.
14424         * tests/test-recv.c: New file.
14425
14426         Tests for module 'listen'.
14427         * modules/listen-tests: New file.
14428         * tests/test-listen.c: New file.
14429
14430         Tests for module 'getsockopt'.
14431         * modules/getsockopt-tests: New file.
14432         * tests/test-getsockopt.c: New file.
14433
14434         Tests for module 'getsockname'.
14435         * modules/getsockname-tests: New file.
14436         * tests/test-getsockname.c: New file.
14437
14438         Tests for module 'getpeername'.
14439         * modules/getpeername-tests: New file.
14440         * tests/test-getpeername.c: New file.
14441
14442         Tests for module 'connect'.
14443         * modules/connect-tests: New file.
14444         * tests/test-connect.c: New file.
14445
14446         Tests for module 'bind'.
14447         * modules/bind-tests: New file.
14448         * tests/test-bind.c: New file.
14449
14450         accept4 tests: Fix for native Windows.
14451         * tests/test-accept4.c: Include sockets.h.
14452         (main): Invoke gl_sockets_startup.
14453         * modules/accept4-tests (Depends-on): Add sockets.
14454
14455         accept tests: Fix for native Windows.
14456         * tests/test-accept.c: Include sockets.h.
14457         (main): Invoke gl_sockets_startup.
14458         * modules/accept-tests (Depends-on): Add sockets.
14459
14460 2011-09-19  Bruno Haible  <bruno@clisp.org>
14461
14462         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14463         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14464         do...while(0).
14465         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14466         Suggested by Paul Eggert.
14467
14468 2011-09-19  Bruno Haible  <bruno@clisp.org>
14469
14470         sched: Ensure pid_t is defined.
14471         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14472         not define pid_t.
14473         * lib/sched.in.h: Include <sys/types.h>.
14474         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14476
14477 2011-09-19  Bruno Haible  <bruno@clisp.org>
14478
14479         msvc-inval: Ensure the entire expansion is a single statement.
14480         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14481         of braces.
14482
14483 2011-09-19  Jim Meyering  <meyering@redhat.com>
14484
14485         tests: use printf, not echo in init.sh's warn_ function
14486         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14487         misbehave when given strings containing a backslash or starting
14488         with e.g., -n.  James Youngman suggested setting IFS.
14489
14490 2011-09-19  Eric Blake  <eblake@redhat.com>
14491
14492         futimens: enhance test
14493         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14494         closed non-negative fd.
14495
14496         date: accept 'hence' as opposite of 'ago'
14497         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14498         * tests/test-parse-datetime.c (main): Enhance test.
14499         Suggested by Jesse Wilson.
14500
14501 2011-09-19  Jim Meyering  <meyering@redhat.com>
14502
14503         getcwd: don't fail in a deep directory on a system without openat
14504         Before this change, getcwd would fail when called from a directory
14505         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14506         the non-openat implementation used "..", "../..", "../../..", etc.
14507         to access ancestor directories.  With too many, that string would
14508         be longer than PATH_MAX.
14509         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14510         using gnulib's openat replacement.
14511         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14512         we're using the replacement function.
14513
14514 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14515
14516         maint.mk: avoid warnings from perl about missing files
14517         * top/maint.mk (def_sym_regex): Ignore files listed in
14518         $(gl_other_headers_) that do not exist, say because a project
14519         does not use a corresponding module.
14520
14521 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14522
14523         stat: use pathmax.h only if needed
14524         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14525         This is better for Emacs, which does not have a mingw port and
14526         therefore can avoid the pathmax module.
14527
14528         utimens: remove dependency on dup2
14529         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14530         to work around the Linux kernel bug.
14531         * modules/utimens (Depends-on): Remove dup2.
14532
14533 2011-09-18  Bruno Haible  <bruno@clisp.org>
14534
14535         inet_ntop, inet_pton: Look for it also in libresolv.
14536         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14537         libnsl, search for it in libresolv.
14538         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14539         Needed on Solaris 7.
14540
14541 2011-09-18  Bruno Haible  <bruno@clisp.org>
14542
14543         accept, accept4 tests: Avoid link error on Solaris.
14544         * modules/accept-tests (Makefile.am): Link test-accept against
14545         $(LIBSOCKET).
14546         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14547         $(LIBSOCKET).
14548
14549         accept4: Avoid link error on Solaris.
14550         * modules/accept4 (Link): New section.
14551
14552         socket functions: Avoid link errors on Solaris.
14553         * modules/accept (Depends-on): Add socketlib.
14554         (Link): New section.
14555         * modules/bind (Depends-on): Add socketlib.
14556         (Link): New section.
14557         * modules/connect (Depends-on): Add socketlib.
14558         (Link): New section.
14559         * modules/getpeername (Depends-on): Add socketlib.
14560         (Link): New section.
14561         * modules/getsockname (Depends-on): Add socketlib.
14562         (Link): New section.
14563         * modules/getsockopt (Depends-on): Add socketlib.
14564         (Link): New section.
14565         * modules/listen (Depends-on): Add socketlib.
14566         (Link): New section.
14567         * modules/recv (Depends-on): Add socketlib.
14568         (Link): New section.
14569         * modules/recvfrom (Depends-on): Add socketlib.
14570         (Link): New section.
14571         * modules/send (Depends-on): Add socketlib.
14572         (Link): New section.
14573         * modules/sendto (Depends-on): Add socketlib.
14574         (Link): New section.
14575         * modules/setsockopt (Depends-on): Add socketlib.
14576         (Link): New section.
14577         * modules/shutdown (Depends-on): Add socketlib.
14578         (Link): New section.
14579         * modules/socket (Depends-on): Add socketlib.
14580         (Link): New section.
14581
14582 2011-09-18  Bruno Haible  <bruno@clisp.org>
14583
14584         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14585         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14586         than 5 seconds.
14587         * modules/ptsname-tests (configure.ac): Test for alarm.
14588
14589 2011-09-18  Bruno Haible  <bruno@clisp.org>
14590
14591         posix_spawn_file_actions_add*: Fix module dependencies.
14592         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14593         posix_spawn_file_actions_init.
14594         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14595         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14596
14597 2011-09-18  Bruno Haible  <bruno@clisp.org>
14598
14599         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14600         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14601         * tests/test-renameat.c (main): Likewise.
14602
14603 2011-09-18  Bruno Haible  <bruno@clisp.org>
14604
14605         Tests for module 'accept4'.
14606         * modules/accept4-tests: New file.
14607         * tests/test-accept4.c: New file.
14608
14609 2011-09-18  Bruno Haible  <bruno@clisp.org>
14610
14611         Tests for module 'accept'.
14612         * modules/accept-tests: New file.
14613         * tests/test-accept.c: New file.
14614
14615 2011-09-18  Bruno Haible  <bruno@clisp.org>
14616
14617         dup2: Support for MSVC.
14618         * lib/dup2.c: Include msvc-inval.h.
14619         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14620         _get_osfhandle calls.
14621         * modules/dup2 (Depends-on): Add msvc-inval.
14622         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14623
14624         New module 'msvc-inval'.
14625         * lib/msvc-inval.h: New file.
14626         * lib/msvc-inval.c: New file.
14627         * m4/msvc-inval.m4: New file.
14628         * modules/msvc-inval: New file.
14629
14630 2011-09-17  Bruno Haible  <bruno@clisp.org>
14631
14632         Tests for module 'pclose'.
14633         * modules/pclose-tests: New file.
14634
14635         New module 'pclose'.
14636         * lib/stdio.in.h (pclose): New declaration.
14637         * lib/pclose.c: New file.
14638         * m4/pclose.m4: New file.
14639         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14640         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14641         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14642         * modules/pclose: New file.
14643         * modules/popen-tests (Depends-on): Add pclose.
14644         * modules/popen-safer-tests (Depends-on): Likewise.
14645         * doc/posix-functions/pclose.texi: Mention the new module.
14646
14647 2011-09-17  Bruno Haible  <bruno@clisp.org>
14648
14649         popen: Support for MSVC.
14650         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14651         * lib/popen.c (popen): Provide alternate definition for native Windows.
14652         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14654         * modules/popen (Depends-on, configure.ac): Update condition.
14655         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14656         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14657         fixed.
14658
14659 2011-09-17  Bruno Haible  <bruno@clisp.org>
14660
14661         isnanl, isnand, isnanf: Work around MSVC bug.
14662         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14663
14664 2011-09-17  Bruno Haible  <bruno@clisp.org>
14665
14666         sys_socket tests: Fix recent mistake.
14667         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14668
14669 2011-09-17  Bruno Haible  <bruno@clisp.org>
14670
14671         putenv: Support for MSVC.
14672         * modules/putenv (Depends-on): Add environ.
14673         * lib/putenv.c (environ): Disable declaration.
14674         * lib/unistd.in.h: Update comment.
14675
14676 2011-09-17  Bruno Haible  <bruno@clisp.org>
14677
14678         math: Avoid macro redefinition warnings on MSVC.
14679         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14680         Undefine before redefining.
14681
14682 2011-09-17  Bruno Haible  <bruno@clisp.org>
14683
14684         doc: Mention functions which are declared as macros.
14685         * doc/posix-functions/*[fl].texi: Mention that some functions are
14686         defined as macros with arguments only.
14687
14688 2011-09-17  Bruno Haible  <bruno@clisp.org>
14689
14690         Add dependencies to new dirent related modules.
14691         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14692         * modules/fts (Depends-on): Likewise.
14693         * modules/glob (Depends-on): Likewise.
14694         * modules/savedir (Depends-on): Likewise.
14695         * modules/scandir (Depends-on): Likewise.
14696         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14697         * modules/fdopendir (Depends-on): Add opendir.
14698
14699 2011-09-17  Bruno Haible  <bruno@clisp.org>
14700
14701         inet_pton: Support for MSVC on Windows Vista or newer.
14702         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14703         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14704         HAVE_DECL_INET_PTON is defined.
14705         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14706         On platforms with <winsock2.h>, test whether inet_pton is declared in
14707         <ws2tcpip.h>. If so, arrange to replace it.
14708         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14709         REPLACE_INET_PTON.
14710         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14711         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14712         (Depends-on, configure.ac): Update condition.
14713         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14714
14715 2011-09-17  Bruno Haible  <bruno@clisp.org>
14716
14717         inet_ntop: Support for MSVC on Windows Vista or newer.
14718         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14719         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14720         HAVE_DECL_INET_NTOP is defined.
14721         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14722         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14723         <ws2tcpip.h>. If so, arrange to replace it.
14724         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14725         REPLACE_INET_NTOP.
14726         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14727         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14728         (Depends-on, configure.ac): Update condition.
14729         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14730
14731 2011-09-16  Eric Blake  <eblake@redhat.com>
14732
14733         test-fsync: yet another enhancement
14734         * tests/test-fsync.c (main): Also test behavior on read-only text
14735         file.
14736
14737 2011-09-16  Bruno Haible  <bruno@clisp.org>
14738
14739         Enhance fsync, fdatasync tests.
14740         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14741         * tests/test-fdatasync.c (main): Likewise.
14742
14743 2011-09-16  Bruno Haible  <bruno@clisp.org>
14744
14745         Support for MSVC compiler: Ensure mode_t gets defined.
14746         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14747         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14749         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14750         * tests/test-fcntl-h.c: Check that mode_t is defined.
14751         * tests/test-sys_stat.c: Likewise.
14752         * tests/test-sys_types.c: Likewise.
14753         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14754         * doc/posix-headers/sys_stat.texi: Likewise.
14755         * doc/posix-headers/sys_types.texi: Likewise.
14756
14757 2011-09-16  Bruno Haible  <bruno@clisp.org>
14758
14759         sys_stat: Support for MSVC.
14760         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14761         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14762         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14763         MSVC.
14764
14765 2011-09-16  Bruno Haible  <bruno@clisp.org>
14766
14767         Support for MSVC compiler: Ensure off_t gets defined.
14768         * lib/unistd.in.h: Include <sys/types.h>.
14769         * tests/test-fcntl-h.c: Check that off_t is defined.
14770         * tests/test-sys_stat.c: Likewise.
14771         * tests/test-sys_types.c: Likewise.
14772
14773 2011-09-16  Eric Blake  <eblake@redhat.com>
14774
14775         fdatasync: port to Solaris
14776         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14777         * modules/fdatasync (Link): Document it.
14778         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14779
14780         fdatasync: port to MacOS X 10.7
14781         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14782         declared.
14783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14784         * modules/unistd (Makefile.am): Substitute it.
14785         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14786         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14787
14788         fdatasync: minor improvements
14789         * modules/fdatasync (Depends-on): Add condition for fsync.
14790         * lib/fdatasync.c (fdatasync): Add comment.
14791         * tests/test-unistd-c++.cc: Test fdatasync.
14792
14793         unistd: update refs to newer POSIX
14794         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14795         Suggested by Bruno Haible.
14796
14797         fdatasync: new module
14798         * modules/fsync (Description): Document difference to fdatasync.
14799         * modules/fdatasync: New module.
14800         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14801         * lib/fdatasync.c (fdatasync): Likewise.
14802         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14803         defaults.
14804         * modules/unistd (Makefile.am): Set witnesses.
14805         * lib/unistd.in.h (fdatasync): Declare.
14806         * MODULES.html.sh: Document it.
14807         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14808         * modules/fdatasync-tests: New test.
14809         * tests/test-fdatasync.c: Likewise.
14810
14811 2011-09-16  Eric Blake  <eblake@redhat.com>
14812
14813         test-fsync: enhance tests
14814         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14815         * tests/test-fsync.c (main): Enhance test.
14816
14817 2011-09-15  Bruno Haible  <bruno@clisp.org>
14818
14819         Support for MSVC compiler: Ensure ssize_t gets defined.
14820         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14821         * doc/posix-headers/stdio.texi: Likewise.
14822         * modules/stdio (Depends-on): Add ssize_t.
14823         * modules/sys_socket (Depends-on): Likewise.
14824         * modules/sys_types (Depends-on): Likewise.
14825         * modules/sys_uio (Depends-on): Likewise.
14826         * modules/unistd (Depends-on): Likewise.
14827         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14828         * tests/test-sys_types.c: Check that ssize_t is defined.
14829
14830 2011-09-14  Bruno Haible  <bruno@clisp.org>
14831
14832         Avoid using #, the m4 comment starter character, near brackets.
14833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14834         delimiter character in sed expressions.
14835         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14836         Suggested by Eric Blake.
14837
14838         Properly quote AC_CHECK_DECLS' 4th argument.
14839         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14840         argument.
14841         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14842         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14843         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14844         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14845         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14846         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14847         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14848         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14849         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14850         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14851         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14852         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14853         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14854         * m4/isinf.m4 (gl_ISINF): Likewise.
14855         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14856         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14857         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14858         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14860         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14861         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14862         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14863         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14864         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14865         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14866         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14868         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14870         Reported by Eric Blake.
14871
14872         Properly quote AC_CHECK_DECL's 4th argument.
14873         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14874         argument.
14875         * m4/argp.m4 (gl_ARGP): Likewise.
14876         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14877         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14878         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14879         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14880         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14881         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14883         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14885         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14886         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14887         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14888         Reported by Eric Blake.
14889
14890 2011-09-14  Eric Blake  <eblake@redhat.com>
14891
14892         opendir: avoid compile warning
14893         * lib/opendir.c (includes): Always include errno.h.
14894         Reported by Tatsuro MATSUOKA.
14895
14896 2011-09-14  Jim Meyering  <meyering@redhat.com>
14897
14898         maint.mk: sc_tight_scope: propagate failure from sub-make
14899         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14900         Reported by Martin von Gagern.
14901
14902 2011-09-13  Bruno Haible  <bruno@clisp.org>
14903
14904         tempname: Support for MSVC.
14905         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14906         MSVC.
14907         * modules/tempname (Depends-on): Add fcntl-h.
14908
14909 2011-09-13  Bruno Haible  <bruno@clisp.org>
14910
14911         sys_time: Support for MSVC.
14912         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14913         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14914         include <winsock2.h>.
14915         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14916         function declarations that collide with POSIX.
14917         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14918         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14919
14920 2011-09-13  Bruno Haible  <bruno@clisp.org>
14921
14922         stat: Support for MSVC.
14923         * lib/stat.c: Include pathmax.h.
14924         * modules/stat (Depends-on): Add pathmax.
14925
14926         pathmax: Support for native Windows.
14927         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14928
14929 2011-09-12  Bruno Haible  <bruno@clisp.org>
14930
14931         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14932         * lib/dirent.in.h (struct dirent): New type.
14933         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14934         DT_WHT): New macros.
14935         (DIR): New type.
14936         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14937         (readdir, rewinddir): New declarations.
14938         * lib/dirent-private.h: New file.
14939         * lib/opendir.c: New file.
14940         * lib/readdir.c: New file.
14941         * lib/rewinddir.c: New file.
14942         * lib/closedir.c: New file.
14943         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14944         * m4/opendir.m4: New file.
14945         * m4/readdir.m4: New file.
14946         * m4/rewinddir.m4: New file.
14947         * m4/closedir.m4: New file.
14948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14949         REPLACE_CLOSEDIR here.
14950         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14951         readdir, rewinddir are declared.
14952         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14953         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14954         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14955         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14956         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14957         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14958         * modules/opendir: New file.
14959         * modules/readdir: New file.
14960         * modules/rewinddir: New file.
14961         * modules/closedir: New file.
14962         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14963         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14964         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14965         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14966         * NEWS: Mention the 'fchdir' change.
14967
14968 2011-09-11  Bruno Haible  <bruno@clisp.org>
14969
14970         asm-underscore.m4: Support for MSVC.
14971         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14972         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14973
14974 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14975
14976         Doc about crypt functions.
14977         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14978         needing for _GNU_SOURCE to get crypt.
14979         * doc/posix-functions/encrypt.texi: Likewise.
14980         * doc/posix-functions/setkey.texi: Likewise.
14981
14982 2011-09-11  Bruno Haible  <bruno@clisp.org>
14983
14984         doc: Update regarding MSVC 9.
14985         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14986         tested".
14987         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14988         * doc/posix-headers/*.texi: Likewise.
14989         * doc/pastposix-functions/*.texi: Likewise.
14990         * doc/glibc-functions/*.texi: Likewise.
14991         * doc/glibc-headers/*.texi: Likewise.
14992
14993 2011-09-11  Bruno Haible  <bruno@clisp.org>
14994
14995         unistd et al.: Don't assume <unistd.h> exists.
14996         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14997         does not exist.
14998         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14999         exist. But include <stdlib.h>.
15000         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15001         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15002         symlink() does not exist.
15003         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15004         include <io.h> instead.
15005         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15006         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15007         include <direct.h> instead.
15008         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15010         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15011         <io.h> instead.
15012         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15013         correctly if the system does not have hard links.
15014         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15015         <direct.h> instead.
15016         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15017         it when looking for function declarations.
15018         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15019         <direct.h> and <io.h> instead.
15020         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15021
15022 2011-09-11  Bruno Haible  <bruno@clisp.org>
15023
15024         strcase: Support for MSVC.
15025         * modules/strcase (Status, Notice): Remove obsoletion mark.
15026         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15027         * doc/posix-functions/strncasecmp.texi: Likewise.
15028
15029         strings: Don't assume <strings.h> exists.
15030         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15031         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15032         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15033         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15034
15035 2011-09-11  Bruno Haible  <bruno@clisp.org>
15036
15037         dirent: Don't assume <dirent.h> exists.
15038         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15039         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15040         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15041         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15042
15043 2011-09-11  Bruno Haible  <bruno@clisp.org>
15044
15045         Fix wint_t on MSVC.
15046         * lib/wchar.in.h (wint_t): On MSVC, override it.
15047         * lib/wctype.in.h (wint_t): Likewise.
15048         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15049         MSVC.
15050         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15051         * doc/posix-headers/wctype.texi: Likewise.
15052
15053 2011-09-11  Bruno Haible  <bruno@clisp.org>
15054
15055         sys_types: Fix typo.
15056         * lib/sys_types.in.h: Fix typo in comment.
15057         Reported by Paul Eggert.
15058
15059         Support for MSVC compiler: Ensure size_t gets defined.
15060         * modules/strings (Depends-on): Add 'sys_types'.
15061         * modules/sys_uio (Depends-on): Likewise.
15062         * lib/sys_uio.in.h: Update comment.
15063
15064         C++ tests for module 'sys_types'.
15065         * modules/sys_types-c++-tests: New file.
15066         * tests/test-sys_types-c++.cc: New file.
15067
15068         Tests for module 'sys_types'.
15069         * modules/sys_types-tests: New file.
15070         * tests/test-sys_types.c: New file.
15071
15072         New module 'sys_types'.
15073         * lib/sys_types.in.h: New file.
15074         * m4/sys_types_h.m4: New file.
15075         * modules/sys_types: New file.
15076         * doc/posix-headers/sys_types.texi: Mention the new module and the
15077         size_t problem on MSVC 9.
15078
15079 2011-09-11  Bruno Haible  <bruno@clisp.org>
15080
15081         Support for MSVC compiler: Avoid division by a literal 0.
15082         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15084         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15085         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15086         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15087         * tests/infinity.h: New file.
15088         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15089         on MSVC.
15090         * tests/test-ceilf1.c: Include infinity.h.
15091         (main): Use Infinityf.
15092         * tests/test-ceil1.c: Include infinity.h.
15093         (main): Use Infinityd.
15094         * tests/test-ceill.c: Include infinity.h.
15095         (main): Use Infinityl.
15096         * tests/test-dprintf-posix.c: Include infinity.h.
15097         (test_function): Use Infinityd.
15098         * tests/test-floorf1.c: Include infinity.h.
15099         (main): Use Infinityf.
15100         * tests/test-floor1.c: Include infinity.h.
15101         (main): Use Infinityd.
15102         * tests/test-floorl.c: Include infinity.h.
15103         (main): Use Infinityl.
15104         * tests/test-fprintf-posix.c: Include infinity.h.
15105         (test_function): Use Infinityd.
15106         * tests/test-frexp.c: Include infinity.h.
15107         (main): Use Infinityd.
15108         * tests/test-frexpl.c: Include infinity.h.
15109         (main): Use Infinityl.
15110         * tests/test-isfinite.c: Include infinity.h.
15111         (test_isfinitef): Use Infinityf.
15112         (test_isfinited): Use Infinityd.
15113         (test_isfinitel): Use Infinityl.
15114         * tests/test-isinf.c: Include infinity.h.
15115         (test_isinff): Use Infinityf.
15116         (test_isinfd): Use Infinityd.
15117         (test_isinfl): Use Infinityl.
15118         * tests/test-isnan.c: Include infinity.h.
15119         (test_float): Use Infinityf.
15120         (test_double): Use Infinityd.
15121         (test_long_double): Use Infinityl.
15122         * tests/test-isnanf.h: Include infinity.h.
15123         (main): Use Infinityf.
15124         * tests/test-isnand.h: Include infinity.h.
15125         (main): Use Infinityd.
15126         * tests/test-isnanl.h: Include infinity.h.
15127         (main): Use Infinityl.
15128         * tests/test-ldexpl.c: Include infinity.h.
15129         (main): Use Infinityl.
15130         * tests/test-printf-posix.h: Include infinity.h.
15131         (test_function): Use Infinityd.
15132         * tests/test-roundf1.c: Include infinity.h.
15133         (main): Use Infinityf.
15134         * tests/test-round1.c: Include infinity.h.
15135         (main): Use Infinityd.
15136         * tests/test-roundl.c: Include infinity.h.
15137         (main): Use Infinityl.
15138         * tests/test-signbit.c: Include infinity.h.
15139         (test_signbitf): Use Infinityf.
15140         (test_signbitd): Use Infinityd.
15141         (test_signbitl): Use Infinityl.
15142         * tests/test-snprintf-posix.h: Include infinity.h.
15143         (test_function): Use Infinityd, Infinityl.
15144         * tests/test-sprintf-posix.h: Include infinity.h.
15145         (test_function): Use Infinityd, Infinityl.
15146         * tests/test-truncf1.c: Include infinity.h.
15147         (main): Use Infinityf.
15148         * tests/test-trunc1.c: Include infinity.h.
15149         (main): Use Infinityd.
15150         * tests/test-truncl.c: Include infinity.h.
15151         (main): Use Infinityl.
15152         * tests/test-vasnprintf-posix.c: Include infinity.h.
15153         (test_function): Use Infinityd, Infinityl.
15154         * tests/test-vasprintf-posix.c: Include infinity.h.
15155         (test_function): Use Infinityd, Infinityl.
15156         * modules/ceilf-tests (Files): Add tests/infinity.h.
15157         * modules/ceil-tests (Files): Likewise.
15158         * modules/ceill-tests (Files): Likewise.
15159         * modules/dprintf-posix-tests (Files): Likewise.
15160         * modules/floorf-tests (Files): Likewise.
15161         * modules/floor-tests (Files): Likewise.
15162         * modules/floorl-tests (Files): Likewise.
15163         * modules/fprintf-posix-tests (Files): Likewise.
15164         * modules/frexp-tests (Files): Likewise.
15165         * modules/frexp-nolibm-tests (Files): Likewise.
15166         * modules/frexpl-tests (Files): Likewise.
15167         * modules/frexpl-nolibm-tests (Files): Likewise.
15168         * modules/isfinite-tests (Files): Likewise.
15169         * modules/isinf-tests (Files): Likewise.
15170         * modules/isnan-tests (Files): Likewise.
15171         * modules/isnanf-tests (Files): Likewise.
15172         * modules/isnanf-nolibm-tests (Files): Likewise.
15173         * modules/isnand-tests (Files): Likewise.
15174         * modules/isnand-nolibm-tests (Files): Likewise.
15175         * modules/isnanl-tests (Files): Likewise.
15176         * modules/isnanl-nolibm-tests (Files): Likewise.
15177         * modules/ldexpl-tests (Files): Likewise.
15178         * modules/printf-posix-tests (Files): Likewise.
15179         * modules/roundf-tests (Files): Likewise.
15180         * modules/round-tests (Files): Likewise.
15181         * modules/roundl-tests (Files): Likewise.
15182         * modules/signbit-tests (Files): Likewise.
15183         * modules/snprintf-posix-tests (Files): Likewise.
15184         * modules/sprintf-posix-tests (Files): Likewise.
15185         * modules/truncf-tests (Files): Likewise.
15186         * modules/trunc-tests (Files): Likewise.
15187         * modules/truncl-tests (Files): Likewise.
15188         * modules/vasnprintf-posix-tests (Files): Likewise.
15189         * modules/vasprintf-posix-tests (Files): Likewise.
15190         * modules/vdprintf-posix-tests (Files): Likewise.
15191         * modules/vfprintf-posix-tests (Files): Likewise.
15192         * modules/vprintf-posix-tests (Files): Likewise.
15193         * modules/vsnprintf-posix-tests (Files): Likewise.
15194         * modules/vsprintf-posix-tests (Files): Likewise.
15195         * modules/xprintf-posix-tests (Files): Likewise.
15196
15197 2011-09-11  Bruno Haible  <bruno@clisp.org>
15198
15199         Ensure pid_t gets defined.
15200         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15201         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15202         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15203         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15204         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15205         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15206         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15207         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15208         * tests/test-fcntl-h.c: Check that pid_t is defined.
15209         * tests/test-sched.c: Likewise.
15210         * tests/test-termios.c: Likewise.
15211         * tests/test-time.c: Likewise.
15212         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15213         * doc/posix-headers/signal.texi: Likewise.
15214         * doc/posix-headers/sys_types.texi: Likewise.
15215         * doc/posix-headers/time.texi: Likewise.
15216
15217 2011-09-11  Bruno Haible  <bruno@clisp.org>
15218
15219         acl: Fix compilation on Solaris 10 (older version).
15220         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15221         of ACE_EVERYONE.
15222         * lib/set-mode-acl.c (qset_acl): Likewise.
15223         Reported by Christian Jullien <eligis@orange.fr>.
15224
15225 2011-09-10  Bruno Haible  <bruno@clisp.org>
15226
15227         iconv, unsetenv: Add support for MSVC compiler.
15228         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15229         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15230
15231 2011-09-10  Bruno Haible  <bruno@clisp.org>
15232
15233         *printf: Add support for MSVC compiler.
15234         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15235         handles the exception caused by the %n directive. When cross-compiling,
15236         guess no on native Windows.
15237         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15238         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15239         emulate it through vsnprintf.
15240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15241         * doc/posix-functions/dprintf.texi: Update documentation regarding
15242         MSVC 9.
15243         * doc/posix-functions/fprintf.texi: Likewise.
15244         * doc/posix-functions/printf.texi: Likewise.
15245         * doc/posix-functions/snprintf.texi: Likewise.
15246         * doc/posix-functions/sprintf.texi: Likewise.
15247         * doc/posix-functions/swprintf.texi: Likewise.
15248         * doc/posix-functions/vdprintf.texi: Likewise.
15249         * doc/posix-functions/vfprintf.texi: Likewise.
15250         * doc/posix-functions/vprintf.texi: Likewise.
15251         * doc/posix-functions/vsnprintf.texi: Likewise.
15252         * doc/posix-functions/vsprintf.texi: Likewise.
15253         * doc/glibc-functions/asprintf.texi: Likewise.
15254         * doc/glibc-functions/obstack_printf.texi: Likewise.
15255         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15256         * doc/glibc-functions/vasprintf.texi: Likewise.
15257
15258 2011-09-10  Bruno Haible  <bruno@clisp.org>
15259
15260         nocrash: Add support for native Windows.
15261         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15262
15263 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15264             Bruno Haible  <bruno@clisp.org>
15265
15266         absolute-header, include-next: Add support for MSVC compiler.
15267         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15268         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15269         directory separator in #line directives.
15270         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15271         recognize also backslash as directory separator in #line directives.
15272
15273 2011-09-08  Jim Meyering  <meyering@redhat.com>
15274
15275         maint.mk: mark the post-release commit log with "maint: " prefix
15276         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15277         one-line commit-log summary.
15278
15279 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15280             Bruno Haible  <bruno@clisp.org>
15281
15282         Doc about crypt functions.
15283         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15284         systems.
15285         * doc/posix-functions/encrypt.texi: Likewise.
15286         * doc/posix-functions/setkey.texi: Likewise.
15287
15288 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15289
15290         * lib/gc.h: Fix copyright header.
15291
15292 2011-09-07  Bruno Haible  <bruno@clisp.org>
15293
15294         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15295         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15296         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15297
15298 2011-09-07  Bruno Haible  <bruno@clisp.org>
15299
15300         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15301         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15302         * lib/freopen.c: Likewise.
15303         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15304         * lib/lstat.c: Likewise.
15305         * lib/stat.c: Likewise.
15306         * lib/open.c: Use different syntax for include of <fcntl.h>.
15307         * lib/openat.c: Include fcntl.h again, explicitly.
15308
15309 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15310
15311         parse-datetime: document the newly accepted format
15312         * doc/parse-datetime.texi (Combined date and time of day items):
15313         New section.
15314
15315 2011-09-06  Bruno Haible  <bruno@clisp.org>
15316
15317         acl: Fix a test failure on newer Solaris 10 with ZFS.
15318         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15319         ENOSYS as no ACL.
15320         Reported by Jim Meyering.
15321
15322 2011-09-06  Bruno Haible  <bruno@clisp.org>
15323
15324         acl: Update for AIX >= 5.3 with NFS.
15325         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15326         ENOSYS as no ACL.
15327
15328         acl: Fix a test failure on AIX >= 5.3 with NFS.
15329         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15330         as no ACL.
15331
15332 2011-09-06  Bruno Haible  <bruno@clisp.org>
15333
15334         acl: Fix a test failure on IRIX 6.5 with NFS.
15335         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15336         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15337         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15338         * lib/copy-acl.c (qcopy_acl): Likewise.
15339
15340 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15341
15342         openat: port to AIX 7.1 with large files
15343         AIX 7.1 does a "#define openat open64at" if large files are in use,
15344         so we can't simply #undef openat.  Use the orig_openat trick (similar
15345         to orig_open in lib/open.c) to work around the problem.  Problem
15346         reported by Kevin Brott for GNU tar, in the thread containing
15347         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15348         * lib/openat.c (__need_system_fcntl_h): Define first.
15349         Include <fcntl.h> and <sys/types.h> before undefining.
15350         (orig_openat) [HAVE_OPENAT]: New inline function.
15351         (openat) [HAVE_OPENAT]: Do not undef.
15352         (rpl_openat): Use orig_openat, not openat.
15353
15354 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15355             Bruno Haible  <bruno@clisp.org>
15356
15357         acl: Avoid errors on NonStop Kernel.
15358         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15359         ENOTSUP errors.
15360
15361 2011-09-05  Bruno Haible  <bruno@clisp.org>
15362
15363         acl: Clean up Solaris code.
15364         * lib/acl-internal.h: Remove no-op #if.
15365         * lib/file-has-acl.c: Likewise.
15366         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15367         * lib/copy-acl.c (qcopy_acl): Likewise.
15368
15369 2011-09-05  Bruno Haible  <bruno@clisp.org>
15370
15371         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15372         binaries built on the original Solaris 10.
15373         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15374         trivial.
15375
15376 2011-09-05  Bruno Haible  <bruno@clisp.org>
15377
15378         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15379         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15380         10.
15381         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15382         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15383         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15384         instead of acl_get, facl_get, acl_set, facl_set.
15385
15386 2011-09-05  Bruno Haible  <bruno@clisp.org>
15387
15388         copy-file: Try unit tests on more file systems.
15389         * tests/test-copy-file-1.sh: New file.
15390         * tests/test-copy-file-2.sh: New file.
15391         * modules/copy-file-tests (Files): Add them.
15392         (Makefile.am): Add them to TESTS.
15393
15394         acl: Try unit tests on more file systems.
15395         * tests/test-file-has-acl-1.sh: New file.
15396         * tests/test-file-has-acl-2.sh: New file.
15397         * tests/test-set-mode-acl-1.sh: New file.
15398         * tests/test-set-mode-acl-2.sh: New file.
15399         * tests/test-copy-acl-1.sh: New file.
15400         * tests/test-copy-acl-2.sh: New file.
15401         * modules/acl-tests (Files): Add them.
15402         (Makefile.am): Add them to TESTS.
15403
15404 2011-09-04  Bruno Haible  <bruno@clisp.org>
15405
15406         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15407         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15408         10.
15409         (OLD_ALLOW, OLD_DENY): New macros.
15410         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15411         ACE_ACCESS_ALLOWED_ACE_TYPE.
15412         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15413         ACE_ACCESS_DENIED_ACE_TYPE.
15414         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15415         (NEW_ACE_EXECUTE): Fix value.
15416         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15417         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15418         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15419         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15420         NEW_ACE_SYNCHRONIZE): New macros.
15421         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15422         instead of acl_fromtext, acl_set, facl_set.
15423         Fixes a coreutils/tests/cp/perm failure.
15424
15425 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         openat: test for fstatat (..., 0) bug
15428         Further testing with tar suggests that fstatat (..., 0)
15429         does not work in general, on AIX 7.1; see
15430         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15431         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15432         replacement fstatat (which is what older AIX releases were using
15433         anyway).
15434         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15435         use is now changed to orig_fstatat.  This was probably the right
15436         thing to do anyway.
15437         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15438         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15439         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15440         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15441         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15442         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15443         if the bug is found.
15444
15445         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15446         This tests for another fstatat bug on AIX 7.1:
15447         fstatat (AT_FDCWD, ..., 0) does not work.  See
15448         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15449         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15450         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15451         (rpl_fstatat): Adjust so that it works around either (or both)
15452         bugs if present.
15453         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15454
15455 2011-09-03  Karl Berry  <karl@gnu.org>
15456
15457         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15458         in index entries.
15459
15460 2011-09-02  Bruno Haible  <bruno@clisp.org>
15461
15462         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15463         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15464         values of AR, ARFLAGS, RANLIB.
15465         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15466
15467 2011-09-02  Bruno Haible  <bruno@clisp.org>
15468
15469         Find 'ar' program that fits with --host argument.
15470         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15471
15472 2011-09-02  Bruno Haible  <bruno@clisp.org>
15473
15474         tests: init.sh: Support any non-GNU diff.
15475         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15476         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15477         Solaris 8.
15478
15479 2011-09-02  Bruno Haible  <bruno@clisp.org>
15480
15481         tests: init.sh: work also with any non-GNU diff that supports -u
15482         * tests/init.sh: Relax check for diff -u support.
15483         Rather than checking for GNU diff via --version, simply check
15484         for support for -u itself.  Useful at least on OpenBSD 4.9,
15485         AIX 7.1, IRIX 6.5, and Solaris 10.
15486
15487 2011-09-01  Bruno Haible  <bruno@clisp.org>
15488
15489         strtoimax, strtoumax: Document problem on HP-UX 11.
15490         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15491         * doc/posix-functions/strtoumax.texi: Likewise.
15492
15493 2011-09-01  Bruno Haible  <bruno@clisp.org>
15494
15495         strtoumax: Avoid link error on OSF/1 with DTK cc.
15496         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15497         defined as a function.
15498         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15499         strtoumax is defined, not whether it is declared.
15500
15501 2011-09-01  Bruno Haible  <bruno@clisp.org>
15502
15503         strtoimax: Avoid link error on OSF/1 with DTK cc.
15504         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15505         defined as a function.
15506         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15507         strtoimax is defined, not whether it is declared.
15508
15509 2011-09-01  Bruno Haible  <bruno@clisp.org>
15510
15511         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15512         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15513         as a function.
15514         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15515         whether it is declared.
15516
15517 2011-09-01  Bruno Haible  <bruno@clisp.org>
15518
15519         imaxabs: Avoid link error on OSF/1 with DTK cc.
15520         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15521         as a function.
15522         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15523         whether it is declared.
15524
15525 2011-09-01  Bruno Haible  <bruno@clisp.org>
15526
15527         Tests for module 'strtoumax'.
15528         * modules/strtoumax-tests: New file.
15529         * tests/test-strtoumax.c: New file.
15530
15531         Tests for module 'strtoimax'.
15532         * modules/strtoimax-tests: New file.
15533         * tests/test-strtoimax.c: New file.
15534
15535         Tests for module 'imaxdiv'.
15536         * modules/imaxdiv-tests: New file.
15537         * tests/test-imaxdiv.c: New file.
15538
15539         Tests for module 'imaxabs'.
15540         * modules/imaxabs-tests: New file.
15541         * tests/test-imaxabs.c: New file.
15542
15543 2011-09-01  Bruno Haible  <bruno@clisp.org>
15544
15545         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15546         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15547         pthread_create.
15548
15549 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15550
15551         openat: work around AIX 7.1 fstatat issue
15552         This should fix the problem that was not properly fixed
15553         in the previous change, dated 2011-08-30.
15554         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15555         __need_system_stat_h defined.
15556         (orig_fstatat) [HAVE_FSTATAT]: New function.
15557         (rpl_fstatat): Go back to the old way of doing things,
15558         except call orig_fstatat instead of fstatat.
15559         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15560         Remove unnecessary check whether fstatat fills in st_size etc.
15561
15562 2011-09-01  Bruno Haible  <bruno@clisp.org>
15563
15564         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15565         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15566         just include the system's header.
15567
15568 2011-08-31  Jim Meyering  <meyering@redhat.com>
15569
15570         tests: avoid spurious assertion failure in test-float.c on ppc64
15571         * tests/test-float.c (test_long_double): Comment out an assertion,
15572         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15573         with gcc-4.4.4.
15574
15575         maint: indent with spaces, not TABs
15576         I need to get in the habit of running gnulib's "make check".
15577         Both of these would have been caught.
15578         * m4/largefile.m4: Indent with spaces, not TABs.
15579         * lib/parse-datetime.y (iso_8601_time): Likewise.
15580         Spotted by Pádraig Brady.
15581
15582         test-parse-datetime.c: accommodate a relatively strict gcc warning
15583         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15584         to avoid a warning from gcc's -Werror=missing-declarations.
15585         Insert a few spaces-before-funcall-parenthesis.
15586
15587 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15588
15589         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15590         The parser now accepts ISO 8601 date-time strings with "T" as the
15591         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15592         with a space between the date and time strings.  Now it also parses
15593         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15594         variants like "2004-02-29T16:21:42.333-07:00"
15595         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15596         of day representation using the 'T' separator character.
15597         * doc/parse-datetime.texi (General date syntax): replace use of
15598         deprecated --iso-8601 option with --rfc-3339 in example of date
15599         command output formats that can be parsed.
15600         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15601         lib/parse-datetime.y.
15602         (gmt_offset): New function.
15603         (main): Add additional test cases to validate ISO8601 extended
15604         date and time of day parsing.
15605
15606 2011-08-31  Bruno Haible  <bruno@clisp.org>
15607
15608         freopen: Documentation.
15609         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15610         name.
15611         Reported by Claudio Bley <claudio.bley@gmail.com>.
15612
15613 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15614
15615         freopen: Don't crash if the filename argument is NULL.
15616         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15617         NULL.
15618
15619 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15620
15621         openat: work around AIX 7.1 fstatat bug
15622         Problem reported by Kevin Brott for GNU tar, in the thread containing
15623         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15624         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15625         FSTATAT_ST_SIZE_ETC_BROKEN.
15626         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15627         rpl_fstatat.
15628         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15629         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15630         AC_CHECK_FUNCS_ONCE for fstatat.
15631         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15632         fchmodat, mkdirat, openat and unlinkat.
15633
15634 2011-08-30  Bruno Haible  <bruno@clisp.org>
15635
15636         Avoid endless recursions if config.h includes some header files.
15637         * lib/fopen.c (__need_FILE): Define already before including config.h.
15638         * lib/freopen.c (__need_FILE): Likewise.
15639         * lib/open.c (__need_system_fcntl_h): Likewise.
15640         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15641         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15642         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15643
15644 2011-08-25  Karl Berry  <karl@gnu.org>
15645
15646         * config/srclist.txt (ylwrap): new try.
15647         * build-aux/ylwrap: new file.
15648
15649 2011-08-23  Bruno Haible  <bruno@clisp.org>
15650
15651         tmpdir: Use a good default directory on native Windows.
15652         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15653         (P_tmpdir): Default to _P_tmpdir on native Windows.
15654         (path_search): On native Windows, try the value returned by GetTempPath
15655         before trying P_tmpdir.
15656         * modules/tmpdir (Depends-on): Add pathmax.
15657         Suggested by John Darrington <john@darrington.wattle.id.au>.
15658
15659 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15660
15661         doc: fix typo in README-release
15662         * top/README-release: Capitalize first word of a sentence.
15663
15664 2011-08-19  Jim Meyering  <meyering@redhat.com>
15665
15666         fts: do not exhaust memory when processing million-entry directories
15667         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15668         directory would require about 256*N bytes of memory.  Thus, it was
15669         easy to construct a directory too large to be processed by any of
15670         those tools.  With this change, fts' maximum memory utilization is
15671         now limited to around 30MB.
15672         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15673         (fts_read): When we've processed the final entry (i.e., when
15674         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15675         using the parent entry to read any remaining entries.  Dispatch
15676         depending on what fts_build returns:
15677         - NULL+stop, aka failure: stop
15678         - NULL otherwise: move up in the dir hierarchy
15679         - non-NULL: handle this new entry
15680         (fts_build): Declare and use new local, continue_readdir.
15681         Prepare to be called from fts_read, when the entries
15682         from a partially-read directory have just been exhausted.
15683         In that case, we'll skip the opendir and instead use the parent's
15684         fts_dirp and derive dir_fd from that.
15685         Finally, in the readdir loop, if we read max_entries entries,
15686         exit the loop ensuring *not* to call closedir.  This is required
15687         so that fts_dirp can be reused on a subsequent call.
15688         Prompted by Ben England's report of memory exhaustion in find
15689         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15690
15691         maint: fts: move decl of `dp' down into while loop; split a long line
15692         * lib/fts.c (fts_build): No semantic change.
15693
15694         fts: add/use new struct member, fts_dirp
15695         We are about to use this to manage any directory with
15696         too many entries to read all of them into memory at once.
15697         To do that, we'll need to save the DIR* pointer in each
15698         affected FTSENT struct.
15699         * lib/fts_.h: Include <dirent.h>.
15700         (struct FTSENT) [fts_dirp]: New member.
15701         * lib/fts.c (closedir_and_clear): Define.
15702         Use it in place of closedir so that we are sure to
15703         clear the new fts_dirp member when done with it.
15704         (fts_alloc): Initialize the new member.
15705         (fts_lfree): Free, if needed.
15706
15707         maint: fts: give __opendir2 a new parameter and rename
15708         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15709         than surreptitiously using sole caller's "dir_fd".
15710         (fts_opendir): Rename from __opendir2.
15711
15712         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15713         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15714
15715         maint: fts.c: correct off-by-one indentation
15716         * lib/fts.c (fts_build): Correct indentation, change style
15717         of a couple of block comments, and bracing style.
15718
15719         maint: fts.c: move __opendir2 #define "up" out of function body
15720         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15721
15722         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15723         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15724         out for a long time and besides was useful only on BSD systems.
15725
15726 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15727
15728         regex: port to Stratus OpenVOS
15729         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15730         define to empty, rather than attempting nonportable optimizations.
15731         Problem reported by Paul Green in:
15732         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15733         and fix suggested by Eric Blake in:
15734         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15735
15736 2011-08-17  Eric Blake  <eblake@redhat.com>
15737
15738         getcwd: fix test failures on mingw
15739         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15740         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15741         test if long directory cannot be created, and allow mingw errno.
15742
15743         getcwd-lgpl: fix m4 to match relaxed test for BSD
15744         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15745         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15746         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15747         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15748         signature problem.
15749
15750         getcwd: fix compilation on mingw64
15751         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15752         getcwd.
15753         Reported by Marc-André Lureau.
15754
15755         pipe2: silence compiler warning
15756         * lib/pipe2.c (pipe2): Hide label if it is not used.
15757
15758 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15759
15760         relocatable-prog: fix link error
15761         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15762         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15763         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15764         into modules/relocatable-lib without noticing that
15765         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15766         also needs to build relocatable.c.
15767
15768 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15771         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15772         shell code: it contained a 'break' that was not in a loop.
15773         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15774         via a shell-language loop; this may have been true in old Autoconf
15775         versions, but it's not true in Autoconf 2.68.  I found this bug
15776         when testing coreutils git on Solaris 8, whose shell complains
15777         about the syntax error.
15778
15779 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15780
15781         * lib/base64.c: Fix comment to reference RFC 4648.
15782         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15783         <gvtulder@gmail.com>.
15784
15785 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15786
15787         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15788
15789         po/Makefile.in.in: fix make -q problem
15790         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15791         rule, since there's no file named 'check-macro-version' and its
15792         use as a file breaks make -q.
15793         (all): Don't depend on check-macro-version.
15794         (CHECK_MACRO_VERSION): New macro.
15795         (stamp-po): Use it.
15796
15797         configmake: fix make -q problem
15798         * modules/configmake (configmake.h): Update configmake.h's time stamp
15799         even if the file does not change.  Otherwise, 'make -q' fails.
15800         Problem reported by Simon Josefsson in
15801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15802
15803 2011-08-11  Jim Meyering  <meyering@redhat.com>
15804
15805         git-version-gen: correct the advice in a comment
15806         * build-aux/git-version-gen: Correct comment.
15807         Don't recommend to list .tarball-version in .gitignore.
15808
15809 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15810
15811         base64: fix off-by-one buffer size bug
15812         Problem and (trivial) fix reported by Gijs van Tulder in
15813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15814         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15815         * tests/test-base64.c (main): Catch the bug.
15816
15817 2011-08-10  Eric Blake  <eblake@redhat.com>
15818
15819         closein: correct comments
15820         * lib/closein.c (close_stdin): Improve comments.
15821
15822 2011-08-09  Bruno Haible  <bruno@clisp.org>
15823
15824         More tests for 'fseeko'.
15825         * tests/test-fseeko3.c: New file, from Eric Blake.
15826         * tests/test-fseeko3.sh: New file.
15827         * modules/fseeko-tests (Files): Add them.
15828         (TESTS): Add test-fseeko3.sh.
15829         (check_PROGRAMS): Add test-fseeko3.
15830
15831 2011-08-09  Eric Blake  <eblake@redhat.com>
15832
15833         fseeko: remove unneeded hack
15834         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15835
15836         fseeko: fix bug on glibc
15837         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15838         Reported by John W. Eaton.
15839
15840 2011-08-08  Bruno Haible  <bruno@clisp.org>
15841
15842         unictype/base: Fix interoperability with preinstalled libunistring.
15843         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15844         Reported by Simon Josefsson.
15845
15846 2011-08-08  Bruno Haible  <bruno@clisp.org>
15847
15848         iswblank: Detect declaration correctly.
15849         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15850         AC_CHECK_DECLS invocation.
15851
15852 2011-08-08  Bruno Haible  <bruno@clisp.org>
15853
15854         tcgetsid: Detect declaration correctly.
15855         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15856         AC_CHECK_DECLS invocation.
15857         Reported by Simon Josefsson.
15858
15859 2011-08-08  Eric Blake  <eblake@redhat.com>
15860
15861         largefile: fix typo that regressed large file support
15862         * modules/largefile (configure.ac-early): Fix section name.
15863
15864 2011-08-06  Karl Berry  <karl@gnu.org>
15865
15866         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15867         a separate module.
15868
15869 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15870
15871         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15872         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15873         get prototype for free.
15874
15875 2011-08-04  Bruno Haible  <bruno@clisp.org>
15876
15877         Tests for module 'pathmax'.
15878         * modules/pathmax-tests: New file.
15879         * tests/test-pathmax.c: New file.
15880
15881         canonicalize-lgpl: Support larger filenames on the Hurd.
15882         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15883         Reported by Paul Eggert.
15884
15885         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15886         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15887         * lib/chdir-long.h: Include pathmax.h.
15888         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15889         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15890         (PATH_MAX): Remove code that is done by pathmax.h.
15891         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15892         * lib/tmpfile.c: Add a comment.
15893         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15894         * modules/chdir-long (Depends-on): Add pathmax.
15895         * modules/getcwd (Depends-on): Add pathmax.
15896         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15897         is not defined.
15898         * doc/posix-headers/limits.texi: Mention the pathmax module.
15899         * NEWS: Mention the change.
15900
15901 2011-08-02  Bruno Haible  <bruno@clisp.org>
15902
15903         pthread_sigmask: Actually use results of gl_THREADLIB.
15904         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15905         gl_THREADLIB, not gl_[]THREADLIB.
15906         Reported by Eric Blake.
15907
15908 2011-08-02  Jim Meyering  <meyering@redhat.com>
15909
15910         maint.mk: relax the default _gl_TS_function_match regexp
15911         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15912         space between function name and "(" in an "extern" declaration.
15913         That would fail to match a decl with no space there: extern void foo();
15914
15915 2011-07-31  Iain Nicol  <iain@thenicols.net>
15916
15917         git-version-gen: document that EXTRA_DIST must include .version
15918         * build-aux/git-version-gen: In the how-to-use comment, document
15919         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15920         will fail when run from an unpacked distribution tarball.
15921
15922 2011-08-01  Bruno Haible  <bruno@clisp.org>
15923
15924         wctype-h: Fix last change.
15925         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15926         REPLACE_TOWLOWER to 0.
15927         Reported by Sam Steingold <sds@gnu.org>.
15928
15929 2011-07-31  Bruno Haible  <bruno@clisp.org>
15930
15931         frexpl: Update autoconf test.
15932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15933         according to changes of 2011-06-20.
15934
15935 2011-07-31  Bruno Haible  <bruno@clisp.org>
15936
15937         sys_utsname: Add support for Minix.
15938         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15939         <sys/utsname.h>.
15940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15941         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15942
15943 2011-07-31  Bruno Haible  <bruno@clisp.org>
15944
15945         strings: Add support for Minix.
15946         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15947         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15948         * doc/posix-headers/strings.texi: Document the Minix problem.
15949
15950 2011-07-31  Bruno Haible  <bruno@clisp.org>
15951
15952         wctype-h: Add support for Minix.
15953         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15954         REPLACE_TOWLOWER.
15955         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15956         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15957         REPLACE_ISWCNTRL.
15958
15959 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15962         This is a performance improvement for 64-bit hosts: it causes the
15963         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15964
15965 2011-07-31  Bruno Haible  <bruno@clisp.org>
15966
15967         stdioext: Add support for Minix.
15968         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15969         * lib/fpurge.c (fpurge): Likewise.
15970         * lib/freadahead.c (freadahead): Likewise.
15971         * lib/freadable.c (freadable): Likewise.
15972         * lib/freading.c (freading): Likewise.
15973         * lib/freadptr.c (freadptr): Likewise.
15974         * lib/freadseek.c (freadptrinc): Likewise.
15975         * lib/fseeko.c (rpl_fseeko): Likewise.
15976         * lib/fseterr.c (fseterr): Likewise.
15977         * lib/fwritable.c (fwritable): Likewise.
15978         * lib/fwriting.c (fwriting): Likewise.
15979         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15980         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15981
15982 2011-07-31  Bruno Haible  <bruno@clisp.org>
15983
15984         errno: Port to Minix.
15985         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15986         ECONNABORTED are defined.
15987         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15988         GNULIB_defined_ECONNABORTED): New macros.
15989         * lib/strerror-override.h (strerror_override): Test also
15990         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15991         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15992         ECONNABORTED.
15993         * doc/posix-headers/errno.texi: Mention the Minix problem.
15994
15995 2011-07-31  Bruno Haible  <bruno@clisp.org>
15996
15997         Work around declaration collisions on Minix.
15998         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15999         defined, set REPLACE_MBSINIT.
16000         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16001         defined, set REPLACE_MBRTOWC.
16002         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16003         set REPLACE_MBRLEN.
16004         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16005         defined, set REPLACE_MBSRTOWCS.
16006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16007         defined, set REPLACE_WCRTOMB.
16008         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16009         defined, set REPLACE_WCSRTOMBS.
16010
16011 2011-07-31  Bruno Haible  <bruno@clisp.org>
16012
16013         Add support for Minix with ACK compiler.
16014         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16015         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16016         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16017
16018 2011-07-31  Bruno Haible  <bruno@clisp.org>
16019
16020         Documentation about Minix.
16021         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16022         * doc/glibc-headers/*.texi: Likewise.
16023         * doc/posix-functions/*.texi: Likewise.
16024         * doc/glibc-functions/*.texi: Likewise.
16025
16026 2011-07-31  Bruno Haible  <bruno@clisp.org>
16027
16028         snippet/warn-on-use: Fix indentation.
16029         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16030
16031 2011-07-25  Jim Meyering  <meyering@redhat.com>
16032
16033         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16034         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16035         commands.
16036
16037 2011-07-27  Jim Meyering  <meyering@redhat.com>
16038
16039         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16040         * top/maint.mk (gl_extract_significant_defines_): Now that
16041         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16042         gnulib/lib/signal.in.h, and now that we recommend to
16043         define-if-undefined those two symbols in application code,
16044         we must filter them out of the "significant" list.
16045         This avoids a "make syntax-check" failure in coreutils.
16046
16047 2011-07-26  Eric Blake  <eblake@redhat.com>
16048
16049         warnings: add comments about previous patch
16050         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16051         * m4/include_next.m4: Likewise.
16052         * m4/warn-on-use.m4: Likewise.
16053         * m4/warnings.m4: Likewise, and simplify use.
16054         Suggested by Stefano Lattarini.
16055
16056         include-next, warnings: support older autoconf
16057         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16058         AS_VAR_PUSHDEF in a way that works with older autoconf.
16059         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16060         Reported by Daniel P. Berrange.
16061
16062 2011-07-25  Bruno Haible  <bruno@clisp.org>
16063
16064         fseek, ftell: Fix doc.
16065         * doc/posix-functions/fseek.texi: Reword statement about
16066         AC_SYS_LARGEFILE.
16067         * doc/posix-functions/ftell.texi: Likewise.
16068
16069 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16070             Bruno Haible  <bruno@clisp.org>
16071
16072         Add dependencies to the 'largefile' module.
16073         * modules/fopen (Depends-on): Add 'largefile'.
16074         * modules/freopen (Depends-on): Likewise.
16075         * modules/fseeko (Depends-on): Likewise.
16076         * modules/ftello (Depends-on): Likewise.
16077         * modules/glob (Depends-on): Likewise.
16078         * modules/lseek (Depends-on): Likewise.
16079         * modules/lstat (Depends-on): Likewise.
16080         * modules/mkostemp (Depends-on): Likewise.
16081         * modules/mkostemps (Depends-on): Likewise.
16082         * modules/mkstemp (Depends-on): Likewise.
16083         * modules/mkstemps (Depends-on): Likewise.
16084         * modules/open (Depends-on): Likewise.
16085         * modules/openat (Depends-on): Likewise.
16086         * modules/pread (Depends-on): Likewise.
16087         * modules/pwrite (Depends-on): Likewise.
16088         * modules/scandir (Depends-on): Likewise.
16089         * modules/stat (Depends-on): Likewise.
16090         * modules/tmpfile (Depends-on): Likewise.
16091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16092         since the containing module now depends on the largefile module.
16093         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16094         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16095         off_t is fixed by gnulib.
16096         * doc/posix-functions/freopen.texi: Likewise.
16097         * doc/posix-functions/fseeko.texi: Likewise.
16098         * doc/posix-functions/fstatat.texi: Likewise.
16099         * doc/posix-functions/ftello.texi: Likewise.
16100         * doc/posix-functions/glob.texi: Likewise.
16101         * doc/posix-functions/lseek.texi: Likewise.
16102         * doc/posix-functions/lstat.texi: Likewise.
16103         * doc/posix-functions/mkstemp.texi: Likewise.
16104         * doc/posix-functions/open.texi: Likewise.
16105         * doc/posix-functions/openat.texi: Likewise.
16106         * doc/posix-functions/pread.texi: Likewise.
16107         * doc/posix-functions/pwrite.texi: Likewise.
16108         * doc/posix-functions/scandir.texi: Likewise.
16109         * doc/posix-functions/stat.texi: Likewise.
16110         * doc/posix-functions/tmpfile.texi: Likewise.
16111         * doc/glibc-functions/mkostemp.texi: Likewise.
16112         * doc/glibc-functions/mkostemps.texi: Likewise.
16113         * doc/glibc-functions/mkstemps.texi: Likewise.
16114
16115 2011-07-25  Bruno Haible  <bruno@clisp.org>
16116
16117         fcntl: Move AC_LIBOBJ invocation to module description.
16118         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16119         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16120
16121         fcntl: Remove call-in from fchdir.m4.
16122         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16124
16125         dup3: Remove potential call-in from fchdir.m4.
16126         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16128
16129         dup2: Move AC_LIBOBJ invocation to module description.
16130         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16131         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16132         Don't invoke AC_LIBOBJ.
16133         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16134
16135         dup2: Remove call-in from fchdir.m4.
16136         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16138
16139         fclose: Move AC_LIBOBJ invocation to module description.
16140         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16141         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16142         to 1.
16143         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16144
16145         fclose: Remove call-in from close.m4.
16146         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16147         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16148
16149         close: Move AC_LIBOBJ invocation to module description.
16150         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16151         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16152         1.
16153         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16154
16155         close: Remove call-in from fchdir.m4.
16156         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16158
16159         open: Move AC_LIBOBJ invocation to module description.
16160         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16161         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16162         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16163
16164         open: Remove call-in from fchdir.m4.
16165         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16167
16168         fchdir: Start to remove gl_REPLACE_* idiom.
16169         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16170         (gl_FUNC_FCHDIR): Invoke it.
16171
16172 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16173
16174         * lib/ftell.c (ftell): Comment out cast.
16175
16176         close: use gl_REPLACE_FCLOSE only if defined
16177         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16178         is defined.  The close module doesn't depend on the fclose module
16179         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16181         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16182
16183 2011-07-24  Jim Meyering  <meyering@redhat.com>
16184
16185         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16186         * tests/test-select.h (test_function): Declare as "static".
16187
16188 2011-07-24  Bruno Haible  <bruno@clisp.org>
16189
16190         doc: Mention the effects of AC_SYS_LARGEFILE.
16191         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16192         on this function.
16193         * doc/posix-functions/aio_error.texi: Likewise.
16194         * doc/posix-functions/aio_fsync.texi: Likewise.
16195         * doc/posix-functions/aio_read.texi: Likewise.
16196         * doc/posix-functions/aio_return.texi: Likewise.
16197         * doc/posix-functions/aio_suspend.texi: Likewise.
16198         * doc/posix-functions/aio_write.texi: Likewise.
16199         * doc/posix-functions/fgetpos.texi: Likewise.
16200         * doc/posix-functions/fopen.texi: Likewise.
16201         * doc/posix-functions/freopen.texi: Likewise.
16202         * doc/posix-functions/fsetpos.texi: Likewise.
16203         * doc/posix-functions/fstatvfs.texi: Likewise.
16204         * doc/posix-functions/ftruncate.texi: Likewise.
16205         * doc/posix-functions/ftw.texi: Likewise.
16206         * doc/posix-functions/getrlimit.texi: Likewise.
16207         * doc/posix-functions/glob.texi: Likewise.
16208         * doc/posix-functions/lio_listio.texi: Likewise.
16209         * doc/posix-functions/lockf.texi: Likewise.
16210         * doc/posix-functions/mkstemp.texi: Likewise.
16211         * doc/posix-functions/mmap.texi: Likewise.
16212         * doc/posix-functions/nftw.texi: Likewise.
16213         * doc/posix-functions/openat.texi: Likewise.
16214         * doc/posix-functions/opendir.texi: Likewise.
16215         * doc/posix-functions/posix_fadvise.texi: Likewise.
16216         * doc/posix-functions/posix_fallocate.texi: Likewise.
16217         * doc/posix-functions/pread.texi: Likewise.
16218         * doc/posix-functions/pwrite.texi: Likewise.
16219         * doc/posix-functions/readdir.texi: Likewise.
16220         * doc/posix-functions/readdir_r.texi: Likewise.
16221         * doc/posix-functions/rewinddir.texi: Likewise.
16222         * doc/posix-functions/scandir.texi: Likewise.
16223         * doc/posix-functions/seekdir.texi: Likewise.
16224         * doc/posix-functions/setrlimit.texi: Likewise.
16225         * doc/posix-functions/statvfs.texi: Likewise.
16226         * doc/posix-functions/telldir.texi: Likewise.
16227         * doc/posix-functions/tmpfile.texi: Likewise.
16228         * doc/posix-functions/truncate.texi: Likewise.
16229         * doc/glibc-functions/fallocate.texi: Likewise.
16230         * doc/glibc-functions/fstatfs.texi: Likewise.
16231         * doc/glibc-functions/fts_children.texi: Likewise.
16232         * doc/glibc-functions/fts_read.texi: Likewise.
16233         * doc/glibc-functions/getdirentries.texi: Likewise.
16234         * doc/glibc-functions/mkostemp.texi: Likewise.
16235         * doc/glibc-functions/mkostemps.texi: Likewise.
16236         * doc/glibc-functions/mkstemps.texi: Likewise.
16237         * doc/glibc-functions/preadv.texi: Likewise.
16238         * doc/glibc-functions/pwritev.texi: Likewise.
16239         * doc/glibc-functions/sendfile.texi: Likewise.
16240         * doc/glibc-functions/statfs.texi: Likewise.
16241
16242 2011-07-24  Bruno Haible  <bruno@clisp.org>
16243
16244         doc: Fix typo.
16245         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16246
16247 2011-07-24  Bruno Haible  <bruno@clisp.org>
16248
16249         doc: Mention fsusage.
16250         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16251
16252 2011-07-24  Bruno Haible  <bruno@clisp.org>
16253
16254         doc: Mention new glibc headers and functions.
16255         * doc/glibc-headers/gshadow.texi: New file.
16256         * doc/glibc-functions/endsgent.texi: New file.
16257         * doc/glibc-functions/fgetsgent.texi: New file.
16258         * doc/glibc-functions/fgetsgent_r.texi: New file.
16259         * doc/glibc-functions/getsgent.texi: New file.
16260         * doc/glibc-functions/getsgent_r.texi: New file.
16261         * doc/glibc-functions/getsgnam.texi: New file.
16262         * doc/glibc-functions/getsgnam_r.texi: New file.
16263         * doc/glibc-functions/putsgent.texi: New file.
16264         * doc/glibc-functions/setsgent.texi: New file.
16265         * doc/glibc-functions/sgetsgent.texi: New file.
16266         * doc/glibc-functions/sgetsgent_r.texi: New file.
16267         * doc/glibc-functions/malloc_info.texi: New file.
16268         * doc/glibc-functions/preadv.texi: New file.
16269         * doc/glibc-functions/pwritev.texi: New file.
16270         * doc/glibc-functions/register_printf_modifier.texi: New file.
16271         * doc/glibc-functions/register_printf_specifier.texi: New file.
16272         * doc/glibc-functions/register_printf_type.texi: New file.
16273         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16274         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16275         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16276         * doc/glibc-functions/pthread_getname_np.texi: New file.
16277         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16278         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16279         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16280         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16281         * doc/glibc-functions/pthread_setname_np.texi: New file.
16282         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16283         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16284         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16285         * doc/glibc-functions/qsort_r.texi: New file.
16286         * doc/glibc-functions/quick_exit.texi: New file.
16287         * doc/glibc-functions/syncfs.texi: New file.
16288         * doc/gnulib.texi: Include them.
16289         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16290         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16291         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16292         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16293         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16294         * doc/glibc-functions/execvpe.texi: Likewise.
16295
16296 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16297
16298         ftell: don't include <unistd.h>
16299         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16300         guaranteed to define off_t, and the ftell module depends on the
16301         stdio module.
16302
16303         ftell: do not assume wraparound signed arithmetic
16304         * lib/ftell.c: Include <limits.h>.
16305         (ftell): Don't assume wraparound signed arithmetic.
16306
16307 2011-07-24  Bruno Haible  <bruno@clisp.org>
16308
16309         close: No longer depend on module 'fclose'.
16310         * modules/close (Depends-on): Remove fclose.
16311         * NEWS: Mention the change.
16312         Suggested by Sam Steingold <sds@gnu.org>.
16313
16314 2011-07-24  Bruno Haible  <bruno@clisp.org>
16315
16316         fsusage: Enable large volume support on AIX >= 5.2.
16317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16318         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16319         instead of STAT_STATVFS.
16320         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16321
16322         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16324         f_blocks field only on MacOS X.
16325
16326         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16328         * modules/fsusage (Depends-on): Add largefile.
16329
16330 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         * README: Modernize discussion of signed integers.
16333         Assuming overflow wraparound is no longer safe.
16334         Mention ones' complement and signed magnitude.
16335
16336 2011-07-22  Bruno Haible  <bruno@clisp.org>
16337
16338         select tests, pselect tests: Refactor.
16339         * tests/test-select.h: New file, extracted from tests/test-select.c.
16340         (select_fn): New type.
16341         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16342         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16343         test_pipe): Add my_select argument.
16344         (test_function): Renamed from main. Add my_select argument.
16345         * tests/test-select.c: Move most code to tests/test-select.h. Include
16346         test-select.h.
16347         * modules/select-tests (Files): Add tests/test-select.h.
16348         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16349         (my_select, main): New functions.
16350         * modules/pselect-tests (Files): Add tests/test-select.h,
16351         tests/macros.h, tests/signature.h.
16352         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16353         (configure.ac): Check for <sys/wait.h>.
16354
16355 2011-07-22  Bruno Haible  <bruno@clisp.org>
16356
16357         sys_select tests: Check the signature of FD_*.
16358         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16359         signature tests from here...
16360         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16361         here.
16362         * modules/sys_select-tests (Files): Add tests/signature.h.
16363
16364 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16365
16366         largefile: new module, replacing large-inode
16367         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16368         * MODULES.html.sh: Add largefile, remove large-inode.
16369         * modules/largefile, m4/largefile.m4: New files.
16370         * modules/large-inode, m4/large-inode.m4: Remove.
16371
16372         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16373         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16374         implementations that use only 32 bits to count blocks.
16375         On typical hosts with 1024-byte blocks, this fails with file
16376         systems as small as 4 TiB.  Problem reported by Herb Wartens
16377         <http://debbugs.gnu.org/9140> and this should also fix a similar
16378         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16379
16380         large-inode: New module
16381         * MODULES.html.sh: Add it.
16382         * modules/large-inode, m4/large-inode.m4: New files.
16383
16384         extensions: Enable extensions on MacOS X 10.5 and later.
16385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16386
16387 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16388
16389         file-has-acl: use acl_extended_file_nofollow if available
16390         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16391         (acl_extended_file): New macro.
16392         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16393         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16394
16395 2011-07-21  Bruno Haible  <bruno@clisp.org>
16396
16397         Declare system functions in a way that works with C++.
16398         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16399         declare fdopendir as extern "C".
16400         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16401         declare frexpl as extern "C".
16402         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16403         declare gai_strerror as extern "C".
16404         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16405         programs, declare gai_strerror as extern "C".
16406         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16407         declare getlogin_r as extern "C".
16408         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16409         as extern "C".
16410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16411         declare ldexpl as extern "C".
16412         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16413         as extern "C".
16414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16415         program, declare getmntinfo as extern "C".
16416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16417         stpncpy as extern "C".
16418         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16419         program, declare __xpg_strerror_r as extern "C".
16420         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16421         strndup as extern "C".
16422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16423         declare memset and bzero as extern "C".
16424         Reported by Sam Steingold <sds@gnu.org>.
16425
16426 2011-07-12  Jim Meyering  <meyering@redhat.com>
16427
16428         maint.mk: prohibit inclusion of "verify.h" without use
16429         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16430
16431 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16432
16433         timer-time: A new module to check for timer_settime()
16434         * m4/timer_time.m4: Check for the posix function.
16435         * modules/timer-time: Add the new module.
16436         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16437         Mention it.
16438
16439 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16440             Bruno Haible  <bruno@clisp.org>
16441
16442         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16443         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16444         not defined, assume POSIX threads and look for pthread_sigmask in
16445         $LIBS, without changing $CPPFLAGS.
16446
16447 2011-07-19  Bruno Haible  <bruno@clisp.org>
16448
16449         strstr: Update cross-compilation guess.
16450         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16451         CPUs, guess no, in view of glibc
16452         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16453         Suggested by Eric Blake. Reported by Reuben Thomas.
16454
16455 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16456
16457         getopt-gnu: suppress core dumps from detection code
16458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16459         to suppress core dumps that may well occur on glibc systems.
16460         * modules/getopt-gnu: Depend on nocrash.
16461
16462 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16463
16464         pthread_sigmask: ensure usleep is declared
16465         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16466         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16467
16468 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16469
16470         doc: Document NonStop portability issues.
16471         * doc/posix-functions/sigaction.texi (sigaction):
16472         * doc/posix-headers/signal.texi (signal.h):
16473         Document NonStop.  See Joachim Schmitz in
16474         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16475
16476 2011-07-15  Bruno Haible  <bruno@clisp.org>
16477
16478         ffsl, ffsll: Avoid unportable behaviour.
16479         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16480
16481 2011-07-15  Bruno Haible  <bruno@clisp.org>
16482
16483         ffs: More tests.
16484         * tests/test-ffs.c (NBITS): New macro.
16485         (main): Add more tests.
16486         * tests/test-ffsl.c (NBITS): New macro.
16487         (main): Add more tests.
16488         * tests/test-ffsll.c (NBITS): New macro.
16489         (main): Add more tests.
16490
16491 2011-07-15  Eric Blake  <eblake@redhat.com>
16492
16493         ffsl, ffsll: new modules
16494         * modules/ffsl: New file.
16495         * modules/ffsll: Likewise.
16496         * m4/ffsl.m4: Likewise.
16497         * m4/ffsll.m4: Likewise.
16498         * lib/ffsl.c: Likewise.
16499         * lib/ffsl.h: Likewise.
16500         * lib/ffsll.c: Likewise.
16501         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16502         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16503         * modules/string (Makefile.am): Substitute witnesses.
16504         * lib/strings.in.h (ffsl, ffsll): Declare.
16505         * modules/ffsl-tests: New test file.
16506         * modules/ffsll-tests: Likewise.
16507         * tests/test-ffsl.c: Likewise.
16508         * tests/test-ffsll.c: Likewise.
16509         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16510         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16511         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16512
16513         ffs: fix m4 prerequisite
16514         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16515
16516         ffs: avoid undefined behavior
16517         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16518         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16519         Reported by Bruno Haible.
16520
16521 2011-07-12  Bruno Haible  <bruno@clisp.org>
16522
16523         pthread_sigmask: Rely on module 'threadlib'.
16524         * modules/pthread_sigmask (Depends-on): Add threadlib.
16525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16526         is defined.
16527
16528 2011-07-12  Bruno Haible  <bruno@clisp.org>
16529
16530         regex: Depend on module 'strcase'.
16531         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16532
16533 2011-07-12  Jim Meyering  <meyering@redhat.com>
16534
16535         warn-on-use: fix typo in file name
16536         * modules/snippet/warn-on-use (Files): Correct file name:
16537         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16538
16539 2011-07-12  Bruno Haible  <bruno@clisp.org>
16540
16541         strings: Document module.
16542         * doc/posix-headers/strings.texi: Mention module 'strings'.
16543
16544 2011-07-12  Bruno Haible  <bruno@clisp.org>
16545
16546         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16547         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16548         (Files, Makefile.am): Update.
16549         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16550         * modules/stdlib (Depends-on): Update.
16551
16552 2011-07-12  Bruno Haible  <bruno@clisp.org>
16553
16554         * NEWS: Mention the changes.
16555
16556         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16557         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16558         (Files, Makefile.am): Update.
16559         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16560         * modules/arpa_inet (Depends-on): Update.
16561         * modules/ctype (Depends-on): Update.
16562         * modules/dirent (Depends-on): Update.
16563         * modules/fcntl-h (Depends-on): Update.
16564         * modules/glob (Depends-on): Update.
16565         * modules/iconv-h (Depends-on): Update.
16566         * modules/inttypes-incomplete (Depends-on): Update.
16567         * modules/langinfo (Depends-on): Update.
16568         * modules/locale (Depends-on): Update.
16569         * modules/math (Depends-on): Update.
16570         * modules/netdb (Depends-on): Update.
16571         * modules/poll-h (Depends-on): Update.
16572         * modules/pty (Depends-on): Update.
16573         * modules/search (Depends-on): Update.
16574         * modules/signal (Depends-on): Update.
16575         * modules/spawn (Depends-on): Update.
16576         * modules/stdio (Depends-on): Update.
16577         * modules/stdlib (Depends-on): Update.
16578         * modules/string (Depends-on): Update.
16579         * modules/strings (Depends-on): Update.
16580         * modules/sys_file (Depends-on): Update.
16581         * modules/sys_ioctl (Depends-on): Update.
16582         * modules/sys_select (Depends-on): Update.
16583         * modules/sys_socket (Depends-on): Update.
16584         * modules/sys_stat (Depends-on): Update.
16585         * modules/sys_time (Depends-on): Update.
16586         * modules/sys_times (Depends-on): Update.
16587         * modules/sys_utsname (Depends-on): Update.
16588         * modules/sys_wait (Depends-on): Update.
16589         * modules/termios (Depends-on): Update.
16590         * modules/time (Depends-on): Update.
16591         * modules/unistd (Depends-on): Update.
16592         * modules/wchar (Depends-on): Update.
16593         * modules/wctype-h (Depends-on): Update.
16594         * MODULES.html.sh (Support for building libraries and executables):
16595         Update.
16596
16597         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16598         * modules/snippet/unused-parameter: Renamed from
16599         modules/unused-parameter.
16600         (Files, Makefile.am): Update.
16601         * build-aux/snippet/unused-parameter.h: Renamed from
16602         build-aux/unused-parameter.h.
16603         * modules/selinux-h (Depends-on): Update.
16604         * modules/unistr/base (Depends-on): Update.
16605         * MODULES.html.sh (Core language properties): Update.
16606
16607         Rename module 'link-warning' to 'snippet/link-warning'.
16608         * modules/snippet/link-warning: Renamed from modules/link-warning.
16609         (Files, Makefile.am): Update.
16610         * build-aux/snippet/link-warning.h: Renamed from
16611         build-aux/link-warning.h.
16612         * MODULES.html.sh (Support for building libraries and executables):
16613         Update.
16614
16615         Rename module 'c++defs' to 'snippet/c++defs'.
16616         * modules/snippet/c++defs: Renamed from modules/c++defs.
16617         (Files, Makefile.am): Update.
16618         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16619         * modules/arpa_inet (Depends-on): Update.
16620         * modules/ctype (Depends-on): Update.
16621         * modules/dirent (Depends-on): Update.
16622         * modules/fcntl-h (Depends-on): Update.
16623         * modules/glob (Depends-on): Update.
16624         * modules/iconv-h (Depends-on): Update.
16625         * modules/langinfo (Depends-on): Update.
16626         * modules/locale (Depends-on): Update.
16627         * modules/math (Depends-on): Update.
16628         * modules/netdb (Depends-on): Update.
16629         * modules/poll-h (Depends-on): Update.
16630         * modules/pty (Depends-on): Update.
16631         * modules/search (Depends-on): Update.
16632         * modules/signal (Depends-on): Update.
16633         * modules/spawn (Depends-on): Update.
16634         * modules/stdio (Depends-on): Update.
16635         * modules/stdlib (Depends-on): Update.
16636         * modules/string (Depends-on): Update.
16637         * modules/strings (Depends-on): Update.
16638         * modules/sys_ioctl (Depends-on): Update.
16639         * modules/sys_select (Depends-on): Update.
16640         * modules/sys_socket (Depends-on): Update.
16641         * modules/sys_stat (Depends-on): Update.
16642         * modules/sys_time (Depends-on): Update.
16643         * modules/sys_wait (Depends-on): Update.
16644         * modules/termios (Depends-on): Update.
16645         * modules/time (Depends-on): Update.
16646         * modules/unistd (Depends-on): Update.
16647         * modules/wchar (Depends-on): Update.
16648         * modules/wctype-h (Depends-on): Update.
16649
16650         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16651         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16652         (Files, Makefile.am): Update.
16653         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16654         * modules/argv-iter (Depends-on): Update.
16655         * modules/arpa_inet (Depends-on): Update.
16656         * modules/dirent (Depends-on): Update.
16657         * modules/fcntl-h (Depends-on): Update.
16658         * modules/fnmatch (Depends-on): Update.
16659         * modules/getopt-posix (Depends-on): Update.
16660         * modules/glob (Depends-on): Update.
16661         * modules/iconv-h (Depends-on): Update.
16662         * modules/inttypes-incomplete (Depends-on): Update.
16663         * modules/locale (Depends-on): Update.
16664         * modules/math (Depends-on): Update.
16665         * modules/netdb (Depends-on): Update.
16666         * modules/search (Depends-on): Update.
16667         * modules/signal (Depends-on): Update.
16668         * modules/spawn (Depends-on): Update.
16669         * modules/stdio (Depends-on): Update.
16670         * modules/stdlib (Depends-on): Update.
16671         * modules/string (Depends-on): Update.
16672         * modules/strings (Depends-on): Update.
16673         * modules/sys_socket (Depends-on): Update.
16674         * modules/sys_stat (Depends-on): Update.
16675         * modules/sys_time (Depends-on): Update.
16676         * modules/sys_times (Depends-on): Update.
16677         * modules/sys_utsname (Depends-on): Update.
16678         * modules/time (Depends-on): Update.
16679         * modules/unistd (Depends-on): Update.
16680         * modules/wchar (Depends-on): Update.
16681         * MODULES.html.sh (Support for building libraries and executables):
16682         Update.
16683
16684 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16685
16686         Improvements on _Noreturn and related modules.
16687
16688         modules/_Exit-tests: test _Noreturn too
16689         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16690         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16691         (main): Use them.
16692
16693         stdnoreturn, stdnoreturn-tests: remove modules
16694         They're not needed here and a bit premature for use elsewhere.  See
16695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16696         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16697         * tests/test-stdnoreturn.c: Remove files.
16698         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16699         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16700         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16701         and using noreturn.
16702         * modules/openat, modules/sigpipe-die, modules/xalloc:
16703         * modules/xmemdup0, modules/xstrtol:
16704         Remove dependency on stdnoreturn.
16705
16706         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16707         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16708         Reparenthesize to avoid GCC warning.
16709         Support Microsoft's syntax.
16710         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16711
16712         _Noreturn-tests: remove module
16713         * modules/_Noreturn-tests: Remove.
16714         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16715         * tests/test-_Noreturn.c: Remove.
16716         * tests/test-stdnoreturn.c: Merge from the old
16717         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16718
16719 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16720
16721         _Noreturn, stdnoreturn, and related modules.
16722
16723         * top/maint.mk: Adjust to new noreturn support.
16724         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16725         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16726
16727         xalloc: use stdnoreturn.h
16728         * lib/xalloc.h: Include <stdnoreturn.h>.
16729         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16730         * modules/xalloc (Depends-on): Add stdnoreturn.
16731
16732         xstrtol: use stdnoreturn.h
16733         * lib/xstrtol.h: Include <stdnoreturn.h>.
16734         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16735         * modules/xstrtol (Depends-on): Add stdnoreturn.
16736
16737         xmemdup0: use stdnoreturn.h
16738         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16739         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16740         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16741
16742         sigpipe-die: use stdnoreturn.h
16743         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16744         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16745         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16746
16747         openat: use stdnoreturn.h
16748         * lib/openat.h: Include <stdnoreturn.h>.
16749         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16750         * modules/openat (Depends-on): Add stdnoreturn.
16751
16752         * lib/openat-die.c (openat_save_fail): Modernize comment.
16753
16754         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16755
16756         * lib/glthread/thread.h: Modernize comment.
16757
16758         obstack: use _Noreturn
16759         * lib/obstack.c (__attribute__): Remove macro.
16760         (print_and_abort): Use _Noreturn.
16761
16762         c-stack: use _Noreturn
16763         * lib/c-stack.c (die, overflow_handler, segv_handler):
16764         Use _Noreturn rather than __attribute__((noreturn)).
16765
16766         argmatch-tests, exclude_tests: use _Noreturn
16767         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16768         Remove.
16769         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16770
16771         stdlib: use _Noreturn
16772         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16773         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16774         * modules/stdlib (Depends-on): Add _Noreturn.
16775         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16776
16777         stdnoreturn-tests: new module
16778         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16779
16780         stdnoreturn: new module
16781         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16782         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16783
16784         _Noreturn-tests: new module
16785         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16786
16787         _Noreturn: new module
16788         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16789         New section, mentioning it.
16790         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16791
16792         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16793
16794 2011-07-11  Eric Blake  <eblake@redhat.com>
16795
16796         ffs: new module
16797         * modules/ffs: New file.
16798         * m4/ffs.m4: Likewise.
16799         * lib/ffs.c: Likewise.
16800         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16801         * modules/strings (Makefile.am): Substitute witness.
16802         (Depends-on): Add c++defs.
16803         * lib/strings.in.h (ffs): Declare.
16804         * modules/ffs-tests: New test file.
16805         * tests/test-ffs.c: Test new module.
16806         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16807         * doc/posix-functions/ffs.texi (ffs): Likewise.
16808
16809         regex: avoid compiler warning
16810         * lib/regex.c (includes): Include <strings.h>, for use of
16811         strcasecmp in regcomp.c.
16812         Reported by Joachim Schmitz.
16813
16814 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16815
16816         stdint: respect system's intmax_t if INTMAX_MAX
16817         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16818         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16819         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16820         long but int64_t is long long, and where we will clash with the
16821         system intmax_t if we override it.  See
16822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16823         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16824         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16825         similarly for UINTMAX_C.
16826
16827 2011-07-08  Bruno Haible  <bruno@clisp.org>
16828
16829         pthread_sigmask tests: Avoid a compiler warning.
16830         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16831         non-zero.
16832
16833         sigprocmask tests: A better way to avoid a compiler warning.
16834         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16835         (main): Complain if system() returns non-zero.
16836         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16837
16838 2011-07-08  Bruno Haible  <bruno@clisp.org>
16839
16840         pthread_sigmask: Work around IRIX bug.
16841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16842         bug.
16843         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16844         there may be unblocked pending signals.
16845         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16846
16847 2011-07-08  Bruno Haible  <bruno@clisp.org>
16848
16849         pthread_sigmask: Work around Cygwin bug.
16850         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16851         bug.
16852         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16853         the system's pthread_sigmask function.
16854         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16855
16856 2011-07-08  Bruno Haible  <bruno@clisp.org>
16857
16858         pthread_sigmask: Work around bug in single-threaded implementation.
16859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16860         FreeBSD, HP-UX, Solaris bug.
16861         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16862         * lib/pthread_sigmask.c: Include <stddef.h>.
16863         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16864         the system's pthread_sigmask function.
16865         * modules/pthread_sigmask (configure.ac): Invoke
16866         gl_PREREQ_PTHREAD_SIGMASK.
16867         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16868         HP-UX, Solaris.
16869
16870 2011-07-08  Eric Blake  <eblake@redhat.com>
16871
16872         test-sigprocmask: avoid compiler warning
16873         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16874         * tests/test-sigprocmask.c (main): Use it to silence warning.
16875         Reported by Jim Meyering.
16876
16877         test-snprintf: avoid compiler warning
16878         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16879         * tests/test-vsnprintf.c (main): Likewise.
16880         Reported by Jim Meyering.
16881
16882 2011-07-08  Bruno Haible  <bruno@clisp.org>
16883
16884         Tests for module 'pthread_sigmask'.
16885         * modules/pthread_sigmask-tests: New file.
16886         * tests/test-pthread_sigmask1.c: New file, based on
16887         tests/test-sigprocmask.c.
16888         * tests/test-pthread_sigmask2.c: New file.
16889
16890 2011-07-08  Jim Meyering  <meyering@redhat.com>
16891
16892         test-getopt.h: avoid warning about an unused variable
16893         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16894
16895 2011-07-07  Jim Meyering  <meyering@redhat.com>
16896
16897         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16898         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16899         now that it no longer contains leading TABs.
16900         Remove unused "url=FIXME" statement.
16901
16902 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16903
16904         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16906         When gl_THREADLIB is not in use, assume that the POSIX sematics
16907         are desired.  This is better for Emacs, which uses POSIX semantics
16908         on GNUish and/or POSIXish platforms, and does not use threads at
16909         all otherwise.
16910
16911         pthread_sigmask: fix typo when testing for libraries
16912         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16913         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16914
16915 2011-07-08  Eric Blake  <eblake@redhat.com>
16916
16917         fts: introduce FTS_NOATIME
16918         * lib/fts_.h (FTS_NOATIME): New bit flag.
16919         (FTS_OPTIONMASK): Adjust.
16920         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16921         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16922
16923 2011-07-08  Bruno Haible  <bruno@clisp.org>
16924
16925         Tests for module 'thread'.
16926         * modules/thread-tests: New file.
16927         * tests/test-thread_self.c: New file.
16928         * tests/test-thread_create.cc: New file.
16929
16930 2011-07-08  Bruno Haible  <bruno@clisp.org>
16931
16932         thread: Avoid gcc warnings when using gl_thread_self().
16933         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16934         'void *'.
16935         (gl_thread_self_pointer): Update.
16936
16937 2011-07-07  Bruno Haible  <bruno@clisp.org>
16938
16939         signal-c++-tests: Check declaration of pthread_sigmask.
16940         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16941         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16942         $(LIB_PTHREAD_SIGMASK).
16943
16944 2011-07-07  Bruno Haible  <bruno@clisp.org>
16945
16946         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16947         * lib/signal.in.h (pthread_sigmask): Override if
16948         REPLACE_PTHREAD_SIGMASK is 1.
16949         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16950         REPLACE_PTHREAD_SIGMASK.
16951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16952         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16953         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16954         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16955         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16956
16957 2011-07-07  Bruno Haible  <bruno@clisp.org>
16958
16959         pthread_sigmask: Ensure declaration in <signal.h>.
16960         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16961         include <pthread.h>.
16962         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16963         problem.
16964
16965 2011-07-07  Bruno Haible  <bruno@clisp.org>
16966
16967         pthread_sigmask: Document the module.
16968         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16969
16970 2011-07-07  Bruno Haible  <bruno@clisp.org>
16971
16972         pthread_sigmask: Follow gnulib conventions.
16973         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16974         gl_PTHREAD_SIGMASK.
16975         * modules/pthread_sigmask (configure.ac): Update.
16976
16977 2011-07-07  Bruno Haible  <bruno@clisp.org>
16978
16979         pthread_sigmask: Make declaration C++ safe.
16980         * lib/signal.in.h: In two special conditions, just do an #include_next.
16981         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16982         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16984         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16985         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16986         not REPLACE_PTHREAD_MASK.
16987         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16988         not REPLACE_PTHREAD_MASK.
16989         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16990
16991 2011-07-07  Bruno Haible  <bruno@clisp.org>
16992
16993         pthread_sigmask: Fix return value.
16994         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16995         * lib/pthread_sigmask.c: New file.
16996         * modules/pthread_sigmask (Files): Add it.
16997         (configure.ac): Invoke AC_LIBOBJ.
16998
16999 2011-07-07  Eric Blake  <eblake@redhat.com>
17000
17001         getopt: more portable argv creation
17002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17003         const, use char arrays rather than strings.
17004         Suggested by Paul Eggert.
17005
17006 2011-07-07  Bruno Haible  <bruno@clisp.org>
17007
17008         Tests for module 'sigprocmask'.
17009         * modules/sigprocmask-tests: New file.
17010         * tests/test-sigprocmask.c: New file.
17011
17012 2011-07-07  Bruno Haible  <bruno@clisp.org>
17013
17014         float tests: Tweak.
17015         * tests/test-float.c (main): Tweak skip message.
17016
17017 2011-07-07  Eric Blake  <eblake@redhat.com>
17018
17019         getopt: avoid compiler warning during configure
17020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17021         assigning string literals to non-const pointer.
17022
17023         getopt-gnu: avoid crash in glibc getopt
17024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17025         * tests/test-getopt.h (test_getopt): Enhance test.
17026         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17027         * doc/posix-functions/getopt.texi (getopt): Document it.
17028         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17029         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17030         Likewise.
17031
17032 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17033
17034         getopt: handle W; without long options in getopt [BZ #12922]
17035         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17036         but no long options are defined, just return 'W'.
17037
17038 2011-07-07  Bruno Haible  <bruno@clisp.org>
17039
17040         Avoid literal tabs.
17041         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17042         variable containing a tab instead of a literal tab.
17043         Reported by Jim Meyering.
17044
17045 2011-07-07  Bruno Haible  <bruno@clisp.org>
17046
17047         Comments.
17048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17049
17050 2011-07-06  Bruno Haible  <bruno@clisp.org>
17051
17052         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17053         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17054         <winsock2.h>.
17055         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17056         lib/sys_socket.in.h.
17057         (close, gethostname): Hide declarations from <winsock2.h>.
17058         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17059         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17060         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17061         (select): Don't override if gnulib's <sys/select.h> was already
17062         included.
17063         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17064         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17065         setsockopt, shutdown, select): Tweak indentation.
17066
17067 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17070         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17071         in an application that does not use the sys_select module.
17072
17073 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17074
17075         poll: do not return 0 on timeout=-1
17076         * lib/poll.c: Loop with yield if no events occurred.
17077
17078 2011-07-06  Eric Blake  <eblake@redhat.com>
17079
17080         pthread_sigmask: always replace when not using pthread
17081         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17082         replacement when using some threading other than pthread.  Fix
17083         logic bug.
17084
17085 2011-07-06  Bruno Haible  <bruno@clisp.org>
17086
17087         Comments.
17088         * m4/printf.m4: Update comments about mingw.
17089
17090 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17091
17092         sys_select: define sigset_t more portably
17093         * lib/sys_select.in.h: Always include <sys/types.h>, since
17094         we now need sigset_t and mingw defines it there.
17095         Include <signal.h> before split inclusion guard, to avoid
17096         mishaps on Solaris, whose <signal.h> eventually includes us.
17097         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17098         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17099         which come from ...
17100         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17101         gl_CHECK_TYPE_SIGSET_T.
17102         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17103         does the real work.
17104         * modules/sys_select (Depends-on): Add 'signal'.
17105
17106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17107         Suggested by Bruno Haible.
17108
17109         pselect: Use pthread_sigmask, not sigprocmask.
17110         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17111         multithreaded apps better than sigprocmask does.
17112         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17113         sigprocmask directly.
17114
17115 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17116
17117         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17118         Don't #undef,  since we don't need any underlying pselect.
17119         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17120         (Depends-on): Add select.
17121         (Link): Add $(LIBSOCKET).
17122         These changes suggested by Bruno Haible.
17123
17124         pselect: document better
17125         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17126         * doc/posix-functions/pselect.texi (pselect): Document new module.
17127
17128         pthread_sigmask: new module
17129         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17130         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17131         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17132         This is done only as a macro; I don't know how well that'll
17133         work for C++.  Move <sys/types.h> include before the include_next,
17134         to avoid mishap on Solaris.
17135         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17136         * modules/signal (Makefile.am): Substitute the check's results.
17137         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17138
17139         test-pselect: new module
17140         * modules/pselect-tests, tests/test-pselect.c: New files.
17141         * tests/test-select.c, tests/test-sys_select-c++.cc:
17142         If TEST_PSELECT is defined, test pselect instead of testing select.
17143
17144         * tests/test-sys_select.c (sigset_t): Test for it, too.
17145         Suggested by Bruno Haible.
17146
17147 2011-07-05  Eric Blake  <eblake@redhat.com>
17148
17149         snprintf: guarantee %1$d, for libintl
17150         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17151         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17152         * doc/posix-functions/snprintf.texi (snprintf): Update.
17153         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17154         * tests/test-snprintf.c (main): Enhance test.
17155         * tests/test-vsnprintf.c (main): Likewise.
17156
17157 2011-07-05  Jim Meyering  <meyering@redhat.com>
17158
17159         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17160         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17161         per Bruno's request, to accommodate this idiom (no space after "#")
17162         even when the function is inside an #if block:
17163         char *
17164         gets (char *s)
17165         #undef gets
17166         {
17167           ...
17168         }
17169
17170 2011-07-04  Jim Meyering  <meyering@redhat.com>
17171
17172         maint: indent with spaces, not TABs, and add a rule to check this
17173         * tests/test-userspec.c: Indent with spaces, not TABs.
17174         * tests/test-argp.c: Likewise.
17175         * tests/test-c-stack2.sh: Likewise.
17176         * tests/test-parse-duration.sh: Likewise
17177         * m4/strtod.m4: Likewise.
17178         * m4/alloca.m4: Likewise.
17179         * m4/pselect.m4: Likewise.
17180         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17181
17182 2011-07-03  Jim Meyering  <meyering@redhat.com>
17183
17184         maint.mk: correct omissions in prohibit_argmatch_without_use check
17185         This rule would mistakenly report that argmatch.h is included without
17186         use even when both the argmatch and invalid_arg macro were used.
17187         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17188         of argmatch and invalid_arg.
17189
17190 2011-07-03  Bruno Haible  <bruno@clisp.org>
17191
17192         Comments about EINTR.
17193         * lib/safe-read.h: Explain the purpose of this module.
17194         * lib/safe-write.h: Likewise.
17195         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17196         module.
17197         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17198         module.
17199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17200
17201 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17202
17203         xnanosleep: Rewrite to use new dtotimespec module.
17204         It has the conversion code that used to be in xnanosleep.
17205         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17206         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17207         (TIME_T_MAX): Remove.
17208         (xnanosleep): Rewrite in terms of dtotimespec.
17209         * modules/xnanosleep (Depends-on): Add dtotimespec.
17210         Remove intprops, stdbool.
17211
17212         timespec-add, timespec-sub: new modules
17213         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17214         * lib/timespec-add.c, lib/timespec-sub.c:
17215         * modules/timespec-add, modules/timespec-sub: New files.
17216
17217         dtotimespec: new module
17218         * lib/timespec.h (dtotimespec): New decl.
17219         * lib/dtotimespec.c, modules/dtotimespec: New files.
17220
17221         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17222
17223         pselect: new module
17224         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17225         (pselect): New decls.
17226         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17227         since the standard pselect decl uses 'restrict'.
17228         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17229         HAVE_PSELECT, REPLACE_PSELECT.
17230         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17231         HAVE_PSELECT, REPLACE_PSELECT.
17232         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17233
17234         sys_select: don't depend on sys_socket
17235         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17237         This fix works on GNU and GNU-like platforms, but has not been tested
17238         on native Windows.
17239         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17241         gl_HEADER_SYS_SOCKET.
17242         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17243         gl_PREREQ_SYS_H_WINSOCK2.
17244
17245 2011-06-29  Eric Blake  <eblake@redhat.com>
17246
17247         pipe2: fix C89 compile problem
17248         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17249         Reported by Bruno Haible.
17250
17251         pipe, pipe2: don't corrupt fd on error
17252         * lib/pipe.c (pipe): Leave fd unchanged on error.
17253         * lib/pipe2.c (pipe2): Likewise.
17254         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17255         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17256
17257 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17258
17259         mmap-anon: do not use regular expressions inadvertently
17260         * m4/mmap-anon.m4: Remove trailing period from strings sought
17261         in the output.
17262
17263 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17264
17265         nanosleep: fix integer overflow problem
17266         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17267         arithmetic wraps around on overflow.
17268
17269         nanosleep: simplify carrying
17270         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17271         first call to the underyling nanosleep, not for the last one.
17272         This doesn't fix any bugs, but it simplifies the computation of
17273         the remaining delay.  Found while auditing integer overflow issues.
17274
17275         dup2: remove test for existence of fcntl
17276         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17277         "#if HAVE_FCNTL", in the configure-time test program.
17278         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17279         and therefore speeds up "configure" a bit.  Found while
17280         adding the dup2 module to Emacs.
17281
17282 2011-06-24  Eric Blake  <eblake@redhat.com>
17283
17284         maint.mk: enhance useless header checks
17285         * top/maint.mk (_sc_header_without_use): Check both include
17286         styles.
17287         (sc_prohibit_assert_without_use)
17288         (sc_prohibit_close_stream_without_use)
17289         (sc_prohibit_getopt_without_use)
17290         (sc_prohibit_quotearg_without_use)
17291         (sc_prohibit_quote_without_use)
17292         (sc_prohibit_long_options_without_use)
17293         (sc_prohibit_inttostr_without_use)
17294         (sc_prohibit_ignore_value_without_use)
17295         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17296         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17297         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17298         (sc_prohibit_hash_pjw_without_use)
17299         (sc_prohibit_safe_read_without_use)
17300         (sc_prohibit_argmatch_without_use)
17301         (sc_prohibit_canonicalize_without_use)
17302         (sc_prohibit_root_dev_ino_without_use)
17303         (sc_prohibit_openat_without_use)
17304         (sc_prohibit_c_ctype_without_use)
17305         (sc_prohibit_signal_without_use)
17306         (sc_prohibit_stdio--_without_use)
17307         (sc_prohibit_stdio-safer_without_use)
17308         (sc_prohibit_strings_without_use)
17309         (sc_prohibit_intprops_without_use)
17310         (sc_prohibit_stddef_without_use)
17311         (sc_prohibit_xfreopen_without_use): Update clients.
17312
17313 2011-06-24  Jim Meyering  <meyering@redhat.com>
17314
17315         syntax-check: keep one maint.mk rule in sync with its header
17316         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17317         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17318         I prefer to avoid temporary files here, so use <(...), but that
17319         is not supported by /bin/sh, so...
17320         (SHELL): Define to /bin/bash.
17321
17322 2011-06-24  Eric Blake  <eblake@redhat.com>
17323
17324         maint.mk: update sc_prohibit_intprops_without_use
17325         * top/maint.mk (_intprops_names): Match recent changes.
17326
17327 2011-06-24  Bruno Haible  <bruno@clisp.org>
17328
17329         strerror-override: No-op tweak.
17330         * lib/strerror-override.h (strerror_override): Reorder conditions,
17331         for consistency with lib/strerror-override.c.
17332
17333 2011-06-23  Eric Blake  <eblake@redhat.com>
17334
17335         maint.mk: test further PATH_MAX issues
17336         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17337         (sc_prohibit_path_max_allocation): ...and also test alloca.
17338         Suggested by Jim Meyering.
17339
17340 2011-06-22  Eric Blake  <eblake@redhat.com>
17341
17342         maint.mk: add syntax-check to avoid char[PATH_MAX]
17343         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17344
17345         stat: be robust to PATH_MAX definition
17346         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17347         * modules/stat (Depends-on): Add verify.
17348
17349         link: work around IRIX bug
17350         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17351         * lib/link.c (rpl_link): Work around it.
17352         * tests/test-link.h (test_link): Enhance test.
17353         * doc/posix-functions/link.texi (link): Document the bug.
17354
17355         getopt: silence clang warning
17356         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17357         dereference.
17358         Reported by Gustavo Martin Domato.
17359
17360 2011-06-22  Jim Meyering  <meyering@redhat.com>
17361
17362         bootstrap: do not insert a blank line into each .gitignore file
17363         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17364
17365 2011-06-21  Eric Blake  <eblake@redhat.com>
17366
17367         perror: test for output mismatch
17368         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17369         perror on IRIX.
17370
17371         strerror_r: fix OpenBSD behavior on out-of-range
17372         * lib/strerror_r.c (strerror_r): Always use maximal string.
17373         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17374
17375         strerror_r: fix OpenBSD behavior on 0
17376         * lib/strerror-override.c (strerror_override): Also override 0
17377         when needed.
17378         * lib/strerror-override.h (strerror_override): Likewise.
17379         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17380         earlier.
17381         * lib/strerror_r.c (strerror_r): Likewise.
17382         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17383         behavior...
17384         (gl_FUNC_STRERROR_0): ...into new macro.
17385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17386         is overridden.
17387         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17388         * modules/strerror-override (Files): Add strerror.m4.
17389         (configure.ac): Also provide override for 0 when needed.
17390         * doc/posix-functions/strerror.texi (strerror): Document this.
17391         * doc/posix-functions/perror.texi (perror): Likewise.
17392
17393         perror: adjust array size
17394         * modules/perror (Depends-on): Add strerror-override.
17395         * lib/perror.c (perror): Use it to avoid magic number.
17396
17397         strerror-override: reduce size
17398         * lib/strerror-override.c (strerror_override): Use fewer lines.
17399
17400 2011-06-20  Bruno Haible  <bruno@clisp.org>
17401
17402         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17403         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17404
17405 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17406
17407         alloca: port to compilers that can optimize like GCC 4.6.0
17408         * lib/alloca.c (find_stack_direction): New signature, taken from
17409         Autoconf git.  This works with GCC 4.6.0.  This code should never
17410         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17411         be used with other compilers that optimize as well as GCC 4.6.0 does.
17412         (alloca): Adjust to new signature.
17413         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17414         New macro, which patches Autoconf in a similar way.
17415
17416         c-stack: stop worrying about stack direction
17417         * lib/c-stack.c (find_stack_direction): Remove.
17418         (segv_handler): Don't worry about stack direction growth, as it's
17419         too much of a pain to configure this correctly, given how compilers
17420         are optimizing-away our stack-growth detection code.  Instead, assume
17421         that any access to just before or just after the stack is OK.
17422         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17423         Don't require AC_FUNC_ALLOCA; no longer needed.
17424
17425 2011-06-20  Eric Blake  <eblake@redhat.com>
17426
17427         test-stat: don't allocate PATH_MAX bytes
17428         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17429         PATH_MAX-sized buffer.
17430         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17431         * modules/stat-tests (Depends-on): Likewise.
17432         * tests/test-fstatat.c (includes): Drop pathmax.h.
17433         * tests/test-stat.c (includes): Likewise.
17434         Reported by Bruno Haible.
17435
17436 2011-06-20  Bruno Haible  <bruno@clisp.org>
17437
17438         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17439         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17440         * lib/float.c: New file.
17441         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17442         REPLACE_FLOAT_LDBL.
17443         * modules/float (Files): Add lib/float.c.
17444         (configure.ac): Invoke AC_LIBOBJ.
17445         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17446
17447 2011-06-20  Bruno Haible  <bruno@clisp.org>
17448
17449         Tests for module 'float'.
17450         * modules/float-tests: New file.
17451         * tests/test-float.c: New file.
17452
17453 2011-06-19  Bruno Haible  <bruno@clisp.org>
17454
17455         isinf: Coding style.
17456         * lib/isinf.c: Use GNU coding style.
17457
17458 2011-06-19  Bruno Haible  <bruno@clisp.org>
17459
17460         linkat test: Avoid test failure on AIX 7.1.
17461         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17462         * tests/test-link.h (test_link): Likewise.
17463
17464 2011-06-19  Bruno Haible  <bruno@clisp.org>
17465
17466         pread test: Avoid test failure on OpenBSD 4.9.
17467         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17468
17469 2011-06-19  Bruno Haible  <bruno@clisp.org>
17470
17471         sprintf-posix: Fix test failure on AIX 7.1.
17472         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17473         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17474         on AIX.
17475         * doc/posix-functions/fprintf.texi: Likewise.
17476         * doc/posix-functions/printf.texi: Likewise.
17477         * doc/posix-functions/snprintf.texi: Likewise.
17478         * doc/posix-functions/sprintf.texi: Likewise.
17479         * doc/posix-functions/vdprintf.texi: Likewise.
17480         * doc/posix-functions/vfprintf.texi: Likewise.
17481         * doc/posix-functions/vprintf.texi: Likewise.
17482         * doc/posix-functions/vsnprintf.texi: Likewise.
17483         * doc/posix-functions/vsprintf.texi: Likewise.
17484
17485 2011-06-19  Bruno Haible  <bruno@clisp.org>
17486
17487         roundl-ieee: Fix test failure on AIX 7.1.
17488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17489         * doc/posix-functions/roundl.texi: Mention problem with negative
17490         arguments.
17491
17492 2011-06-19  Bruno Haible  <bruno@clisp.org>
17493
17494         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17495         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17496         * doc/posix-functions/round.texi: Mention problem with negative
17497         arguments.
17498         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17499
17500 2011-06-19  Bruno Haible  <bruno@clisp.org>
17501
17502         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17504         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17505         * doc/posix-functions/roundf.texi: Mention problem with negative
17506         arguments.
17507         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17508
17509 2011-06-19  Bruno Haible  <bruno@clisp.org>
17510
17511         ceilf-ieee: Work around bug on MacOS X 10.5.
17512         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17513
17514         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17515         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17516         IEEE compliant, avoid compiler optimizations.
17517         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17518         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17519         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17520         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17521         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17522         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17523         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17525         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17526         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17527
17528 2011-06-19  Bruno Haible  <bruno@clisp.org>
17529
17530         ceilf-ieee: Work around bug on AIX 7.1.
17531         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17532         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17533
17534 2011-06-19  Bruno Haible  <bruno@clisp.org>
17535
17536         ceil-ieee: Work around bug on AIX 7.1.
17537         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17538         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17539
17540 2011-06-18  Bruno Haible  <bruno@clisp.org>
17541
17542         fsync test: Avoid test failure on MacOS X and AIX.
17543         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17544         EINVAL.
17545
17546 2011-06-18  Bruno Haible  <bruno@clisp.org>
17547
17548         openat, fdopendir tests: Fix link errors.
17549         * modules/openat-tests (Depends-on): Add progname.
17550         * modules/fdopendir-tests (Depends-on): Likewise.
17551         * tests/test-fchownat.c: Include progname.h.
17552         (main): Call set_program_name.
17553         * tests/test-fstatat.c: Include progname.h.
17554         (main): Call set_program_name.
17555         * tests/test-mkdirat.c: Include progname.h.
17556         (main): Call set_program_name.
17557         * tests/test-openat.c: Include progname.h.
17558         (main): Call set_program_name.
17559         * tests/test-unlinkat.c: Include progname.h.
17560         (main): Call set_program_name.
17561         * tests/test-fdopendir.c: Include progname.h.
17562         (main): Call set_program_name.
17563
17564 2011-06-18  Bruno Haible  <bruno@clisp.org>
17565
17566         Doc update.
17567         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17568         HP-UX.
17569         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17570
17571 2011-06-18  Bruno Haible  <bruno@clisp.org>
17572
17573         getcwd tests: Avoid compilation error on HP-UX 11.31.
17574         * modules/getcwd-tests (Depends-on): Add pathmax.
17575         * tests/test-getcwd.c: Include pathmax.h.
17576
17577 2011-06-18  Bruno Haible  <bruno@clisp.org>
17578
17579         isfinite, isinf: Fix link error on AIX 6 and 7.
17580         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17581         needed, also test the macro with a 'float' argument.
17582         * m4/isinf.m4 (gl_ISINF): Likewise.
17583
17584 2011-06-18  Bruno Haible  <bruno@clisp.org>
17585
17586         getloadavg: Don't clobber LIBS. Regression from previous commit.
17587         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17588         AC_CHECK_LIB from here...
17589         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17590         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17591         gl_func_getloadavg_done.
17592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17593
17594 2011-06-18  Bruno Haible  <bruno@clisp.org>
17595
17596         clean-temp: Improve documentation.
17597         * lib/clean-temp.h: Explain better how to use this module.
17598         Reported by John Darrington <john@darrington.wattle.id.au>.
17599
17600 2011-06-17  Bruno Haible  <bruno@clisp.org>
17601
17602         pread, pwrite: Avoid cc warning on AIX.
17603         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17604         (pwrite): Likewise.
17605
17606 2011-06-17  Bruno Haible  <bruno@clisp.org>
17607
17608         spawn-pipe tests: Fix link error.
17609         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17611
17612 2011-06-17  Bruno Haible  <bruno@clisp.org>
17613
17614         Tests: Remove unnecessary dependency.
17615         * modules/canonicalize-tests (Depends-on): Remove progname.
17616         * modules/chown-tests (Depends-on): Likewise.
17617         * modules/dirname-tests (Depends-on): Likewise.
17618         * modules/fdopendir-tests (Depends-on): Likewise.
17619         * modules/fdutimensat-tests (Depends-on): Likewise.
17620         * modules/hash-tests (Depends-on): Likewise.
17621         * modules/lchown-tests (Depends-on): Likewise.
17622         * modules/linkat-tests (Depends-on): Likewise.
17623         * modules/renameat-tests (Depends-on): Likewise.
17624         * modules/spawn-pipe-tests (Depends-on): Likewise.
17625         * modules/utimensat-tests (Depends-on): Likewise.
17626
17627 2011-06-17  Bruno Haible  <bruno@clisp.org>
17628
17629         spawn-pipe tests: Fix link error.
17630         * tests/test-spawn-pipe-child.c: Undefine fflush.
17631
17632 2011-06-17  Bruno Haible  <bruno@clisp.org>
17633
17634         Fix tests link errors.
17635         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17636         * modules/chown-tests (Makefile.am): Don't link test-chown with
17637         LIBINTL.
17638         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17639         LIBINTL.
17640         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17641         LIBINTL.
17642         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17643         LIBINTL.
17644
17645 2011-06-16  Bruno Haible  <bruno@clisp.org>
17646
17647         crypto/gc-sha1: Fix recent regression.
17648         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17649         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17650
17651         crypto/gc-md5: Fix recent regression.
17652         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17653
17654         crypto/gc-md4: Fix recent regression.
17655         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17656         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17657
17658         crypto/gc-arctwo: Fix recent regression.
17659         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17660         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17661
17662         crypto/gc-rijndael: Fix recent regression.
17663         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17664         (configure.ac): Invoke AC_LIBOBJ here.
17665         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17667
17668         crypto/gc-hmac-sha1: Fix recent regression.
17669         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17670         (configure.ac): Invoke AC_LIBOBJ here.
17671         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17673
17674         crypto/gc-hmac-md5: Fix recent regression.
17675         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17676         (configure.ac): Invoke AC_LIBOBJ here.
17677         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17679
17680         crypto/gc-des: Fix recent regression.
17681         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17682         (configure.ac): Invoke AC_LIBOBJ here.
17683         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17685
17686         crypto/gc-arcfour: Fix recent regression.
17687         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17688         (configure.ac): Invoke AC_LIBOBJ here.
17689         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17691
17692 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17693
17694         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17695         After the 2011-05-21 change, this macro requires
17696         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17698
17699 2011-06-16  Bruno Haible  <bruno@clisp.org>
17700
17701         fprintftime: Move AC_LIBOBJ invocations to module description.
17702         * m4/fprintftime.m4: Remove file.
17703         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17704         (configure.ac): Remove gl_FPRINTFTIME call.
17705         (Makefile.am): Augment lib_SOURCES.
17706         Reported by Jim Meyering.
17707
17708 2011-06-16  Bruno Haible  <bruno@clisp.org>
17709
17710         tmpfile-safer: Finish 2011-05-23 commit.
17711         * m4/stdio-safer.m4: Really remove file.
17712         Reported by Jim Meyering.
17713
17714 2011-06-16  Bruno Haible  <bruno@clisp.org>
17715
17716         syntax-check: Fix typo.
17717         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17718         printf-posix.m4.
17719         Reported by Jim Meyering.
17720
17721 2011-06-13  Jim Meyering  <meyering@redhat.com>
17722
17723         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17724         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17725
17726 2011-05-23  Bruno Haible  <bruno@clisp.org>
17727
17728         yesno: Move AC_LIBOBJ invocations to module description.
17729         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17730         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17731
17732 2011-05-23  Bruno Haible  <bruno@clisp.org>
17733
17734         xstrtol: Move AC_LIBOBJ invocations to module description.
17735         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17736         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17737
17738 2011-05-23  Bruno Haible  <bruno@clisp.org>
17739
17740         xstrtold: Move AC_LIBOBJ invocations to module description.
17741         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17742         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17743
17744 2011-05-23  Bruno Haible  <bruno@clisp.org>
17745
17746         xstrtod: Move AC_LIBOBJ invocations to module description.
17747         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17748         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17749
17750 2011-05-23  Bruno Haible  <bruno@clisp.org>
17751
17752         xnanosleep: Move AC_LIBOBJ invocations to module description.
17753         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17754         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17755
17756 2011-05-23  Bruno Haible  <bruno@clisp.org>
17757
17758         xgetcwd: Move AC_LIBOBJ invocations to module description.
17759         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17760         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17761
17762 2011-05-23  Bruno Haible  <bruno@clisp.org>
17763
17764         xalloc: Move AC_LIBOBJ invocations to module description.
17765         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17766         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17767
17768 2011-05-23  Bruno Haible  <bruno@clisp.org>
17769
17770         write-any-file: Move AC_LIBOBJ invocations to module description.
17771         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17772         invocation.
17773         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17774
17775 2011-05-23  Bruno Haible  <bruno@clisp.org>
17776
17777         utimens: Move AC_LIBOBJ invocations to module description.
17778         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17779         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17780
17781 2011-05-23  Bruno Haible  <bruno@clisp.org>
17782
17783         utimecmp: Move AC_LIBOBJ invocations to module description.
17784         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17785         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17786
17787 2011-05-23  Bruno Haible  <bruno@clisp.org>
17788
17789         userspec: Move AC_LIBOBJ invocations to module description.
17790         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17791         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17792
17793 2011-05-23  Bruno Haible  <bruno@clisp.org>
17794
17795         unlinkdir: Move AC_LIBOBJ invocations to module description.
17796         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17797         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17798
17799 2011-05-23  Bruno Haible  <bruno@clisp.org>
17800
17801         unistd-safer: Move AC_LIBOBJ invocations to module description.
17802         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17803         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17804
17805 2011-05-23  Bruno Haible  <bruno@clisp.org>
17806
17807         tempname: Move AC_LIBOBJ invocations to module description.
17808         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17809         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17810
17811 2011-05-23  Bruno Haible  <bruno@clisp.org>
17812
17813         strftime: Move AC_LIBOBJ invocations to module description.
17814         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17815         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17816
17817 2011-05-23  Bruno Haible  <bruno@clisp.org>
17818
17819         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17820         * m4/stdlib-safer.m4: Remove file.
17821         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17822         (configure.ac): Remove gl_STDLIB_SAFER call.
17823         (Makefile.am): Augment lib_SOURCES.
17824
17825 2011-05-23  Bruno Haible  <bruno@clisp.org>
17826
17827         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17828         * m4/stdio-safer.m4: Remove file.
17829         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17830         (configure.ac): Remove gl_TMPFILE_SAFER call.
17831         (Makefile.am): Augment lib_SOURCES.
17832
17833 2011-05-23  Bruno Haible  <bruno@clisp.org>
17834
17835         popen-safer: Move AC_LIBOBJ invocations to module description.
17836         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17837         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17838         (configure.ac): Remove gl_POPEN_SAFER call.
17839         (Makefile.am): Augment lib_SOURCES.
17840
17841 2011-05-23  Bruno Haible  <bruno@clisp.org>
17842
17843         freopen-safer: Move AC_LIBOBJ invocations to module description.
17844         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17845         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17846         (configure.ac): Remove gl_FREOPEN_SAFER call.
17847         (Makefile.am): Augment lib_SOURCES.
17848
17849 2011-05-23  Bruno Haible  <bruno@clisp.org>
17850
17851         fopen-safer: Move AC_LIBOBJ invocations to module description.
17852         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17853         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17854         (configure.ac): Remove gl_FOPEN_SAFER call.
17855         (Makefile.am): Augment lib_SOURCES.
17856
17857 2011-05-23  Bruno Haible  <bruno@clisp.org>
17858
17859         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17860         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17861         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17862
17863 2011-05-23  Bruno Haible  <bruno@clisp.org>
17864
17865         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17866         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17867         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17868
17869 2011-05-23  Bruno Haible  <bruno@clisp.org>
17870
17871         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17872         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17873         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17874
17875 2011-05-23  Bruno Haible  <bruno@clisp.org>
17876
17877         settime: Move AC_LIBOBJ invocations to module description.
17878         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17879         * modules/settime (Makefile.am): Augment lib_SOURCES.
17880
17881 2011-05-23  Bruno Haible  <bruno@clisp.org>
17882
17883         savedir: Move AC_LIBOBJ invocations to module description.
17884         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17885         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17886
17887 2011-05-23  Bruno Haible  <bruno@clisp.org>
17888
17889         save-cwd: Move AC_LIBOBJ invocations to module description.
17890         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17891         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17892
17893 2011-05-23  Bruno Haible  <bruno@clisp.org>
17894
17895         same: Move AC_LIBOBJ invocations to module description.
17896         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17897         * modules/same (Makefile.am): Augment lib_SOURCES.
17898
17899 2011-05-23  Bruno Haible  <bruno@clisp.org>
17900
17901         safe-write: Move AC_LIBOBJ invocations to module description.
17902         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17903         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17904         instead of gl_SAFE_WRITE.
17905         (Makefile.am): Augment lib_SOURCES.
17906
17907 2011-05-23  Bruno Haible  <bruno@clisp.org>
17908
17909         safe-read: Move AC_LIBOBJ invocations to module description.
17910         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17911         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17912         of gl_SAFE_READ.
17913         (Makefile.am): Augment lib_SOURCES.
17914
17915 2011-05-23  Bruno Haible  <bruno@clisp.org>
17916
17917         safe-alloc: Move AC_LIBOBJ invocations to module description.
17918         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17919         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17920
17921 2011-05-23  Bruno Haible  <bruno@clisp.org>
17922
17923         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17924         * m4/rijndael.m4: Remove file.
17925         * modules/crypto/rijndael (Files): Remove it.
17926         (configure.ac): Remove gl_RIJNDAEL call.
17927         (Makefile.am): Augment lib_SOURCES.
17928
17929 2011-05-23  Bruno Haible  <bruno@clisp.org>
17930
17931         readtokens: Move AC_LIBOBJ invocations to module description.
17932         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17933         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17934
17935 2011-05-23  Bruno Haible  <bruno@clisp.org>
17936
17937         read-file: Move AC_LIBOBJ invocations to module description.
17938         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17939         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17940         of gl_FUNC_READ_FILE.
17941         (Makefile.am): Augment lib_SOURCES.
17942
17943 2011-05-23  Bruno Haible  <bruno@clisp.org>
17944
17945         quotearg: Move AC_LIBOBJ invocations to module description.
17946         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17947         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17948
17949 2011-05-23  Bruno Haible  <bruno@clisp.org>
17950
17951         quote: Move AC_LIBOBJ invocations to module description.
17952         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17953         * modules/quote (Makefile.am): Augment lib_SOURCES.
17954
17955 2011-05-23  Bruno Haible  <bruno@clisp.org>
17956
17957         posixver: Move AC_LIBOBJ invocations to module description.
17958         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17959         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17960
17961 2011-05-23  Bruno Haible  <bruno@clisp.org>
17962
17963         posixtm: Move AC_LIBOBJ invocations to module description.
17964         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17965         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17966
17967 2011-05-23  Bruno Haible  <bruno@clisp.org>
17968
17969         physmem: Move AC_LIBOBJ invocations to module description.
17970         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17971         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17972
17973 2011-05-23  Bruno Haible  <bruno@clisp.org>
17974
17975         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17976         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17977         invocation.
17978         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17979
17980 2011-05-23  Bruno Haible  <bruno@clisp.org>
17981
17982         mpsort: Move AC_LIBOBJ invocations to module description.
17983         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17984         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17985
17986 2011-05-23  Bruno Haible  <bruno@clisp.org>
17987
17988         modechange: Move AC_LIBOBJ invocations to module description.
17989         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17990         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993
17994         mkdir-p: Move AC_LIBOBJ invocations to module description.
17995         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17996         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17997
17998 2011-05-23  Bruno Haible  <bruno@clisp.org>
17999
18000         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18001         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18002         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18003
18004 2011-05-23  Bruno Haible  <bruno@clisp.org>
18005
18006         mgetgroups: Move AC_LIBOBJ invocations to module description.
18007         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18008         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18009
18010 2011-05-23  Bruno Haible  <bruno@clisp.org>
18011
18012         memxor: Move AC_LIBOBJ invocations to module description.
18013         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18014         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18015
18016 2011-05-23  Bruno Haible  <bruno@clisp.org>
18017
18018         memcoll: Move AC_LIBOBJ invocations to module description.
18019         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18020         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18021
18022 2011-05-23  Bruno Haible  <bruno@clisp.org>
18023
18024         memcasecmp: Move AC_LIBOBJ invocations to module description.
18025         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18026         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18027
18028 2011-05-23  Bruno Haible  <bruno@clisp.org>
18029
18030         crypto/md5: Move AC_LIBOBJ invocations to module description.
18031         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18032         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18033
18034 2011-05-23  Bruno Haible  <bruno@clisp.org>
18035
18036         crypto/md4: Move AC_LIBOBJ invocations to module description.
18037         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18038         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18039
18040 2011-05-23  Bruno Haible  <bruno@clisp.org>
18041
18042         crypto/md2: Move AC_LIBOBJ invocations to module description.
18043         * m4/md2.m4: Remove file.
18044         * modules/crypto/md2 (Files): Remove it.
18045         (configure.ac): Remove gl_MD2 call.
18046         (Makefile.am): Augment lib_SOURCES.
18047
18048 2011-05-23  Bruno Haible  <bruno@clisp.org>
18049
18050         long-options: Move AC_LIBOBJ invocations to module description.
18051         * m4/long-options.m4: Remove file.
18052         * modules/long-options (Files): Remove it.
18053         (configure.ac): Remove gl_LONG_OPTIONS call.
18054         (Makefile.am): Augment lib_SOURCES.
18055
18056 2011-05-23  Bruno Haible  <bruno@clisp.org>
18057
18058         i-ring: Move AC_LIBOBJ invocations to module description.
18059         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18060         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18061
18062 2011-05-23  Bruno Haible  <bruno@clisp.org>
18063
18064         idcache: Move AC_LIBOBJ invocations to module description.
18065         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18066         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18067
18068 2011-05-23  Bruno Haible  <bruno@clisp.org>
18069
18070         human: Move AC_LIBOBJ invocations to module description.
18071         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18072         * modules/human (Makefile.am): Augment lib_SOURCES.
18073
18074 2011-05-23  Bruno Haible  <bruno@clisp.org>
18075
18076         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18077         * m4/hmac-sha1.m4: Remove file.
18078         * modules/crypto/hmac-sha1 (Files): Remove it.
18079         (configure.ac): Remove gl_HMAC_SHA1 call.
18080         (Makefile.am): Augment lib_SOURCES.
18081
18082 2011-05-23  Bruno Haible  <bruno@clisp.org>
18083
18084         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18085         * m4/hmac-md5.m4: Remove file.
18086         * modules/crypto/hmac-md5 (Files): Remove it.
18087         (configure.ac): Remove gl_HMAC_MD5 call.
18088         (Makefile.am): Augment lib_SOURCES.
18089
18090 2011-05-23  Bruno Haible  <bruno@clisp.org>
18091
18092         hash: Move AC_LIBOBJ invocations to module description.
18093         * m4/hash.m4: Remove file.
18094         * modules/hash (Files): Remove it.
18095         (configure.ac): Remove gl_HASH call.
18096         (Makefile.am): Augment lib_SOURCES.
18097
18098 2011-05-23  Bruno Haible  <bruno@clisp.org>
18099
18100         hard-locale: Move AC_LIBOBJ invocations to module description.
18101         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18102         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18103
18104 2011-05-23  Bruno Haible  <bruno@clisp.org>
18105
18106         getugroups: Move AC_LIBOBJ invocations to module description.
18107         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18108         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18109
18110 2011-05-23  Bruno Haible  <bruno@clisp.org>
18111
18112         gettime: Move AC_LIBOBJ invocations to module description.
18113         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18114         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18115
18116 2011-05-23  Bruno Haible  <bruno@clisp.org>
18117
18118         getndelim2: Move AC_LIBOBJ invocations to module description.
18119         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18120         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18121
18122 2011-05-23  Bruno Haible  <bruno@clisp.org>
18123
18124         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18125         * m4/gc-pbkdf2-sha1.m4: Remove file.
18126         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18127         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18128         (Makefile.am): Augment lib_SOURCES.
18129
18130 2011-05-23  Bruno Haible  <bruno@clisp.org>
18131
18132         fts: Move AC_LIBOBJ invocations to module description.
18133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18134         * modules/fts (configure.ac): ... to here.
18135
18136 2011-05-23  Bruno Haible  <bruno@clisp.org>
18137
18138         file-type: Move AC_LIBOBJ invocations to module description.
18139         * m4/file-type.m4: Remove file.
18140         * modules/file-type (Files): Remove it.
18141         (configure.ac): Remove gl_FILE_TYPE call.
18142         (Makefile.am): Augment lib_SOURCES.
18143
18144 2011-05-23  Bruno Haible  <bruno@clisp.org>
18145
18146         filenamecat*: Respect rules for use of AC_LIBOBJ.
18147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18148         Remove AC_LIBOBJ invocation.
18149         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18150         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18151
18152 2011-05-23  Bruno Haible  <bruno@clisp.org>
18153
18154         filemode: Move AC_LIBOBJ invocations to module description.
18155         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18156         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18157
18158 2011-05-23  Bruno Haible  <bruno@clisp.org>
18159
18160         openat-safer: Move AC_LIBOBJ invocations to module description.
18161         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18162         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18163
18164 2011-05-23  Bruno Haible  <bruno@clisp.org>
18165
18166         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18167         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18168         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18169
18170 2011-05-23  Bruno Haible  <bruno@clisp.org>
18171
18172         exclude: Move AC_LIBOBJ invocations to module description.
18173         * m4/exclude.m4: Remove file.
18174         * modules/exclude (Files): Remove it.
18175         (configure.ac): Remove gl_EXCLUDE call.
18176         (Makefile.am): Augment lib_SOURCES.
18177
18178 2011-05-23  Bruno Haible  <bruno@clisp.org>
18179
18180         dirname*: Respect rules for use of AC_LIBOBJ.
18181         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18182         invocations.
18183         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18184         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18185
18186 2011-05-23  Bruno Haible  <bruno@clisp.org>
18187
18188         dirent-safer: Move AC_LIBOBJ invocations to module description.
18189         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18190         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18191
18192 2011-05-23  Bruno Haible  <bruno@clisp.org>
18193
18194         crypto/des: Move AC_LIBOBJ invocations to module description.
18195         * m4/des.m4: Remove file.
18196         * modules/crypto/des (Files): Remove it.
18197         (configure.ac): Remove gl_DES call.
18198         (Makefile.am): Augment lib_SOURCES.
18199
18200 2011-05-23  Bruno Haible  <bruno@clisp.org>
18201
18202         cycle-check: Move AC_LIBOBJ invocations to module description.
18203         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18204         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18205
18206 2011-05-23  Bruno Haible  <bruno@clisp.org>
18207
18208         c-strtold: Move AC_LIBOBJ invocations to module description.
18209         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18210         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18211
18212 2011-05-23  Bruno Haible  <bruno@clisp.org>
18213
18214         c-strtod: Move AC_LIBOBJ invocations to module description.
18215         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18216         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18217
18218 2011-05-23  Bruno Haible  <bruno@clisp.org>
18219
18220         crc: Move AC_LIBOBJ invocations to module description.
18221         * m4/crc.m4: Remove file.
18222         * modules/crc (Files): Remove it.
18223         (configure.ac): Remove gl_CRC call.
18224         (Makefile.am): Augment lib_SOURCES.
18225
18226 2011-05-23  Bruno Haible  <bruno@clisp.org>
18227
18228         close-stream: Move AC_LIBOBJ invocations to module description.
18229         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18230         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18231
18232 2011-05-23  Bruno Haible  <bruno@clisp.org>
18233
18234         closeout: Move AC_LIBOBJ invocations to module description.
18235         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18236         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18237
18238 2011-05-23  Bruno Haible  <bruno@clisp.org>
18239
18240         closein: Move AC_LIBOBJ invocations to module description.
18241         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18242         * modules/closein (Makefile.am): Augment lib_SOURCES.
18243
18244 2011-05-23  Bruno Haible  <bruno@clisp.org>
18245
18246         cloexec: Move AC_LIBOBJ invocations to module description.
18247         * m4/cloexec.m4: Remove file.
18248         * modules/cloexec (Files): Remove it.
18249         (configure.ac): Remove gl_CLOEXEC call.
18250         (Makefile.am): Augment lib_SOURCES.
18251
18252 2011-05-23  Bruno Haible  <bruno@clisp.org>
18253
18254         check-version: Move AC_LIBOBJ invocations to module description.
18255         * m4/check-version.m4: Remove file.
18256         * modules/check-version (Files): Remove it.
18257         (configure.ac): Remove gl_CHECK_VERSION call.
18258         (Makefile.am): Augment lib_SOURCES.
18259
18260 2011-05-23  Bruno Haible  <bruno@clisp.org>
18261
18262         chdir-safer: Move AC_LIBOBJ invocations to module description.
18263         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18264         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18265
18266 2011-05-23  Bruno Haible  <bruno@clisp.org>
18267
18268         canonicalize: Move AC_LIBOBJ invocations to module description.
18269         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18270         AC_LIBOBJ invocation.
18271         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18272
18273 2011-05-23  Bruno Haible  <bruno@clisp.org>
18274
18275         canon-host: Move AC_LIBOBJ invocations to module description.
18276         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18277         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18278         instead of gl_CANON_HOST.
18279         (Makefile.am): Augment lib_SOURCES.
18280
18281 2011-05-23  Bruno Haible  <bruno@clisp.org>
18282
18283         backupfile: Move AC_LIBOBJ invocations to module description.
18284         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18285         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18286
18287 2011-05-23  Bruno Haible  <bruno@clisp.org>
18288
18289         argmatch: Move AC_LIBOBJ invocations to module description.
18290         * m4/argmatch.m4: Remove file.
18291         * modules/argmatch (Files): Remove it.
18292         (configure.ac): Remove gl_ARGMATCH call.
18293         (Makefile.am): Augment lib_SOURCES.
18294
18295 2011-05-23  Bruno Haible  <bruno@clisp.org>
18296
18297         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18298         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18299         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18300
18301 2011-05-23  Bruno Haible  <bruno@clisp.org>
18302
18303         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18304         * m4/arcfour.m4: Remove file.
18305         * modules/crypto/arcfour (Files): Remove it.
18306         (configure.ac): Remove gl_ARCFOUR call.
18307         (Makefile.am): Augment lib_SOURCES.
18308
18309 2011-05-22  Bruno Haible  <bruno@clisp.org>
18310
18311         write: Move AC_LIBOBJ invocations to module description.
18312         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18313         * modules/write (configure.ac): ... to here.
18314
18315 2011-05-22  Bruno Haible  <bruno@clisp.org>
18316
18317         wmemset: Move AC_LIBOBJ invocations to module description.
18318         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18319         here...
18320         * modules/wmemset (configure.ac): ... to here.
18321
18322 2011-05-22  Bruno Haible  <bruno@clisp.org>
18323
18324         wmemmove: Move AC_LIBOBJ invocations to module description.
18325         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18326         here...
18327         * modules/wmemmove (configure.ac): ... to here.
18328
18329 2011-05-22  Bruno Haible  <bruno@clisp.org>
18330
18331         wmemcpy: Move AC_LIBOBJ invocations to module description.
18332         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18333         here...
18334         * modules/wmemcpy (configure.ac): ... to here.
18335
18336 2011-05-22  Bruno Haible  <bruno@clisp.org>
18337
18338         wmemcmp: Move AC_LIBOBJ invocations to module description.
18339         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18340         here...
18341         * modules/wmemcmp (configure.ac): ... to here.
18342
18343 2011-05-22  Bruno Haible  <bruno@clisp.org>
18344
18345         wmemchr: Move AC_LIBOBJ invocations to module description.
18346         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18347         here...
18348         * modules/wmemchr (configure.ac): ... to here.
18349
18350 2011-05-22  Bruno Haible  <bruno@clisp.org>
18351
18352         wcswidth: Move AC_LIBOBJ invocations to module description.
18353         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18354         here...
18355         * modules/wcswidth (configure.ac): ... to here.
18356
18357 2011-05-22  Bruno Haible  <bruno@clisp.org>
18358
18359         wcwidth: Respect rules for use of AC_LIBOBJ.
18360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18361         invocation from here...
18362         * modules/wcwidth (configure.ac): ... to here.
18363         (Depends-on): Update conditions.
18364
18365 2011-05-22  Bruno Haible  <bruno@clisp.org>
18366
18367         wctype: Move AC_LIBOBJ invocations to module description.
18368         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18369         invocation from here...
18370         * modules/wctype (configure.ac): ... to here.
18371         (Depends-on): Update conditions.
18372
18373 2011-05-22  Bruno Haible  <bruno@clisp.org>
18374
18375         wctrans: Move AC_LIBOBJ invocations to module description.
18376         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18377         invocation from here...
18378         * modules/wctrans (configure.ac): ... to here.
18379
18380 2011-05-22  Bruno Haible  <bruno@clisp.org>
18381
18382         wctomb: Move AC_LIBOBJ invocations to module description.
18383         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18384         invocations from here...
18385         * modules/wctomb (configure.ac): ... to here.
18386
18387 2011-05-22  Bruno Haible  <bruno@clisp.org>
18388
18389         wctob: Move AC_LIBOBJ invocations to module description.
18390         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18391         gl_PREREQ_WCTOB invocations from here...
18392         * modules/wctob (configure.ac): ... to here.
18393         (Depends-on): Update conditions.
18394
18395 2011-05-22  Bruno Haible  <bruno@clisp.org>
18396
18397         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18398         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18399         here...
18400         * modules/wcsxfrm (configure.ac): ... to here.
18401
18402 2011-05-22  Bruno Haible  <bruno@clisp.org>
18403
18404         wcstok: Move AC_LIBOBJ invocations to module description.
18405         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18406         * modules/wcstok (configure.ac): ... to here.
18407
18408 2011-05-22  Bruno Haible  <bruno@clisp.org>
18409
18410         wcsstr: Move AC_LIBOBJ invocations to module description.
18411         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18412         * modules/wcsstr (configure.ac): ... to here.
18413
18414 2011-05-22  Bruno Haible  <bruno@clisp.org>
18415
18416         wcsspn: Move AC_LIBOBJ invocations to module description.
18417         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18418         * modules/wcsspn (configure.ac): ... to here.
18419
18420 2011-05-22  Bruno Haible  <bruno@clisp.org>
18421
18422         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18423         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18424         gl_PREREQ_WCSRTOMBS invocations from here...
18425         * modules/wcsrtombs (configure.ac): ... to here.
18426
18427 2011-05-22  Bruno Haible  <bruno@clisp.org>
18428
18429         wcsrchr: Move AC_LIBOBJ invocations to module description.
18430         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18431         here...
18432         * modules/wcsrchr (configure.ac): ... to here.
18433
18434 2011-05-22  Bruno Haible  <bruno@clisp.org>
18435
18436         wcspbrk: Move AC_LIBOBJ invocations to module description.
18437         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18438         here...
18439         * modules/wcspbrk (configure.ac): ... to here.
18440
18441 2011-05-22  Bruno Haible  <bruno@clisp.org>
18442
18443         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18444         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18445         gl_PREREQ_WCSNRTOMBS invocations from here...
18446         * modules/wcsnrtombs (configure.ac): ... to here.
18447
18448 2011-05-22  Bruno Haible  <bruno@clisp.org>
18449
18450         wcsnlen: Move AC_LIBOBJ invocations to module description.
18451         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18452         here...
18453         * modules/wcsnlen (configure.ac): ... to here.
18454
18455 2011-05-22  Bruno Haible  <bruno@clisp.org>
18456
18457         wcsncpy: Move AC_LIBOBJ invocations to module description.
18458         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18459         here...
18460         * modules/wcsncpy (configure.ac): ... to here.
18461
18462 2011-05-22  Bruno Haible  <bruno@clisp.org>
18463
18464         wcsncmp: Move AC_LIBOBJ invocations to module description.
18465         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18466         here...
18467         * modules/wcsncmp (configure.ac): ... to here.
18468
18469 2011-05-22  Bruno Haible  <bruno@clisp.org>
18470
18471         wcsncat: Move AC_LIBOBJ invocations to module description.
18472         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18473         here...
18474         * modules/wcsncat (configure.ac): ... to here.
18475
18476 2011-05-22  Bruno Haible  <bruno@clisp.org>
18477
18478         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18479         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18480         from here...
18481         * modules/wcsncasecmp (configure.ac): ... to here.
18482
18483 2011-05-22  Bruno Haible  <bruno@clisp.org>
18484
18485         wcslen: Move AC_LIBOBJ invocations to module description.
18486         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18487         * modules/wcslen (configure.ac): ... to here.
18488
18489 2011-05-22  Bruno Haible  <bruno@clisp.org>
18490
18491         wcsdup: Move AC_LIBOBJ invocations to module description.
18492         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18493         * modules/wcsdup (configure.ac): ... to here.
18494
18495 2011-05-22  Bruno Haible  <bruno@clisp.org>
18496
18497         wcscspn: Move AC_LIBOBJ invocations to module description.
18498         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18499         here...
18500         * modules/wcscspn (configure.ac): ... to here.
18501
18502 2011-05-22  Bruno Haible  <bruno@clisp.org>
18503
18504         wcscpy: Move AC_LIBOBJ invocations to module description.
18505         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18506         * modules/wcscpy (configure.ac): ... to here.
18507
18508 2011-05-22  Bruno Haible  <bruno@clisp.org>
18509
18510         wcscoll: Move AC_LIBOBJ invocations to module description.
18511         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18512         here...
18513         * modules/wcscoll (configure.ac): ... to here.
18514
18515 2011-05-22  Bruno Haible  <bruno@clisp.org>
18516
18517         wcscmp: Move AC_LIBOBJ invocations to module description.
18518         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18519         * modules/wcscmp (configure.ac): ... to here.
18520
18521 2011-05-22  Bruno Haible  <bruno@clisp.org>
18522
18523         wcschr: Move AC_LIBOBJ invocations to module description.
18524         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18525         * modules/wcschr (configure.ac): ... to here.
18526
18527 2011-05-22  Bruno Haible  <bruno@clisp.org>
18528
18529         wcscat: Move AC_LIBOBJ invocations to module description.
18530         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18531         * modules/wcscat (configure.ac): ... to here.
18532
18533 2011-05-22  Bruno Haible  <bruno@clisp.org>
18534
18535         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18536         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18537         here...
18538         * modules/wcscasecmp (configure.ac): ... to here.
18539
18540 2011-05-22  Bruno Haible  <bruno@clisp.org>
18541
18542         wcrtomb: Move AC_LIBOBJ invocations to module description.
18543         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18544         invocations from here...
18545         * modules/wcrtomb (configure.ac): ... to here.
18546
18547 2011-05-22  Bruno Haible  <bruno@clisp.org>
18548
18549         wcpncpy: Move AC_LIBOBJ invocations to module description.
18550         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18551         here...
18552         * modules/wcpncpy (configure.ac): ... to here.
18553
18554 2011-05-22  Bruno Haible  <bruno@clisp.org>
18555
18556         wcpcpy: Move AC_LIBOBJ invocations to module description.
18557         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18558         * modules/wcpcpy (configure.ac): ... to here.
18559
18560 2011-05-22  Bruno Haible  <bruno@clisp.org>
18561
18562         waitpid: Move AC_LIBOBJ invocations to module description.
18563         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18564         invocation from here...
18565         * modules/waitpid (configure.ac): ... to here.
18566
18567 2011-05-22  Bruno Haible  <bruno@clisp.org>
18568
18569         utimensat: Move AC_LIBOBJ invocations to module description.
18570         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18571         here...
18572         * modules/utimensat (configure.ac): ... to here.
18573
18574 2011-05-22  Bruno Haible  <bruno@clisp.org>
18575
18576         usleep: Move AC_LIBOBJ invocations to module description.
18577         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18578         here...
18579         * modules/usleep (configure.ac): ... to here.
18580
18581 2011-05-22  Bruno Haible  <bruno@clisp.org>
18582
18583         unlockpt: Move AC_LIBOBJ invocations to module description.
18584         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18585         gl_PREREQ_UNLOCKPT invocations from here...
18586         * modules/unlockpt (configure.ac): ... to here.
18587
18588 2011-05-22  Bruno Haible  <bruno@clisp.org>
18589
18590         unlink: Respect rules for use of AC_LIBOBJ.
18591         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18592         * modules/unlink (configure.ac): ... to here.
18593
18594 2011-05-22  Bruno Haible  <bruno@clisp.org>
18595
18596         uname: Move AC_LIBOBJ invocations to module description.
18597         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18598         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18599         here...
18600         * modules/uname (configure.ac): ... to here.
18601
18602 2011-05-22  Bruno Haible  <bruno@clisp.org>
18603
18604         ttyname_r: Move AC_LIBOBJ invocations to module description.
18605         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18606         gl_PREREQ_TTYNAME_R invocations from here...
18607         * modules/ttyname_r (configure.ac): ... to here.
18608
18609 2011-05-22  Bruno Haible  <bruno@clisp.org>
18610
18611         tsearch: Move AC_LIBOBJ invocations to module description.
18612         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18613         invocations from here...
18614         * modules/tsearch (configure.ac): ... to here.
18615
18616 2011-05-22  Bruno Haible  <bruno@clisp.org>
18617
18618         towctrans: Move AC_LIBOBJ invocations to module description.
18619         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18620         AC_LIBOBJ invocation from here...
18621         * modules/towctrans (configure.ac): ... to here.
18622
18623 2011-05-22  Bruno Haible  <bruno@clisp.org>
18624
18625         tmpfile: Move AC_LIBOBJ invocations to module description.
18626         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18627         invocations from here...
18628         * modules/tmpfile (configure.ac): ... to here.
18629
18630 2011-05-22  Bruno Haible  <bruno@clisp.org>
18631
18632         times: Move AC_LIBOBJ invocations to module description.
18633         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18634         * modules/times (configure.ac): ... to here.
18635
18636 2011-05-22  Bruno Haible  <bruno@clisp.org>
18637
18638         time_r: Move AC_LIBOBJ invocations to module description.
18639         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18640         invocations from here...
18641         * modules/time_r (configure.ac): ... to here.
18642
18643 2011-05-22  Bruno Haible  <bruno@clisp.org>
18644
18645         timegm: Move AC_LIBOBJ invocations to module description.
18646         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18647         invocations from here...
18648         * modules/timegm (configure.ac): ... to here.
18649
18650 2011-05-22  Bruno Haible  <bruno@clisp.org>
18651
18652         tcgetsid: Move AC_LIBOBJ invocations to module description.
18653         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18654         and gl_PREREQ_TCGETSID invocations from here...
18655         * modules/tcgetsid (configure.ac): ... to here.
18656         (Depends-on): Update conditions.
18657
18658 2011-05-22  Bruno Haible  <bruno@clisp.org>
18659
18660         symlinkat: Move AC_LIBOBJ invocations to module description.
18661         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18662         here...
18663         * modules/symlinkat (configure.ac): ... to here.
18664
18665 2011-05-22  Bruno Haible  <bruno@clisp.org>
18666
18667         symlink: Move AC_LIBOBJ invocations to module description.
18668         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18669         here...
18670         * modules/symlink (configure.ac): ... to here.
18671
18672 2011-05-22  Bruno Haible  <bruno@clisp.org>
18673
18674         strverscmp: Move AC_LIBOBJ invocations to module description.
18675         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18677         from here...
18678         * modules/strverscmp (configure.ac): ... to here.
18679
18680 2011-05-22  Bruno Haible  <bruno@clisp.org>
18681
18682         strtok_r: Move AC_LIBOBJ invocations to module description.
18683         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18684         and gl_PREREQ_STRTOK_R invocations from here...
18685         * modules/strtok_r (configure.ac): ... to here.
18686         (Depends-on): Update conditions.
18687
18688 2011-05-22  Bruno Haible  <bruno@clisp.org>
18689
18690         strtoumax: Move AC_LIBOBJ invocations to module description.
18691         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18693         from here...
18694         * modules/strtoumax (configure.ac): ... to here.
18695
18696 2011-05-22  Bruno Haible  <bruno@clisp.org>
18697
18698         strtoimax: Move AC_LIBOBJ invocations to module description.
18699         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18701         from here...
18702         * modules/strtoimax (configure.ac): ... to here.
18703
18704 2011-05-22  Bruno Haible  <bruno@clisp.org>
18705
18706         strtoull: Move AC_LIBOBJ invocations to module description.
18707         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18709         from here...
18710         * modules/strtoull (configure.ac): ... to here.
18711
18712 2011-05-22  Bruno Haible  <bruno@clisp.org>
18713
18714         strtoll: Move AC_LIBOBJ invocations to module description.
18715         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18717         here...
18718         * modules/strtoll (configure.ac): ... to here.
18719
18720 2011-05-22  Bruno Haible  <bruno@clisp.org>
18721
18722         strtoul: Move AC_LIBOBJ invocations to module description.
18723         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18724         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18725         * modules/strtoul (configure.ac): ... to here.
18726
18727 2011-05-22  Bruno Haible  <bruno@clisp.org>
18728
18729         strtol: Move AC_LIBOBJ invocations to module description.
18730         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18731         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18732         * modules/strtol (configure.ac): ... to here.
18733
18734 2011-05-22  Bruno Haible  <bruno@clisp.org>
18735
18736         strtod: Move AC_LIBOBJ invocations to module description.
18737         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18738         invocations from here...
18739         * modules/strtod (configure.ac): ... to here.
18740
18741 2011-05-22  Bruno Haible  <bruno@clisp.org>
18742
18743         strstr*: Move AC_LIBOBJ invocations to module description.
18744         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18745         invocations from here...
18746         * modules/strstr-simple (configure.ac): ... to here.
18747         * modules/strstr (configure.ac): ... and here.
18748
18749 2011-05-22  Bruno Haible  <bruno@clisp.org>
18750
18751         strsignal: Move AC_LIBOBJ invocations to module description.
18752         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18753         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18754         * modules/strsignal (configure.ac): ... to here.
18755         (Depends-on): Update conditions.
18756
18757 2011-05-22  Bruno Haible  <bruno@clisp.org>
18758
18759         strsep: Move AC_LIBOBJ invocations to module description.
18760         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18762         here...
18763         * modules/strsep (configure.ac): ... to here.
18764
18765 2011-05-22  Bruno Haible  <bruno@clisp.org>
18766
18767         strptime: Move AC_LIBOBJ invocations to module description.
18768         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18769         gl_PREREQ_STRPTIME invocations from here...
18770         * modules/strptime (configure.ac): ... to here.
18771
18772 2011-05-22  Bruno Haible  <bruno@clisp.org>
18773
18774         strpbrk: Move AC_LIBOBJ invocations to module description.
18775         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18777         here...
18778         * modules/strpbrk (configure.ac): ... to here.
18779
18780 2011-05-22  Bruno Haible  <bruno@clisp.org>
18781
18782         strnlen: Move AC_LIBOBJ invocations to module description.
18783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18784         invocations from here...
18785         * modules/strnlen (configure.ac): ... to here.
18786
18787 2011-05-22  Bruno Haible  <bruno@clisp.org>
18788
18789         strndup: Move AC_LIBOBJ invocations to module description.
18790         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18791         invocations from here...
18792         * modules/strndup (configure.ac): ... to here.
18793         (Depends-on): Update conditions.
18794
18795 2011-05-22  Bruno Haible  <bruno@clisp.org>
18796
18797         strncat: Move AC_LIBOBJ invocations to module description.
18798         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18799         invocations from here...
18800         * modules/strncat (configure.ac): ... to here.
18801
18802 2011-05-22  Bruno Haible  <bruno@clisp.org>
18803
18804         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18805         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18806         invocations from here...
18807         * modules/strdup (configure.ac): ... to here.
18808         * modules/strdup-posix (configure.ac): ... and here.
18809
18810 2011-05-22  Bruno Haible  <bruno@clisp.org>
18811
18812         strcspn: Move AC_LIBOBJ invocations to module description.
18813         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18815         here...
18816         * modules/strcspn (configure.ac): ... to here.
18817
18818 2011-05-22  Bruno Haible  <bruno@clisp.org>
18819
18820         strchrnul: Move AC_LIBOBJ invocations to module description.
18821         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18822         gl_PREREQ_STRCHRNUL invocations from here...
18823         * modules/strchrnul (configure.ac): ... to here.
18824
18825 2011-05-22  Bruno Haible  <bruno@clisp.org>
18826
18827         strcasestr*: Move AC_LIBOBJ invocations to module description.
18828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18829         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18830         * modules/strcasestr-simple (configure.ac): ... to here.
18831         * modules/strcasestr (configure.ac): ... and here.
18832
18833 2011-05-22  Bruno Haible  <bruno@clisp.org>
18834
18835         strcase: Move AC_LIBOBJ invocations to module description.
18836         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18837         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18838         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18839         gl_PREREQ_STRNCASECMP invocations from here...
18840         * modules/strcase (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         stpncpy: Move AC_LIBOBJ invocations to module description.
18845         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18846         here...
18847         * modules/stpncpy (configure.ac): ... to here.
18848
18849 2011-05-22  Bruno Haible  <bruno@clisp.org>
18850
18851         stpcpy: Move AC_LIBOBJ invocations to module description.
18852         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18854         here...
18855         * modules/stpcpy (configure.ac): ... to here.
18856
18857 2011-05-21  Bruno Haible  <bruno@clisp.org>
18858
18859         stat: Move AC_LIBOBJ invocations to module description.
18860         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18861         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18862         here...
18863         * modules/stat (configure.ac): ... to here.
18864
18865 2011-05-21  Bruno Haible  <bruno@clisp.org>
18866
18867         sleep: Move AC_LIBOBJ invocations to module description.
18868         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18869         * modules/sleep (configure.ac): ... to here.
18870
18871 2011-05-21  Bruno Haible  <bruno@clisp.org>
18872
18873         signbit: Move AC_LIBOBJ invocations to module description.
18874         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18875         * modules/signbit (configure.ac): ... to here.
18876
18877 2011-05-21  Bruno Haible  <bruno@clisp.org>
18878
18879         sigprocmask: Move AC_LIBOBJ invocations to module description.
18880         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18881         gl_PREREQ_SIGPROMASK invocations from here...
18882         * modules/sigprocmask (configure.ac): ... to here.
18883
18884 2011-05-21  Bruno Haible  <bruno@clisp.org>
18885
18886         sigaction: Move AC_LIBOBJ invocations to module description.
18887         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18888         gl_PREREQ_SIGACTION invocations from here...
18889         * modules/sigaction (configure.ac): ... to here.
18890
18891 2011-05-21  Bruno Haible  <bruno@clisp.org>
18892
18893         sig2str: Move AC_LIBOBJ invocations to module description.
18894         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18896         here...
18897         * modules/sig2str (configure.ac): ... to here.
18898
18899 2011-05-21  Bruno Haible  <bruno@clisp.org>
18900
18901         setlocale: Move AC_LIBOBJ invocations to module description.
18902         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18903         gl_PREREQ_SETLOCALE invocations from here...
18904         * modules/setlocale (configure.ac): ... to here.
18905
18906 2011-05-21  Bruno Haible  <bruno@clisp.org>
18907
18908         unsetenv: Move AC_LIBOBJ invocations to module description.
18909         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18910         and gl_PREREQ_UNSETENV invocations from here...
18911         * modules/unsetenv (configure.ac): ... to here.
18912         (Depends-on): Update.
18913
18914 2011-05-21  Bruno Haible  <bruno@clisp.org>
18915
18916         setenv: Move AC_LIBOBJ invocations to module description.
18917         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18918         here...
18919         * modules/setenv (configure.ac): ... to here.
18920
18921 2011-05-21  Bruno Haible  <bruno@clisp.org>
18922
18923         selinux-h: Move AC_LIBOBJ invocations to module description.
18924         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18925         AC_LIBOBJ invocation from here...
18926         * modules/selinux-h (configure.ac): ... to here.
18927
18928 2011-05-21  Bruno Haible  <bruno@clisp.org>
18929
18930         select: Respect rules for use of AC_LIBOBJ.
18931         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18932         here...
18933         * modules/select (configure.ac): ... to here.
18934
18935 2011-05-21  Bruno Haible  <bruno@clisp.org>
18936
18937         scandir: Move AC_LIBOBJ invocations to module description.
18938         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18939         invocations from here...
18940         * modules/scandir (configure.ac): ... to here.
18941
18942 2011-05-21  Bruno Haible  <bruno@clisp.org>
18943
18944         rpmatch: Move AC_LIBOBJ invocations to module description.
18945         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18947         here...
18948         * modules/rpmatch (configure.ac): ... to here.
18949
18950 2011-05-21  Bruno Haible  <bruno@clisp.org>
18951
18952         rmdir: Respect rules for use of AC_LIBOBJ.
18953         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18954         * modules/rmdir (configure.ac): ... to here.
18955
18956 2011-05-21  Bruno Haible  <bruno@clisp.org>
18957
18958         renameat: Move AC_LIBOBJ invocations to module description.
18959         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18960         here...
18961         * modules/renameat (configure.ac): ... to here.
18962
18963 2011-05-21  Bruno Haible  <bruno@clisp.org>
18964
18965         rename: Respect rules for use of AC_LIBOBJ.
18966         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18967         here...
18968         * modules/rename (configure.ac): ... to here.
18969
18970 2011-05-21  Bruno Haible  <bruno@clisp.org>
18971
18972         remove: Move AC_LIBOBJ invocations to module description.
18973         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18974         here...
18975         * modules/remove (configure.ac): ... to here.
18976
18977 2011-05-21  Bruno Haible  <bruno@clisp.org>
18978
18979         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18980         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18981         macro.
18982         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18983         * modules/relocatable-lib (configure.ac): ... to here.
18984         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18985         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18986
18987 2011-05-21  Bruno Haible  <bruno@clisp.org>
18988
18989         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18990         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18991         here...
18992         * modules/relocatable-prog (configure.ac): ... to here.
18993
18994 2011-05-21  Bruno Haible  <bruno@clisp.org>
18995
18996         regex: Move AC_LIBOBJ invocations to module description.
18997         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18998         invocations from here...
18999         * modules/regex (configure.ac): ... to here.
19000
19001 2011-05-21  Bruno Haible  <bruno@clisp.org>
19002
19003         realloc-*: Move AC_LIBOBJ invocations to module description.
19004         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19005         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19006         AC_LIBOBJ invocations from here...
19007         * modules/realloc-gnu (configure.ac): ... to here.
19008         * modules/realloc-posix (configure.ac): ... and here.
19009
19010 2011-05-21  Bruno Haible  <bruno@clisp.org>
19011
19012         readutmp: Move AC_LIBOBJ invocations to module description.
19013         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19014         * modules/readutmp (configure.ac): ... to here.
19015
19016 2011-05-21  Bruno Haible  <bruno@clisp.org>
19017
19018         readlinkat: Move AC_LIBOBJ invocations to module description.
19019         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19020         here...
19021         * modules/readlinkat (configure.ac): ... to here.
19022
19023 2011-05-21  Bruno Haible  <bruno@clisp.org>
19024
19025         readlink: Move AC_LIBOBJ invocations to module description.
19026         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19027         gl_PREREQ_READLINK invocations from here...
19028         * modules/readlink (configure.ac): ... to here.
19029
19030 2011-05-21  Bruno Haible  <bruno@clisp.org>
19031
19032         readline: Move AC_LIBOBJ invocations to module description.
19033         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19034         gl_PREREQ_READLINE invocations from here...
19035         * modules/readline (configure.ac): ... to here.
19036
19037 2011-05-21  Bruno Haible  <bruno@clisp.org>
19038
19039         read: Move AC_LIBOBJ invocations to module description.
19040         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19041         * modules/read (configure.ac): ... to here.
19042
19043 2011-05-21  Bruno Haible  <bruno@clisp.org>
19044
19045         rawmemchr: Move AC_LIBOBJ invocations to module description.
19046         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19048         from here...
19049         * modules/rawmemchr (configure.ac): ... to here.
19050
19051 2011-05-21  Bruno Haible  <bruno@clisp.org>
19052
19053         random_r: Move AC_LIBOBJ invocations to module description.
19054         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19055         gl_PREREQ_RANDOM_R invocations from here...
19056         * modules/random_r (configure.ac): ... to here.
19057
19058 2011-05-21  Bruno Haible  <bruno@clisp.org>
19059
19060         pwrite: Move AC_LIBOBJ invocations to module description.
19061         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19062         * modules/pwrite (configure.ac): ... to here.
19063
19064 2011-05-21  Bruno Haible  <bruno@clisp.org>
19065
19066         putenv: Move AC_LIBOBJ invocations to module description.
19067         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19068         * modules/putenv (configure.ac): ... to here.
19069
19070 2011-05-21  Bruno Haible  <bruno@clisp.org>
19071
19072         login_tty: Move AC_LIBOBJ invocations to module description.
19073         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19074         * modules/login_tty (configure.ac): ... to here.
19075
19076 2011-05-21  Bruno Haible  <bruno@clisp.org>
19077
19078         openpty: Move AC_LIBOBJ invocations to module description.
19079         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19080         * modules/openpty (configure.ac): ... to here.
19081
19082 2011-05-21  Bruno Haible  <bruno@clisp.org>
19083
19084         forkpty: Move AC_LIBOBJ invocations to module description.
19085         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19086         * modules/forkpty (configure.ac): ... to here.
19087
19088 2011-05-21  Bruno Haible  <bruno@clisp.org>
19089
19090         ptsname: Move AC_LIBOBJ invocations to module description.
19091         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19092         invocations from here...
19093         * modules/ptsname (configure.ac): ... to here.
19094
19095 2011-05-21  Bruno Haible  <bruno@clisp.org>
19096
19097         pread: Move AC_LIBOBJ invocations to module description.
19098         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19099         * modules/pread (configure.ac): ... to here.
19100
19101 2011-05-21  Bruno Haible  <bruno@clisp.org>
19102
19103         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19104         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19105         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19106         * modules/posix_spawn (configure.ac): ... to here.
19107         * modules/posix_spawnp (configure.ac): ... and here.
19108
19109 2011-05-21  Bruno Haible  <bruno@clisp.org>
19110
19111         popen: Move AC_LIBOBJ invocations to module description.
19112         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19113         invocations from here...
19114         * modules/popen (configure.ac): ... to here.
19115
19116 2011-05-21  Bruno Haible  <bruno@clisp.org>
19117
19118         poll: Move AC_LIBOBJ invocations to module description.
19119         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19120         invocations from here...
19121         * modules/poll (configure.ac): ... to here.
19122
19123 2011-05-21  Bruno Haible  <bruno@clisp.org>
19124
19125         pipe-posix: Move AC_LIBOBJ invocations to module description.
19126         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19127         * modules/pipe-posix (configure.ac): ... to here.
19128
19129 2011-05-21  Bruno Haible  <bruno@clisp.org>
19130
19131         openat: Respect rules for use of AC_LIBOBJ.
19132         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19133         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19134         * modules/openat (configure.ac): ... to here.
19135
19136 2011-05-21  Bruno Haible  <bruno@clisp.org>
19137
19138         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19139         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19140         invocation from here...
19141         * modules/obstack-printf (configure.ac): ... to here.
19142         * modules/obstack-printf-posix (configure.ac): ... and here.
19143
19144 2011-05-21  Bruno Haible  <bruno@clisp.org>
19145
19146         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19147         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19148         from here...
19149         * modules/nl_langinfo (configure.ac): ... to here.
19150
19151 2011-05-21  Bruno Haible  <bruno@clisp.org>
19152
19153         nanosleep: Move AC_LIBOBJ invocations to module description.
19154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19155         gl_PREREQ_NANOSLEEP invocations from here...
19156         * modules/nanosleep (configure.ac): ... to here.
19157
19158 2011-05-21  Bruno Haible  <bruno@clisp.org>
19159
19160         mountlist: Move AC_LIBOBJ invocations to module description.
19161         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19162         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19163         * modules/mountlist (configure.ac): ... to here.
19164
19165 2011-05-21  Bruno Haible  <bruno@clisp.org>
19166
19167         mktime: Respect rules for use of AC_LIBOBJ.
19168         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19169         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19170         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19171         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19172         * modules/mktime (configure.ac): ... to here.
19173         * modules/mktime-internal (configure.ac): ... and here.
19174         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19175
19176 2011-05-21  Bruno Haible  <bruno@clisp.org>
19177
19178         mkstemps: Move AC_LIBOBJ invocations to module description.
19179         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19180         here...
19181         * modules/mkstemps (configure.ac): ... to here.
19182
19183 2011-05-21  Bruno Haible  <bruno@clisp.org>
19184
19185         mkstemp: Move AC_LIBOBJ invocations to module description.
19186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19187         gl_PREREQ_MKSTEMP invocations from here...
19188         * modules/mkstemp (configure.ac): ... to here.
19189
19190 2011-05-21  Bruno Haible  <bruno@clisp.org>
19191
19192         mkostemps: Move AC_LIBOBJ invocations to module description.
19193         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19194         here...
19195         * modules/mkostemps (configure.ac): ... to here.
19196
19197 2011-05-21  Bruno Haible  <bruno@clisp.org>
19198
19199         mkostemp: Move AC_LIBOBJ invocations to module description.
19200         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19201         gl_PREREQ_MKOSTEMP invocations from here...
19202         * modules/mkostemp (configure.ac): ... to here.
19203
19204 2011-05-21  Bruno Haible  <bruno@clisp.org>
19205
19206         mknod: Move AC_LIBOBJ invocations to module description.
19207         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19208         * modules/mknod (configure.ac): ... to here.
19209
19210 2011-05-21  Bruno Haible  <bruno@clisp.org>
19211
19212         mkfifoat: Move AC_LIBOBJ invocations to module description.
19213         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19214         here...
19215         * modules/mkfifoat (configure.ac): ... to here.
19216
19217 2011-05-21  Bruno Haible  <bruno@clisp.org>
19218
19219         mkfifo: Respect rules for use of AC_LIBOBJ.
19220         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19221         here...
19222         * modules/mkfifo (configure.ac): ... to here.
19223
19224 2011-05-21  Bruno Haible  <bruno@clisp.org>
19225
19226         mkdtemp: Move AC_LIBOBJ invocations to module description.
19227         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19228         invocations from here...
19229         * modules/mkdtemp (configure.ac): ... to here.
19230
19231 2011-05-21  Bruno Haible  <bruno@clisp.org>
19232
19233         mkdir: Move AC_LIBOBJ invocations to module description.
19234         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19235         * modules/mkdir (configure.ac): ... to here.
19236
19237 2011-05-21  Bruno Haible  <bruno@clisp.org>
19238
19239         memset: Move AC_LIBOBJ invocations to module description.
19240         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19242         here...
19243         * modules/memset (configure.ac): ... to here.
19244
19245 2011-05-21  Bruno Haible  <bruno@clisp.org>
19246
19247         memrchr: Move AC_LIBOBJ invocations to module description.
19248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19250         here...
19251         * modules/memrchr (configure.ac): ... to here.
19252
19253 2011-05-21  Bruno Haible  <bruno@clisp.org>
19254
19255         mempcpy: Move AC_LIBOBJ invocations to module description.
19256         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19258         here...
19259         * modules/mempcpy (configure.ac): ... to here.
19260
19261 2011-05-21  Bruno Haible  <bruno@clisp.org>
19262
19263         memmove: Move AC_LIBOBJ invocations to module description.
19264         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19266         here...
19267         * modules/memmove (configure.ac): ... to here.
19268
19269 2011-05-21  Bruno Haible  <bruno@clisp.org>
19270
19271         memmem*: Move AC_LIBOBJ invocations to module description.
19272         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19273         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19274         here...
19275         (gl_FUNC_MEMMEM): ... and here...
19276         * modules/memmem-simple (configure.ac): ... to here.
19277         * modules/memmem (configure.ac): ... and here.
19278
19279 2011-05-21  Bruno Haible  <bruno@clisp.org>
19280
19281         memcpy: Move AC_LIBOBJ invocations to module description.
19282         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19284         here...
19285         * modules/memcpy (configure.ac): ... to here.
19286
19287 2011-05-21  Bruno Haible  <bruno@clisp.org>
19288
19289         memcmp: Simplify autoconf macro.
19290         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19291         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19292         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19293
19294 2011-05-21  Bruno Haible  <bruno@clisp.org>
19295
19296         memcmp: Move AC_LIBOBJ invocations to module description.
19297         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19298         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19299         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19300         * modules/memcmp (configure.ac): ... to here.
19301         (Depends-on): Update conditions.
19302
19303 2011-05-21  Bruno Haible  <bruno@clisp.org>
19304
19305         memchr: Respect rules for use of AC_LIBOBJ.
19306         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19307         invocations from here...
19308         * modules/memchr (configure.ac): ... to here.
19309
19310 2011-05-21  Bruno Haible  <bruno@clisp.org>
19311
19312         mbtowc: Move AC_LIBOBJ invocations to module description.
19313         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19314         invocations from here...
19315         * modules/mbtowc (configure.ac): ... to here.
19316
19317 2011-05-21  Bruno Haible  <bruno@clisp.org>
19318
19319         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19320         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19321         gl_PREREQ_MBSRTOWCS invocations from here...
19322         * modules/mbsrtowcs (configure.ac): ... to here.
19323
19324 2011-05-21  Bruno Haible  <bruno@clisp.org>
19325
19326         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19327         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19328         gl_PREREQ_MBSNRTOWCS invocations from here...
19329         * modules/mbsnrtowcs (configure.ac): ... to here.
19330
19331 2011-05-21  Bruno Haible  <bruno@clisp.org>
19332
19333         mbsinit: Move AC_LIBOBJ invocations to module description.
19334         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19335         invocations from here...
19336         * modules/mbsinit (configure.ac): ... to here.
19337
19338 2011-05-21  Bruno Haible  <bruno@clisp.org>
19339
19340         mbrlen: Move AC_LIBOBJ invocations to module description.
19341         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19342         invocations from here...
19343         * modules/mbrlen (configure.ac): ... to here.
19344
19345 2011-05-21  Bruno Haible  <bruno@clisp.org>
19346
19347         mbrtowc: Respect rules for use of AC_LIBOBJ.
19348         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19349         invocations from here...
19350         * modules/mbrtowc (configure.ac): ... to here.
19351
19352 2011-05-21  Bruno Haible  <bruno@clisp.org>
19353
19354         malloc-*: Move AC_LIBOBJ invocations to module description.
19355         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19356         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19357         AC_LIBOBJ invocations from here...
19358         * modules/malloc-gnu (configure.ac): ... to here.
19359         * modules/malloc-posix (configure.ac): ... and here.
19360
19361 2011-05-21  Bruno Haible  <bruno@clisp.org>
19362
19363         lstat, openat: Respect rules for use of AC_LIBOBJ.
19364         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19365         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19366         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19367         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19368         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19369         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19370         here.
19371         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19372
19373 2011-05-21  Bruno Haible  <bruno@clisp.org>
19374
19375         lseek: Move AC_LIBOBJ invocations to module description.
19376         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19377         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19378         * modules/lseek (configure.ac): ... to here.
19379
19380 2011-05-21  Bruno Haible  <bruno@clisp.org>
19381
19382         linkat: Move AC_LIBOBJ invocations to module description.
19383         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19384         here...
19385         * modules/linkat (configure.ac): ... to here.
19386
19387 2011-05-21  Bruno Haible  <bruno@clisp.org>
19388
19389         link: Respect rules for use of AC_LIBOBJ.
19390         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19391         * modules/link (configure.ac): ... to here.
19392
19393 2011-05-21  Bruno Haible  <bruno@clisp.org>
19394
19395         lchown: Move AC_LIBOBJ invocations to module description.
19396         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19397         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19398         * modules/lchown (configure.ac): ... to here.
19399
19400 2011-05-21  Bruno Haible  <bruno@clisp.org>
19401
19402         iswctype: Move AC_LIBOBJ invocations to module description.
19403         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19404         here...
19405         * modules/iswctype (configure.ac): ... to here.
19406
19407 2011-05-21  Bruno Haible  <bruno@clisp.org>
19408
19409         iswblank: Move AC_LIBOBJ invocations to module description.
19410         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19411         here...
19412         * modules/iswblank (configure.ac): ... to here.
19413
19414 2011-05-21  Bruno Haible  <bruno@clisp.org>
19415
19416         atanl: Move AC_LIBOBJ invocations to module description.
19417         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19418         * modules/atanl (configure.ac): ... to here.
19419
19420 2011-05-21  Bruno Haible  <bruno@clisp.org>
19421
19422         acosl: Move AC_LIBOBJ invocations to module description.
19423         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19424         * modules/acosl (configure.ac): ... to here.
19425
19426 2011-05-21  Bruno Haible  <bruno@clisp.org>
19427
19428         asinl: Respect rules for use of AC_LIBOBJ.
19429         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19430         * modules/asinl (configure.ac): ... to here.
19431
19432 2011-05-21  Bruno Haible  <bruno@clisp.org>
19433
19434         tanl: Move AC_LIBOBJ invocations to module description.
19435         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19436         * modules/tanl (configure.ac): ... to here.
19437
19438 2011-05-21  Bruno Haible  <bruno@clisp.org>
19439
19440         cosl: Move AC_LIBOBJ invocations to module description.
19441         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19442         * modules/cosl (configure.ac): ... to here.
19443
19444 2011-05-21  Bruno Haible  <bruno@clisp.org>
19445
19446         sinl: Move AC_LIBOBJ invocations to module description.
19447         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19448         * modules/sinl (configure.ac): ... to here.
19449
19450 2011-05-21  Bruno Haible  <bruno@clisp.org>
19451
19452         logl: Move AC_LIBOBJ invocations to module description.
19453         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19454         * modules/logl (configure.ac): ... to here.
19455
19456 2011-05-21  Bruno Haible  <bruno@clisp.org>
19457
19458         expl: Move AC_LIBOBJ invocations to module description.
19459         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19460         * modules/expl (configure.ac): ... to here.
19461
19462 2011-05-21  Bruno Haible  <bruno@clisp.org>
19463
19464         roundl: Move AC_LIBOBJ invocations to module description.
19465         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19466         * modules/roundl (configure.ac): ... to here.
19467
19468 2011-05-21  Bruno Haible  <bruno@clisp.org>
19469
19470         round: Move AC_LIBOBJ invocations to module description.
19471         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19472         * modules/round (configure.ac): ... to here.
19473
19474 2011-05-21  Bruno Haible  <bruno@clisp.org>
19475
19476         roundf: Move AC_LIBOBJ invocations to module description.
19477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19478         * modules/roundf (configure.ac): ... to here.
19479
19480 2011-05-21  Bruno Haible  <bruno@clisp.org>
19481
19482         truncl: Move AC_LIBOBJ invocations to module description.
19483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19484         * modules/truncl (configure.ac): ... to here.
19485
19486 2011-05-21  Bruno Haible  <bruno@clisp.org>
19487
19488         trunc: Move AC_LIBOBJ invocations to module description.
19489         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19490         * modules/trunc (configure.ac): ... to here.
19491
19492 2011-05-21  Bruno Haible  <bruno@clisp.org>
19493
19494         truncf: Move AC_LIBOBJ invocations to module description.
19495         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19496         * modules/truncf (configure.ac): ... to here.
19497
19498 2011-05-21  Bruno Haible  <bruno@clisp.org>
19499
19500         ceill: Move AC_LIBOBJ invocations to module description.
19501         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19502         * modules/ceill (configure.ac): ... to here.
19503
19504 2011-05-21  Bruno Haible  <bruno@clisp.org>
19505
19506         ceil: Move AC_LIBOBJ invocations to module description.
19507         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19508         * modules/ceil (configure.ac): ... to here.
19509
19510 2011-05-21  Bruno Haible  <bruno@clisp.org>
19511
19512         ceilf: Move AC_LIBOBJ invocations to module description.
19513         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19514         * modules/ceilf (configure.ac): ... to here.
19515
19516 2011-05-21  Bruno Haible  <bruno@clisp.org>
19517
19518         floorl: Respect rules for use of AC_LIBOBJ.
19519         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19520         * modules/floorl (configure.ac): ... to here.
19521
19522 2011-05-21  Bruno Haible  <bruno@clisp.org>
19523
19524         floor: Respect rules for use of AC_LIBOBJ.
19525         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19526         * modules/floor (configure.ac): ... to here.
19527
19528 2011-05-21  Bruno Haible  <bruno@clisp.org>
19529
19530         floorf: Move AC_LIBOBJ invocations to module description.
19531         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19532         * modules/floorf (configure.ac): ... to here.
19533
19534 2011-05-20  Bruno Haible  <bruno@clisp.org>
19535
19536         sqrtl: Respect rules for use of AC_LIBOBJ.
19537         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19538         * modules/sqrtl (configure.ac): ... to here.
19539
19540 2011-05-20  Bruno Haible  <bruno@clisp.org>
19541
19542         ldexpl: Respect rules for use of AC_LIBOBJ.
19543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19544         * modules/ldexpl (configure.ac): ... to here.
19545
19546 2011-05-20  Bruno Haible  <bruno@clisp.org>
19547
19548         frexpl*: Respect rules for use of AC_LIBOBJ.
19549         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19550         invocation from here...
19551         * modules/frexpl (configure.ac): ... to here.
19552         * modules/frexpl-nolibm (configure.ac): ... and here.
19553
19554 2011-05-20  Bruno Haible  <bruno@clisp.org>
19555
19556         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19557         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19558         invocation from here...
19559         * modules/frexp (configure.ac): ... to here.
19560         * modules/frexp-nolibm (configure.ac): ... and here.
19561
19562 2011-05-20  Bruno Haible  <bruno@clisp.org>
19563
19564         isnan: Respect rules for use of AC_LIBOBJ.
19565         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19566         invocations here.
19567         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19568         REPLACE_ISNAN.
19569         * modules/isnand (configure.ac): Likewise.
19570         * modules/isnanl (configure.ac): Likewise.
19571
19572 2011-05-20  Bruno Haible  <bruno@clisp.org>
19573
19574         isnanl*: Respect rules for use of AC_LIBOBJ.
19575         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19576         invocation from here...
19577         * modules/isnanl (configure.ac): ... to here.
19578         * modules/isnanl-nolibm (configure.ac): ... and here.
19579
19580 2011-05-20  Bruno Haible  <bruno@clisp.org>
19581
19582         isnand*: Move AC_LIBOBJ invocations to module description.
19583         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19584         invocation from here...
19585         * modules/isnand (configure.ac): ... to here.
19586         * modules/isnand-nolibm (configure.ac): ... and here.
19587
19588 2011-05-20  Bruno Haible  <bruno@clisp.org>
19589
19590         isnanf*: Move AC_LIBOBJ invocations to module description.
19591         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19592         invocation from here...
19593         * modules/isnanf (configure.ac): ... to here.
19594         * modules/isnanf-nolibm (configure.ac): ... and here.
19595
19596 2011-05-20  Bruno Haible  <bruno@clisp.org>
19597
19598         isnan*: Separate the AC_LIBOBJ invocations.
19599         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19600         AC_LIBOBJ invocation.
19601         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19602         here.
19603         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19604         AC_LIBOBJ invocation.
19605         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19606         here.
19607         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19608         AC_LIBOBJ invocation.
19609         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19610         here.
19611         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19612
19613 2011-05-08  Bruno Haible  <bruno@clisp.org>
19614
19615         isinf: Move AC_LIBOBJ invocations to module description.
19616         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19617         * modules/isinf (configure.ac): ... to here.
19618
19619 2011-05-08  Bruno Haible  <bruno@clisp.org>
19620
19621         isfinite: Move AC_LIBOBJ invocations to module description.
19622         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19623         * modules/isfinite (configure.ac): ... to here.
19624
19625 2011-05-08  Bruno Haible  <bruno@clisp.org>
19626
19627         isblank: Move AC_LIBOBJ invocations to module description.
19628         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19629         here...
19630         * modules/isblank (configure.ac): ... to here.
19631
19632 2011-05-08  Bruno Haible  <bruno@clisp.org>
19633
19634         isapipe: Move AC_LIBOBJ invocations to module description.
19635         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19636         gl_PREREQ_ISAPIPE invocations from here...
19637         * modules/isapipe (configure.ac): ... to here.
19638         (Depends-on): Update condition.
19639
19640 2011-05-08  Bruno Haible  <bruno@clisp.org>
19641
19642         ioctl: Move AC_LIBOBJ invocations to module description.
19643         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19644         invocations from here...
19645         * modules/ioctl (configure.ac): ... to here.
19646         (Depends-on): Update condition.
19647
19648 2011-05-08  Bruno Haible  <bruno@clisp.org>
19649
19650         imaxdiv: Move AC_LIBOBJ invocations to module description.
19651         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19652         invocations from here...
19653         * modules/imaxdiv (configure.ac): ... to here.
19654
19655 2011-05-08  Bruno Haible  <bruno@clisp.org>
19656
19657         imaxabs: Move AC_LIBOBJ invocations to module description.
19658         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19659         invocations from here...
19660         * modules/imaxabs (configure.ac): ... to here.
19661
19662 2011-05-08  Bruno Haible  <bruno@clisp.org>
19663
19664         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19665         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19666         AC_LIBOBJ invocations from here...
19667         * modules/getaddrinfo (configure.ac): ... to here.
19668         (Depends-on): Add conditions.
19669
19670 2011-05-08  Bruno Haible  <bruno@clisp.org>
19671
19672         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19673         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19674         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19675         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19676         (gl_PREREQ_INET_PTON): ... from here.
19677         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19678         gl_PREREQ_INET_PTON here.
19679         (Depends-on): Update condition.
19680
19681 2011-05-08  Bruno Haible  <bruno@clisp.org>
19682
19683         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19684         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19685         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19686         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19687         (gl_PREREQ_INET_NTOP): ... from here.
19688         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19689         gl_PREREQ_INET_NTOP here.
19690         (Depends-on): Update condition.
19691
19692 2011-05-08  Bruno Haible  <bruno@clisp.org>
19693
19694         iconv_open: Move AC_LIBOBJ invocations to module description.
19695         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19696         AC_LIBOBJ invocations from here...
19697         * modules/iconv_open (configure.ac): ... to here.
19698
19699 2011-05-08  Bruno Haible  <bruno@clisp.org>
19700
19701         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19702         If module 'iconv_open' is among the main modules and module
19703         'iconv_open-utf' is among the tests dependencies, then
19704         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19705         return the special iconv_t values. Therefore iconv() and iconv_close()
19706         must support these special iconv_t values, already in lib, not only in
19707         tests.
19708         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19710         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19711         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19712         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19713         (Depends-on): Add the dependencies of iconv_open-utf.
19714         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19715         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19716         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19717
19718 2011-05-08  Bruno Haible  <bruno@clisp.org>
19719
19720         group-member: Move AC_LIBOBJ invocations to module description.
19721         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19722         gl_PREREQ_GROUP_MEMBER invocations from here...
19723         * modules/group-member (configure.ac): ... to here.
19724
19725 2011-05-08  Bruno Haible  <bruno@clisp.org>
19726
19727         grantpt: Move AC_LIBOBJ invocations to module description.
19728         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19729         invocations from here...
19730         * modules/grantpt (configure.ac): ... to here.
19731
19732 2011-05-08  Bruno Haible  <bruno@clisp.org>
19733
19734         glob: Move AC_LIBOBJ invocations to module description.
19735         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19736         from here...
19737         * modules/glob (configure.ac): ... to here.
19738
19739 2011-05-08  Bruno Haible  <bruno@clisp.org>
19740
19741         getusershell: Move AC_LIBOBJ invocations to module description.
19742         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19743         Move AC_LIBOBJ invocation from here...
19744         * modules/getusershell (configure.ac): ... to here.
19745         (Depends-on): Update condition.
19746
19747 2011-05-08  Bruno Haible  <bruno@clisp.org>
19748
19749         gettimeofday: Move AC_LIBOBJ invocations to module description.
19750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19751         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19752         gl_PREREQ_GETTIMEOFDAY invocations from here...
19753         * modules/gettimeofday (configure.ac): ... to here.
19754
19755 2011-05-08  Bruno Haible  <bruno@clisp.org>
19756
19757         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19758         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19759         just gl_FUNC_TZSET.
19760         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19761         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19763         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19764
19765 2011-05-08  Bruno Haible  <bruno@clisp.org>
19766
19767         getsubopt: Move AC_LIBOBJ invocations to module description.
19768         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19769         gl_PREREQ_GETSUBOPT invocations from here...
19770         * modules/getsubopt (configure.ac): ... to here.
19771
19772 2011-05-08  Bruno Haible  <bruno@clisp.org>
19773
19774         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19775         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19776         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19777         * modules/getpass-gnu (configure.ac): ... to here.
19778
19779 2011-05-08  Bruno Haible  <bruno@clisp.org>
19780
19781         getpass: Move AC_LIBOBJ invocations to module description.
19782         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19783         gl_PREREQ_GETPASS invocations from here...
19784         * modules/getpass (configure.ac): ... to here.
19785
19786 2011-05-08  Bruno Haible  <bruno@clisp.org>
19787
19788         getpagesize: Move AC_LIBOBJ invocations to module description.
19789         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19790         from here...
19791         * modules/getpagesize (configure.ac): ... to here.
19792
19793 2011-05-08  Bruno Haible  <bruno@clisp.org>
19794
19795         getopt: Move AC_LIBOBJ invocations to module description.
19796         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19797         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19798         invocations from here...
19799         * modules/getopt-gnu (configure.ac): ... to here.
19800         * modules/getopt-posix (configure.ac): ... and here.
19801         (Depends-on): Update condition.
19802
19803 2011-05-08  Bruno Haible  <bruno@clisp.org>
19804
19805         getopt, argp: Respect rules for use of AC_LIBOBJ.
19806         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19807         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19808         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19809         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19810
19811 2011-05-08  Bruno Haible  <bruno@clisp.org>
19812
19813         getlogin_r: Move AC_LIBOBJ invocations to module description.
19814         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19815         gl_PREREQ_GETLOGIN_R invocations from here...
19816         * modules/getlogin_r (configure.ac): ... to here.
19817
19818 2011-05-08  Bruno Haible  <bruno@clisp.org>
19819
19820         getlogin: Move AC_LIBOBJ invocations to module description.
19821         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19822         here...
19823         * modules/getlogin (configure.ac): ... to here.
19824
19825 2011-05-08  Bruno Haible  <bruno@clisp.org>
19826
19827         getloadavg: Move AC_LIBOBJ invocations to module description.
19828         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19829         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19830         * modules/getloadavg (configure.ac): ... to here.
19831
19832 2011-05-08  Bruno Haible  <bruno@clisp.org>
19833
19834         gethrxtime: Move AC_LIBOBJ invocations to module description.
19835         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19836         LIB_GETHRXTIME from here...
19837         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19838         invocations from here...
19839         * modules/gethrxtime (configure.ac): ... to here.
19840
19841 2011-05-08  Bruno Haible  <bruno@clisp.org>
19842
19843         gethostname: Move AC_LIBOBJ invocations to module description.
19844         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19845         gl_PREREQ_GETHOSTNAME invocations from here...
19846         * modules/gethostname (configure.ac): ... to here.
19847
19848 2011-05-08  Bruno Haible  <bruno@clisp.org>
19849
19850         getgroups: Move AC_LIBOBJ invocations to module description.
19851         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19852         here...
19853         * modules/getgroups (configure.ac): ... to here.
19854
19855 2011-05-08  Bruno Haible  <bruno@clisp.org>
19856
19857         getdtablesize: Move AC_LIBOBJ invocations to module description.
19858         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19859         invocation from here...
19860         * modules/getdtablesize (configure.ac): ... to here.
19861
19862 2011-05-08  Bruno Haible  <bruno@clisp.org>
19863
19864         getdomainname: Move AC_LIBOBJ invocations to module description.
19865         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19866         gl_PREREQ_GETDOMAINNAME invocations from here...
19867         * modules/getdomainname (configure.ac): ... to here.
19868
19869 2011-05-08  Bruno Haible  <bruno@clisp.org>
19870
19871         getline: Move AC_LIBOBJ invocations to module description.
19872         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19873         invocations from here...
19874         * modules/getline (configure.ac): ... to here.
19875
19876 2011-05-08  Bruno Haible  <bruno@clisp.org>
19877
19878         getline: Simplify.
19879         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19880         It's already handled through the module dependency.
19881
19882 2011-05-08  Bruno Haible  <bruno@clisp.org>
19883
19884         getdelim: Move AC_LIBOBJ invocations to module description.
19885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19886         and gl_PREREQ_GETDELIM invocations from here...
19887         * modules/getdelim (configure.ac): ... to here.
19888         (Depends-on): Fix condition.
19889
19890 2011-05-08  Bruno Haible  <bruno@clisp.org>
19891
19892         getcwd: Move AC_LIBOBJ invocations to module description.
19893         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19894         invocations from here...
19895         * modules/getcwd (configure.ac): ... to here.
19896
19897 2011-05-08  Bruno Haible  <bruno@clisp.org>
19898
19899         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19900         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19901         here...
19902         * modules/getcwd-lgpl (configure.ac): ... to here.
19903
19904 2011-05-07  Bruno Haible  <bruno@clisp.org>
19905
19906         crypto/gc: Move AC_LIBOBJ invocations to module description.
19907         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19908         * modules/crypto/gc (configure.ac): ... to here.
19909
19910 2011-05-07  Bruno Haible  <bruno@clisp.org>
19911
19912         fwriting: Move AC_LIBOBJ invocations to module description.
19913         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19914         here...
19915         * modules/fwriting (configure.ac): ... to here.
19916
19917 2011-05-07  Bruno Haible  <bruno@clisp.org>
19918
19919         fwritable: Move AC_LIBOBJ invocations to module description.
19920         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19921         here...
19922         * modules/fwritable (configure.ac): ... to here.
19923
19924 2011-05-07  Bruno Haible  <bruno@clisp.org>
19925
19926         futimens: Move AC_LIBOBJ invocations to module description.
19927         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19928         here...
19929         * modules/futimens (configure.ac): ... to here.
19930
19931 2011-05-07  Bruno Haible  <bruno@clisp.org>
19932
19933         ftruncate: Move AC_LIBOBJ invocations to module description.
19934         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19935         gl_PREREQ_FTRUNCATE invocations from here...
19936         * modules/ftruncate (configure.ac): ... to here.
19937
19938 2011-05-07  Bruno Haible  <bruno@clisp.org>
19939
19940         fsync: Move AC_LIBOBJ invocations to module description.
19941         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19942         invocations from here...
19943         * modules/fsync (configure.ac): ... to here.
19944
19945 2011-05-07  Bruno Haible  <bruno@clisp.org>
19946
19947         fsusage: Move AC_LIBOBJ invocations to module description.
19948         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19949         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19950         * modules/fsusage (configure.ac): ... to here.
19951
19952 2011-05-07  Bruno Haible  <bruno@clisp.org>
19953
19954         freopen: Move AC_LIBOBJ invocations to module description.
19955         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19956         invocations from here...
19957         * modules/freopen (configure.ac): ... to here.
19958
19959 2011-05-07  Bruno Haible  <bruno@clisp.org>
19960
19961         free: Move AC_LIBOBJ invocations to module description.
19962         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19963         invocations from here...
19964         * modules/free (configure.ac): ... to here.
19965
19966 2011-05-07  Bruno Haible  <bruno@clisp.org>
19967
19968         freadable: Move AC_LIBOBJ invocations to module description.
19969         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19970         here...
19971         * modules/freadable (configure.ac): ... to here.
19972
19973 2011-05-07  Bruno Haible  <bruno@clisp.org>
19974
19975         fpurge: Move AC_LIBOBJ invocations to module description.
19976         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19977         invocations from here...
19978         * modules/fpurge (configure.ac): ... to here.
19979
19980 2011-05-07  Bruno Haible  <bruno@clisp.org>
19981
19982         fpending: Move AC_LIBOBJ invocations to module description.
19983         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19984         gl_FUNC_FPENDING.
19985         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19986         invocations from here...
19987         * modules/fpending (configure.ac): ... to here.
19988
19989 2011-05-07  Bruno Haible  <bruno@clisp.org>
19990
19991         fopen: Move AC_LIBOBJ invocations to module description.
19992         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19993         invocations from here...
19994         * modules/fopen (configure.ac): ... to here.
19995
19996 2011-05-07  Bruno Haible  <bruno@clisp.org>
19997
19998         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19999         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20000         gl_FUNC_FNMATCH_POSIX.
20001         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20002         invocations from here...
20003         * modules/fnmatch (configure.ac): ... to here.
20004         * modules/fnmatch-gnu (configure.ac): ... and here.
20005
20006 2011-05-07  Bruno Haible  <bruno@clisp.org>
20007
20008         flock: Move AC_LIBOBJ invocations to module description.
20009         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20010         invocations from here...
20011         * modules/flock (configure.ac): ... to here.
20012
20013 2011-05-07  Bruno Haible  <bruno@clisp.org>
20014
20015         fileblocks: Move AC_LIBOBJ invocations to module description.
20016         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20017         gl_PREREQ_FILEBLOCKS invocations from here...
20018         * modules/fileblocks (configure.ac): ... to here.
20019
20020 2011-05-06  Bruno Haible  <bruno@clisp.org>
20021
20022         fflush: Move AC_LIBOBJ invocations to module description.
20023         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20024         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20025         invocations from here...
20026         * modules/fflush (configure.ac): ... to here.
20027
20028 2011-05-06  Bruno Haible  <bruno@clisp.org>
20029
20030         fdopendir: Move AC_LIBOBJ invocations to module description.
20031         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20032         here...
20033         * modules/fdopendir (configure.ac): ... to here.
20034         (Depends-on): Improve conditions.
20035
20036 2011-05-06  Bruno Haible  <bruno@clisp.org>
20037
20038         _Exit: Move AC_LIBOBJ invocations to module description.
20039         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20040         invocations from here...
20041         * modules/_Exit (configure.ac): ... to here.
20042
20043 2011-05-21  Bruno Haible  <bruno@clisp.org>
20044
20045         euidaccess: Respect rules for use of AC_LIBOBJ.
20046         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20048         from here...
20049         * modules/euidaccess (configure.ac): ... to here.
20050
20051 2011-05-06  Bruno Haible  <bruno@clisp.org>
20052
20053         error: Move AC_LIBOBJ invocations to module description.
20054         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20055         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20056         invocations from here...
20057         * modules/error (configure.ac): ... to here.
20058
20059 2011-05-06  Bruno Haible  <bruno@clisp.org>
20060
20061         duplocale: Move AC_LIBOBJ invocations to module description.
20062         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20063         gl_PREREQ_DUPLOCALE invocations from here...
20064         * modules/duplocale (configure.ac): ... to here.
20065
20066 2011-05-05  Bruno Haible  <bruno@clisp.org>
20067
20068         dirfd: Move AC_LIBOBJ invocations to module description.
20069         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20070         gl_FUNC_DIRFD.
20071         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20072         here...
20073         * modules/dirfd (configure.ac): ... to here.
20074         (Depends-on): Fix condition.
20075
20076 2011-05-05  Bruno Haible  <bruno@clisp.org>
20077
20078         chown: Respect rules for use of AC_LIBOBJ.
20079         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20080         * modules/chown (configure.ac): ... to here.
20081
20082 2011-05-05  Bruno Haible  <bruno@clisp.org>
20083
20084         chdir-long: Move AC_LIBOBJ invocations to module description.
20085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20086         gl_PREREQ_CHDIR_LONG invocations from here...
20087         * modules/chdir-long (configure.ac): ... to here.
20088
20089 2011-05-05  Bruno Haible  <bruno@clisp.org>
20090
20091         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20092         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20093         from here...
20094         * modules/canonicalize-lgpl (configure.ac): ... to here.
20095
20096 2011-05-05  Bruno Haible  <bruno@clisp.org>
20097
20098         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20099         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20100         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20101         REPLACE_CALLOC.
20102         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20103         * modules/calloc-gnu (configure.ac): Likewise.
20104
20105 2011-05-05  Bruno Haible  <bruno@clisp.org>
20106
20107         btowc: Move AC_LIBOBJ invocations to module description.
20108         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20109         invocations from here...
20110         * modules/btowc (configure.ac): ... to here.
20111
20112 2011-05-21  Bruno Haible  <bruno@clisp.org>
20113
20114         atexit: Move AC_LIBOBJ invocations to module description.
20115         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20117         here...
20118         * modules/atexit (configure.ac): ... to here.
20119
20120 2011-05-05  Bruno Haible  <bruno@clisp.org>
20121
20122         atoll: Move AC_LIBOBJ invocations to module description.
20123         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20124         invocations from here...
20125         * modules/atoll (configure.ac): ... to here.
20126
20127 2011-05-05  Bruno Haible  <bruno@clisp.org>
20128
20129         argz: Move AC_LIBOBJ invocations to module description.
20130         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20131         * modules/argz (configure.ac): ... to here.
20132
20133 2011-05-05  Bruno Haible  <bruno@clisp.org>
20134
20135         alphasort: Move AC_LIBOBJ invocations to module description.
20136         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20137         gl_PREREQ_ALPHASORT invocations from here...
20138         * modules/alphasort (configure.ac): ... to here.
20139
20140 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20141
20142         verify: new macro verify_expr; verify_true deprecated
20143         * NEWS: Mention this.
20144         * doc/verify.texi (Compile-time Assertions): Document this.
20145         * lib/verify.h (verify_true): Deprecate.
20146         (verify_expr): New macro.
20147         * tests/test-verify.c (function): Test verify_expr.
20148
20149 2011-06-14  Jim Meyering  <meyering@redhat.com>
20150
20151         init.sh: give more portable redirection-related advice in a comment
20152         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20153         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20154         for lots of discussion.  Stefano Lattarini suggested the solution
20155         of putting "9>&2" after the command.  Reported by Bruno Haible.
20156
20157 2011-06-13  Bruno Haible  <bruno@clisp.org>
20158
20159         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20160         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20161         'none'.
20162
20163 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20164
20165         ftoastr: use strtof only if HAVE_STRTOF
20166         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20168         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20169         * modules/ftoastr (configure.ac): Check for strtof.
20170
20171 2011-06-13  Bruno Haible  <bruno@clisp.org>
20172
20173         gnulib-tool: Addendum to 2011-06-08 commit.
20174         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20175         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20176
20177 2011-06-13  Bruno Haible  <bruno@clisp.org>
20178
20179         fseeko: Provide a non-inline replacement of fseek().
20180         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20181         * modules/fseeko (Depends-on): Add fseek.
20182         * modules/fseek (License): Change to LGPLv2+.
20183
20184 2011-06-13  Bruno Haible  <bruno@clisp.org>
20185
20186         ftello: Provide a non-inline replacement of ftell().
20187         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20188         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20189         not have ftello() (such as on mingw).
20190         * modules/ftello (Depends-on): Add ftell.
20191         * modules/ftell (License): Change to LGPLv2+.
20192
20193 2011-05-07  Bruno Haible  <bruno@clisp.org>
20194
20195         ftell: Move AC_LIBOBJ invocations to module description.
20196         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20197         * modules/ftell (configure.ac): ... to here.
20198
20199 2011-05-07  Bruno Haible  <bruno@clisp.org>
20200
20201         ftello: Respect rules for use of AC_LIBOBJ.
20202         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20203         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20204         here...
20205         * modules/ftello (configure.ac): ... to here.
20206
20207 2011-05-07  Bruno Haible  <bruno@clisp.org>
20208
20209         fseeko: Simplify.
20210         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20211         (gl_FUNC_FSEEKO): Inline it here.
20212
20213 2011-05-07  Bruno Haible  <bruno@clisp.org>
20214
20215         fseek: Move AC_LIBOBJ invocations to module description.
20216         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20217         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20218         * modules/fseek (configure.ac): ... to here.
20219
20220 2011-05-07  Bruno Haible  <bruno@clisp.org>
20221
20222         fseek: Respect rules for use of AC_LIBOBJ.
20223         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20224         here...
20225         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20226
20227 2011-05-07  Bruno Haible  <bruno@clisp.org>
20228
20229         fseeko: Respect rules for use of AC_LIBOBJ.
20230         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20231         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20232         here...
20233         * modules/fseeko (configure.ac): ... to here.
20234
20235 2011-06-13  Bruno Haible  <bruno@clisp.org>
20236
20237         gnulib-tool: Allow comments in the 'Depends-on' section.
20238         * doc/gnulib.texi (Module description): Mention comment syntax in the
20239         Depends-on section.
20240         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20241
20242 2011-06-13  Bruno Haible  <bruno@clisp.org>
20243
20244         file-set.h: guard __attibute__ use, now that it's not always defined
20245         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20246         versions that support it.  This fixes a coreutils build failure with
20247         the vendor cc on HP-UX 11.31.
20248
20249 2011-06-12  Bruno Haible  <bruno@clisp.org>
20250
20251         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20252         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20253         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20254         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20255         (acl, aclsort): New declarations.
20256         (aclv_nontrivial): New declaration.
20257         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20258         (file_has_acl): Read also the second kind of HP-UX ACLs.
20259         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20260         kind of HP-UX ACLs if the first kind fails.
20261         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20262         second kind of HP-UX ACLs.
20263         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20264         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20265         agree.
20266         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20267         hpuxjfs.
20268         Handle hpuxjfs.
20269         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20270         hpuxjfs.
20271         Handle hpuxjfs.
20272         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20273         (func_test_same_acls): Use both lsacl and getacl.
20274         Handle hpuxjfs.
20275         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20276         (func_test_same_acls): Use both lsacl and getacl.
20277         Handle hpuxjfs.
20278
20279 2011-06-12  Bruno Haible  <bruno@clisp.org>
20280
20281         acl: Complete the 2010-08-10 fix.
20282         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20283         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20284         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20285         explicitly.
20286         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20287         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20288
20289 2011-06-12  Bruno Haible  <bruno@clisp.org>
20290
20291         spawn-pipe tests: Comments.
20292         * tests/test-spawn-pipe-child.c (main): Update comment.
20293         Reported by James Youngman <jay@gnu.org>.
20294
20295 2011-06-11  James Youngman  <jay@gnu.org>
20296
20297         New module 'stat-size'.
20298         * modules/stat-size: New module.  Provides macros for accessing
20299         file size information in instances of struct stat.  Depends on the
20300         fileblocks module because it calls st_blocks.
20301         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20302         * doc/gnulib.texi: Include stat-size.texi.
20303         * doc/stat-size.texi: Documentation for this module.
20304         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20305         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20306         AC_STRUCT_ST_BLOCKS.
20307
20308 2011-06-09  Bruno Haible  <bruno@clisp.org>
20309
20310         thread: Support pthreads-win32.
20311         * lib/glthread/thread.h (gl_thread_self): Define differently on
20312         pthreads-win32.
20313         (gl_null_thread): New declaration.
20314         (gl_thread_self_pointer): New macro.
20315         * lib/glthread/thread.c (gl_null_thread): New constant.
20316         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20317         gl_thread_self.
20318         * tests/test-tls.c: Likewise.
20319         Suggested by Paul Eggert. Reported by Eric Blake.
20320
20321 2011-06-09  Bruno Haible  <bruno@clisp.org>
20322
20323         thread: Fix confusion between NULL and 0.
20324         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20325         Reported by Paul Eggert.
20326
20327 2011-06-09  Bruno Haible  <bruno@clisp.org>
20328
20329         spawn-pipe tests: Avoid test failure on HP-UX 11.
20330         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20331         is closed.
20332
20333 2011-06-09  Bruno Haible  <bruno@clisp.org>
20334
20335         acl tests: Fix compilation error on HP-UX 11.
20336         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20337
20338 2011-06-09  Bruno Haible  <bruno@clisp.org>
20339
20340         rmdir: Avoid test failure on HP-UX 10.20.
20341         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20342         EEXIST.
20343
20344 2011-06-08  Eric Blake  <eblake@redhat.com>
20345
20346         perror: fix test on mingw
20347         * modules/perror-tests (Depends-on): Add dup2.
20348
20349         strerror_r-posix: fix on MacOS
20350         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20351         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20352         logic bug.
20353         * lib/strerror_r.c (strerror_r): Fix the bug.
20354         * lib/strerror.c (strerror): Likewise.
20355         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20356         problem.
20357         * doc/posix-functions/strerror.texi (strerror): Likewise.
20358         * doc/posix-functions/perror.texi (perror): Likewise.
20359         * tests/test-strerror.c (main): Enhance test.
20360         * tests/test-strerror_r.c (main): Likewise.
20361
20362 2011-06-08  Bruno Haible  <bruno@clisp.org>
20363
20364         gnulib-tool: Better isolation between different gnulib-tool invocations.
20365         * gnulib-tool: New option --witness-c-macro.
20366         (witness_c_macro): New variable.
20367         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20368         AM_CPPFLAGS define it as a C macro.
20369         (func_emit_tests_Makefile_am): Likewise.
20370         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20371         read it from there.
20372         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20373         m4_define, not AC_DEFUN.
20374         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20375         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20376         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20377         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20378         s|...|...|, to substitute the values of the GNULIB_* module indicator
20379         variables.
20380         * modules/dirent (Makefile.am): Likewise.
20381         * modules/fcntl-h (Makefile.am): Likewise.
20382         * modules/iconv-h (Makefile.am): Likewise.
20383         * modules/langinfo (Makefile.am): Likewise.
20384         * modules/locale (Makefile.am): Likewise.
20385         * modules/math (Makefile.am): Likewise.
20386         * modules/netdb (Makefile.am): Likewise.
20387         * modules/poll-h (Makefile.am): Likewise.
20388         * modules/pty (Makefile.am): Likewise.
20389         * modules/search (Makefile.am): Likewise.
20390         * modules/signal (Makefile.am): Likewise.
20391         * modules/spawn (Makefile.am): Likewise.
20392         * modules/stdio (Makefile.am): Likewise.
20393         * modules/stdlib (Makefile.am): Likewise.
20394         * modules/string (Makefile.am): Likewise.
20395         * modules/sys_ioctl (Makefile.am): Likewise.
20396         * modules/sys_select (Makefile.am): Likewise.
20397         * modules/sys_socket (Makefile.am): Likewise.
20398         * modules/sys_stat (Makefile.am): Likewise.
20399         * modules/sys_times (Makefile.am): Likewise.
20400         * modules/sys_utsname (Makefile.am): Likewise.
20401         * modules/sys_wait (Makefile.am): Likewise.
20402         * modules/termios (Makefile.am): Likewise.
20403         * modules/time (Makefile.am): Likewise.
20404         * modules/unistd (Makefile.am): Likewise.
20405         * modules/wchar (Makefile.am): Likewise.
20406
20407 2011-06-08  Eric Blake  <eblake@redhat.com>
20408
20409         strerror: simplify replacement
20410         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20411         * modules/strerror (configure.ac): No prereqs needed here...
20412         * modules/strerror-override (configure.ac): ...but this needs it.
20413         (Files): Add file for needed prereq macro.
20414
20415 2011-06-08  Bruno Haible  <bruno@clisp.org>
20416
20417         strerror_r-posix: Tweaks.
20418         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20419         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20421         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20422         (gl_FUNC_STRERROR_R): ... to here.
20423         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20424
20425 2011-06-07  Eric Blake  <eblake@redhat.com>
20426
20427         perror: document fixed bugs
20428         * doc/posix-functions/perror.texi (perror): Document recent
20429         patches.
20430
20431 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20432
20433         stat-time: get_stat_birthtime failure is better-defined
20434         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20435         return a timestamp whose tv_sec and tv_nsec values are both -1.
20436         Previously, the spec said only that the tv_nsec value was negative.
20437         This upward-compatible change simplifies GNU tar a bit.
20438
20439 2011-06-07  Eric Blake  <eblake@redhat.com>
20440
20441         strerror_r-posix: work around cygwin 1.7.9
20442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20443         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20444         bug without replacing strerror_r.
20445         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20446         strerror_r is buggy, but without requiring strerror_r compilation.
20447         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20448
20449         test-perror: relax test to ignore cygwin bug
20450         * tests/test-perror2.c (main): Relax test on requiring detection
20451         of stream errors, and use unbuffered stream.
20452         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20453         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20454         * doc/posix-functions/fputc.texi (fputc): Likewise.
20455         * doc/posix-functions/fputs.texi (fputs): Likewise.
20456         * doc/posix-functions/fputws.texi (fputws): Likewise.
20457         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20458         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20459         * doc/posix-functions/getopt.texi (getopt): Likewise.
20460         * doc/posix-functions/perror.texi (perror): Likewise.
20461         * doc/posix-functions/printf.texi (printf): Likewise.
20462         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20463         * doc/posix-functions/psignal.texi (psignal): Likewise.
20464         * doc/posix-functions/putc.texi (putc): Likewise.
20465         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20466         Likewise.
20467         * doc/posix-functions/putchar.texi (putchar): Likewise.
20468         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20469         Likewise.
20470         * doc/posix-functions/puts.texi (puts): Likewise.
20471         * doc/posix-functions/putwc.texi (putwc): Likewise.
20472         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20473         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20474         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20475         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20476         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20477         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20478         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20479         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20480
20481 2011-05-22  Bruno Haible  <bruno@clisp.org>
20482
20483         strerror: Move AC_LIBOBJ invocations to module description.
20484         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20485         gl_PREREQ_STRERROR invocations from here...
20486         * modules/strerror (configure.ac): ... to here.
20487
20488 2011-05-21  Bruno Haible  <bruno@clisp.org>
20489
20490         perror: Use common idiom.
20491         * modules/perror (configure.ac): Reorder statements.
20492
20493 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20494
20495         tests: fix usage message in 'mktempd_'
20496         * tests/init.sh (mktempd_): In the usage message, use literal
20497         'mktempd_', not '$ME' (which is even undefined), as the name of
20498         the subroutine.
20499
20500 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20501
20502         tests init: new function 'fatal_', for hard errors
20503         Before this patch, the only way offered by tests/init.sh to
20504         properly signal a hard error was the `framework_failure_'
20505         function.  But the error message issued by that function,
20506         as its name would suggest, refers to a set-up failure in the
20507         testsuite, while hard errors can obviously also be due to
20508         other reasons.  The best way to fix this inconsistency is to
20509         introduce a new function with a more general error message.
20510         * tests/init.sh (fatal_): New function.
20511
20512 2011-06-06  Eric Blake  <eblake@redhat.com>
20513
20514         canonicalize-lgpl: use common idiom
20515         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20516         over newer POSIX -Rf.
20517         Reported by Bruno Haible.
20518
20519         canonicalize-lgpl: work around AIX realpath bug
20520         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20521         * doc/posix-functions/realpath.texi (realpath): Document it.
20522         Reported by Bruno Haible.
20523
20524         strerror: work around FreeBSD bug
20525         * lib/strerror.c (strerror): Special case 0.
20526         Reported by Bruno Haible.
20527
20528         strerror-override: avoid bloating errno module
20529         * modules/errno (Files, configure.ac): Move replacement strings...
20530         * modules/strerror-override: ...to new module.
20531         * modules/strerror (Depends-on): Add strerror-override.
20532         * modules/strerror_r-posix (Depends-on): Likewise.
20533         * MODULES.html.sh: Document new module.
20534         Reported by Bruno Haible.
20535
20536 2011-06-06  Bruno Haible  <bruno@clisp.org>
20537
20538         spawn-pipe tests: Rename program.
20539         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20540         * tests/test-spawn-pipe-child.c: Update comment.
20541         * tests/test-spawn-pipe.sh: Update.
20542         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20543
20544         spawn-pipe tests: Link the child program only against libc.
20545         * tests/test-spawn-pipe-child.c: New file, extracted from
20546         tests/test-spawn-pipe.c.
20547         (main): Expect only one argument.
20548         (is_open): New function, copied from tests/test-pipe.c.
20549         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20550         (child_main): Remove function.
20551         (test_pipe): Pass only one argument to the child program.
20552         (main): Remove child process code. Expect the child program's name as
20553         first argument.
20554         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20555         argument.
20556         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20557         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20558         test-spawn-pipe-child against no libraries.
20559
20560 2011-06-06  Bruno Haible  <bruno@clisp.org>
20561
20562         careadlinkat: Avoid mismatch between ssize_t and int.
20563         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20564         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20565
20566 2011-06-06  Jim Meyering  <meyering@redhat.com>
20567
20568         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20569         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20570         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20571
20572 2011-06-05  Bruno Haible  <bruno@clisp.org>
20573
20574         ansi-c++-opt: Interoperability with libtool.
20575         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20576         set the variable to "no", not to ":".
20577         * NEWS: Mention the change.
20578
20579 2011-06-05  Bruno Haible  <bruno@clisp.org>
20580
20581         acl: Fix test failure on AIX 7.
20582         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20583         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20584
20585 2011-06-05  Bruno Haible  <bruno@clisp.org>
20586
20587         pipe-filter-ii: Fix test failure on AIX and IRIX.
20588         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20589         with EAGAIN, retry with a smaller buffer size.
20590
20591 2011-06-05  Bruno Haible  <bruno@clisp.org>
20592
20593         localename: Fix link dependencies.
20594         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20595         * modules/localename-tests (Makefile.am): Link test-localename with
20596         $(LIBTHREAD).
20597
20598 2011-06-05  Bruno Haible  <bruno@clisp.org>
20599
20600         error: Avoid gcc warning.
20601         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20602
20603 2011-06-05  Bruno Haible  <bruno@clisp.org>
20604
20605         unsetenv: Avoid gcc warning.
20606         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20607
20608 2011-06-05  Bruno Haible  <bruno@clisp.org>
20609
20610         setenv: Avoid gcc warning.
20611         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20612
20613 2011-06-05  Bruno Haible  <bruno@clisp.org>
20614
20615         sys_select: Ensure memset is declared also on AIX 7.
20616         * lib/sys_select.in.h: Include <string.h> also on AIX.
20617         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20618         self-contained also on AIX 7.1.
20619
20620 2011-06-04  Jim Meyering  <meyering@redhat.com>
20621
20622         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20623         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20624         function name, "error".
20625         (_gl_translatable_diag_func_re): New configurable variable.
20626
20627 2011-06-04  Bruno Haible  <bruno@clisp.org>
20628
20629         getopt: Avoid gcc warning.
20630         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20631
20632 2011-06-04  Bruno Haible  <bruno@clisp.org>
20633
20634         strerror_r: Fix comments.
20635         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20636         commit.
20637
20638 2011-06-04  Bruno Haible  <bruno@clisp.org>
20639
20640         perror: Fix compilation error.
20641         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20642         Undefine fprintf, not sprintf.
20643         * modules/perror (Depends-on): Remove intprops, verify.
20644
20645 2011-06-04  Bruno Haible  <bruno@clisp.org>
20646
20647         setlocale: Enable replacement on Cygwin 1.5.
20648         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20649         Cygwin 1.5.x.
20650         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20651         LC_CTYPE category also exists on Cygwin 1.5.x.
20652
20653 2011-06-04  Bruno Haible  <bruno@clisp.org>
20654
20655         strerror-override: Don't disable symbol renamings.
20656         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20657         * lib/strerror-override.c: Include config.h.
20658         (strerror_override): Don't undefine.
20659
20660 2011-06-03  Bruno Haible  <bruno@clisp.org>
20661
20662         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20663         * lib/localename.h: Update copyright header.
20664         * lib/localename.c: Likewise.
20665         * lib/relocatable.h: Likewise.
20666         * lib/relocatable.c: Likewise.
20667
20668 2011-06-02  Bruno Haible  <bruno@clisp.org>
20669
20670         doc: Fix a module name.
20671         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20672
20673 2011-06-02  Bruno Haible  <bruno@clisp.org>
20674
20675         pipe2: Remove dependency on 'nonblocking' module.
20676         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20677         O_NONBLOCK is defined by gnulib.
20678         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20679         is zero.
20680         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20681         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20682         defined by gnulib.
20683         (get_nonblocking_flag): New function.
20684         (main): Test O_NONBLOCK flag only if it is nonzero.
20685         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20686
20687 2011-06-03  Jim Meyering  <meyering@redhat.com>
20688
20689         maint: three new prohibit-header-without-use rules
20690         Prohibit use of cloexec.h, posixver.h, same.h without use.
20691         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20692         (sc_prohibit_posixver_without_use): Likewise.
20693         (sc_prohibit_same_without_use): Likewise.
20694
20695 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20696
20697         allocator: 'die' routine is now given requested size
20698         * lib/allocator.h (struct allocator.die): New size arg.
20699         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20700         If the actual problem is an ssize_t limitation, not a size_t or
20701         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20702
20703 2011-06-01  Eric Blake  <eblake@redhat.com>
20704
20705         strerror: drop strerror_r dependency
20706         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20707         * lib/strerror-override.c (strerror_override): ...to new file.
20708         * lib/strerror-override.h: Add prototype.
20709         * lib/strerror-impl.h: Delete.
20710         * lib/strerror.c (strerror): New implementation.
20711         * modules/errno (Files): Add new files.
20712         (configure.ac): Compile new file as appropriate.
20713         * modules/strerror (Files): Drop unused file.
20714         (Depends-on): Drop strerror_r-posix.
20715         * MODULES.html.sh: Document strerror_r-posix.
20716         Requested by Sam Steingold.
20717
20718         perror: call strerror_r directly
20719         * modules/perror (Files): Drop strerror-impl.h.
20720         * lib/perror.c (perror): Use our own stack buffer, rather than
20721         calling a wrapper that uses static storage.
20722         * doc/posix-functions/perror.texi (perror): Document a limitation
20723         of our replacement.
20724
20725         strerror_r: fix includes for FreeBSD
20726         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20727         since we use abort on some platforms.
20728         Reported by Matthias Bolte.
20729
20730 2011-05-31  Bruno Haible  <bruno@clisp.org>
20731
20732         Fix link errors in tests: openat-die uses gettext-h.
20733         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20734         against $(LIBINTL).
20735         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20736         against $(LIBINTL).
20737         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20738         $(LIBINTL).
20739         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20740         against $(LIBINTL).
20741         * modules/linkat-tests (Makefile.am): Link test-linkat against
20742         $(LIBINTL).
20743         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20744         $(LIBINTL).
20745         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20746         against $(LIBINTL).
20747         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20748         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20749         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20750         $(LIBINTL).
20751         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20752         $(LIBINTL).
20753         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20754         $(LIBINTL).
20755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20756
20757 2011-05-31  Bruno Haible  <bruno@clisp.org>
20758
20759         Fix link errors in tests: wait-process uses gettext-h.
20760         * modules/nonblocking-pipe-tests (Makefile.am): Set
20761         test_nonblocking_pipe_main_LDADD.
20762         * modules/nonblocking-socket-tests (Makefile.am): Link
20763         test-nonblocking-socket-main against $(LIBINTL).
20764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20765
20766 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         assert-h: work around 'verify' incompatibility
20769         * lib/verify.h: Use @...@ directives, not ifdef.
20770         * modules/assert-h (assert.h): Implement the directives.
20771         (assert.h): Substitute the symbol-prefix more consistently.
20772
20773 2011-05-29  Jim Meyering  <meyering@redhat.com>
20774
20775         trim: remove three superfluous assignments
20776         * lib/trim.c (trim2): Remove three superfluous assignments
20777         and correct brace positioning.
20778
20779 2011-05-29  Bruno Haible  <bruno@clisp.org>
20780
20781         wctype-h: Avoid namespace pollution on Solaris 2.6.
20782         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20783         identifiers.
20784         * doc/posix-headers/wctype.texi: Mention the problem.
20785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20786
20787 2011-05-28  Jim Meyering  <meyering@redhat.com>
20788
20789         parse-datetime.y: accommodate -Wstrict-overflow
20790         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20791         placate -Wstrict-overflow.
20792
20793         trim: avoid a warning from -O2 -Wstrict-overflow
20794         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20795
20796 2011-05-29  Bruno Haible  <bruno@clisp.org>
20797
20798         gnulib-tool: Fix bug in yesterday's commit.
20799         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20800         twice.
20801
20802 2011-05-29  Bruno Haible  <bruno@clisp.org>
20803
20804         Allow multiple gnulib generated include files to be combined.
20805         * gnulib-tool (func_compute_include_guard_prefix): New function.
20806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20807         ${gl_include_guard_prefix} references.
20808         (func_import, func_create_testdir): Invoke
20809         func_compute_include_guard_prefix.
20810         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20811         * lib/ctype.in.h: Likewise.
20812         * lib/dirent.in.h: Likewise.
20813         * lib/errno.in.h: Likewise.
20814         * lib/fcntl.in.h: Likewise.
20815         * lib/float.in.h: Likewise.
20816         * lib/getopt.in.h: Likewise.
20817         * lib/iconv.in.h: Likewise.
20818         * lib/langinfo.in.h: Likewise.
20819         * lib/locale.in.h: Likewise.
20820         * lib/math.in.h: Likewise.
20821         * lib/netdb.in.h: Likewise.
20822         * lib/netinet_in.in.h: Likewise.
20823         * lib/poll.in.h: Likewise.
20824         * lib/pthread.in.h: Likewise.
20825         * lib/pty.in.h: Likewise.
20826         * lib/sched.in.h: Likewise.
20827         * lib/se-selinux.in.h: Likewise.
20828         * lib/search.in.h: Likewise.
20829         * lib/signal.in.h: Likewise.
20830         * lib/spawn.in.h: Likewise.
20831         * lib/stdarg.in.h: Likewise.
20832         * lib/stddef.in.h: Likewise.
20833         * lib/stdint.in.h: Likewise.
20834         * lib/stdio.in.h: Likewise.
20835         * lib/stdlib.in.h: Likewise.
20836         * lib/string.in.h: Likewise.
20837         * lib/strings.in.h: Likewise.
20838         * lib/sys_file.in.h: Likewise.
20839         * lib/sys_ioctl.in.h: Likewise.
20840         * lib/sys_select.in.h: Likewise.
20841         * lib/sys_socket.in.h: Likewise.
20842         * lib/sys_stat.in.h: Likewise.
20843         * lib/sys_time.in.h: Likewise.
20844         * lib/sys_times.in.h: Likewise.
20845         * lib/sys_uio.in.h: Likewise.
20846         * lib/sys_utsname.in.h: Likewise.
20847         * lib/sys_wait.in.h: Likewise.
20848         * lib/sysexits.in.h: Likewise.
20849         * lib/termios.in.h: Likewise.
20850         * lib/time.in.h: Likewise.
20851         * lib/unistd.in.h: Likewise.
20852         * lib/wchar.in.h: Likewise.
20853         * lib/wctype.in.h: Likewise.
20854         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20855         * modules/ctype (Makefile.am): Likewise.
20856         * modules/dirent (Makefile.am): Likewise.
20857         * modules/errno (Makefile.am): Likewise.
20858         * modules/fcntl-h (Makefile.am): Likewise.
20859         * modules/float (Makefile.am): Likewise.
20860         * modules/getopt-posix (Makefile.am): Likewise.
20861         * modules/iconv-h (Makefile.am): Likewise.
20862         * modules/langinfo (Makefile.am): Likewise.
20863         * modules/locale (Makefile.am): Likewise.
20864         * modules/math (Makefile.am): Likewise.
20865         * modules/netdb (Makefile.am): Likewise.
20866         * modules/netinet_in (Makefile.am): Likewise.
20867         * modules/poll-h (Makefile.am): Likewise.
20868         * modules/pthread (Makefile.am): Likewise.
20869         * modules/pty (Makefile.am): Likewise.
20870         * modules/sched (Makefile.am): Likewise.
20871         * modules/search (Makefile.am): Likewise.
20872         * modules/selinux-h (Makefile.am): Likewise.
20873         * modules/signal (Makefile.am): Likewise.
20874         * modules/spawn (Makefile.am): Likewise.
20875         * modules/stdarg (Makefile.am): Likewise.
20876         * modules/stddef (Makefile.am): Likewise.
20877         * modules/stdint (Makefile.am): Likewise.
20878         * modules/stdio (Makefile.am): Likewise.
20879         * modules/stdlib (Makefile.am): Likewise.
20880         * modules/string (Makefile.am): Likewise.
20881         * modules/strings (Makefile.am): Likewise.
20882         * modules/sys_file (Makefile.am): Likewise.
20883         * modules/sys_ioctl (Makefile.am): Likewise.
20884         * modules/sys_select (Makefile.am): Likewise.
20885         * modules/sys_socket (Makefile.am): Likewise.
20886         * modules/sys_stat (Makefile.am): Likewise.
20887         * modules/sys_time (Makefile.am): Likewise.
20888         * modules/sys_times (Makefile.am): Likewise.
20889         * modules/sys_uio (Makefile.am): Likewise.
20890         * modules/sys_utsname (Makefile.am): Likewise.
20891         * modules/sys_wait (Makefile.am): Likewise.
20892         * modules/sysexits (Makefile.am): Likewise.
20893         * modules/termios (Makefile.am): Likewise.
20894         * modules/time (Makefile.am): Likewise.
20895         * modules/unistd (Makefile.am): Likewise.
20896         * modules/wchar (Makefile.am): Likewise.
20897         * modules/wctype-h (Makefile.am): Likewise.
20898         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20899
20900 2011-05-29  Bruno Haible  <bruno@clisp.org>
20901
20902         assert-h: Allow multiple gnulib generated replacements to coexist.
20903         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20904
20905 2011-05-29  Bruno Haible  <bruno@clisp.org>
20906
20907         argp: Allow coexistence with strerror_r-posix module.
20908         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20909         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20910         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20911         not the glibc signature.
20912
20913 2011-05-28  Bruno Haible  <bruno@clisp.org>
20914
20915         gnulib-tool: Alternative structure of testdirs, similar to --import.
20916         * gnulib-tool: New option --single-configure.
20917         (func_usage): Document it.
20918         (single_configure): New variable.
20919         (func_modules_transitive_closure_separately,
20920         func_modules_transitive_closure_separately,
20921         func_determine_use_libtests, func_modules_add_dummy_separately,
20922         func_modules_to_filelist_separately): New functions, extracted from
20923         func_import.
20924         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20925         (func_import): Use the new functions.
20926         (func_create_testdir): Set final_modules. Handle $single_configure =
20927         true case.
20928
20929 2011-05-28  Bruno Haible  <bruno@clisp.org>
20930
20931         getloadavg: Remove an unreliable safety check.
20932         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20933         getloadavg.c is in place.
20934         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20935         Reported by Sam Steingold <sds@gnu.org>.
20936
20937 2011-05-28  Bruno Haible  <bruno@clisp.org>
20938
20939         doc: Cleanup yet another file produced by texinfo.tex.
20940         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20941
20942 2011-05-28  Bruno Haible  <bruno@clisp.org>
20943
20944         Finish the conditional dependencies mechanism.
20945         * gnulib-tool: New option --no-conditional-dependencies.
20946         (func_usage): Document it. Don't mark --conditional-dependencies as
20947         experimental.
20948         (cond_dependencies): The possible values can now be true, false, empty.
20949         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20950         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20951         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20952
20953 2011-05-28  Bruno Haible  <bruno@clisp.org>
20954
20955         doc: Use a recent texinfo.tex.
20956         * doc/Makefile (tex_opts): New variable.
20957         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20958
20959 2011-05-28  Jim Meyering  <meyering@redhat.com>
20960
20961         intprops.h: adjust comment to match code change
20962         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20963         only once, it *may* have side effects.  Also fix an unrelated typo.
20964         (_GL_INT_SIGNED): Likewise.
20965
20966 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20967
20968         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20969
20970 2011-05-26  Bruno Haible  <bruno@clisp.org>
20971
20972         mbsrchr: Avoid collision with system function on Interix.
20973         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20974         Reported by Markus Duft <mduft@gentoo.org>.
20975
20976 2011-05-15  James Youngman  <jay@gnu.org>
20977
20978         getopt: for ambiguous options, enumerate the possibilities.
20979         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20980         the ambiguous options when an ambiguous prefix is given. This was
20981         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20982         glibc change was
20983         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20984
20985 2011-05-25  Eric Blake  <eblake@redhat.com>
20986
20987         getcwd: work around mingw bug
20988         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20989         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20990         Reported by Matthias Bolte.
20991
20992 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20993
20994         test-intprops: disable -Wtype-limits diagnostics
20995         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20996         diagnostics.  Otherwise, the integer overflow macros generate many
20997         diagnostics.  Reported by Jim Meyering in
20998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20999
21000         intprops: shorten, to pacify gcc -Woverlength-strings
21001         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21002         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21003         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21004         likely to run afoul of C compiler limits for string constant lengths.
21005         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21006
21007 2011-05-24  Eric Blake  <eblake@redhat.com>
21008
21009         docs: document recently fixed glibc printf bug
21010         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21011         * doc/posix-functions/printf.texi (printf): Likewise.
21012         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21013         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21014
21015         closein-tests: convert to init.sh
21016         * modules/closein-tests (Files): Add init.sh
21017         * tests/test-closein.sh Use it.
21018
21019         yesno-tests: convert to init.sh
21020         * modules/yesno-tests (Files): Add init.sh.
21021         * tests/test-yesno.sh: Use it.
21022
21023         atexit-tests: ensure reliable exit status
21024         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21025         Reported by Bruno Haible.
21026
21027 2011-05-24  Bruno Haible  <bruno@clisp.org>
21028
21029         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21030         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21031         gl_PREREQ_STRERROR_R invocations from here...
21032         * modules/strerror_r-posix (configure.ac): ... to here.
21033
21034 2011-05-24  Eric Blake  <eblake@redhat.com>
21035
21036         strerror_r: fix missing header
21037         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21038
21039         strerror_r: fix AIX test failures
21040         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21041         ERANGE failure.
21042
21043         strerror_r: fix Solaris test failures
21044         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21045         failures.
21046         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21047
21048         strerror_r: enforce POSIX recommendations
21049         * lib/strerror_r.c (safe_copy): New helper method.
21050         (strerror_r): Guarantee a non-empty string.
21051         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21052         recent POSIX rulings and to match our strerror guarantees.
21053         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21054
21055 2011-05-24  Jim Meyering  <meyering@redhat.com>
21056
21057         test-perror2.c: avoid warning about unused variable
21058         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21059
21060 2011-05-24  Eric Blake  <eblake@redhat.com>
21061
21062         perror: avoid spurious test failure on HP-UX
21063         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21064
21065         tests: fix logic bug in init.sh
21066         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21067         shell.
21068
21069 2011-05-24  Jim Meyering  <meyering@redhat.com>
21070
21071         utimensat: do not reference an out-of-scope buffer
21072         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21073         declared in an inner scope, yet "times" would be dereferenced outside
21074         the scope in which "ts" was valid.
21075         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21076         of ts[2] "out/up", so that the use of aliased "times" (via
21077         "times = ts;") does not end up referencing an out-of-scope "ts"
21078
21079         opendir-safer.c: don't clobber errno; don't close negative FD
21080         * lib/opendir-safer.c (opendir_safer):
21081         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21082         file descriptor, and more importantly, don't clobber the
21083         offending errno value with EINVAL.  Before, upon failure
21084         of dup_safer, we would pass the negative file descriptor to
21085         fdopendir, which would clobber errno.
21086
21087 2011-05-23  Bruno Haible  <bruno@clisp.org>
21088
21089         idcache: Fix module description.
21090         * modules/idcache (Include): Set to "idcache.h".
21091
21092 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21093
21094         gnulib-tool: fix portability problem with MacOS sed
21095         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21096         before the "}".  Problem reported by Leo in
21097         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21098         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21099         sed_extract_condition1, sed_extract_condition2.
21100
21101 2011-05-23  Bruno Haible  <bruno@clisp.org>
21102
21103         hash: Simplify autoconf macro.
21104         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21105
21106 2011-05-23  Bruno Haible  <bruno@clisp.org>
21107
21108         getugroups: Fix module description.
21109         * modules/getugroups (Include): Set to "getugroups.h".
21110
21111 2011-05-23  Bruno Haible  <bruno@clisp.org>
21112
21113         linkat: Simplify autoconf macro.
21114         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21115
21116 2011-05-23  Bruno Haible  <bruno@clisp.org>
21117             Eric Blake  <eblake@redhat.com>
21118
21119         linkat, renameat: Update dependencies.
21120         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21121         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21122         symlinkat.
21123
21124 2011-05-23  Jim Meyering  <meyering@redhat.com>
21125
21126         maint.mk: more tight_scope improvements
21127         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21128         (_gl_TS_headers): Define only in if-0'd block.
21129         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21130         sometimes we must *not* use it.  Adjust uses accordingly.
21131         (sc_tight_scope): Use much simpler grep-based test to determine
21132         whether we skip this rule.
21133
21134         maint.mk: generalize/improve the tight-scope rule
21135         * top/maint.mk: Emit a warning when the test is skipped.
21136         (_gl_TS_dir): Add $(srcdir)/ prefix.
21137         (_gl_TS_function_match): Simplify, rather than trying
21138         to enumerate common types.  Otherwise, it would fail to match an
21139         "extern unsigned char const *" declaration in idutils.
21140         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21141         a way to support use of that type of macro.
21142         (_gl_TS_var_match): Simplify regexp.
21143         (_gl_TS_obj_files): New configurable variable.
21144         (_gl_TS_headers): Likewise.
21145
21146 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         verify: fix bug when gnulib <assert.h> is also included
21149         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21150         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21151         Perhaps there's a better way, but this fixes the immediate problem.
21152         Problem reported by Bruno Haible in
21153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21154
21155 2011-05-22  Bruno Haible  <bruno@clisp.org>
21156
21157         xgetcwd: Simplify autoconf macro.
21158         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21159
21160 2011-05-22  Bruno Haible  <bruno@clisp.org>
21161
21162         New module 'mktime-internal'.
21163         * modules/mktime-internal: New file.
21164         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21165         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21166         mktime_internal as a C macro if libc has __mktime_internal.
21167         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21168         conditions.
21169         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21170
21171 2011-05-22  Bruno Haible  <bruno@clisp.org>
21172
21173         timegm: Correct mktime replacement statements.
21174         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21175         defining mktime as a C macro. This completes a 2009-07-28 commit.
21176
21177 2011-05-22  Bruno Haible  <bruno@clisp.org>
21178
21179         timegm: Simplify autoconf macro.
21180         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21181
21182 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21183
21184         clock-time: change to LGPLv2+.
21185         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21186         BSD-like but we have no mark for that; this is good enough for now.
21187
21188 2011-05-21  Bruno Haible  <bruno@clisp.org>
21189
21190         strerror_r: Fix comments.
21191         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21192
21193 2011-05-21  Bruno Haible  <bruno@clisp.org>
21194
21195         relocatable-prog-wrapper: Fix possible link error.
21196         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21197         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21198         (gl_FUNC_SETENV): ... to here.
21199         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21200         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21201
21202 2011-05-21  Bruno Haible  <bruno@clisp.org>
21203
21204         relocatable-prog-wrapper: Assume strerror() exists.
21205         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21206         m4/strerror.m4.
21207         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21208         * lib/relocwrapper.c: Remove mention of strerror module.
21209         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21210         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21211         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21212         C macro.
21213
21214 2011-05-21  Bruno Haible  <bruno@clisp.org>
21215
21216         select: Simplify replacement idiom.
21217         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21218         Win32 platforms.
21219         * lib/sys_select.in.h (select): Simplify accordingly.
21220         * modules/select (Depends-on): Likewise.
21221
21222 2011-05-21  Bruno Haible  <bruno@clisp.org>
21223
21224         mkdir-p: Simplify autoconf macro.
21225         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21226         gl_FUNC_LCHOWN.
21227
21228 2011-05-21  Eric Blake  <eblake@redhat.com>
21229
21230         strerror_r: avoid clobbering strerror on cygwin
21231         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21232         fall back instead to sys_errlist.
21233         * modules/strerror (configure.ac): Add witness.
21234         * tests/test-strerror_r.c (main): Enhance test.
21235         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21236         * tests/test-perror2.c (main): Free memory before exit.
21237
21238 2011-05-21  Bruno Haible  <bruno@clisp.org>
21239
21240         mkdtemp: Use gnulib naming conventions.
21241         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21242         * modules/mkdtemp (configure.ac): Update.
21243
21244 2011-05-20  Eric Blake  <eblake@redhat.com>
21245
21246         strerror_r: avoid corrupting errno on Solaris
21247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21248         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21249
21250         strerror_r: avoid compiler warning
21251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21252
21253         strerror_r: simplify AIX code
21254         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21255
21256         test-perror: avoid spurious failure on FreeBSD
21257         * modules/perror-tests (Depends-on): Add strerror, now that
21258         strerror_r no longer pulls it in.
21259
21260 2011-05-20  Bruno Haible  <bruno@clisp.org>
21261
21262         strerror_r-posix: Remove unused dependencies.
21263         * modules/strerror_r-posix (Depends-on): Remove strerror.
21264         Reported by Eric Blake.
21265
21266 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21267
21268         intprops: remove assumption about A|B representation
21269         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21270         is a valid integer if both A and B are.  Although this is true for
21271         all known practical hosts, the C standard doesn't guarantee it,
21272         and the code need not assume it.  Also, this change may work around
21273         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21275
21276 2011-05-20  Eric Blake  <eblake@redhat.com>
21277
21278         perror: work around FreeBSD bug
21279         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21280         is broken.  Move AC_LIBOBJ...
21281         * modules/perror (configure.ac): Here.
21282         * doc/posix-functions/perror.texi (perror): Document this.
21283         * tests/test-perror2.c (main): Enhance test.
21284
21285         test-perror: check for strerror interactions
21286         * tests/macros.h (STREQ): Add macro.
21287         * modules/perror-tests (Files): Add second test.
21288         * tests/test-perror2.c (main): New file.
21289         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21290
21291         test-perror: rewrite to use init script
21292         * modules/perror-tests (Files): Add init.sh.
21293         * tests/test-perror.sh: Use temporary directory.
21294
21295 2011-05-20  Jim Meyering  <meyering@redhat.com>
21296
21297         maint: replace misused "a" with "an"
21298         * doc/intprops.texi: "a integer"
21299         * doc/regex.texi: "a explanation"
21300         * lib/alignof.h: "a object"
21301         * lib/argmatch.h: "a explanation"
21302         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21303         * lib/stdint.in.h: "a integer"
21304         * lib/userspec.c: "a owner"
21305         * doc/gnulib.texi: Fix "a idea", and reword.
21306
21307 2011-05-19  Jim Meyering  <meyering@redhat.com>
21308
21309         maint: correct misuse of "a" and "an"
21310         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21311         * lib/argp-help.c: "an docum...": s/an/a/
21312         * lib/argp-parse.c: "An vector": s/An/A/
21313         * lib/execute.c: "an native": s/an/a/
21314         * lib/spawn-pipe.c: Likewise.
21315         * lib/gc.h: "an Gc_rc": s/an/a/
21316         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21317         * lib/fts.c: "an stat.st_dev": s/an/a/
21318
21319 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21320
21321         intprops-tests: work around HP-UX 11.23 cc bug with constants
21322         * tests/test-intprops.c (VERIFY): New macro.
21323         (main): Use it, instead of verify, to work around the compiler bug; see
21324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21325
21326         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21327         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21328         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21329         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21330         (_GL_REMAINDER_OVERFLOW): Use it.
21331
21332         intprops-tests: revert unsigned part of previous change
21333         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21334         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21335         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21337
21338 2011-05-19  Bruno Haible  <bruno@clisp.org>
21339
21340         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21341         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21342         strerror_r() returned without filling the buffer.
21343         Reported by Eric Blake.
21344
21345 2011-05-19  Eric Blake  <eblake@redhat.com>
21346
21347         strerror_r: guarantee unchanged errno
21348         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21349         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21350         failure.
21351         * tests/test-strerror_r.c (main): Enhance test.
21352
21353 2011-05-19  Bruno Haible  <bruno@clisp.org>
21354
21355         strerror_r: Reorder #if blocks.
21356         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21357         for consistency with the previous commit.
21358
21359 2011-05-19  Bruno Haible  <bruno@clisp.org>
21360
21361         perror: Avoid clobbering the strerror buffer when possible.
21362         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21363         * lib/strerror.c: Include it.
21364         * modules/strerror (Files): Add lib/strerror-impl.h.
21365         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21366         (my_strerror): New function, defined through lib/strerror-impl.h.
21367         (perror): Use it instead of strerror.
21368         * modules/perror (Files): Add lib/strerror-impl.h.
21369         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21370
21371 2011-05-19  Eric Blake  <eblake@redhat.com>
21372
21373         strerror_r: fix on newer cygwin
21374         * lib/strerror_r.c (strerror_r): Cygwin now has
21375         __xpg_strerror_r, use it.
21376
21377 2011-05-19  Bruno Haible  <bruno@clisp.org>
21378
21379         strerror_r: Avoid clobbering the strerror buffer when possible.
21380         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21381         (sys_nerr, sys_errlist): New declarations.
21382         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21383         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21384         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21385
21386 2011-05-19  Bruno Haible  <bruno@clisp.org>
21387
21388         strerror_r: Fix test failure on mingw.
21389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21390         EXTEND_STRERROR_R.
21391         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21392         macros from errno.in.h instead.
21393
21394 2011-05-19  Eric Blake  <eblake@redhat.com>
21395
21396         strerror: relax test for Solaris
21397         * tests/test-strerror.c (main): Permit Solaris behavior.
21398         * tests/test-strerror_r.c (main): Likewise.
21399
21400         strerror: enforce POSIX ruling on strerror(0)
21401         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21402         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21403         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21404         * doc/posix-functions/strerror.texi (strerror): Document it.
21405         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21406         * tests/test-strerror.c (main): Strengthen test.
21407         * tests/test-strerror_r.c (main): Likewise.
21408
21409 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         intprop-tests: port to older and more-pedantic compilers
21412         * modules/intprops-tests (Files): Add tests/macros.h.
21413         * tests/test-intprops.c: Include macros.h.
21414         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21415         it's no longer documented to expand to an integer constant expression.
21416         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21417         argument is floating point, as it's no longer documented to expand
21418         to an integer constant expression in that case.
21419         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21420         compiler bugs reported by Bruno Haible.  See
21421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21422         (U0, U1): New constants, to work around the same bugs.  Also,
21423         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21424
21425         intprops: work around C compiler bugs
21426         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21427         bug in Sun C 5.11 2010/08/13 and other compilers; see
21428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21429
21430         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21431         * doc/intprops.texi (Integer Type Determination): Fix
21432         documentation for TYPE_IS_INTEGER: it returns an constant
21433         expression, not an integer constant expression.  Fix doc for
21434         TYPE_SIGNED: it returns an integer constant expression only if its
21435         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21436         hardly worth documented that way....)
21437
21438 2011-05-18  Bruno Haible  <bruno@clisp.org>
21439
21440         strerror_r: Avoid clobbering the strerror buffer when possible.
21441         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21442         Handle gnulib defined errno values here. When strerror() returns NULL
21443         or an empty string, return EINVAL.
21444         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21445         gnulib defined errno values here.
21446         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21447
21448 2011-05-18  Eric Blake  <eblake@redhat.com>
21449
21450         fnmatch: avoid compiler warning
21451         * lib/fnmatch_loop.c (FCT): Use correct type.
21452         Reported by Matthias Bolte.
21453
21454 2011-05-13  Jim Meyering  <meyering@redhat.com>
21455
21456         maint.mk: three new prohibit_<HDR>_without_use rules
21457         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21458         (sc_prohibit_stdio-safer_without_use): Likewise.
21459         (sc_prohibit_xfreopen_without_use): Likewise.
21460
21461 2011-05-17  Jim Meyering  <meyering@redhat.com>
21462
21463         announce-gen: fail if the NEWS delta is empty
21464         If there's nothing noteworthy in NEWS, then either you forgot
21465         or you shouldn't be releasing.
21466         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21467
21468 2011-05-17  Pádraig Brady <P@draigBrady.com>
21469
21470         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21471         reserved symbols starting with double underscore from the check.
21472
21473 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21474
21475         intprops: add doc
21476         * doc/intprops.texi: New file, documenting intprops.
21477         * doc/gnulib.texi (Particular Modules): Include it.
21478
21479         verify: add doc to gnulib manual and fix example
21480         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21481         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21482         (Compile-time Assertions): Fix example so it can't overflow.
21483
21484 2011-05-17  Jim Meyering  <meyering@redhat.com>
21485
21486         warnings.m4: don't usurp save_CPPFLAGS variable name
21487         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21488
21489         doc: fix typo
21490         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21491
21492 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21493             Bruno Haible  <bruno@clisp.org>
21494
21495         doc: Tweak recent change.
21496         * README (Portability guidelines): Tweak new text.
21497         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21498         Interix 6.1.
21499
21500 2011-05-16  Eric Blake  <eblake@redhat.com>
21501
21502         inttypes: avoid autoconf warning
21503         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21504         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21505
21506 2011-05-16  Sam Steingold <sds@gnu.org>
21507         and Eric Blake  <eblake@redhat.com>
21508
21509         vc-list-files: accept multiple directory operands
21510         * build-aux/vc-list-files: Iterate over all remaining operands.
21511
21512 2011-05-16  Bruno Haible  <bruno@clisp.org>
21513
21514         Fix confusion regarding deprecated modules.
21515         * modules/calloc (Status, Notice): Mark module as deprecated, not
21516         obsolete.
21517         * modules/fnmatch-posix (Status, Notice): Likewise.
21518         * modules/getdate (Status, Notice): Likewise.
21519         * modules/getopt (Status, Notice): Likewise.
21520         * modules/malloc (Status, Notice): Likewise.
21521         * modules/pipe (Status, Notice): Likewise.
21522         * modules/realloc (Status, Notice): Likewise.
21523         * modules/rename-dest-slash (Status, Notice): Likewise.
21524         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21525         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21526         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21527         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21528         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21529
21530 2011-05-16  Bruno Haible  <bruno@clisp.org>
21531
21532         doc: List the target platforms.
21533         * doc/gnulib-intro.texi (Target Platforms): New section.
21534         * doc/gnulib.texi (Introduction): Update menu.
21535         * README (Portability guidelines): Refer to the new section. Update
21536         statement about oldest supported environment. Remove rationale why
21537         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21538         unportable C89 function.
21539         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21540         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21541
21542 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21543
21544         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21545
21546 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         intprops-tests: new module
21549         * modules/intprops-tests, tests/test-intprops.c: New files.
21550
21551         intprops: add safe, portable integer overflow checking
21552         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21553         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21554         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21555         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21556         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21557         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21558         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21559         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21560         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21561         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21562         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21563
21564 2011-05-12  James Youngman  <jay@gnu.org>
21565
21566         Add a test for glibc's Bugzilla bug #12378.
21567         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21568         doesn't allow the literal matching of a lone "[" (which is
21569         required by POSIX).
21570         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21571
21572 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21573
21574         Sync glibc change fixing Bugzilla bug #12378.
21575         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21576         beginning and fall back to matching as normal character if the
21577         string ends before the matching ']' is found.  This is what POSIX
21578         requires.
21579
21580 2011-05-13  Eric Blake  <eblake@redhat.com>
21581
21582         getcwd-lgpl: relax test for FreeBSD
21583         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21584         issue.
21585         * tests/test-getcwd-lgpl.c (main): Relax test.
21586         Reported by Matthias Bolte.
21587
21588 2011-05-11  Eric Blake  <eblake@redhat.com>
21589
21590         test-fflush: silence compiler warning
21591         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21592
21593 2011-05-11  Bruno Haible  <bruno@clisp.org>
21594
21595         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21596         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21597         * modules/canonicalize (Depends-on): Add 'nocrash'.
21598         * modules/canonicalize-lgpl (Depends-on): Likewise.
21599         * doc/posix-functions/realpath.texi: Update platforms list.
21600         Reported by Ryan Schmidt <ryandesign@macports.org>.
21601
21602 2011-05-11  Bruno Haible  <bruno@clisp.org>
21603
21604         group-member: Declare function in <unistd.h>.
21605         * lib/unistd.in.h (group_member): New declaration.
21606         * lib/group-member.h: Remove file.
21607         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21608         * tests/test-unistd-c++.cc: Check signature of group_member.
21609         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21610         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21611         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21612         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21613         HAVE_GROUP_MEMBER.
21614         * modules/group-member (Files): Remove lib/group-member.h.
21615         (Depends-on): Add unistd. Specify conditions.
21616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21617         (Include): Change to <unistd.h>.
21618         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21619         HAVE_GROUP_MEMBER.
21620         * NEWS: Mention the change.
21621         * lib/euidaccess.c: Don't include group-member.h.
21622
21623 2011-05-11  Bruno Haible  <bruno@clisp.org>
21624
21625         group-member: Document module.
21626         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21627         module.
21628
21629 2011-05-11  Bruno Haible  <bruno@clisp.org>
21630
21631         fclose: Fix mistake earlier today.
21632         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21633
21634 2011-05-11  Eric Blake  <eblake@redhat.com>
21635
21636         fclose: preserve fflush errors
21637         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21638         Reported by Jim Meyering.
21639
21640         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21641         * build-aux/bootstrap (check_versions): When no specific version
21642         is required, merely check that the app produces an exit status
21643         that indicates its existence.
21644
21645         maint.mk: drop redundant check
21646         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21647         the same but better.
21648
21649 2011-05-11  Bruno Haible  <bruno@clisp.org>
21650
21651         fclose: Fix possible link error.
21652         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21653         unregister_shadow_fd. Improve comments.
21654         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21655         Eric Blake.
21656
21657 2011-05-11  Jim Meyering  <meyering@redhat.com>
21658
21659         maint.mk: improve "can not" detection and generalize rule name
21660         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21661         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21662         Use the same technique as in sc_prohibit_doubled_word, so that
21663         we recognize "can not" also when the words are separated by a newline.
21664         Suggested by Eric Blake.
21665         (perl_filename_lineno_text_): Define.  Factored out of...
21666         (prohibit_doubled_word_): ...here.  Use the new definition.
21667         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21668         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21669         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21670
21671 2011-05-10  Eric Blake  <eblake@redhat.com>
21672
21673         fclose: avoid double close race when possible
21674         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21675         all but WINDOWS_SOCKETS.
21676
21677 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21678
21679         openat: correct new comment
21680         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21681
21682 2011-05-10  Jim Meyering  <meyering@redhat.com>
21683
21684         openat: add comments
21685         * lib/openat-proc.c (openat_proc_name): Add comments,
21686         mostly from Eric Blake.
21687
21688 2011-05-09  Eric Blake  <eblake@redhat.com>
21689
21690         openat: reduce syscalls in first probe of /proc
21691         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21692         be a directory.  Simplify the probe for .. bugs.
21693         * modules/openat (Depends-on): Drop same-inode.
21694         Reported by Bastien ROUCARIES.
21695
21696 2011-05-09  Jim Meyering  <meyering@redhat.com>
21697
21698         maint.mk: change semantics/name of tight_scope variables
21699         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21700         Rename variables to align with semantics that make them more useful.
21701
21702         maint.mk: tweak new rule's name not to impinge
21703         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21704         (sc_tight_scope): Use new rule name rather than $@-0.
21705
21706         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21707         * top/maint.mk (sc_tight_scope): New rule.
21708         (sc_tight_scope-0): New rule, ifdef'd out.
21709         (_gl_TS_dir): Default.
21710         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21711         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21712
21713 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21714
21715         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21716         Haible <bruno@clisp.org>.
21717
21718 2011-05-08  Bruno Haible  <bruno@clisp.org>
21719
21720         Comments.
21721         * m4/isnanf.m4: Add comment.
21722         * m4/isnanl.m4: Likewise.
21723
21724 2011-05-08  Bruno Haible  <bruno@clisp.org>
21725
21726         glob: Remove obsolete macro.
21727         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21728
21729 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21730
21731         intprops: Sun C 5.11 supports __typeof__
21732         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21733         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21734         which is new.
21735         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21736
21737         intprops: switch to usual gnulib indenting and naming
21738         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21739         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21740
21741         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21742
21743 2011-05-08  Jim Meyering  <meyering@redhat.com>
21744
21745         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21746         * top/maint.mk (release-prep): Use make's --no-print-directory
21747         option when generating the announcement.  This eliminates the
21748         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21749         generated announcement template.
21750
21751 2011-05-08  Bruno Haible  <bruno@clisp.org>
21752
21753         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21754         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21755         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21756
21757 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21758
21759         ignore-value, verify: Omit include files from lib_SOURCES.
21760         * modules/ignore-value, modules/verify (Makefile.am):
21761         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21762         that leads Automake to duplicate use of am__objects_... variables
21763         in Makefile.in.  See
21764         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21765
21766 2011-05-07  Bruno Haible  <bruno@clisp.org>
21767
21768         fclose: Simplify autoconf macro.
21769         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21770         defined.
21771
21772 2011-05-07  Bruno Haible  <bruno@clisp.org>
21773
21774         canonicalize-lgpl: Fix autoconf macro ordering bug.
21775         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21776         gl_STDLIB_H_DEFAULTS.
21777
21778 2011-05-06  Eric Blake  <eblake@redhat.com>
21779
21780         maintainer-makefile: make sc_po_check easier to tune
21781         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21782         to probe for strings, such as an alternate location for gnulib.
21783
21784         fclose: guarantee behavior on seekable stdin
21785         * modules/fclose (Depends-on): Add fflush.
21786         * doc/posix-functions/fclose.texi (fclose): Document this.
21787         * tests/test-fclose.c (main): Make test for this unconditional.
21788
21789 2011-05-06  Bruno Haible  <bruno@clisp.org>
21790
21791         fflush, fpurge: Relicense under LGPLv2+.
21792         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21793         * modules/fpurge (License): Likewise.
21794         With permission from Eric Blake and Jim Meyering.
21795         Suggested by Eric Blake.
21796
21797 2011-05-06  Karl Berry  <karl@gnu.org>
21798
21799         * MODULES.html.sh (func_all_modules): remove exit.
21800
21801 2011-05-06  Jim Meyering  <meyering@redhat.com>
21802
21803         maint.mk: use info-gnu@ as the default only for a stable release
21804         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21805         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21806         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21808
21809 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21810
21811         assert-h: new module, which supports C1X-style static_assert
21812         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21813         * lib/verify.h: Revamp so that this can be copied into assert.h,
21814         while retaining the ability to use it standalone as before.
21815         Rename private identifiers so as not to encroach on the
21816         standard C namespace, since this is now used by assert.h.
21817         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21818         the old verify_true.
21819         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21820         the old verify_true.  Use _GL_VERIFY_TYPE.
21821         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21822         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21823         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21824         defined when this file is copied into the replacement assert.h.
21825         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21826         and _Static_assert is not built in.
21827         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21828         defined, and use the new macros mentioned above.
21829         * doc/posix-headers/assert.texi: Document this.
21830
21831 2011-05-05  Bruno Haible  <bruno@clisp.org>
21832
21833         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21834         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21835         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21836         gl_REPLACE_FCLOSE here.
21837         * modules/fflush (Depends-on): Remove fclose.
21838         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21839         combination with module 'fclose'.
21840
21841 2011-05-05  Bruno Haible  <bruno@clisp.org>
21842
21843         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21844         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21845         gl_FUNC_FFLUSH.
21846         (gl_FUNC_FFLUSH): Use it.
21847         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21848         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21849         gl_REPLACE_FSEEKO here.
21850
21851 2011-05-05  Bruno Haible  <bruno@clisp.org>
21852
21853         tzset: Relicense under LGPL.
21854         * modules/tzset (License): Change to LGPL.
21855         No agreement needed; it's a no-op.
21856
21857         strtoimax, strtoumax: Relicense under LGPL.
21858         * modules/strtoimax (License): Change to LGPL.
21859         * modules/strtoumax (License): Likewise.
21860         With permission from Jim Meyering, Paul Eggert:
21861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21863
21864         getgroups: Relicense under LGPL.
21865         * modules/getgroups (License): Change to LGPL.
21866         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21870
21871         nanosleep: Relicense under LGPL.
21872         * modules/nanosleep (License): Change to LGPL.
21873         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21874         Haible:
21875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21879
21880         futimens: Relicense under LGPL.
21881         * modules/futimens (License): Change to LGPL.
21882         With permission from Eric Blake:
21883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21884
21885         fflush: Relicense under LGPL.
21886         * modules/fflush (License): Change to LGPL.
21887         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21891
21892         tmpfile: Relicense under LGPL.
21893         * modules/tmpfile (License): Change to LGPL.
21894         With permission from Ben Pfaff:
21895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21896
21897         isfinite: Relicense under LGPL.
21898         * modules/isfinite (License): Change to LGPL.
21899         With permission from Ben Pfaff, Bruno Haible:
21900         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21902
21903         acosl..tanl: Relicense under LGPL.
21904         * modules/acosl (License): Change to LGPL.
21905         * modules/asinl (License): Likewise.
21906         * modules/atanl (License): Likewise.
21907         * modules/cosl (License): Likewise.
21908         * modules/expl (License): Likewise.
21909         * modules/logl (License): Likewise.
21910         * modules/sinl (License): Likewise.
21911         * modules/sqrtl (License): Likewise.
21912         * modules/tanl (License): Likewise.
21913         Source code originally from glibc and Paolo Bonzini. Agreements:
21914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21916
21917 2011-05-05  Bruno Haible  <bruno@clisp.org>
21918
21919         signal: Define sighandler_t.
21920         * lib/signal.in.h (sighandler_t): New type.
21921         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21922         whether sighandler_t is defined.
21923         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21924         * modules/signal (Depends-on): Add extensions.
21925         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21926         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21927         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21928
21929 2011-05-05  Eric Blake  <eblake@redhat.com>
21930
21931         maint: remove useless REPLACE_*_H macros
21932         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21933         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21934         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21935         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21936         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21937         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21938         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21939         * m4/btowc.m4: Update callers.
21940         * m4/dirfd.m4: Likewise.
21941         * m4/duplocale.m4: Likewise.
21942         * m4/fchdir.m4: Likewise.
21943         * m4/fdopendir.m4: Likewise.
21944         * m4/inet_ntop.m4: Likewise.
21945         * m4/inet_pton.m4: Likewise.
21946         * m4/ioctl.m4: Likewise.
21947         * m4/mbrlen.m4: Likewise.
21948         * m4/mbrtowc.m4: Likewise.
21949         * m4/mbsinit.m4: Likewise.
21950         * m4/mbsnrtowcs.m4: Likewise.
21951         * m4/mbsrtowcs.m4: Likewise.
21952         * m4/poll.m4: Likewise.
21953         * m4/setlocale.m4: Likewise.
21954         * m4/wcrtomb.m4: Likewise.
21955         * m4/wcsnrtombs.m4: Likewise.
21956         * m4/wcsrtombs.m4: Likewise.
21957         * m4/wctob.m4: Likewise.
21958         * m4/wcwidth.m4: Likewise.
21959         * modules/posix_spawn: Likewise.
21960         * modules/posix_spawn_file_actions_addclose: Likewise.
21961         * modules/posix_spawn_file_actions_adddup2: Likewise.
21962         * modules/posix_spawn_file_actions_addopen: Likewise.
21963         * modules/posix_spawn_file_actions_destroy: Likewise.
21964         * modules/posix_spawn_file_actions_init: Likewise.
21965         * modules/posix_spawnattr_destroy: Likewise.
21966         * modules/posix_spawnattr_getflags: Likewise.
21967         * modules/posix_spawnattr_getpgroup: Likewise.
21968         * modules/posix_spawnattr_getschedparam: Likewise.
21969         * modules/posix_spawnattr_getschedpolicy: Likewise.
21970         * modules/posix_spawnattr_getsigdefault: Likewise.
21971         * modules/posix_spawnattr_getsigmask: Likewise.
21972         * modules/posix_spawnattr_init: Likewise.
21973         * modules/posix_spawnattr_setflags: Likewise.
21974         * modules/posix_spawnattr_setpgroup: Likewise.
21975         * modules/posix_spawnattr_setschedparam: Likewise.
21976         * modules/posix_spawnattr_setschedpolicy: Likewise.
21977         * modules/posix_spawnattr_setsigdefault: Likewise.
21978         * modules/posix_spawnattr_setsigmask: Likewise.
21979         * modules/posix_spawnp: Likewise.
21980
21981 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21982
21983         Add option to do-release-commit-and-tag to specify branch.
21984         * build-aux/do-release-commit-and-tag: Add --branch.
21985
21986 2011-05-03  Bruno Haible  <bruno@clisp.org>
21987
21988         Avoid unnecessary compilation units, through conditional dependencies.
21989         * modules/accept (Depends-on): Add conditions to the dependencies.
21990         * modules/acosl (Depends-on): Likewise.
21991         * modules/argz (Depends-on): Likewise.
21992         * modules/asinl (Depends-on): Likewise.
21993         * modules/atanl (Depends-on): Likewise.
21994         * modules/atoll (Depends-on): Likewise.
21995         * modules/bind (Depends-on): Likewise.
21996         * modules/btowc (Depends-on): Likewise.
21997         * modules/canonicalize-lgpl (Depends-on): Likewise.
21998         * modules/ceil (Depends-on): Likewise.
21999         * modules/ceilf (Depends-on): Likewise.
22000         * modules/ceill (Depends-on): Likewise.
22001         * modules/chdir-long (Depends-on): Likewise.
22002         * modules/chown (Depends-on): Likewise.
22003         * modules/close (Depends-on): Likewise.
22004         * modules/connect (Depends-on): Likewise.
22005         * modules/cosl (Depends-on): Likewise.
22006         * modules/dirfd (Depends-on): Likewise.
22007         * modules/dprintf (Depends-on): Likewise.
22008         * modules/dprintf-posix (Depends-on): Likewise.
22009         * modules/error (Depends-on): Likewise.
22010         * modules/euidaccess (Depends-on): Likewise.
22011         * modules/expl (Depends-on): Likewise.
22012         * modules/faccessat (Depends-on): Likewise.
22013         * modules/fchdir (Depends-on): Likewise.
22014         * modules/fclose (Depends-on): Likewise.
22015         * modules/fcntl (Depends-on): Likewise.
22016         * modules/fdopendir (Depends-on): Likewise.
22017         * modules/fflush (Depends-on): Likewise.
22018         * modules/floor (Depends-on): Likewise.
22019         * modules/floorf (Depends-on): Likewise.
22020         * modules/floorl (Depends-on): Likewise.
22021         * modules/fnmatch (Depends-on): Likewise.
22022         * modules/fopen (Depends-on): Likewise.
22023         * modules/fprintf-posix (Depends-on): Likewise.
22024         * modules/frexp (Depends-on): Likewise.
22025         * modules/frexp-nolibm (Depends-on): Likewise.
22026         * modules/frexpl (Depends-on): Likewise.
22027         * modules/frexpl-nolibm (Depends-on): Likewise.
22028         * modules/fseek (Depends-on): Likewise.
22029         * modules/fsusage (Depends-on): Likewise.
22030         * modules/ftell (Depends-on): Likewise.
22031         * modules/ftello (Depends-on): Likewise.
22032         * modules/futimens (Depends-on): Likewise.
22033         * modules/getcwd (Depends-on): Likewise.
22034         * modules/getcwd-lgpl (Depends-on): Likewise.
22035         * modules/getdelim (Depends-on): Likewise.
22036         * modules/getdomainname (Depends-on): Likewise.
22037         * modules/getgroups (Depends-on): Likewise.
22038         * modules/gethostname (Depends-on): Likewise.
22039         * modules/getline (Depends-on): Likewise.
22040         * modules/getlogin_r (Depends-on): Likewise.
22041         * modules/getopt-posix (Depends-on): Likewise.
22042         * modules/getpeername (Depends-on): Likewise.
22043         * modules/getsockname (Depends-on): Likewise.
22044         * modules/getsockopt (Depends-on): Likewise.
22045         * modules/getsubopt (Depends-on): Likewise.
22046         * modules/getusershell (Depends-on): Likewise.
22047         * modules/glob (Depends-on): Likewise.
22048         * modules/grantpt (Depends-on): Likewise.
22049         * modules/iconv_open (Depends-on): Likewise.
22050         * modules/iconv_open-utf (Depends-on): Likewise.
22051         * modules/inet_ntop (Depends-on): Likewise.
22052         * modules/inet_pton (Depends-on): Likewise.
22053         * modules/ioctl (Depends-on): Likewise.
22054         * modules/isapipe (Depends-on): Likewise.
22055         * modules/isfinite (Depends-on): Likewise.
22056         * modules/isinf (Depends-on): Likewise.
22057         * modules/lchown (Depends-on): Likewise.
22058         * modules/ldexpl (Depends-on): Likewise.
22059         * modules/link (Depends-on): Likewise.
22060         * modules/linkat (Depends-on): Likewise.
22061         * modules/listen (Depends-on): Likewise.
22062         * modules/logl (Depends-on): Likewise.
22063         * modules/lstat (Depends-on): Likewise.
22064         * modules/mbrlen (Depends-on): Likewise.
22065         * modules/mbrtowc (Depends-on): Likewise.
22066         * modules/mbsinit (Depends-on): Likewise.
22067         * modules/mbsnrtowcs (Depends-on): Likewise.
22068         * modules/mbsrtowcs (Depends-on): Likewise.
22069         * modules/mbtowc (Depends-on): Likewise.
22070         * modules/memcmp (Depends-on): Likewise.
22071         * modules/mkdir (Depends-on): Likewise.
22072         * modules/mkdtemp (Depends-on): Likewise.
22073         * modules/mkfifo (Depends-on): Likewise.
22074         * modules/mkfifoat (Depends-on): Likewise.
22075         * modules/mknod (Depends-on): Likewise.
22076         * modules/mkostemp (Depends-on): Likewise.
22077         * modules/mkostemps (Depends-on): Likewise.
22078         * modules/mkstemp (Depends-on): Likewise.
22079         * modules/mkstemps (Depends-on): Likewise.
22080         * modules/mktime (Depends-on): Likewise.
22081         * modules/nanosleep (Depends-on): Likewise.
22082         * modules/open (Depends-on): Likewise.
22083         * modules/openat (Depends-on): Likewise.
22084         * modules/perror (Depends-on): Likewise.
22085         * modules/poll (Depends-on): Likewise.
22086         * modules/popen (Depends-on): Likewise.
22087         * modules/posix_spawn (Depends-on): Likewise.
22088         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22089         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22090         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22091         * modules/posix_spawnp (Depends-on): Likewise.
22092         * modules/pread (Depends-on): Likewise.
22093         * modules/printf-posix (Depends-on): Likewise.
22094         * modules/ptsname (Depends-on): Likewise.
22095         * modules/putenv (Depends-on): Likewise.
22096         * modules/pwrite (Depends-on): Likewise.
22097         * modules/readline (Depends-on): Likewise.
22098         * modules/readlink (Depends-on): Likewise.
22099         * modules/readlinkat (Depends-on): Likewise.
22100         * modules/recv (Depends-on): Likewise.
22101         * modules/recvfrom (Depends-on): Likewise.
22102         * modules/regex (Depends-on): Likewise.
22103         * modules/remove (Depends-on): Likewise.
22104         * modules/rename (Depends-on): Likewise.
22105         * modules/renameat (Depends-on): Likewise.
22106         * modules/rmdir (Depends-on): Likewise.
22107         * modules/round (Depends-on): Likewise.
22108         * modules/roundf (Depends-on): Likewise.
22109         * modules/roundl (Depends-on): Likewise.
22110         * modules/rpmatch (Depends-on): Likewise.
22111         * modules/select (Depends-on): Likewise.
22112         * modules/send (Depends-on): Likewise.
22113         * modules/sendto (Depends-on): Likewise.
22114         * modules/setenv (Depends-on): Likewise.
22115         * modules/setlocale (Depends-on): Likewise.
22116         * modules/setsockopt (Depends-on): Likewise.
22117         * modules/shutdown (Depends-on): Likewise.
22118         * modules/sigaction (Depends-on): Likewise.
22119         * modules/signbit (Depends-on): Likewise.
22120         * modules/sigprocmask (Depends-on): Likewise.
22121         * modules/sinl (Depends-on): Likewise.
22122         * modules/sleep (Depends-on): Likewise.
22123         * modules/snprintf (Depends-on): Likewise.
22124         * modules/snprintf-posix (Depends-on): Likewise.
22125         * modules/socket (Depends-on): Likewise.
22126         * modules/sprintf-posix (Depends-on): Likewise.
22127         * modules/sqrtl (Depends-on): Likewise.
22128         * modules/stat (Depends-on): Likewise.
22129         * modules/strchrnul (Depends-on): Likewise.
22130         * modules/strdup-posix (Depends-on): Likewise.
22131         * modules/strerror (Depends-on): Likewise.
22132         * modules/strerror_r-posix (Depends-on): Likewise.
22133         * modules/strndup (Depends-on): Likewise.
22134         * modules/strnlen (Depends-on): Likewise.
22135         * modules/strptime (Depends-on): Likewise.
22136         * modules/strsep (Depends-on): Likewise.
22137         * modules/strsignal (Depends-on): Likewise.
22138         * modules/strstr-simple (Depends-on): Likewise.
22139         * modules/strtod (Depends-on): Likewise.
22140         * modules/strtoimax (Depends-on): Likewise.
22141         * modules/strtok_r (Depends-on): Likewise.
22142         * modules/strtoumax (Depends-on): Likewise.
22143         * modules/symlink (Depends-on): Likewise.
22144         * modules/symlinkat (Depends-on): Likewise.
22145         * modules/tanl (Depends-on): Likewise.
22146         * modules/tcgetsid (Depends-on): Likewise.
22147         * modules/tmpfile (Depends-on): Likewise.
22148         * modules/trunc (Depends-on): Likewise.
22149         * modules/truncf (Depends-on): Likewise.
22150         * modules/truncl (Depends-on): Likewise.
22151         * modules/uname (Depends-on): Likewise.
22152         * modules/unlink (Depends-on): Likewise.
22153         * modules/unlockpt (Depends-on): Likewise.
22154         * modules/unsetenv (Depends-on): Likewise.
22155         * modules/usleep (Depends-on): Likewise.
22156         * modules/utimensat (Depends-on): Likewise.
22157         * modules/vasprintf (Depends-on): Likewise.
22158         * modules/vdprintf (Depends-on): Likewise.
22159         * modules/vdprintf-posix (Depends-on): Likewise.
22160         * modules/vfprintf-posix (Depends-on): Likewise.
22161         * modules/vprintf-posix (Depends-on): Likewise.
22162         * modules/vsnprintf (Depends-on): Likewise.
22163         * modules/vsnprintf-posix (Depends-on): Likewise.
22164         * modules/vsprintf-posix (Depends-on): Likewise.
22165         * modules/wcrtomb (Depends-on): Likewise.
22166         * modules/wcscasecmp (Depends-on): Likewise.
22167         * modules/wcscspn (Depends-on): Likewise.
22168         * modules/wcsdup (Depends-on): Likewise.
22169         * modules/wcsncasecmp (Depends-on): Likewise.
22170         * modules/wcsnrtombs (Depends-on): Likewise.
22171         * modules/wcspbrk (Depends-on): Likewise.
22172         * modules/wcsrtombs (Depends-on): Likewise.
22173         * modules/wcsspn (Depends-on): Likewise.
22174         * modules/wcsstr (Depends-on): Likewise.
22175         * modules/wcstok (Depends-on): Likewise.
22176         * modules/wcswidth (Depends-on): Likewise.
22177         * modules/wctob (Depends-on): Likewise.
22178         * modules/wctomb (Depends-on): Likewise.
22179         * modules/wctype (Depends-on): Likewise.
22180         * modules/wcwidth (Depends-on): Likewise.
22181         * modules/write (Depends-on): Likewise.
22182
22183 2011-05-03  Bruno Haible  <bruno@clisp.org>
22184
22185         Support for conditional dependencies.
22186         * doc/gnulib.texi (Module description): Document the syntax of
22187         conditional dependencies.
22188         * gnulib-tool: New option --conditional-dependencies.
22189         (func_usage): Document it.
22190         (cond_dependencies): New variable.
22191         (func_get_automake_snippet_conditional,
22192         func_get_automake_snippet_unconditional): New functions, extracted from
22193         func_get_automake_snippet.
22194         (func_get_automake_snippet): Use them.
22195         (sed_first_32_chars): New variable.
22196         (func_module_shellfunc_name): New function.
22197         (func_module_shellvar_name): New function.
22198         (func_module_conditional_name): New function.
22199         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22200         func_cond_module_condition): New functions.
22201         (func_modules_transitive_closure): Add support for conditional
22202         dependencies.
22203         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22204         conditional automake snippet in an automake conditional.
22205         (func_emit_autoconf_snippets): Emit shell functions that contain the
22206         code for conditional modules.
22207         (func_import, func_create_testdir): Update specification.
22208
22209 2011-05-03  Eric Blake  <eblake@redhat.com>
22210
22211         test-getaddrinfo: report error information
22212         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22213
22214 2011-05-03  Jim Meyering  <meyering@redhat.com>
22215
22216         bootstrap: avoid build failure when $GZIP is set
22217         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22218         program name.  If defined at all, it is supposed to list gzip options.
22219         Reported by Alan Curry in http://debbugs.gnu.org/8609
22220
22221 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22222
22223         readme-release: new module with release instructions
22224         * modules/readme-release: New module.
22225         * top/README-release: New file, from coreutils, grep, diffutils.
22226         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22227
22228 2011-05-02  Eric Blake  <eblake@redhat.com>
22229
22230         fflush: also replace fclose when fixing fflush
22231         * modules/fflush (Depends-on): Add fclose.
22232         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22233         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22234         memstreams with no backing fd.
22235         * doc/posix-functions/fclose.texi (fclose): Document the use of
22236         fflush module to fix the bug.
22237         * tests/test-fclose.c (main): Relax test when fclose is used in
22238         isolation.
22239
22240         fclose: add some tests
22241         * modules/fclose-tests: New test module.
22242         * tests/test-fclose.c: New file.
22243         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22244
22245         fclose: reduced dependencies
22246         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22247         simpler lseek.
22248         * lib/fclose.c (rpl_fclose): Likewise.
22249         Reported by Simon Josefsson.
22250
22251         exit: drop remaining clients
22252         * modules/argmatch (Depends-on): Replace exit with stdlib.
22253         * modules/copy-file (Depends-on): Likewise.
22254         * modules/execute (Depends-on): Likewise.
22255         * modules/exitfail (Depends-on): Likewise.
22256         * modules/obstack (Depends-on): Likewise.
22257         * modules/pagealign_alloc (Depends-on): Likewise.
22258         * modules/pipe-filter-gi (Depends-on): Likewise.
22259         * modules/pipe-filter-ii (Depends-on): Likewise.
22260         * modules/savewd (Depends-on): Likewise.
22261         * modules/spawn-pipe (Depends-on): Likewise.
22262         * modules/wait-process (Depends-on): Likewise.
22263         * modules/xsetenv (Depends-on): Likewise.
22264         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22265         * modules/git-merge-changelog (Depends-on): Likewise.
22266         * modules/long-options (Depends-on): Likewise.
22267         * modules/pt_chown (Depends-on): Likewise.
22268         * modules/sysexits (Depends-on): Likewise.
22269
22270         freading: relax license from LGPLv3+ to LGPLv2+
22271         * modules/freading (License): Relax LGPL version.
22272
22273 2011-05-02  Bruno Haible  <bruno@clisp.org>
22274
22275         fchdir: Remove unused dependencies.
22276         * modules/fchdir (Depends-on): Remove include_next.
22277
22278 2011-05-02  Bruno Haible  <bruno@clisp.org>
22279
22280         gnulib-tool: Refactor.
22281         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22282         from func_emit_autoconf_snippets.
22283         (func_emit_autoconf_snippets): Use it.
22284
22285 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22286
22287         * NEWS: Document removal of 'exit'.
22288         * modules/exit: Remove file.
22289
22290 2011-05-01  Bruno Haible  <bruno@clisp.org>
22291
22292         Update DEPENDENCIES.
22293         * DEPENDENCIES (gettext): Recommend the newest release.
22294         Reported by Simon Josefsson.
22295
22296 2011-05-01  Bruno Haible  <bruno@clisp.org>
22297
22298         gnulib-tool: Reduce code duplication.
22299         * gnulib-tool (func_emit_autoconf_snippets): New function.
22300         (func_import, func_create_testdir): Use it.
22301
22302 2011-04-30  Eric Blake  <eblake@redhat.com>
22303
22304         fclose: don't fail on non-seekable input stream
22305         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22306         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22307         since fflush is allowed to fail in that case.
22308
22309 2011-04-30  Bruno Haible  <bruno@clisp.org>
22310
22311         dup3: cleanup
22312         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22313
22314 2011-04-30  Bruno Haible  <bruno@clisp.org>
22315
22316         netdb: Make it work in C++ mode.
22317         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22318         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22319         module.
22320         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22321         gl_MODULE_INDICATOR_FOR_TESTS.
22322         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22323         * modules/netdb-c++-tests: New file.
22324         * tests/test-netdb-c++.cc: New file.
22325
22326 2011-04-30  Bruno Haible  <bruno@clisp.org>
22327
22328         New modules 'vfscanf', 'vscanf'.
22329         * modules/vfscanf: New file.
22330         * modules/vscanf: New file.
22331         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22332         here.
22333         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22334         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22335
22336 2011-04-30  Bruno Haible  <bruno@clisp.org>
22337
22338         passfd: Add comments.
22339         * lib/passfd.c: Add comments about platforms.
22340
22341 2011-04-30  Bruno Haible  <bruno@clisp.org>
22342
22343         sys_uio: Make <sys/uio.h> self-contained.
22344         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22345         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22346
22347 2011-04-30  Bruno Haible  <bruno@clisp.org>
22348
22349         sys_socket: Ensure 'struct iovec' definition.
22350         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22351         <sys/socket.h>.
22352         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22353
22354 2011-04-30  Bruno Haible  <bruno@clisp.org>
22355
22356         sys_uio: Protect definition of 'struct iovec'.
22357         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22358         it as a C struct.
22359
22360 2011-04-30  Bruno Haible  <bruno@clisp.org>
22361
22362         manywarnings: fix indentation
22363         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22364
22365 2011-04-30  Pádraig Brady <P@draigBrady.com>
22366
22367         manywarnings: add -Wno-missing-field-initializers if needed.
22368         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22369         option if it's needed to allow initialization with { 0, }
22370
22371 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22372
22373         announce-gen: cosmetic improvement
22374         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22375
22376 2011-04-29  Jim Meyering  <meyering@redhat.com>
22377
22378         vc-list-files: indent with spaces, not TABs
22379         * build-aux/vc-list-files: Convert leading TABs to spaces,
22380         to match the style of most other files in gnulib.
22381
22382         announce-gen: indent with spaces, not TABs
22383         * build-aux/announce-gen: Convert all TABs to spaces, to match
22384         the style of most other files in gnulib.
22385
22386 2011-04-29  Eric Blake  <eblake@redhat.com>
22387
22388         quotearg: avoid uninitialized variable use
22389         * lib/quotearg.c (quoting_options_from_style): Initialize
22390         remaining fields, and ensure that custom styles are only used via
22391         quoting_options rather than quoting_style.
22392
22393 2011-04-29  Jim Meyering  <meyering@redhat.com>
22394
22395         maint.mk: remove unused VC-tag variable
22396         * top/maint.mk (VC-tag): Remove unused variable.
22397
22398 2011-04-29  Bruno Haible  <bruno@clisp.org>
22399
22400         netdb: fix gai_strerror replacements
22401         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22402         * modules/netdb: Substitute it.
22403
22404 2011-04-29  Jim Meyering  <meyering@redhat.com>
22405
22406         test-getcwd.c: avoid new set-but-not-used warning
22407         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22408         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22409         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22410         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22411
22412         test-hash.c: avoid a new shadowing warning
22413         * tests/test-hash.c (main): Don't shadow "dup".
22414
22415 2011-04-28  Eric Blake  <eblake@redhat.com>
22416
22417         getaddrinfo: fix gai_strerror signature
22418         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22419         and work around mingw with UNICODE defined.
22420         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22421         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22422         * modules/netdb (Makefile.am): Substitute it.
22423         * lib/netdb.in.h (gai_strerror): Declare replacement.
22424         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22425         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22426         the fix.
22427
22428         getsockopt: avoid compiler warning
22429         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22430         Reported by Matthias Bolte.
22431
22432         tests: drop unused link dependency
22433         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22434         * modules/dirent-safer-tests (Makefile.am): Likewise.
22435         * modules/fdopendir-tests (Makefile.am): Likewise.
22436         * modules/mkfifoat-tests (Makefile.am): Likewise.
22437         * modules/openat-safer-tests (Makefile.am): Likewise.
22438         * modules/openat-tests (Makefile.am): Likewise.
22439         * modules/readlinkat-tests (Makefile.am): Likewise.
22440         * modules/symlinkat-tests (Makefile.am): Likewise.
22441         * modules/linkat-tests (Makefile.am): Likewise.
22442         (Depends-on): Switch to filenamecat-lgpl.
22443         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22444         LIBINTL.
22445         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22446         * tests/test-linkat.c (main): Don't require xalloc.
22447
22448         hash, mgetgroups: drop xalloc dependency
22449         * lib/hash.c (includes): Adjust includes.
22450         * lib/mgetgroups.c (includes): Likewise.
22451         (xgetgroups): Move...
22452         * lib/xgetgroups.c: ...to new file.
22453         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22454         * modules/xgetgroups: New file, split from...
22455         * modules/mgetgroups: ...here.
22456         (Depends-on): Add xalloc-oversized.
22457         * modules/hash (Depends-on): Likewise.
22458         * modules/hash-tests (Depends-on): Drop xalloc.
22459         (test_hash_LDADD): Drop unused library.
22460         * tests/test-hash.c (main): Break xalloc dependency.
22461         (includes): Drop unused include.
22462
22463         xalloc-oversized: new module
22464         * modules/xalloc-oversized: New module.
22465         * modules/xalloc (Depends-on): Add it.
22466         * lib/xalloc.h (xalloc_oversized): Move...
22467         * lib/xalloc-oversized.h: ...into new file.
22468
22469         utimecmp: drop dependency on xmalloc
22470         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22471         due to memory pressure.
22472         * modules/utimecmp (Depends-on): Drop xalloc.
22473
22474 2011-04-27  Eric Blake  <eblake@redhat.com>
22475
22476         getcwd: fix mingw bugs
22477         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22478         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22479         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22480
22481 2011-04-27  Bruno Haible  <bruno@clisp.org>
22482
22483         mkstemps: Ensure declaration on MacOS X 10.5.
22484         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22485         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22486         MacOS X.
22487
22488 2011-04-27  Bruno Haible  <bruno@clisp.org>
22489
22490         mkstemp: More documentation.
22491         * doc/posix-functions/mkstemp.texi: Document header file problem on
22492         MacOS X.
22493
22494 2011-04-27  Bruno Haible  <bruno@clisp.org>
22495
22496         mkstemp: Tweak configure message when cross-compiling.
22497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22498         result as a guess.
22499
22500 2011-04-27  Bruno Haible  <bruno@clisp.org>
22501
22502         clean-temp: Clarify what it does.
22503         * lib/clean-temp.h: Add more comments.
22504         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22505         module.
22506         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22507         * doc/glibc-functions/mkstemps.texi: Likewise.
22508         * doc/glibc-functions/mkostemps.texi: Likewise.
22509
22510 2011-04-27  Eric Blake  <eblake@redhat.com>
22511
22512         fchdir: avoid extra chdir and fix test
22513         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22514         getcwd-lgpl.
22515         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22516         have to be canonical.
22517         (canonicalize_file_name): Drop unused macro.
22518         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22519
22520         filenamecat-lgpl: fix licence
22521         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22522         when it was first created.
22523
22524         linkat, renameat: add missing dependency
22525         * modules/linkat (Depends-on): Require getcwd-lgpl.
22526         * modules/renameat (Depends-on): Likewise.
22527
22528         tests: reduce dependencies
22529         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22530         * tests/test-renameat.c (main): Likewise.
22531         * modules/linkat-tests (Depends-on): Relax dependency.
22532         * modules/renameat-tests (Depends-on): Likewise.
22533         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22534         dependency explicit.
22535
22536         save-cwd: reduce default dependency
22537         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22538         * lib/save-cwd.c: Update comments.
22539         * NEWS: Document the semantic change.
22540
22541         getcwd: enhance tests
22542         * tests/test-getcwd-lgpl.c: New file, taken from...
22543         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22544         repeat long path stress tests from m4 probe.
22545         * modules/getcwd-lgpl-tests: New module.
22546         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22547         * m4/getcwd-abort-bug.m4: Update comment.
22548         * m4/getcwd-path-max.m4: Likewise.
22549
22550         getcwd-lgpl: new module
22551         * modules/getcwd-lgpl: New module.
22552         * lib/getcwd-lgpl.c: New file.
22553         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22554         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22555         * modules/getcwd (configure.ac): Set C witness.
22556         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22557
22558         getcwd: tweak comments
22559         * m4/getcwd-abort-bug.m4: Fix comments.
22560         * m4/getcwd-path-max.m4: Likewise.
22561         * m4/getcwd.m4: Likewise.
22562
22563 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22564         and Eric Blake  <eblake@redhat.com>
22565
22566         mkstemp: replace if system version uses wrong permissions
22567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22568         read/write mode bits set in file created by mkstemp.
22569         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22570
22571 2011-04-27  Eric Blake  <eblake@redhat.com>
22572
22573         passfd: avoid compiler warning
22574         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22575         Reported by Laine Stump.
22576
22577 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22578
22579         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22580         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22581
22582 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22583         and Eric Blake  <eblake@redhat.com>
22584
22585         mkstemp: mention clean-temp module
22586         * lib/mkstemp.c: Add comment.
22587         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22588
22589 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22590
22591         inttypes: also provide default values for 32-bit tests
22592         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22593         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22594
22595 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22596
22597         strtoumax: remove dependency on strtoimax
22598         This is like the strtoull change of yesterday.
22599         * modules/strtoumax (Files): Add lib/strtoimax.c.
22600         (Depends-on): Remove strtoimax and add verify.
22601
22602         inttypes-incomplete: new module
22603         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22604         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22605         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22606         of gl_INTTYPES_H.
22607         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22608         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22609         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22610         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22611         * modules/strtoumax, modules/xstrtol (Depends-on):
22612         Depend on inttypes-incomplete, not inttypes.
22613         * modules/inttypes-incomplete: New module, containing the contents
22614         of the old modules/inttypes module, except that the Files: section
22615         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22616         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22617         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22618         (Depends-on): Depend only on inttypes-incomplete.
22619         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22620
22621         inttypes: omit now-redundant strtoimax and strtoumax work
22622         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22623         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22624
22625         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22626         This supports apps that need pointers to strtoimax and strtoumax,
22627         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22628         nonexistent functions.  See
22629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22630         et seq.
22631         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22632         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22633         a macro.
22634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22635
22636 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22637
22638         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22639
22640 2011-04-25  Bruno Haible  <bruno@clisp.org>
22641
22642         strtol, strtoul: Mark modules as obsolete.
22643         * modules/strtol (Status, Notice): New sections.
22644         * modules/strtoul (Status, Notice): New sections.
22645
22646 2011-04-25  Bruno Haible  <bruno@clisp.org>
22647
22648         strtod: Remove check for strtod, unless supporting old platforms.
22649         * modules/strtod-obsolete: New file.
22650         * m4/strtod-obsolete.m4: New file.
22651         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22652         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22653         * modules/strtod (Depends-on): Add strtod-obsolete.
22654         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22655
22656 2011-04-25  Bruno Haible  <bruno@clisp.org>
22657
22658         strcase: Make module obsolete.
22659         * modules/strcase (Status, Notice): New sections.
22660
22661 2011-04-25  Bruno Haible  <bruno@clisp.org>
22662
22663         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22664         * modules/dup2-obsolete: New file.
22665         * m4/dup2-obsolete.m4: New file.
22666         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22667         gl_FUNC_DUP2_OBSOLETE is not also defined.
22668         * modules/dup2 (Depends-on): Add dup2-obsolete.
22669         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22670
22671 2011-04-25  Bruno Haible  <bruno@clisp.org>
22672
22673         strnlen: Avoid memchr related link error on old obsolete platforms.
22674         * modules/memchr-obsolete: New file.
22675         * m4/memchr-obsolete.m4: New file.
22676         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22677         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22678         * modules/memchr (Depends-on): Add memchr-obsolete.
22679         * modules/strnlen (Depends-on): Likewise.
22680         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22681
22682 2011-04-25  Jim Meyering  <meyering@redhat.com>
22683
22684         maint.mk: makefile_at_at_check extend and clean up
22685         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22686         in addition to */Makefile.am.
22687         Exempt legitimate uses of @VAR@ notation, e.g.,
22688         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22689         Remove obsolete coreutils-specific comment.
22690         Prompted by discussion here:
22691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22692
22693 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22694
22695         strtoul: remove dependency on strtol
22696         This is so that 'configure' need not check for strtol merely because
22697         the application needs strtoul.
22698         * modules/strtoul (Files): Add lib/strtol.c.
22699         (Depends-on): Remove strtol.
22700
22701         strtoull: remove dependency on strtoul
22702         This is like the strtoll change.
22703         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22704         (Depends-on): Remove strtoul.
22705
22706         strtoll: remove dependency on strtol
22707         This is so that 'configure' need not check for strtol merely because
22708         the application needs strtoll.
22709         * modules/strtoll (Files): Add lib/strtol.c.
22710         (Depends-on): Remove strtol.
22711
22712 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         inttypes: Move some configure check to module 'imaxdiv'.
22715         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22716         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22717         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22718
22719 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         inttypes: Move some configure check to module 'imaxabs'.
22722         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22723         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22724         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22725
22726 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22727
22728         inttypes: Remove configure tests that are not needed since 2009-12-31.
22729         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22730         gl_cv_header_working_inttypes_h.
22731
22732 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         * modules/strnlen (Depends-on): Remove memchr.
22735         The strnlen implementation doesn't need the memchr module's fixes; see
22736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22737
22738         strtol: remove dependency on wchar
22739         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22740         * modules/strtol (Depends-on): Remove wchar.
22741
22742 2011-04-21  Eric Blake  <eblake@redhat.com>
22743
22744         passfd: fix test regression on Linux
22745         * modules/passfd-tests (configure.ac): Correct socketpair check.
22746
22747         passfd: speed up configure and drop unused code
22748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22749         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22750         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22751         Instead of probing at configure for unix_scm_rights_bsd44_way,
22752         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22753         check to a struct member probe.
22754         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22755         (sendfd, recvfd): Update preprocessor checks.
22756         * modules/passfd (Files): Reflect rename, and drop unused file.
22757         (Depends-on): Drop unused dependency.
22758
22759         passfd: allow compilation on mingw
22760         * modules/sys_socket (Depends-on): Add sys_uio.
22761         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22762         iovec and a minimal struct msghdr.
22763         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22764         * tests/test-sys_socket.c (main): Enhance test.
22765         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22766         guaranteed to provide what we need.
22767         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22768         * modules/passfd-tests (Depends-on): Add sys_wait.
22769         * tests/test-passfd.c (main): Skip test on mingw, for now.
22770         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22771         partial 'struct msghdr' implementation.
22772
22773         sys_uio: new module
22774         * modules/sys_uio: New module.
22775         * modules/sys_uio-tests: Likewise.
22776         * lib/sys_uio.in.h: New file.
22777         * m4/sys_uio_h.m4: Likewise.
22778         * tests/test-sys_uio.c: Likewise.
22779         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22780         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22781
22782 2011-04-20  Jim Meyering  <meyering@redhat.com>
22783
22784         useless-if-before-free: avoid false-positive
22785         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22786         disjunct so that it too requires a terminating ";".  Without that,
22787         this script would identify as useless one statement from gcc that
22788         was not:
22789           if (aligned_ptr)
22790             free (((void **) aligned_ptr) [-1]);
22791
22792 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22793
22794         doc: update users.txt.
22795         * users.txt: Add barcode.
22796
22797 2011-04-19  Bruno Haible  <bruno@clisp.org>
22798
22799         ioctl: Remove link dependency on native Windows.
22800         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22801         (gl_close_fn, gl_ioctl_fn): New types.
22802         (struct fd_hook): Renamed from struct close_hook. Change type of
22803         private_close_fn field. Add private_ioctl_fn field.
22804         (close_hook_fn): Add parameter for primary close method.
22805         (execute_close_hooks, execute_all_close_hooks): Likewise.
22806         (ioctl_hook_fn): New type.
22807         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22808         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22809         argument.
22810         (unregister_fd_hook): Renamed from unregister_close_hook.
22811         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22812         Don't include <unistd.h>.
22813         (close): Remove undef.
22814         (anchor): Update.
22815         (execute_close_hooks): Add argument for primary close method.
22816         (execute_all_close_hooks): Likewise.
22817         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22818         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22819         argument. Allow each argument to be NULL.
22820         (unregister_fd_hook): Renamed from unregister_close_hook.
22821         * lib/close.c (rpl_close): Pass 'close' function pointer to
22822         execute_all_close_hooks.
22823         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22824         (primary_ioctl): New function.
22825         (ioctl): Don't call ioctlsocket here. Instead, call
22826         execute_all_ioctl_hooks.
22827         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22828         close method.
22829         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22830         (fd_sockets_hook): Renamed from close_sockets_hook.
22831         (gl_sockets_startup, gl_sockets_cleanup): Update.
22832         * modules/fd-hook: Renamed from modules/close-hook. Update.
22833         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22834         * modules/sockets (Depends-on): Likewise.
22835         * modules/ioctl (Depends-on): Add fd-hook.
22836         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22837         GNULIB_SOCKET.
22838
22839 2011-04-19  Bruno Haible  <bruno@clisp.org>
22840
22841         Move the support of O_NONBLOCK in open() to the 'open' module.
22842         * modules/nonblocking (Depends-on): Remove 'open'.
22843         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22844         gl_cv_have_open_O_NONBLOCK.
22845         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22846         O_NONBLOCK support.
22847         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22848
22849 2011-04-17  Bruno Haible  <bruno@clisp.org>
22850
22851         pipe2: Simplify code.
22852         * lib/pipe2.c (pipe2): Reduce code duplication.
22853
22854 2011-04-17  Bruno Haible  <bruno@clisp.org>
22855
22856         nonblocking: Add comment.
22857         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22858
22859 2011-04-17  Bruno Haible  <bruno@clisp.org>
22860
22861         nonblocking: Add tests for sockets.
22862         * tests/test-nonblocking-socket.sh: New file.
22863         * tests/test-nonblocking-socket-main.c: New file.
22864         * tests/test-nonblocking-socket-child.c: New file.
22865         * tests/test-nonblocking-socket.h: New file.
22866         * tests/socket-server.h: New file.
22867         * tests/socket-client.h: New file.
22868         * modules/nonblocking-socket-tests: New file.
22869         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22870
22871 2011-04-17  Bruno Haible  <bruno@clisp.org>
22872
22873         nonblocking: Add tests for pipes.
22874         * tests/test-nonblocking-pipe.sh: New file.
22875         * tests/test-nonblocking-pipe-main.c: New file.
22876         * tests/test-nonblocking-pipe-child.c: New file.
22877         * tests/test-nonblocking-pipe.h: New file.
22878         * tests/test-nonblocking-writer.h: New file.
22879         * tests/test-nonblocking-reader.h: New file.
22880         * tests/test-nonblocking-misc.h: New file.
22881         * modules/nonblocking-pipe-tests: New file.
22882         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22883
22884 2011-04-16  Bruno Haible  <bruno@clisp.org>
22885
22886         gettext: Clarify the needed programmer actions.
22887         * modules/gettext (Notice): New field.
22888         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22889
22890 2011-04-16  Bruno Haible  <bruno@clisp.org>
22891
22892         strchrnul: Tweak last commit.
22893         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22894         bug.
22895         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22896         as in _GL_FUNCDECL_SYS.
22897         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22898         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22899
22900 2011-04-15  Eric Blake  <eblake@redhat.com>
22901
22902         strchrnul: work around cygwin bug
22903         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22904         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22906         * modules/string (Makefile.am): Substitute it.
22907         * lib/string.in.h (strchrnul): Use it.
22908
22909 2011-04-15  Bruno Haible  <bruno@clisp.org>
22910
22911         Don't require lib/stdio-write.c when only module 'stdio' is used.
22912         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22913         invocation.
22914         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22915
22916 2011-04-14  Bruno Haible  <bruno@clisp.org>
22917
22918         Support non-blocking pipe I/O in read() on native Windows.
22919         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22920         (read): New declaration.
22921         * lib/read.c: New file.
22922         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22923         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22924         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22925         vscanf): New declarations.
22926         * lib/stdio-read.c: New file.
22927         * m4/read.m4: New file.
22928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22929         REPLACE_READ.
22930         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22931         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22932         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22933         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22934         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22935         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22936         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22937         * modules/read: New file.
22938         * modules/nonblocking (Files): Add lib/stdio-read.c.
22939         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22940         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22941         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22942         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22943         * modules/pread (Depends-on): Add read.
22944         * modules/safe-read (Depends-on): Likewise.
22945         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22946         gets, scanf, vfscanf, vscanf): Verify signatures.
22947         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22948         problem with non-blocking pipes.
22949         * doc/posix-functions/fgetc.texi: Likewise.
22950         * doc/posix-functions/fgets.texi: Likewise.
22951         * doc/posix-functions/fread.texi: Likewise.
22952         * doc/posix-functions/fscanf.texi: Likewise.
22953         * doc/posix-functions/getc.texi: Likewise.
22954         * doc/posix-functions/getchar.texi: Likewise.
22955         * doc/posix-functions/gets.texi: Likewise.
22956         * doc/posix-functions/scanf.texi: Likewise.
22957         * doc/posix-functions/vfscanf.texi: Likewise.
22958         * doc/posix-functions/vscanf.texi: Likewise.
22959
22960 2011-04-14  Bruno Haible  <bruno@clisp.org>
22961
22962         Support non-blocking pipe I/O in write() on native Windows.
22963         * lib/write.c (rpl_write): Split a write request that failed merely
22964         because the byte count was larger than the pipe buffer's size.
22965         * doc/posix-functions/write.texi: Mention the problem with large byte
22966         counts.
22967
22968 2011-04-14  Bruno Haible  <bruno@clisp.org>
22969
22970         wchar: Ensure that wchar_t gets defined on uClibc.
22971         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22972         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22973
22974 2011-04-13  Bruno Haible  <bruno@clisp.org>
22975
22976         safe-write, full-read: Avoid unnecessary compilation units.
22977         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22978         (Depends-on): Remove safe-read. Add ssize_t.
22979         * modules/full-read (Files): Add lib/full-write.c.
22980         (Depends-on): Add full-write.
22981
22982 2011-04-13  Bruno Haible  <bruno@clisp.org>
22983
22984         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22985         * modules/pwrite (Depends-on): Add 'write'.
22986
22987 2011-04-13  Bruno Haible  <bruno@clisp.org>
22988
22989         Support non-blocking pipe I/O in write() on native Windows.
22990         * lib/unistd.in.h (write): Enable replacement also if
22991         GNULIB_UNISTD_H_NONBLOCKING is 1.
22992         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22993         (rpl_write): When failing to write on a non-blocking pipe, change
22994         errno from ENOSPC to EAGAIN.
22995         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22996         putchar, puts, vfprintf, vprintf): Enable replacement also if
22997         GNULIB_STDIO_H_NONBLOCKING is 1.
22998         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22999         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23000         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23001         CALL_WITH_SIGPIPE_EMULATION.
23002         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23003         * m4/nonblocking.m4: New file.
23004         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23005         for non-blocking I/O support.
23006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23007         GNULIB_UNISTD_H_NONBLOCKING.
23008         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23009         required for non-blocking I/O support.
23010         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23011         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23012         lib/stdio-write.c, m4/asm-underscore.m4.
23013         (Depends-on): Add stdio, unistd.
23014         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23015         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23016         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23017         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23018         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23019         problem with non-blocking pipes.
23020         * doc/posix-functions/fputc.texi: Likewise.
23021         * doc/posix-functions/fputs.texi: Likewise.
23022         * doc/posix-functions/fwrite.texi: Likewise.
23023         * doc/posix-functions/printf.texi: Likewise.
23024         * doc/posix-functions/putc.texi: Likewise.
23025         * doc/posix-functions/putchar.texi: Likewise.
23026         * doc/posix-functions/puts.texi: Likewise.
23027         * doc/posix-functions/vfprintf.texi: Likewise.
23028         * doc/posix-functions/vprintf.texi: Likewise.
23029         * doc/posix-functions/write.texi: Likewise.
23030
23031 2011-04-10  Jim Meyering  <meyering@redhat.com>
23032
23033         maint.mk: prohibit doubled words
23034         Detect them also when they're separated by a newline.
23035         There are 3 ways to customize it:
23036           - disable the test on a per file basis, as usual with rules using
23037             $(VC_LIST_EXCEPT)
23038           - replace the default doubled-word-selecting regexp (affects all files)
23039           - ignore a particular file-vs-doubled-word match
23040         I nearly used that last one to ignore the "is is" match in
23041         coreutils' NEWS file, since the text was "ls -is is ..."
23042         To do that, I would have added this line to cfg.mk:
23043           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23044         but it would have ignored any "is is" match in NEWS.
23045         Low probability, but still...
23046         Instead, I changed the text, slightly:
23047           -  ls -is is now consistent with ls -lis in ignoring values returned
23048           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23049         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23050         (prohibit_doubled_word_): Define.
23051         (sc_prohibit_doubled_word): New rule.
23052         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23053
23054 2011-04-10  Jim Meyering  <meyering@redhat.com>
23055
23056         maint: fix doubled-word typo in comment
23057         * m4/gethostname.m4: s/is is/it is/
23058         * m4/getdomainname.m4: Likewise.
23059
23060 2011-04-10  Jim Meyering  <meyering@redhat.com>
23061
23062         maint: remove doubled word: s/it it/it/
23063         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23064
23065 2011-04-10  Jim Meyering  <meyering@redhat.com>
23066
23067         maint.mk: remove useless semicolon and backslash
23068         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23069         semicolon and backslash.
23070
23071 2011-04-10  Bruno Haible  <bruno@clisp.org>
23072
23073         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23074         * modules/stdint-tests (Depends-on): Add wchar.
23075
23076 2011-04-10  Jim Meyering  <meyering@redhat.com>
23077
23078         maint: remove doubled words in comments, e.g., s/a a/a/
23079         * lib/strptime.c (day_of_the_week): s/the the/the/
23080         * tests/test-chown.h (test_chown): s/a a/a/
23081
23082         test-chown.h: correct a cast
23083         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23084         when the destination is a stat.st_gid.
23085
23086 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23087
23088         getaddrinfo: Fix test for sa_len member.
23089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23090         include <sys/types.h> before <sys/socket.h>.
23091
23092 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23093
23094         maint: change "can not" to "cannot"
23095         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23096         boundaries.
23097
23098 2011-04-09  Jim Meyering  <meyering@redhat.com>
23099
23100         maint: change "a a" to "a"
23101         * tests/test-lchown.h (test_lchown): s/a a/a/
23102
23103         maint.mk: prohibit \<the the\>
23104         * top/maint.mk (sc_prohibit_the_the): New rule.
23105
23106         maint: fix "the the" in comment
23107         * lib/count-one-bits.h: s/the the/the/
23108
23109         maint: change "can not" to "cannot"
23110         But do not change the occurrences in maintain.texi or in
23111         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23112         * doc/gnulib-tool.texi: s/can not/cannot/
23113         * doc/posix-functions/accept.texi (accept): Likewise.
23114         * doc/posix-functions/socket.texi (socket): Likewise.
23115         * lib/mbrtowc.c: Likewise.
23116
23117         maint.mk: prohibit use of "can not"
23118         * top/maint.mk (sc_prohibit_can_not): New rule.
23119         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23120
23121 2011-04-09  Bruno Haible  <bruno@clisp.org>
23122
23123         careadlinkat: Guard against misuse of careadlinkatcwd.
23124         * lib/careadlinkat.c: Include <stdlib.h>.
23125         (careadlinkatcwd): Check that the fd argument is as expected.
23126
23127 2011-04-09  Bruno Haible  <bruno@clisp.org>
23128
23129         careadlinkat: Use common coding style.
23130         * lib/careadlinkat.c: Move gnulib includes after system includes.
23131
23132 2011-04-09  Bruno Haible  <bruno@clisp.org>
23133
23134         careadlinkat: Clarify specification.
23135         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23136         (careadlinkatcwd): Add comment.
23137         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23138
23139 2011-04-09  Bruno Haible  <bruno@clisp.org>
23140
23141         areadlinkat: Avoid link error on many platforms.
23142         * modules/areadlinkat (Depends-on): Add areadlink.
23143
23144 2011-04-09  Bruno Haible  <bruno@clisp.org>
23145
23146         allocator, careadlinkat: Fix double-inclusion guard.
23147         * lib/allocator.h: Fix double-inclusion guard.
23148         * lib/careadlinkat.h: Likewise.
23149
23150 2011-04-09  Bruno Haible  <bruno@clisp.org>
23151
23152         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23153         * lib/relocwrapper.c: Update dependencies hierarchy.
23154         * build-aux/install-reloc: Update list of files to be compiled.
23155         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23156         lib/allocator.[hc].
23157
23158 2011-04-08  Eric Blake  <eblake@redhat.com>
23159
23160         strftime: silence gnulib-tool warning
23161         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23162
23163 2011-04-08  Bruno Haible  <bruno@clisp.org>
23164
23165         verify: Fix syntax error with GCC 4.6 in C++ mode.
23166         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23167         (HAVE_STATIC_ASSERT): New macro.
23168         (verify_true, verify): Use 'static_assert' if it is supported and
23169         '_Static_assert' is not supported.
23170
23171 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23172
23173         allocator: New module.
23174         * modules/allocator, lib/allocator.c: New files.
23175         * lib/allocator.h (stdlib_allocator): New decl.
23176         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23177         Remove.  Do not include <stdlib.h>.
23178         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23179         * modules/careadlinkat (Files): Remove lib/allocator.h.
23180         (Depends-on): Add allocator.
23181
23182         stdlib: let modules use system malloc, realloc
23183         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23184         if !_GL_USE_STDLIB_ALLOC.
23185         (malloc, realloc): Limit this change to a smaller scope.
23186
23187         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23188         (malloc, realloc): Don't #undef; no longer needed.
23189         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23190         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23191         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23192         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23193         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23194         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23195         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23196         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23197
23198         careadlinkat: rename members to avoid problem
23199         * lib/allocator.h (struct allocator): Rename members from
23200         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23201         and realloc are #define'd.  Reported by Eric Blake in
23202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23203         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23204
23205 2011-04-08  Eric Blake  <eblake@redhat.com>
23206
23207         nonblocking: reduce dependency
23208         * tests/test-nonblocking.c: Only test sockets when in use.
23209         * modules/nonblocking-tests (Depends-on): Drop socket.
23210         (Makefile.am): Link even if sockets are not present.
23211         * modules/pipe2-tests (Makefile.am): Likewise.
23212         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23213
23214         pipe2: fix O_NONBLOCK support on mingw
23215         * modules/pipe2 (Depends-on): Add nonblocking.
23216         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23217         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23218         * tests/test-nonblocking.c (main): Likewise.
23219         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23220
23221         fcntl-h: fix O_ACCMODE on cygwin
23222         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23223         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23224
23225         pipe-filter: drop O_NONBLOCK workarounds
23226         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23227         * modules/pipe-filter-ii (Depends-on): Likewise.
23228         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23229
23230         nonblocking: provide O_NONBLOCK for mingw
23231         * modules/nonblocking (Depends-on): Add open.
23232         (configure.ac): Set new witness macro.
23233         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23234         * modules/fcntl-h (Makefile.am): Substitute it.
23235         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23236         nonblocking module is in use.
23237         * lib/nonblocking.c: Adjust portability test.
23238         * lib/open.c (open): Don't let native open see gnulib flag.
23239         * tests/test-fcntl-h.c (main): Enhance test.
23240         * tests/test-open.h (test_open): Likewise.
23241         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23242
23243         careadlinkat: fix compilation error on mingw
23244         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23245         within struct allocator.
23246
23247 2011-04-06  Eric Blake  <eblake@redhat.com>
23248
23249         binary-io: relicense under LGPLv2+
23250         * modules/binary-io (License): Relax to LGPLv2+.
23251         Requested for libvirt, and required by pipe2.
23252
23253 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23254
23255         verify: use _Static_assert if available
23256         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23257         (verify_true, verify): Use it if available.  This generates better
23258         diagnostics with GCC 4.6.0 and later.
23259
23260 2011-04-05  Bruno Haible  <bruno@clisp.org>
23261
23262         Remove leftover generated .h files after config.status changed.
23263
23264         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23265         GL_GENERATE_ALLOCA_H.
23266         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23267         GL_GENERATE_ALLOCA_H evaluates to false.
23268
23269         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23270         GL_GENERATE_ARGZ_H.
23271         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23272         evaluates to false.
23273
23274         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23275         GL_GENERATE_BYTESWAP_H.
23276         * modules/byteswap (Makefile.am): Remove byteswap.h if
23277         GL_GENERATE_BYTESWAP_H evaluates to false.
23278
23279         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23280         GL_GENERATE_ERRNO_H.
23281         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23282         evaluates to false.
23283
23284         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23285         GL_GENERATE_FLOAT_H.
23286         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23287         evaluates to false.
23288
23289         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23290         GL_GENERATE_FNMATCH_H.
23291         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23292         GL_GENERATE_FNMATCH_H evaluates to false.
23293
23294         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23295         GL_GENERATE_GLOB_H.
23296         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23297         evaluates to false.
23298
23299         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23300         automake conditional GL_GENERATE_ICONV_H.
23301         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23302         evaluates to false.
23303
23304         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23305         GL_GENERATE_NETINET_IN_H.
23306         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23307         GL_GENERATE_NETINET_IN_H evaluates to false.
23308
23309         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23310         conditional GL_GENERATE_PTHREAD_H.
23311         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23312         * modules/pthread (Makefile.am): Remove pthread.h if
23313         GL_GENERATE_PTHREAD_H evaluates to false.
23314
23315         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23316         GL_GENERATE_SCHED_H.
23317         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23318         evaluates to false.
23319
23320         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23321         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23322         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23323         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23324
23325         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23326         GL_GENERATE_STDARG_H.
23327         * modules/stdarg (Makefile.am): Remove stdarg.h if
23328         GL_GENERATE_STDARG_H evaluates to false.
23329
23330         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23331         GL_GENERATE_STDBOOL_H.
23332         * modules/stdbool (Makefile.am): Remove stdbool.h if
23333         GL_GENERATE_STDBOOL_H evaluates to false.
23334
23335         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23336         conditional GL_GENERATE_STDDEF_H.
23337         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23338         * modules/stddef (Makefile.am): Remove stddef.h if
23339         GL_GENERATE_STDDEF_H evaluates to false.
23340
23341         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23342         GL_GENERATE_STDINT_H.
23343         * modules/stdint (Makefile.am): Remove stdint.h if
23344         GL_GENERATE_STDINT_H evaluates to false.
23345
23346         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23347         GL_GENERATE_SYSEXITS_H.
23348         * modules/sysexits (Makefile.am): Remove sysexits.h if
23349         GL_GENERATE_SYSEXITS_H evaluates to false.
23350
23351         Reported by Karl Berry and Ralf Wildenhues.
23352
23353 2011-04-05  Bruno Haible  <bruno@clisp.org>
23354
23355         Ensure to rebuild generated .h files when config.status has changed.
23356         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23357         config.status.
23358         * modules/ctype (Makefile.am): Likewise.
23359         * modules/dirent (Makefile.am): Likewise.
23360         * modules/errno (Makefile.am): Likewise.
23361         * modules/fcntl-h (Makefile.am): Likewise.
23362         * modules/float (Makefile.am): Likewise.
23363         * modules/getopt-posix (Makefile.am): Likewise.
23364         * modules/glob (Makefile.am): Likewise.
23365         * modules/iconv-h (Makefile.am): Likewise.
23366         * modules/inttypes (Makefile.am): Likewise.
23367         * modules/langinfo (Makefile.am): Likewise.
23368         * modules/locale (Makefile.am): Likewise.
23369         * modules/math (Makefile.am): Likewise.
23370         * modules/netdb (Makefile.am): Likewise.
23371         * modules/netinet_in (Makefile.am): Likewise.
23372         * modules/poll-h (Makefile.am): Likewise.
23373         * modules/pthread (Makefile.am): Likewise.
23374         * modules/pty (Makefile.am): Likewise.
23375         * modules/sched (Makefile.am): Likewise.
23376         * modules/search (Makefile.am): Likewise.
23377         * modules/selinux-h (Makefile.am): Likewise.
23378         * modules/signal (Makefile.am): Likewise.
23379         * modules/spawn (Makefile.am): Likewise.
23380         * modules/stdarg (Makefile.am): Likewise.
23381         * modules/stdbool (Makefile.am): Likewise.
23382         * modules/stddef (Makefile.am): Likewise.
23383         * modules/stdint (Makefile.am): Likewise.
23384         * modules/stdio (Makefile.am): Likewise.
23385         * modules/stdlib (Makefile.am): Likewise.
23386         * modules/string (Makefile.am): Likewise.
23387         * modules/strings (Makefile.am): Likewise.
23388         * modules/sys_file (Makefile.am): Likewise.
23389         * modules/sys_ioctl (Makefile.am): Likewise.
23390         * modules/sys_select (Makefile.am): Likewise.
23391         * modules/sys_socket (Makefile.am): Likewise.
23392         * modules/sys_stat (Makefile.am): Likewise.
23393         * modules/sys_time (Makefile.am): Likewise.
23394         * modules/sys_times (Makefile.am): Likewise.
23395         * modules/sys_utsname (Makefile.am): Likewise.
23396         * modules/sys_wait (Makefile.am): Likewise.
23397         * modules/sysexits (Makefile.am): Likewise.
23398         * modules/termios (Makefile.am): Likewise.
23399         * modules/time (Makefile.am): Likewise.
23400         * modules/unistd (Makefile.am): Likewise.
23401         * modules/wchar (Makefile.am): Likewise.
23402         * modules/wctype-h (Makefile.am): Likewise.
23403         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23404
23405 2011-04-05  Bruno Haible  <bruno@clisp.org>
23406
23407         pipe2: Relicense under LGPLv2+.
23408         * modules/pipe2 (License): Change to LGPLv2+.
23409         Requested by Eric Blake, for libvirt.
23410
23411 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23412
23413         bootstrap: compute gnulib_extra_files after updating build_aux
23414         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23415         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23416
23417 2011-04-05  Eric Blake  <eblake@redhat.com>
23418
23419         bootstrap: preserve git whitelist item sorting
23420         * build-aux/bootstrap (sort_patterns): New function.
23421         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23422
23423 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23424
23425         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23426         sc_space_tab check.
23427
23428 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         areadlink, areadlinkat: rewrite in terms of careadlinkat
23431         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23432         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23433         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23434         (malloc, realloc): Remove #undefs.
23435         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23436         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23437         readlink, ssize_t, stdint, unistd.
23438         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23439         areadlink, stdint.
23440
23441         careadlinkat: new module
23442         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23443         * modules/careadlinkat: New files, written by me with
23444         a review and feedback from Ben Pfaff in
23445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23446
23447 2011-04-01  Bruno Haible  <bruno@clisp.org>
23448
23449         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23450         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23451         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23452         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23453         Reported by Bruce Korb <bruce.korb@gmail.com>.
23454
23455 2011-04-01  Bruno Haible  <bruno@clisp.org>
23456
23457         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23458         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23459         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23460         * modules/wcpcpy (Depends-on): Add extensions.
23461         * modules/wcpncpy (Depends-on): Likewise.
23462         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23463         systems.
23464         * doc/posix-functions/wcpncpy.texi: Likewise.
23465         * doc/posix-functions/wcwidth.texi: Likewise.
23466
23467 2011-03-31  Eric Blake  <eblake@redhat.com>
23468
23469         nonblocking: fix mingw test failures
23470         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23471         non-blocking flag on regular file.
23472         (get_nonblocking_flag): Set errno on invalid fd.
23473         * tests/test-nonblocking.c (main): Avoid test failure on
23474         directories if fchdir is not active.
23475         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23476
23477 2011-03-31  Bruno Haible  <bruno@clisp.org>
23478
23479         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23480         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23481         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23482         Reported by Simon Josefsson <simon@josefsson.org>.
23483
23484 2011-03-31  Bruno Haible  <bruno@clisp.org>
23485         and Eric Blake  <eblake@redhat.com>
23486
23487         nonblocking: new module
23488         * modules/nonblocking: New module.
23489         * modules/nonblocking-tests: Likewise.
23490         * lib/nonblocking.h: New file.
23491         * lib/nonblocking.c: Likewise.
23492         * tests/test-nonblocking.c: New test.
23493         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23494
23495 2011-03-30  Bruno Haible  <bruno@clisp.org>
23496
23497         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23498         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23499         instead of 'printf' format for GCC >= 4.4.
23500         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23501         (fprintf, printf, vfprintf, vprintf): Declare with
23502         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23503         the system's vfprintf() function.
23504         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23505
23506 2011-03-30  Eric Blake  <eblake@redhat.com>
23507
23508         passfd: fix scoping bug
23509         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23510         before sendmsg/recvmsg.
23511
23512         passfd: standardize coding conventions
23513         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23514         can be learned at compile time.
23515         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23516         ifdefs.
23517         (sendfd, recvfd): Follow gnulib code conventions.
23518
23519         passfd: fix incorrect sendmsg arguments
23520         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23521         incorrect msg_controllen value.
23522         * modules/passfd-tests (Depends-on): Check for alarm.
23523         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23524         Reported by Bastien ROUCARIES.
23525
23526 2011-03-30  Bruno Haible  <bruno@clisp.org>
23527
23528         c-strcasestr: Relicense under LGPLv2+.
23529         * modules/c-strcasestr (License): Change to LGPLv2+.
23530         Requested by Eric Blake, for libvirt.
23531
23532 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23533
23534         * users.txt: Add libidn2.  Fix libtasn1 link.
23535
23536 2011-03-30  Jim Meyering  <meyering@redhat.com>
23537
23538         tests: readlink* ("",... fails with EINVAL on newer kernels
23539         readlink and readlinkat have typically failed with ENOENT for
23540         the invalid, empty file name,  "".  However, with the advent
23541         of linux-2.6.39, they fail with EINVAL.
23542         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23543         when operating on the empty file name.
23544         * tests/test-readlink.h (test_readlink): Likewise.
23545
23546 2011-03-29  Bruno Haible  <bruno@clisp.org>
23547
23548         Relicense some modules under LGPLv2+, for libidn2.
23549         * modules/array-mergesort (License): Change to LGPLv2+.
23550         * modules/c-strcaseeq (License): Likewise.
23551         * modules/striconveh (License): Likewise.
23552         * modules/striconveha (License): Likewise.
23553         * modules/uniconv/base (License): Likewise.
23554         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23555         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23556         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23557         * modules/unictype/base (License): Likewise.
23558         * modules/unictype/bidiclass-of (License): Likewise.
23559         * modules/unictype/category-M (License): Likewise.
23560         * modules/unictype/category-none (License): Likewise.
23561         * modules/unictype/category-of (License): Likewise.
23562         * modules/unictype/category-test (License): Likewise.
23563         * modules/unictype/category-test-withtable (License): Likewise.
23564         * modules/unictype/combining-class (License): Likewise.
23565         * modules/unictype/joiningtype-of (License): Likewise.
23566         * modules/unictype/scripts (License): Likewise.
23567         * modules/uninorm/base (License): Likewise.
23568         * modules/uninorm/canonical-decomposition (License): Likewise.
23569         * modules/uninorm/composition (License): Likewise.
23570         * modules/uninorm/decompose-internal (License): Likewise.
23571         * modules/uninorm/decomposition-table (License): Likewise.
23572         * modules/uninorm/nfc (License): Likewise.
23573         * modules/uninorm/nfd (License): Likewise.
23574         * modules/uninorm/u32-normalize (License): Likewise.
23575         * modules/unistr/base (License): Likewise.
23576         * modules/unistr/u32-cpy (License): Likewise.
23577         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23578         * modules/unistr/u32-to-u8 (License): Likewise.
23579         * modules/unistr/u32-uctomb (License): Likewise.
23580         * modules/unistr/u8-check (License): Likewise.
23581         * modules/unistr/u8-mblen (License): Likewise.
23582         * modules/unistr/u8-mbtouc (License): Likewise.
23583         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23584         * modules/unistr/u8-mbtoucr (License): Likewise.
23585         * modules/unistr/u8-prev (License): Likewise.
23586         * modules/unistr/u8-strlen (License): Likewise.
23587         * modules/unistr/u8-to-u32 (License): Likewise.
23588         * modules/unistr/u8-uctomb (License): Likewise.
23589         * modules/unitypes (License): Likewise.
23590         Requested by Simon Josefsson.
23591
23592 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23593
23594         lib-symbol-visibility: Add a notice.
23595         * modules/lib-symbol-visibility (Notice): New field.
23596
23597 2011-03-29  Bruno Haible  <bruno@clisp.org>
23598
23599         getaddrinfo: Doc fix.
23600         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23601         section "fixed in Gnulib".
23602
23603 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23604
23605         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23606         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23607
23608 2011-03-26  Bruno Haible  <bruno@clisp.org>
23609
23610         unictype/property-byname: Reduce the number of load-time relocations.
23611         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23612         (UC_PROPERTY_INDEX_*): New enumeration values.
23613         (uc_property_byname): Convert an index from the lookup table to an
23614         uc_property_t.
23615         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23616         values.
23617
23618 2011-03-26  Bruno Haible  <bruno@clisp.org>
23619
23620         unictype/property-byname: Allow omitted word separators and aliases.
23621         * lib/unictype/pr_byname.gperf: Add property names without word
23622         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23623         for 'space'.
23624
23625 2011-03-26  Bruno Haible  <bruno@clisp.org>
23626
23627         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23628         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23629         also hyphens to space.
23630         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23631         without spaces.
23632         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23633
23634 2011-03-26  Bruno Haible  <bruno@clisp.org>
23635
23636         unictype/joiningtype-byname: Recognize long names as well.
23637         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23638         a long name.
23639         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23640         unictype/joiningtype_byname.h.
23641         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23642         * lib/unictype/joiningtype_byname.gperf: New file.
23643         * modules/unictype/joiningtype-byname (Files): Add
23644         lib/unictype/joiningtype_byname.gperf.
23645         (Depends-on): Add gperf.
23646         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23647         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23648         long names.
23649
23650         Tests for module 'unictype/joiningtype-longname'.
23651         * modules/unictype/joiningtype-longname-tests: New file.
23652         * tests/unictype/test-joiningtype_longname.c: New file.
23653
23654         New module 'unictype/joiningtype-longname'.
23655         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23656         * lib/unictype/joiningtype_longname.c: New file.
23657         * modules/unictype/joiningtype-longname: New file.
23658         * modules/unictype/joiningtype-all (Depends-on): Add
23659         unictype/joiningtype-longname.
23660
23661 2011-03-26  Bruno Haible  <bruno@clisp.org>
23662
23663         unictype/bidiclass-byname: Recognize long names as well.
23664         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23665         name.
23666         * lib/unictype/bidi_byname.c: Include <string.h>,
23667         unictype/bidi_byname.h.
23668         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23669         * lib/unictype/bidi_byname.gperf: New file.
23670         * modules/unictype/bidiclass-byname (Files): Add
23671         lib/unictype/bidi_byname.gperf.
23672         (Depends-on): Add gperf.
23673         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23674         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23675         long names.
23676
23677         Tests for module 'unictype/bidiclass-longname'.
23678         * modules/unictype/bidiclass-longname-tests: New file.
23679         * tests/unictype/test-bidi_longname.c: New file.
23680
23681         New module 'unictype/bidiclass-longname'.
23682         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23683         * lib/unictype/bidi_longname.c: New file.
23684         * modules/unictype/bidiclass-longname: New file.
23685         * modules/unictype/bidiclass-all (Depends-on): Add
23686         unictype/bidiclass-longname.
23687
23688 2011-03-26  Bruno Haible  <bruno@clisp.org>
23689
23690         unictype/bidi*: Rename modules.
23691         * modules/unictype/bidiclass-all: Renamed from
23692         modules/unictype/bidicategory-all.
23693         * modules/unictype/bidiclass-name: Renamed from
23694         modules/unictype/bidiclass-name.
23695         (Description): Update.
23696         * modules/unictype/bidiclass-name-tests: Renamed from
23697         modules/unictype/bidicategory-name-tests.
23698         * modules/unictype/bidiclass-byname: Renamed from
23699         modules/unictype/bidicategory-byname.
23700         (Description): Update.
23701         * modules/unictype/bidiclass-byname-tests: Renamed from
23702         modules/unictype/bidicategory-byname-tests.
23703         * modules/unictype/bidiclass-of: Renamed from
23704         modules/unictype/bidicategory-of.
23705         (Description): Update.
23706         * modules/unictype/bidiclass-of-tests: Renamed from
23707         modules/unictype/bidicategory-of-tests.
23708         * modules/unictype/bidiclass-test: Renamed from
23709         modules/unictype/bidicategory-test.
23710         (Description): Update.
23711         * modules/unictype/bidiclass-test-tests: Renamed from
23712         modules/unictype/bidicategory-test-tests.
23713         * modules/unictype/bidicategory-all: New file, a simple redirection.
23714         * modules/unictype/bidicategory-name: Likewise.
23715         * modules/unictype/bidicategory-byname: Likewise.
23716         * modules/unictype/bidicategory-of: Likewise.
23717         * modules/unictype/bidicategory-test: Likewise.
23718         * modules/unictype/property-bidi-* (Dependencies): Update.
23719         * lib/unictype/bidi_*.c: Update comment.
23720
23721 2011-03-26  Bruno Haible  <bruno@clisp.org>
23722
23723         unictype/bidi*: Rename functions, part 2.
23724         * modules/unictype/bidicategory-name (configure.ac): Update required
23725         libunistring version.
23726         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23727
23728 2011-03-25  Bruno Haible  <bruno@clisp.org>
23729
23730         New module 'unictype/combining-class-all'.
23731         * modules/unictype/combining-class-all: New file.
23732
23733         Tests for module 'unictype/combining-class-byname'.
23734         * modules/unictype/combining-class-byname-tests: New file.
23735         * tests/unictype/test-combiningclass_byname.c: New file.
23736
23737         New module 'unictype/combining-class-byname'.
23738         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23739         * lib/unictype/combiningclass_byname.c: New file.
23740         * lib/unictype/combiningclass_byname.gperf: New file.
23741         * modules/unictype/combining-class-byname: New file.
23742
23743         Tests for module 'unictype/combining-class-longname'.
23744         * modules/unictype/combining-class-longname-tests: New file.
23745         * tests/unictype/test-combiningclass_longname.c: New file.
23746
23747         New module 'unictype/combining-class-longname'.
23748         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23749         * lib/unictype/combiningclass_longname.c: New file.
23750         * modules/unictype/combining-class-longname: New file.
23751
23752         Tests for module 'unictype/combining-class-name'.
23753         * modules/unictype/combining-class-name-tests: New file.
23754         * tests/unictype/test-combiningclass_name.c: New file.
23755
23756         New module 'unictype/combining-class-name'.
23757         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23758         * lib/unictype/combiningclass_name.c: New file.
23759         * modules/unictype/combining-class-name: New file.
23760
23761 2011-03-25  Bruno Haible  <bruno@clisp.org>
23762
23763         unictype/combining-class: Rename source files.
23764         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23765         of unictype/combining.h.
23766         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23767         Update.
23768         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23769         * modules/unictype/combining-class (Description): Fix.
23770         (Files, Makefile.am): Update.
23771         * tests/unictype/test-combiningclass.c: Renamed from
23772         tests/unictype/test-combining.c.
23773         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23774
23775 2011-03-25  Bruno Haible  <bruno@clisp.org>
23776
23777         unictype: Update list of canonical combining classes.
23778         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23779
23780 2011-03-25  Bruno Haible  <bruno@clisp.org>
23781
23782         unictype/category-byname: Recognize long names as well.
23783         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23784         a long name.
23785         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23786         unictype/categ_byname.h.
23787         (UC_CATEGORY_INDEX_*): New enumeration values.
23788         (uc_general_category_byname): Use uc_general_category_lookup and
23789         convert from index to value.
23790         * lib/unictype/categ_byname.gperf: New file.
23791         * modules/unictype/category-byname (Files): Add
23792         lib/unictype/categ_byname.gperf.
23793         (Depends-on): Add gperf.
23794         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23795         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23796         long names.
23797
23798         Tests for module 'unictype/category-longname'.
23799         * modules/unictype/category-longname-tests: New file.
23800         * tests/unictype/test-categ_longname.c: New file.
23801
23802         New module 'unictype/category-longname'.
23803         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23804         * lib/unictype/categ_longname.c: New file.
23805         * modules/unictype/category-longname: New file.
23806         * modules/unictype/category-all (Depends-on): Add it.
23807
23808 2011-03-25  Bruno Haible  <bruno@clisp.org>
23809
23810         Tests for module 'unictype/category-LC'.
23811         * modules/unictype/category-LC-tests: New file.
23812         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23813
23814         New module 'unictype/category-LC'.
23815         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23816         (UC_CATEGORY_LC): New declaration.
23817         (UC_CASED_LETTER): New macro.
23818         * lib/gen-uni-tables.c (is_category_LC): New function.
23819         (output_categories): Also handle category LC.
23820         (UC_CATEGORY_MASK_LC): New enumeration value.
23821         (general_category_byname): Also handle category LC.
23822         * lib/unictype/categ_LC.c: New file.
23823         * lib/unictype/categ_LC.h: New file, automatically generated.
23824         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23825         category LC.
23826         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23827         * modules/unictype/category-LC: New file.
23828         * modules/unictype/category-byname (Depends-on): Add
23829         unictype/category-LC.
23830         * modules/unictype/category-all (Depends-on): Likewise.
23831
23832 2011-03-25  Eric Blake  <eblake@redhat.com>
23833
23834         xmalloc: revert yesterday's regression
23835         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23836         realloc's underlying behavior (allowing allocation of zero-size
23837         objects, especially if malloc-gnu is also in use).
23838
23839 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23840
23841         maint.mk: add missing version to VC-tag
23842         * top/maint.mk: git tag was missing actual tag name; add it.
23843
23844         valgrind: do leak checking, and exit with code 1 on error (not 0)
23845         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23846         to VALGRIND.
23847
23848 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23849
23850         posix-modules: say what it does.
23851         * posix-modules: Add a line to the --help output saying what it does.
23852
23853 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         xmalloc: Do not leak if underlying realloc is C99 compatible.
23856         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23857         This avoids a leak on C99-based systems.  See
23858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23859
23860 2011-03-24  Eric Blake  <eblake@redhat.com>
23861
23862         realloc: document portability problem
23863         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23864         passing 0 size to realloc.
23865
23866 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23867
23868         doc: update users.txt
23869         * users.txt: Add cvsps, tmpwatch
23870
23871 2011-03-23  Matt Rice  <ratmice@gmail.com>
23872
23873         doc: update users.txt
23874         * users.txt: Add gdb.
23875
23876 2011-03-23  Jim Meyering  <meyering@redhat.com>
23877
23878         doc: update users.txt
23879         Looking through matches up to the following URL (there are still
23880         several more pages), I found several projects that use gnulib:
23881         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23882         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23883         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23884
23885 2011-03-22  Bruno Haible  <bruno@clisp.org>
23886
23887         unictype/bidi*: Rename functions.
23888         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23889         uc_bidi_class, uc_is_bidi_class): New declarations.
23890         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23891         uc_bidi_category_byname.
23892         (uc_bidi_category_byname): New function.
23893         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23894         u_bidi_category_name.
23895         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23896         (uc_bidi_category_name): New function.
23897         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23898         uc_bidi_category.
23899         (uc_bidi_category): New function.
23900         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23901         uc_is_bidi_category. Invoke uc_bidi_class.
23902         (uc_is_bidi_category): New function.
23903         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23904         instead of uc_bidi_category_byname.
23905         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23906         instead of uc_bidi_category_name.
23907         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23908         uc_bidi_category.
23909         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23910         instead of uc_is_bidi_category.
23911
23912 2011-03-21  Bruno Haible  <bruno@clisp.org>
23913
23914         New module 'unictype/joininggroup-all'.
23915         * modules/unictype/joininggroup-all: New file.
23916
23917         Tests for module 'unictype/joininggroup-of'.
23918         * modules/unictype/joininggroup-of-tests: New file.
23919         * tests/unictype/test-joininggroup_of.c: New file.
23920         * tests/unictype/test-joininggroup_of.h: New file, automatically
23921         generated by gen-uni-tables.
23922
23923         New module 'unictype/joininggroup-of'.
23924         * modules/unictype/joininggroup-of: New file.
23925         * lib/unictype/joininggroup_of.c: New file.
23926         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23927         gen-uni-tables.
23928
23929         Tests for module 'unictype/joininggroup-byname'.
23930         * modules/unictype/joininggroup-byname-tests: New file.
23931         * tests/unictype/test-joininggroup_byname.c: New file.
23932
23933         New module 'unictype/joininggroup-byname'.
23934         * modules/unictype/joininggroup-byname: New file.
23935         * lib/unictype/joininggroup_byname.c: New file.
23936         * lib/unictype/joininggroup_byname.gperf: New file.
23937
23938         Tests for module 'unictype/joininggroup-name'.
23939         * modules/unictype/joininggroup-name-tests: New file.
23940         * tests/unictype/test-joininggroup_name.c: New file.
23941
23942         New module 'unictype/joininggroup-name'.
23943         * modules/unictype/joininggroup-name: New file.
23944         * lib/unictype/joininggroup_name.c: New file.
23945         * lib/unictype/joininggroup_name.h: New file.
23946
23947         New module 'unictype/joiningtype-all'.
23948         * modules/unictype/joiningtype-all: New file.
23949
23950         Tests for module 'unictype/joiningtype-of'.
23951         * modules/unictype/joiningtype-of-tests: New file.
23952         * tests/unictype/test-joiningtype_of.c: New file.
23953         * tests/unictype/test-joiningtype_of.h: New file, automatically
23954         generated by gen-uni-tables.
23955
23956         New module 'unictype/joiningtype-of'.
23957         * modules/unictype/joiningtype-of: New file.
23958         * lib/unictype/joiningtype_of.c: New file.
23959         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23960         gen-uni-tables.
23961
23962         Tests for module 'unictype/joiningtype-byname'.
23963         * modules/unictype/joiningtype-byname-tests: New file.
23964         * tests/unictype/test-joiningtype_byname.c: New file.
23965
23966         New module 'unictype/joiningtype-byname'.
23967         * modules/unictype/joiningtype-byname: New file.
23968         * lib/unictype/joiningtype_byname.c: New file.
23969
23970         Tests for module 'unictype/joiningtype-name'.
23971         * modules/unictype/joiningtype-name-tests: New file.
23972         * tests/unictype/test-joiningtype_name.c: New file.
23973
23974         New module 'unictype/joiningtype-name'.
23975         * modules/unictype/joiningtype-name: New file.
23976         * lib/unictype/joiningtype_name.c: New file.
23977
23978         unictype: Add support for Arabic shaping properties.
23979         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23980         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23981         declarations.
23982         (UC_JOINING_GROUP_*): New enumeration values.
23983         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23984         declarations.
23985         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23986         (unicode_joining_type): New variable.
23987         (UC_JOINING_GROUP_*): New enumeration values.
23988         (unicode_joining_group): New variable.
23989         (fill_arabicshaping, joining_type_as_c_identifier,
23990         output_joining_type_test, output_joining_type,
23991         joining_group_as_c_identifier, output_joining_group_test,
23992         output_joining_group): New functions.
23993         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23994         fill_arabicshaping and output_joining_type_test, output_joining_type,
23995         output_joining_group_test, output_joining_group.
23996         Reported by Simon Josefsson.
23997
23998 2011-03-21  Jim Meyering  <meyering@redhat.com>
23999
24000         strftime: fix a bug in yesterday's change
24001         * lib/strftime.c (add): Accommodate width's initial value of -1.
24002         Otherwise, nstrftime would copy uninitialized data into
24003         the result buffer.
24004
24005 2011-03-21  Jim Meyering  <meyering@redhat.com>
24006
24007         tests: add strftime-tests module
24008         * tests/test-strftime.c: New file.
24009         * modules/strftime-tests: New module.
24010
24011 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24012
24013         strftime: don't assume a byte count fits in 'int'
24014         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24015         found this problem by static analysis, using gcc -Wstrict-overflow
24016         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24017         on an integer overflow having undefined behavior, but it turns out
24018         that the argument is a size, which might not fit in 'int' anyway,
24019
24020 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         stdio: don't require ignore_value around fwrite
24023
24024         This patch works around libc bug 11959
24025         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24026         Without this patch, applications must often write
24027         ignore_value (fwrite (...)) even though the ignore_value is
24028         not helpful here.  It's common to write many objects, using
24029         fwrite/printf/etc., and then use ferror to detect output error.
24030
24031         I considered making this patch optional, but decided against it,
24032         because libc is obviously being inconsistent here: there is no
24033         reason libc should insist that user code must inspect fwrite
24034         return's value without also insisting that it inspect printf's,
24035         putchar's, etc.  If user code wants to have a strict style where
24036         all these functions' values are checked (so that ferror need not
24037         be checked), we could add support for that style in a new gnulib
24038         module, but in the meantime it's better to be consistent and to
24039         support common usage.
24040
24041         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24042         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24043         that we are compiling in checking mode, and if not C++, and
24044         if not already wrapping fwrite for some other reason.
24045         (fwrite): #define to rpl_fwrite if the latter is defined.
24046
24047 2011-03-20  Bruno Haible  <bruno@clisp.org>
24048
24049         verror: Fix compilation error introduced on 2011-02-13.
24050         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24051         instead of __attribute__.
24052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24053
24054 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24055             Bruno Haible  <bruno@clisp.org>
24056
24057         socklen: do not depend on sys_socket
24058         While trying to modify Emacs to use gnulib's socklen module,
24059         I discovered a circular dependency: socklen depends on sys_socket
24060         and vice versa.  Emacs can use socklen, but it does not need
24061         sys_socket because it has its own substitute for sys/socket.h.
24062         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24063         gl_TYPE_SOCKLEN_T.
24064         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24065         gl_PREREQ_SYS_H_SOCKET.
24066         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24067         gl_PREREQ_SYS_H_SOCKET.
24068         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24069         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24070         * modules/socklen (Depends-on): Do not depend on sys_socket.
24071         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24072
24073 2011-03-20  Jim Meyering  <meyering@redhat.com>
24074
24075         maint.mk: sort file names *after* new transformation
24076         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24077         prefix would have led to an unwarranted failure in GNU parted.
24078         Sort after that transformation.
24079
24080 2011-03-19  Jim Meyering  <meyering@redhat.com>
24081
24082         maint.mk: fix po-file syntax-check rule
24083         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24084         Patch by Bruno Haible.
24085
24086 2011-03-19  Bruno Haible  <bruno@clisp.org>
24087
24088         socklen: Update comment.
24089         * m4/socklen.m4: Update comment about platforms.
24090
24091 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24092             Bruno Haible  <bruno@clisp.org>
24093
24094         inet_ntop, inet_pton: Simplify.
24095         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24096         documented to provide socklen_t and we already depend on sys_socket.
24097         * modules/inet_pton (Depends-on): Likewise.
24098         * lib/arpa_inet.in.h: Adjust comment.
24099
24100 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24101             Bruno Haible  <bruno@clisp.org>
24102
24103         netdb: Simplify.
24104         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24105         documented to provide socklen_t and we already depend on sys_socket.
24106         * lib/netdb.in.h: Adjust comment.
24107
24108 2011-03-19  Bruno Haible  <bruno@clisp.org>
24109
24110         sys_socket, netdb: Document problem with socklen_t.
24111         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24112         platforms.
24113         * doc/posix-headers/netdb.texi: Likewise.
24114
24115 2011-03-18  Eric Blake  <eblake@redhat.com>
24116
24117         maint.mk: let po check work in VPATH build
24118         * top/maint.mk (po_file): Allow cfg.mk override.
24119         (sc_po_check): Allow VPATH use.
24120         Reported by Jiri Denemark.
24121
24122 2011-03-16  Jim Meyering  <meyering@redhat.com>
24123
24124         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24125         Before, you would have had to create one .x-sc_ file per rule in order
24126         to exempt offending files.  Now, you may instead use a Make variable --
24127         usually defined in cfg.mk -- whose name identifies the affected rule.
24128         * top/maint.mk (_sc_excl): Define.
24129         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24130         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24131
24132 2011-03-13  Bruno Haible  <bruno@clisp.org>
24133
24134         ignore-value tests: Avoid warnings.
24135         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24136         empty for gcc < 3.4.
24137
24138 2011-03-13  Bruno Haible  <bruno@clisp.org>
24139
24140         passfd: Fix link error on Solaris.
24141         * modules/passfd (Description): Correct.
24142         (Depends-on): Add socketlib.
24143         (Link): New section.
24144         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24145
24146 2011-03-13  Bruno Haible  <bruno@clisp.org>
24147
24148         passfd: Fix link error on AIX 5.2.
24149         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24150
24151 2011-03-13  Bruno Haible  <bruno@clisp.org>
24152
24153         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24154         * lib/sys_socket.in.h: Include <stddef.h>.
24155         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24156         CMSG_FIRSTHDR. Remove unused variable.
24157
24158 2011-03-13  Bruno Haible  <bruno@clisp.org>
24159
24160         passfd: Fix compilation error on OpenBSD.
24161         * lib/passfd.c: Include <sys/uio.h>.
24162
24163 2011-03-13  Bruno Haible  <bruno@clisp.org>
24164
24165         passfd test: Fix warnings.
24166         * tests/test-passfd.c: Include <sys/wait.h>.
24167         (main): Fix typo.
24168
24169 2011-03-13  Bruno Haible  <bruno@clisp.org>
24170
24171         passfd module, part 4, tweaks.
24172         * tests/test-passfd.c: Reorder includes.
24173         (main): Fix perror and printf calls.
24174
24175 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24176
24177         passfd module, part 4.
24178         * modules/passfd-tests: New file.
24179         * tests/test-passfd.c: New file.
24180
24181 2011-03-13  Jim Meyering  <meyering@redhat.com>
24182
24183         Makefile: rely on GNU make; derive syntax-check rule names
24184         Rather than requiring that each sc_ rule be listed as a dependent
24185         of "check", use features of GNU make to derive the list.
24186         * Makefile (syntax-check-rules): Define.
24187         (check): Depend on the new variable, not the hard-coded list.
24188
24189 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24190             Bruno Haible  <bruno@clisp.org>
24191
24192         passfd module, part 3.
24193         * lib/passfd.h (recvfd): Add a flags argument.
24194         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24195         (recvfd): Add a flags argument.
24196         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24197         exists.
24198         * modules/passfd (Depends-on): Add cloexec.
24199         Suggested by Eric Blake.
24200
24201 2011-03-13  Bruno Haible  <bruno@clisp.org>
24202
24203         passfd module, part 2, tweaks.
24204         * modules/passfd (Files): Reorder.
24205         (Depends-on): Remove errno.
24206         (Include): Remove <sys/socket.h>, <sys/un.h>.
24207         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24208         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24209         specification header. Include <sys/socket.h> always. Don't include
24210         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24211         (sendfd): Clarify that it sets errno when it fails.
24212         (recvfd): Fix specification.
24213
24214 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24215
24216         passfd module, part 2.
24217         * modules/passfd: New file.
24218         * lib/passfd.h: New file.
24219         * lib/passfd.c: New file.
24220
24221 2011-03-12  Bruno Haible  <bruno@clisp.org>
24222
24223         wcswidth, mbswidth: Avoid integer overflow.
24224         * lib/wcswidth.c: Include <limits.h>.
24225         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24226         * lib/mbswidth.c: Include <limits.h>.
24227         (mbsnwidth): Avoid 'int' overflow.
24228         Reported by Jim Meyering.
24229
24230 2011-03-12  Bruno Haible  <bruno@clisp.org>
24231
24232         futimens, utimensat: Avoid endless recursion on Solaris 10.
24233         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24234         Solaris.
24235         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24236         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24237
24238 2011-03-11  Jim Meyering  <meyering@redhat.com>
24239
24240         maint.mk: relax a regexp to accommodate other formatting styles
24241         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24242         between "ngettext" and the following "(".
24243
24244 2011-03-11  Pádraig Brady <P@draigBrady.com>
24245
24246         maint.mk: suppress a false positive warning
24247         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24248         diagnostics are marked with ngettext.
24249
24250 2011-03-10  Eric Blake  <eblake@redhat.com>
24251
24252         wchar: add explicit dependencies, for Tru64
24253         * modules/mbmemcasecoll (Depends-on): Add wchar.
24254         * modules/mbtowc (Depends-on): Likewise.
24255         * modules/vasnprintf (Depends-on): Likewise.
24256         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24257         * modules/wctomb (Depends-on): Likewise.
24258         Reported by Peter O'Gorman.
24259
24260 2011-03-08  Bruno Haible  <bruno@clisp.org>
24261
24262         passfd module, part 1, tweaks.
24263         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24264         Improve indentation. Improve AC_MSG_CHECKING messages.
24265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24266         gl_SOCKET_FAMILIES.
24267
24268 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24269
24270         passfd module, part 1.
24271         * m4/afunix.m4: New file.
24272         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24273         sockets.
24274
24275 2011-03-08  Bruno Haible  <bruno@clisp.org>
24276
24277         regex-quote: New API.
24278         * lib/regex-quote.h: Include <stdbool.h>.
24279         (struct regex_quote_spec): New type.
24280         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24281         New declarations.
24282         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24283         'const struct regex_quote_spec *' argument.
24284         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24285         (pcre_special): New constant.
24286         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24287         New functions.
24288         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24289         'const struct regex_quote_spec *' argument.
24290         * modules/regex-quote (Depends-on): Add stdbool.
24291         * tests/test-regex-quote.c (check): Update for new API. Add test for
24292         anchored results.
24293         * NEWS: Mention the API change.
24294         Reported by Reuben Thomas and Eric Blake.
24295
24296 2011-03-06  Bruno Haible  <bruno@clisp.org>
24297
24298         regex-quote: Fix creation of POSIX extended regular expressions.
24299         * lib/regex-quote.c (ere_special): Add grouping and alternation
24300         operators.
24301
24302 2011-03-05  Bruno Haible  <bruno@clisp.org>
24303
24304         doc: Improve doc regarding autopoint vs. gnulib.
24305         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24306         disable autopoint while running autoreconf.
24307         Suggested by Ralf Wildenhues.
24308
24309 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24310
24311         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24312         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24313
24314 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24315
24316         parse-duration: remove xalloc.h dependency
24317         * lib/parse-duration.c (parse_period): handle NULL return from
24318         strdup instead of calling xstrdup().
24319         * modules/parse-duration: remove "xalloc" dependency
24320
24321 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24322
24323         bootstrap: honor m4_base when running aclocal
24324         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24325
24326 2011-03-02  Jim Meyering  <meyering@redhat.com>
24327
24328         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24329         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24330         on request from Matt Booth.
24331
24332 2011-03-01  Eric Blake  <eblake@redhat.com>
24333
24334         test-link: work on Hurd
24335         * tests/test-link.h (test_link): Hurd rejects linking directories
24336         with EISDIR instead of the POSIX-mandated EPERM.
24337
24338 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24339
24340         stdio: simplify by moving files to printf-posix, sigpipe
24341         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24342         since this symbol is needed only if printf is replaced.
24343         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24344         Require gl_ASM_SYMBOL_PREFIX.
24345         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24346         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24347         (Depends-on): Add 'raise'.
24348         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24349         * modules/stdio (Files): Remove lib/stdio-write.c,
24350         m4/asm-underscore.m4.
24351         (Depends-on): Remove 'raise'.
24352
24353         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24354         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24355         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24356         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24357
24358 2011-02-28  Bruno Haible  <bruno@clisp.org>
24359
24360         localcharset: Assume ANSI C behaviour of free().
24361         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24362         calling free().
24363         Suggested by Simon Josefsson <simon@josefsson.org>.
24364
24365 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24366             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24367             Bruno Haible  <bruno@clisp.org>  (tiny change)
24368
24369         On Cygwin, use /proc file system instead of win32 API.
24370         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24371         Win32 file names.
24372         (DllMain): Simplify by removing Cygwin specific code.
24373         (find_shared_library_fullname): Use Linux specific implementation also
24374         for Cygwin.
24375         (get_shared_library_fullname): Update accordingly.
24376         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24377         Win32 file names.
24378         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24379         Cygwin specific code.
24380
24381 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24382             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24383
24384         Fix OpenMP flag detection for various Fortran compilers.
24385         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24386         OpenMP-conditional compilation construct, to force compile
24387         failure with missing OpenMP flag.
24388         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24389
24390 2011-02-25  Eric Blake  <eblake@redhat.com>
24391
24392         strstr: expand test coverage
24393         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24394         compilation.
24395         * tests/test-memmem.c (main): Duplicate tests.
24396         * tests/test-strcasestr.c (main): Likewise.
24397         * tests/test-c-strcasestr.c (main): Likewise.
24398
24399 2011-02-25  Jim Meyering  <meyering@redhat.com>
24400
24401         maint.mk: detect missing-NL-at-EOF, too
24402         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24403         it also detects when a file lacks a newline at EOF.
24404         (require_exactly_one_NL_at_EOF_): Renamed from
24405         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24406         since people may well have .x-sc_... file names tied to the
24407         existing name.  Suggested by Eric Blake.
24408
24409 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24410
24411         dirname: move m4/dos.m4 functionality into lib/dosname.h
24412
24413         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24414         extracts symbols from it, puts them into config.h; but it's much
24415         easier to use the symbols directly.  filename.h already does this,
24416         but it disagrees with dos.m4 in some respects.  This patch
24417         introduces a different include file dosname.h that packages up
24418         dos.m4, and then later we can work on merging filename.h and
24419         dosname.h.  Applications that need only the easy-to-configure
24420         symbols should consider including dosname.h rather than dirname.h.
24421         * NEWS: Mention incompatible changes.
24422         * m4/dos.m4: Remove.
24423         * lib/dosname.h, modules/dosname: New files.
24424         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24425         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24426         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24427         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24428         Include dosname.h, not dirname.h.
24429         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24430         Include dosname.h, for definitions of symbols like ISSLASH
24431         that used to be in config.h.
24432         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24433         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24434         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24435         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24436         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24437         * modules/rmdir (Files): Likewise.
24438         * modules/stat (Files): Likewise.
24439         * modules/unlink (Files): Likewise.
24440         * modules/dirname-lgpl (Depends-on): Add dosname.
24441         * modules/lstat (Depends-on): Likewise.
24442         * modules/openat (Depends-on): Likewise.
24443         * modules/rmdir (Depends-on): Likewise.
24444         * modules/savewd (Depends-on): Likewise.
24445         * modules/stat (Depends-on): Likewise.
24446         * modules/unlink (Depends-on): Likewise.
24447         * modules/openat (Depends-on): Remove dirname-lgpl.
24448         * modules/savewd (Depends-on): Likewise.
24449         * tests/test-dirname.c: Do not use removed symbols like
24450         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24451         the remaining symbols, e.g., ISSLASH ('\\').
24452
24453 2011-02-25  Eric Blake  <eblake@redhat.com>
24454
24455         strstr: revert patches that introduced bug and pessimization
24456         * lib/str-two-way.h: Add another reference.
24457         (two_way_short_needle, two_way_long_needle): Revert changes from
24458         2011-02-24; they pessimize search speed.
24459         (critical_factorization): Partially revert changes from
24460         2010-06-22; they violate the requirement that the left half of the
24461         needle be smaller than the period of the needle.
24462
24463 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         filenamecat: remove unnecessary dependency on dirname-lgpl
24466         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24467         is no direct dependency, just an indirect one via filenamecat-lgpl.
24468
24469         remove: remove unnecessary use of m4/dos.m4
24470         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24471         * modules/remove (FILES): Remove m4/dos.m4.
24472
24473         * lib/openat-proc.c: Don't include dirname.h; not needed.
24474
24475         backupfile: remove unnecessary use of m4/dos.m4
24476         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24477         of its symbols are used by the backupfile code.  backupfile.c does
24478         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24479         for the rare case of programs that want all their backup file
24480         names to live within 8+3 limits, and dos.m4 doesn't address that.
24481         * modules/backupfile (Files): Remove m4/dos.m4.
24482
24483 2011-02-24  Jim Meyering  <meyering@redhat.com>
24484
24485         strstr: fix a bug whereby strstr would mistakenly return NULL
24486         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24487         in period calculation.
24488         (two_way_long_needle): Likewise.
24489         The original problem was reported by Mike Stump in
24490         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24491         Ralf Wildenhues provided the short needle and haystack.
24492         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24493         Add a more involved test to trigger the bug in two_way_long_needle.
24494
24495 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24496
24497         gnulib-tool: remove use of bold display in help screen
24498         * gnulib-tool (func_usage): Do not use bold display anymore in the
24499         help screen.  That was just meant to be a temporary emphasis for a
24500         backward-incompatible change.
24501
24502 2011-02-23  Bruno Haible  <bruno@clisp.org>
24503
24504         Fix misindentation of preprocessor directives.
24505         * lib/argp-namefrob.h: Reindent preprocessor directives.
24506         * lib/getopt_int.h (struct _getopt_data): Likewise.
24507         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24508         * lib/vasnprintf.c (decode_long_double): Likewise.
24509         * tests/test-argmatch.c: Insert blank lines, for clarity.
24510         * tests/test-exclude.c: Likewise.
24511
24512 2011-02-22  Bruno Haible  <bruno@clisp.org>
24513
24514         ioctl: Fix for MacOS X in 64-bit mode.
24515         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24516         value.
24517         Suggested by Eric Blake.
24518         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24519
24520 2011-02-22  Jim Meyering  <meyering@redhat.com>
24521
24522         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24523         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24524         in lib/.
24525
24526 2011-02-22  Eric Blake  <eblake@redhat.com>
24527
24528         maint: avoid any CDPATH issue
24529         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24530
24531         maint: adjust cpp indentation for my modules, as well
24532         * Makefile (sc_cpp_indent_check): Add my name.
24533         * lib/fbufmode.c: Filter through cppi.
24534         * lib/fpurge.c: Likewise.
24535         * lib/freadable.c: Likewise.
24536         * lib/freading.c: Likewise.
24537         * lib/fwritable.c: Likewise.
24538         * lib/fwriting.c: Likewise.
24539         * lib/sigaction.c: Likewise.
24540
24541 2011-02-22  Jim Meyering  <meyering@redhat.com>
24542
24543         maint: adjust cpp indentation to reflect nesting depth
24544         I.e., in a block of code that begins with an unnested "#if",
24545         put one space between the "#" in column 1 and following token.
24546         For example,
24547         -#include <sys/vfs.h>
24548         +# include <sys/vfs.h>
24549         Do this only in .c files that are part of a module I maintain.
24550         * lib/linkat.c: Filter through cppi.
24551         * lib/nanosleep.c: Likewise.
24552         * lib/openat.c: Likewise.
24553         * lib/openat-die.c: Likewise.
24554         * lib/dup3.c: Likewise.
24555         * lib/fchownat.c: Likewise.
24556         * lib/flock.c: Likewise.
24557         * lib/fsync.c: Likewise.
24558         * lib/fts.c: Likewise.
24559         * lib/getpass.c: Likewise.
24560         * lib/gettimeofday.c: Likewise.
24561         * lib/userspec.c: Likewise.
24562         * Makefile (sc_cpp_indent_check): New rule, to check this.
24563
24564 2011-02-22  Bruno Haible  <bruno@clisp.org>
24565
24566         New module 'wctomb'.
24567         * lib/stdlib.in.h (wctomb): New declaration.
24568         * lib/wctomb.c: New file.
24569         * lib/wctomb-impl.h: New file.
24570         * m4/wctomb.m4: New file.
24571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24572         REPLACE_WCTOMB.
24573         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24574         REPLACE_WCTOMB.
24575         * modules/wctomb: New file.
24576         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24577         * doc/posix-functions/wctomb.texi: Mention the new module.
24578         * modules/wctob (Depends-on): Add wctomb.
24579
24580 2011-02-22  Bruno Haible  <bruno@clisp.org>
24581
24582         New module 'mbtowc'.
24583         * lib/stdlib.in.h (mbtowc): New declaration.
24584         * lib/mbtowc.c: New file.
24585         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24586         * m4/mbtowc.m4: New file.
24587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24588         REPLACE_MBTOWC.
24589         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24590         REPLACE_MBTOWC.
24591         * modules/mbtowc: New file.
24592         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24593         * doc/posix-functions/mbtowc.texi: Mention the new module.
24594         * modules/btowc (Depends-on): Add mbtowc.
24595
24596 2011-02-22  Bruno Haible  <bruno@clisp.org>
24597
24598         wcrtomb: Add more tests for native Windows platforms.
24599         * tests/test-wcrtomb-w32-1.sh: New file.
24600         * tests/test-wcrtomb-w32-2.sh: New file.
24601         * tests/test-wcrtomb-w32-3.sh: New file.
24602         * tests/test-wcrtomb-w32-4.sh: New file.
24603         * tests/test-wcrtomb-w32-5.sh: New file.
24604         * tests/test-wcrtomb-w32.c: New file.
24605         * modules/wcrtomb-tests (Files): Add them.
24606         (Makefile.am): Arrange to run these tests.
24607         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24608         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24609
24610 2011-02-20  Bruno Haible  <bruno@clisp.org>
24611
24612         wcrtomb: Enhance test.
24613         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24614
24615 2011-02-20  Bruno Haible  <bruno@clisp.org>
24616
24617         mbrtowc: Tiny optimization.
24618         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24619
24620 2011-02-20  Jim Meyering  <meyering@redhat.com>
24621
24622         test-exclude.c: remove unmatched #endif
24623         * tests/test-exclude.c: Remove stray #endif, left over from
24624         the change of a week ago.
24625
24626 2011-02-19  Jim Meyering  <meyering@redhat.com>
24627
24628         git-version-gen: skip "-dirty" check when appropriate
24629         * build-aux/git-version-gen: Don't run any git commands when the
24630         version string comes from .tarball-version.  Prior to this, we
24631         would run git update-index --refresh even from a just-unpacked
24632         tarball directory, and that could affect a .git/ directory in a
24633         parent of the build directory.  Reported by Mike Frysinger.
24634
24635 2011-02-19  Bruno Haible  <bruno@clisp.org>
24636
24637         unictype/property-byname: Reduce the size of the 'data' segment.
24638         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24639
24640 2011-02-19  Bruno Haible  <bruno@clisp.org>
24641
24642         unictype/scripts: Reduce the size of the 'data' segment.
24643         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24644         '%pic'.
24645         * lib/unictype/scripts_byname.gperf: Regenerated.
24646
24647 2011-02-19  Bruno Haible  <bruno@clisp.org>
24648
24649         stdint: Update documentation.
24650         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24651
24652 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24653
24654         stdint: omit redundant check for wchar.h
24655         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24656         always tests whether wchar.h exists, so remove the now-redundant test.
24657
24658 2011-02-18  Bruno Haible  <bruno@clisp.org>
24659
24660         stdint: Cut dependency to module 'wchar'.
24661         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24662         include the necessary prerequisites.
24663         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24664         * modules/stdint (Depends-on): Remove wchar.
24665         (Makefile.am): Substitute HAVE_WCHAR_H.
24666         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24667
24668 2011-02-18  Eric Blake  <eblake@redhat.com>
24669
24670         longlong: skip, rather than fail, on cross-compilation
24671         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24672         when cross-compiling; regression from 2011-02-16.
24673
24674 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24675
24676         * NEWS: Mention 2011-02-08 change to stdlib.
24677
24678 2011-02-17  Bruno Haible  <bruno@clisp.org>
24679
24680         getloadavg: Add comments about platforms.
24681         * m4/getloadavg.m4: Add comment.
24682         * lib/getloadavg.c: Likewise.
24683
24684 2011-02-17  Bruno Haible  <bruno@clisp.org>
24685
24686         getloadavg: Fix link error on Solaris 2.6.
24687         * modules/getloadavg (Link): New section.
24688         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24689         linking test-getloadavg.
24690         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24691         getloadavg.
24692
24693 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24696         It was 'int', but this doesn't match the IRIX 6.5 manual.
24697         Suggested by Bruno Haible in
24698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24699
24700 2011-02-17  Bruno Haible  <bruno@clisp.org>
24701
24702         havelib: Fix comments.
24703         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24704         change.
24705
24706 2011-02-17  Bruno Haible  <bruno@clisp.org>
24707
24708         havelib: Update config.rpath.
24709         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24710
24711 2011-02-17  Bruno Haible  <bruno@clisp.org>
24712
24713         getloadavg test: Add some plausibility checks.
24714         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24715         is improbable.
24716
24717 2011-02-16  Eric Blake  <eblake@redhat.com>
24718
24719         maintainer-makefile: make syntax-check a no-op from tarballs
24720         * top/maint.mk (no-vc-detected): New rule.
24721         (local-checks-available): Use it to avoid hanging if someone tries
24722         'make syntax-check' from a tarball.  Also append to any non-syntax
24723         checks already defined in cfg.mk.
24724
24725 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24726
24727         longlong: tune, particularly for common case of c99
24728
24729         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24730         or running anything if c99, or if unsigned long long int does not
24731         work.  In either case, we know the answer without further tests.
24732         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24733         it at most once, and use its results for both long long int and
24734         unsigned long long int.  This is more likely to be efficient in
24735         the common case where the program wants to check for both long
24736         long int and unsigned long long int.
24737         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24738         since the answer is already known.
24739
24740 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24741
24742         getloadavg: set errno
24743         * lib/getloadavg.c: Set errno when returning -1.  If no other
24744         error number looks appropriate, set it to ENOSYS if the getloadavg
24745         looks like it can't possibly ever work, ENOTSUP otherwise.
24746         Suggested by Bruno Haible in
24747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24748
24749         getloadavg: trim unused parts and speed up 'configure'
24750         * NEWS: Document this.
24751         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24752         always compiled if getloadavg is absent.
24753         Move test code to ...
24754         * tests/test-getloadavg.c: New file, containing previous
24755         contents of test from lib/getloadavg.c.  It also contains
24756         suggestions by Bruno Haible in
24757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24758         * modules/getloadavg-tests: New file.
24759         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24760         Do tests in the same order as they're needed for getloadavg.c.
24761         Omit setgid-related tests that generate symbols KMEM_GROUP,
24762         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24763         Do only the tests that are needed to see whether the system has
24764         getloadavg, moving the other tests into ...
24765         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24766         NLIST_NAME_UNION; nobody should be using it.  Do not define
24767         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24768         relevant, as the user of this module shouldn't care how getloadavg
24769         is implemented.
24770
24771         getloadavg: omit unused var
24772         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24773
24774 2011-02-15  Jim Meyering  <meyering@redhat.com>
24775
24776         doc: update users.txt
24777         * users.txt: Update iwhd's URL.
24778
24779 2011-02-13  Bruno Haible  <bruno@clisp.org>
24780
24781         Consistent macro naming for macros that use GCC __attribute__.
24782         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24783         _ATTRIBUTE_NONNULL_.
24784         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24785         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24786         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24787         ATTRIBUTE_DEPRECATED.
24788         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24789         ATTRIBUTE_NORETURN.
24790         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24791         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24792         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24793         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24794         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24795         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24796         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24797         ATTRIBUTE_SENTINEL.
24798         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24799         ATTRIBUTE_RETURN_CHECK.
24800         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24801         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24802         ATTRIBUTE_NORETURN.
24803         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24804         Reported by Paul Eggert.
24805
24806 2011-02-13  Bruno Haible  <bruno@clisp.org>
24807
24808         Don't interfere with a program's definition of __attribute__.
24809         * lib/argp.h (__attribute__): Remove definition.
24810         (_GL_ATTRIBUTE_FORMAT): New macro.
24811         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24812         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24813         (_GL_ATTRIBUTE_FORMAT): New macro.
24814         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24815         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24816         GCC 3 or newer.
24817         * lib/error.h (__attribute__): Remove definition.
24818         (_GL_ATTRIBUTE_FORMAT): New macro.
24819         (error, error_at_line): Use it.
24820         * lib/hash.h (__attribute__): Remove definition.
24821         (ATTRIBUTE_WUR): Update definition. Define always.
24822         * lib/openat.h (__attribute__): Remove definition.
24823         (ATTRIBUTE_NORETURN): Update definition. Define always.
24824         * lib/sigpipe-die.h (__attribute__): Remove definition.
24825         (ATTRIBUTE_NORETURN): Update definition. Define always.
24826         * lib/vasnprintf.h (__attribute__): Remove definition.
24827         (_GL_ATTRIBUTE_FORMAT): New macro.
24828         (asnprintf, vasnprintf): Use it.
24829         * lib/xalloc.h (__attribute__): Remove definition.
24830         (ATTRIBUTE_NORETURN): Update definition. Define always.
24831         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24832         * lib/xmemdup0.h (__attribute__): Remove definition.
24833         (ATTRIBUTE_NORETURN): Update definition. Define always.
24834         * lib/xprintf.h (__attribute__): Remove definition.
24835         (_GL_ATTRIBUTE_FORMAT): New macro.
24836         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24837         * lib/xstrtol.h (__attribute__): Remove definition.
24838         (ATTRIBUTE_NORETURN): Update definition. Define always.
24839         * lib/xvasprintf.h (__attribute__): Remove definition.
24840         (_GL_ATTRIBUTE_FORMAT): New macro.
24841         (xasprintf, xvasprintf): Use it.
24842         * tests/test-argmatch.c (__attribute__): Remove definition.
24843         (ATTRIBUTE_NORETURN): Update definition. Define always.
24844         * tests/test-exclude.c (__attribute__): Remove definition.
24845         (ATTRIBUTE_NORETURN): Update definition. Define always.
24846         Reported by Paul Eggert.
24847
24848 2011-02-13  Bruno Haible  <bruno@clisp.org>
24849
24850         mbrtowc: Add more tests for native Windows platforms.
24851         * tests/test-mbrtowc-w32-1.sh: New file.
24852         * tests/test-mbrtowc-w32-2.sh: New file.
24853         * tests/test-mbrtowc-w32-3.sh: New file.
24854         * tests/test-mbrtowc-w32-4.sh: New file.
24855         * tests/test-mbrtowc-w32-5.sh: New file.
24856         * tests/test-mbrtowc-w32.c: New file.
24857         * modules/mbrtowc-tests (Files): Add them.
24858         (Makefile.am): Arrange to run these tests.
24859         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24860         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24861
24862 2011-02-13  Bruno Haible  <bruno@clisp.org>
24863
24864         mbrtowc: Work around native Windows bug.
24865         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24866         guess when no suitable locale for testing was found.
24867         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24868
24869 2011-02-13  Bruno Haible  <bruno@clisp.org>
24870
24871         mbsinit: Work around mingw bug.
24872         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24873         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24874         Windows.
24875         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24876
24877 2011-02-13  Bruno Haible  <bruno@clisp.org>
24878
24879         mbsinit: Don't crash for a NULL argument.
24880         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24881         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24882
24883 2011-02-13  Bruno Haible  <bruno@clisp.org>
24884
24885         Don't interfere with a program's definition of __attribute__.
24886         * lib/stdio.in.h (__attribute__): Remove definition.
24887         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24888         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24889         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24890         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24891         * lib/string.in.h (__attribute__): Remove definition.
24892         Reported by Paul Eggert.
24893
24894 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         stdlib: don't get in the way of non-GCC __attribute__
24897         See thread starting at
24898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24899         Revert previous stdlib change, installing the following instead:
24900         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24901         to get in the way of a non-GCC compiler that supports __attribute__.
24902         (_GL_ATTRIBUTE_RETURN): New macro.
24903         (_Exit): Use it instead of __attribute__.
24904
24905 2011-02-12  Bruno Haible  <bruno@clisp.org>
24906
24907         quotearg test: Avoid test failure on mingw.
24908         * tests/test-quotearg.sh: Convert the locale identifier from native
24909         Windows syntax to Unix syntax.
24910
24911 2011-02-12  Bruno Haible  <bruno@clisp.org>
24912
24913         setlocale: Prefer gnulib's override over libintl's override.
24914         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24915         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24916         GNULIB_defined_setlocale is set.
24917
24918 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24919
24920         stdlib: support non-GCC __attribute__
24921
24922         Fix a serious and tricky problem encountered when attempting to
24923         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24924         5.5, but it crashed due to memory corruption on Solaris 10 with
24925         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24926         bits that are otherwise zero.  This tagging is optional inside
24927         Emacs but is preferred and is used when __attribute__ ((__aligned
24928         (8))) works, as it does with both recent-enough GCC and with Sun C
24929         5.11.  However, Sun C 5.11 is not GCC and does not #define
24930         __GNUC__ and __GNUC_MINOR__.
24931
24932         When I added the getloadavg module to Emacs, it brought in
24933         stdlib.in.h, which contained this fragment:
24934
24935            #ifndef __attribute__
24936            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24937            #  define __attribute__(Spec)   /* empty */
24938            # endif
24939            #endif
24940
24941         When files that include <stdlib.h> were compiled with Sun C 5.11,
24942         the above code disabled __attribute__ ((__aligned (8))), which
24943         caused variables to not be properly aligned, which eventually led
24944         to the pointer corruption mentioned above.  (This was a bit hard
24945         to diagnose, unfortunately.)
24946
24947         Several "#define __attribute__(X) /* empty */" code snippets need
24948         to be eradicated from Gnulib to work with non-GCC compilers that
24949         support __attribute__.  The Autoconf way to do this is to test for
24950         each kind of attribute that we want support for, and selectively
24951         enable that in source code.
24952
24953         Fix this problem just for stdlib.h, by adding a test for the
24954         __noreturn__ attribute, and change stdlib.in.h to use that test
24955         when needed.  This technique can be easily generalized to the
24956         other *.in.h files and attributes, and a similar technique can be
24957         used for *.h and *.c files.  This patch is enough to solve the
24958         problem for Emacs + getloadavg, and I thought I'd publish it for
24959         feedback before undertaking further, similar fixes in other
24960         modules.
24961
24962         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24963         because it's not needed for stdlib.h.  It merely substitutes the
24964         value directly into stdlib.h.  We may well need to #define it, or
24965         similar symbols, for other modules, but it's nice to also have an
24966         option to not #define it for applications like Emacs that do not
24967         need it.
24968
24969         * lib/stdlib.in.h (__attribute__): Do not #define.
24970         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24971         be defined only if the _Exit module is also used.
24972         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24974         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24975         platforms.
24976         * modules/_Exit (Files): Add m4/attribute.m4.
24977         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24978         * m4/attribute.m4: New file.
24979
24980 2011-02-12  Bruno Haible  <bruno@clisp.org>
24981
24982         wcsrtombs: Work around bug on native Windows.
24983         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24984         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24985         instead of len.
24986         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24987
24988 2011-02-12  Bruno Haible  <bruno@clisp.org>
24989
24990         mbsrtowcs: Work around bug on native Windows.
24991         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24992         against mingw bug.
24993         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24994
24995 2011-02-12  Bruno Haible  <bruno@clisp.org>
24996
24997         Avoid setlocale bugs in tests.
24998         * modules/btowc (Dependencies): Add setlocale.
24999         * modules/c-strcase (Dependencies): Likewise.
25000         * modules/mbmemcasecmp (Dependencies): Likewise.
25001         * modules/mbmemcasecoll (Dependencies): Likewise.
25002         * modules/mbrtowc (Dependencies): Likewise.
25003         * modules/mbscasecmp (Dependencies): Likewise.
25004         * modules/mbscasestr (Dependencies): Likewise.
25005         * modules/mbschr (Dependencies): Likewise.
25006         * modules/mbscspn (Dependencies): Likewise.
25007         * modules/mbsinit (Dependencies): Likewise.
25008         * modules/mbsncasecmp (Dependencies): Likewise.
25009         * modules/mbsnrtowcs (Dependencies): Likewise.
25010         * modules/mbspbrk (Dependencies): Likewise.
25011         * modules/mbspcasecmp (Dependencies): Likewise.
25012         * modules/mbsrchr (Dependencies): Likewise.
25013         * modules/mbsrtowcs (Dependencies): Likewise.
25014         * modules/mbsspn (Dependencies): Likewise.
25015         * modules/mbsstr (Dependencies): Likewise.
25016         * modules/nl_langinfo (Dependencies): Likewise.
25017         * modules/quotearg (Dependencies): Likewise.
25018         * modules/unicase/locale-language (Dependencies): Likewise.
25019         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25020         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25021         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25022         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25023         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25024         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25025         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25026         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25027         * modules/vasnprintf-posix (Dependencies): Likewise.
25028         * modules/wcrtomb (Dependencies): Likewise.
25029         * modules/wcsnrtombs (Dependencies): Likewise.
25030         * modules/wcsrtombs (Dependencies): Likewise.
25031
25032 2011-02-12  Bruno Haible  <bruno@clisp.org>
25033
25034         setlocale: Workaround native Windows bug.
25035         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25036         succeeds but sets LC_CTYPE to "C", report a failure.
25037         * tests/test-setlocale2.sh: New file.
25038         * tests/test-setlocale2.c: New file.
25039         * modules/setlocale-tests (Files): Add the new files.
25040         (Makefile.am): Enable test-setlocale2.sh test.
25041         * doc/posix-functions/setlocale.texi: Mention workaround.
25042
25043 2011-02-11  Bruno Haible  <bruno@clisp.org>
25044
25045         Tests for module 'setlocale'.
25046         * modules/setlocale-tests: New file.
25047         * tests/test-setlocale1.sh: New file.
25048         * tests/test-setlocale1.c: New file.
25049
25050         New module 'setlocale'.
25051         * lib/locale.in.h (setlocale): New declaration.
25052         * lib/setlocale.c: New file, based on
25053         gettext/gettext-runtime/intl/setlocale.c.
25054         * m4/setlocale.m4: New file.
25055         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25056         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25057         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25058         REPLACE_SETLOCALE.
25059         * modules/setlocale: New file.
25060         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25061         * doc/posix-functions/setlocale.texi: Mention the new module.
25062
25063 2011-02-11  Bruno Haible  <bruno@clisp.org>
25064
25065         Prepare for locale dependent tests on mingw.
25066         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25067         because it has the wrong locale encoding.
25068         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25069         French_France.1252 instead of "fr".
25070         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25071         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25072         because it has the wrong locale encoding.
25073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25074         native Windows, try Turkish_Turkey.65001.
25075         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25076         Chinese_China.54936.
25077
25078         Prepare for locale dependent tests on mingw.
25079         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25080         differently.
25081         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25082         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25085
25086 2011-02-11  Eric Blake  <eblake@redhat.com>
25087
25088         strptime: avoid compiler warnings
25089         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25090         compiler warnings about dead code.
25091         Reported by Daniel P. Berrange.
25092
25093 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25094
25095         doc: update users.txt
25096         * users.txt: Add rcs.
25097
25098 2011-02-10  John W. Eaton  <jwe@gnu.org>
25099
25100         doc: update users.txt
25101         * users.txt: Add octave.
25102
25103 2011-02-10  Jim Meyering  <meyering@redhat.com>
25104
25105         doc: update users.txt
25106         * users.txt: Add iwhd.
25107
25108 2011-02-09  Bruno Haible  <bruno@clisp.org>
25109
25110         gnulib-tool: Make copyright notice adjustment more robust.
25111         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25112         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25113         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25114         License".
25115         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25116
25117 2011-02-06  Bruno Haible  <bruno@clisp.org>
25118
25119         New module 'towctrans'.
25120         * modules/towctrans: New file.
25121         * lib/wctype.in.h (towctrans): New declaration.
25122         * lib/towctrans.c: New file.
25123         * lib/towctrans-impl.h: New file.
25124         * m4/towctrans.m4: New file.
25125         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25126         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25127         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25128         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25129         * doc/posix-functions/towctrans.texi: Mention the new module.
25130
25131 2011-02-06  Bruno Haible  <bruno@clisp.org>
25132
25133         New module 'wctrans'.
25134         * modules/wctrans: New file.
25135         * lib/wctype.in.h (wctrans): New declaration.
25136         * lib/wctrans.c: New file.
25137         * lib/wctrans-impl.h: New file.
25138         * m4/wctrans.m4: New file.
25139         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25140         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25141         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25142         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25143         * doc/posix-functions/wctrans.texi: Mention the new module.
25144
25145 2011-02-06  Bruno Haible  <bruno@clisp.org>
25146
25147         New module 'iswctype'.
25148         * modules/iswctype: New file.
25149         * lib/wctype.in.h (iswctype): New declaration.
25150         * lib/iswctype.c: New file.
25151         * lib/iswctype-impl.h: New file.
25152         * m4/iswctype.m4: New file.
25153         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25154         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25155         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25156         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25157         * doc/posix-functions/iswctype.texi: Mention the new module and the
25158         HP-UX 11.00 problem.
25159
25160 2011-02-06  Bruno Haible  <bruno@clisp.org>
25161
25162         New module 'wctype'.
25163         * modules/wctype: Change to represent the wctype() substitute.
25164         * lib/wctype.in.h (wctype): New declaration.
25165         * lib/wctype.c: New file.
25166         * lib/wctype-impl.h: New file.
25167         * m4/wctype.m4: New file.
25168         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25169         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25170         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25171         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25172         * doc/posix-functions/wctype.texi: Mention the new module and the
25173         HP-UX 11.00 problem.
25174
25175 2011-02-06  Bruno Haible  <bruno@clisp.org>
25176
25177         wctype-h: Ensure wctype_t and wctrans_t are defined.
25178         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25179         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25180         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25181         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25182         HAVE_WCTRANS_T.
25183         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25184
25185 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25186
25187         flock: fix license typo
25188
25189         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25190         omitted.
25191
25192 2011-02-08  Bruno Haible  <bruno@clisp.org>
25193
25194         Split large sed scripts, for HP-UX sed.
25195         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25196         to avoid HP-UX limit of 99 commands, in the near future.
25197         * modules/stdlib (Makefile.am): Likewise.
25198         * modules/unistd (Makefile.am): Likewise.
25199         * modules/wchar (Makefile.am): Likewise.
25200         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25201         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25203
25204 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25205             Bruno Haible  <bruno@clisp.org>
25206
25207         stdlib: improve random_r modularization
25208         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25209         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25210         you also need the random_r module to get this material right.
25211         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25212         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25213         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25214
25215 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25216
25217         stdlib: don't depend on stdint
25218         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25219         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25220         be independent of whether stdint.h is needed.
25221         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25222         here, instead of ...
25223         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25224         struct random_data should be using the random_r module, not just
25225         the stdlib module (which wouldn't make sense: what package needs
25226         just struct random_data without also needing random_r?).
25227         * modules/stdlib (Depends-on): Remove stdint.
25228
25229         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25230         See the thread rooted at
25231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25232         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25233         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25234         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25235         __VMS)); previously it was always included (via fcntl--.h).
25236         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25237         hand; this is good enough for load averages.  Also, do not use
25238         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25239         flags directly if available and don't bother otherwise.  (Packages
25240         that need the extra reliability should use the modules that define
25241         these flags on older platforms that lack them.)
25242         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25243         fcntl-safer.
25244
25245 2011-02-08  Jim Meyering  <meyering@redhat.com>
25246
25247         di-set.h, ino-map.h: add multiple-inclusion guard
25248         Technically, the guard is required only for ino-map.h, due to its
25249         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25250         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25251         * lib/ino-map.h: Likewise.
25252
25253 2011-02-06  Bruno Haible  <bruno@clisp.org>
25254
25255         iswblank: Ensure declaration on glibc systems.
25256         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25257         * modules/iswblank (Dependencies): Add 'extensions'.
25258         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25259
25260 2011-02-06  Bruno Haible  <bruno@clisp.org>
25261
25262         New module 'iswblank'.
25263         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25264         * modules/iswblank: New file.
25265         * modules/wctype-h (Files): Remove lib/iswblank.c.
25266         (Makefile.am): Substitute GNULIB_ISWBLANK.
25267         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25268         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25269         (gl_WCTYPE_H_DEFAULTS): New macro.
25270         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25271         * modules/iswblank-tests: New file.
25272         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25273         * tests/test-wctype-h.c (main): Remove iswblank tests.
25274         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25275         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25276         of 'wctype-h'.
25277         * NEWS: Mention the change.
25278         * modules/mbchar (Depends-on): Add iswblank.
25279
25280 2011-02-08  Bruno Haible  <bruno@clisp.org>
25281
25282         di-set tests: Refactor.
25283         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25284         unnecessary includes.
25285         (ASSERT): Remove macro.
25286         (main): Make C90 compliant by avoiding variable declaration after
25287         statement.
25288         * modules/di-set-tests (Files): Add tests/macros.h.
25289
25290 2011-02-08  Bruno Haible  <bruno@clisp.org>
25291
25292         ino-map tests: Refactor.
25293         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25294         unnecessary includes.
25295         (ASSERT): Remove macro.
25296         (main): Make C90 compliant by avoiding variable declaration after
25297         statement.
25298         * modules/ino-map-tests (Files): Add tests/macros.h.
25299
25300 2011-02-08  Jim Meyering  <meyering@redhat.com>
25301
25302         di-set: add "const" to a cast
25303         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25304         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25305
25306 2011-02-06  Bruno Haible  <bruno@clisp.org>
25307
25308         Rename module 'wctype' to 'wctype-h'.
25309         * modules/wctype-h: Renamed from modules/wctype.
25310         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25311         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25312         (Files, Depends-on, Makefile.am): Update.
25313         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25314         (Files, Makefile.am): Update.
25315         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25316         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25317         * doc/posix-headers/wctype.texi: Update.
25318         * doc/posix-functions/iswalnum.texi: Update.
25319         * doc/posix-functions/iswalpha.texi: Update.
25320         * doc/posix-functions/iswblank.texi: Update.
25321         * doc/posix-functions/iswcntrl.texi: Update.
25322         * doc/posix-functions/iswdigit.texi: Update.
25323         * doc/posix-functions/iswgraph.texi: Update.
25324         * doc/posix-functions/iswlower.texi: Update.
25325         * doc/posix-functions/iswprint.texi: Update.
25326         * doc/posix-functions/iswpunct.texi: Update.
25327         * doc/posix-functions/iswspace.texi: Update.
25328         * doc/posix-functions/iswupper.texi: Update.
25329         * doc/posix-functions/iswxdigit.texi: Update.
25330         * doc/posix-functions/towlower.texi: Update.
25331         * doc/posix-functions/towupper.texi: Update.
25332         * NEWS: Mention the change.
25333         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25334         * modules/mbchar (Dependencies): Likewise.
25335         * modules/mbswidth (Dependencies): Likewise.
25336         * modules/quotearg (Dependencies): Likewise.
25337         * modules/regex (Dependencies): Likewise.
25338         * modules/wcscasecmp (Dependencies): Likewise.
25339         * modules/wcsncasecmp (Dependencies): Likewise.
25340         * modules/wcwidth (Dependencies): Likewise.
25341
25342 2011-02-06  Bruno Haible  <bruno@clisp.org>
25343
25344         New module 'wcswidth'.
25345         * modules/wcswidth: New file.
25346         * lib/wchar.in.h (wcswidth): New declaration.
25347         * lib/wcswidth.c: New file.
25348         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25349         * m4/wcswidth.m4: New file.
25350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25352         REPLACE_WCSWIDTH.
25353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25354         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25355         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25356         * doc/posix-functions/wcswidth.texi: Mention the new module.
25357
25358 2011-02-06  Bruno Haible  <bruno@clisp.org>
25359
25360         New module 'wcstok'.
25361         * modules/wcstok: New file.
25362         * lib/wchar.in.h (wcstok): New declaration.
25363         * lib/wcstok.c: New file.
25364         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25365         * m4/wcstok.m4: New file.
25366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25369         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25370         * doc/posix-functions/wcstok.texi: Mention the new module.
25371
25372 2011-02-06  Bruno Haible  <bruno@clisp.org>
25373
25374         New module 'wcsstr'.
25375         * modules/wcsstr: New file.
25376         * lib/wchar.in.h (wcsstr): New declaration.
25377         * lib/wcsstr.c: New file.
25378         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25379         * m4/wcsstr.m4: New file.
25380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25383         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25384         * doc/posix-functions/wcsstr.texi: Mention the new module.
25385
25386 2011-02-06  Bruno Haible  <bruno@clisp.org>
25387
25388         New module 'wcspbrk'.
25389         * modules/wcspbrk: New file.
25390         * lib/wchar.in.h (wcspbrk): New declaration.
25391         * lib/wcspbrk.c: New file.
25392         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25393         * m4/wcspbrk.m4: New file.
25394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25397         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25398         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25399
25400 2011-02-06  Bruno Haible  <bruno@clisp.org>
25401
25402         New module 'wcsspn'.
25403         * modules/wcsspn: New file.
25404         * lib/wchar.in.h (wcsspn): New declaration.
25405         * lib/wcsspn.c: New file.
25406         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25407         * m4/wcsspn.m4: New file.
25408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25411         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25412         * doc/posix-functions/wcsspn.texi: Mention the new module.
25413
25414 2011-02-06  Bruno Haible  <bruno@clisp.org>
25415
25416         New module 'wcscspn'.
25417         * modules/wcscspn: New file.
25418         * lib/wchar.in.h (wcscspn): New declaration.
25419         * lib/wcscspn.c: New file.
25420         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25421         * m4/wcscspn.m4: New file.
25422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25425         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25426         * doc/posix-functions/wcscspn.texi: Mention the new module.
25427
25428 2011-02-06  Bruno Haible  <bruno@clisp.org>
25429
25430         New module 'wcsrchr'.
25431         * modules/wcsrchr: New file.
25432         * lib/wchar.in.h (wcsrchr): New declaration.
25433         * lib/wcsrchr.c: New file.
25434         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25435         * m4/wcsrchr.m4: New file.
25436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25439         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25440         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25441
25442 2011-02-06  Bruno Haible  <bruno@clisp.org>
25443
25444         New module 'wcschr'.
25445         * modules/wcschr: New file.
25446         * lib/wchar.in.h (wcschr): New declaration.
25447         * lib/wcschr.c: New file.
25448         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25449         * m4/wcschr.m4: New file.
25450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25453         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25454         * doc/posix-functions/wcschr.texi: Mention the new module.
25455
25456 2011-02-06  Bruno Haible  <bruno@clisp.org>
25457
25458         New module 'wcsdup'.
25459         * modules/wcsdup: New file.
25460         * lib/wchar.in.h (wcsdup): New declaration.
25461         * lib/wcsdup.c: New file.
25462         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25463         * m4/wcsdup.m4: New file.
25464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25467         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25468         * doc/posix-functions/wcsdup.texi: Mention the new module.
25469
25470 2011-02-06  Bruno Haible  <bruno@clisp.org>
25471
25472         New module 'wcsxfrm'.
25473         * modules/wcsxfrm: New file.
25474         * lib/wchar.in.h (wcsxfrm): New declaration.
25475         * lib/wcsxfrm.c: New file.
25476         * lib/wcsxfrm-impl.h: New file.
25477         * m4/wcsxfrm.m4: New file.
25478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25481         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25482         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25483
25484 2011-02-06  Bruno Haible  <bruno@clisp.org>
25485
25486         New module 'wcscoll'.
25487         * modules/wcscoll: New file.
25488         * lib/wchar.in.h (wcscoll): New declaration.
25489         * lib/wcscoll.c: New file.
25490         * lib/wcscoll-impl.h: New file.
25491         * m4/wcscoll.m4: New file.
25492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25495         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25496         * doc/posix-functions/wcscoll.texi: Mention the new module.
25497
25498 2011-02-06  Bruno Haible  <bruno@clisp.org>
25499
25500         New module 'wcsncasecmp'.
25501         * modules/wcsncasecmp: New file.
25502         * lib/wchar.in.h (wcsncasecmp): New declaration.
25503         * lib/wcsncasecmp.c: New file.
25504         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25505         * m4/wcsncasecmp.m4: New file.
25506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25509         HAVE_WCSNCASECMP.
25510         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25511         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25512
25513 2011-02-06  Bruno Haible  <bruno@clisp.org>
25514
25515         New module 'wcscasecmp'.
25516         * modules/wcscasecmp: New file.
25517         * lib/wchar.in.h (wcscasecmp): New declaration.
25518         * lib/wcscasecmp.c: New file.
25519         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25520         * m4/wcscasecmp.m4: New file.
25521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25524         HAVE_WCSCASECMP.
25525         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25526         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25527
25528 2011-02-05  Bruno Haible  <bruno@clisp.org>
25529
25530         New module 'wcsncmp'.
25531         * modules/wcsncmp: New file.
25532         * lib/wchar.in.h (wcsncmp): New declaration.
25533         * lib/wcsncmp.c: New file.
25534         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25535         * m4/wcsncmp.m4: New file.
25536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25539         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25540         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25541
25542 2011-02-05  Bruno Haible  <bruno@clisp.org>
25543
25544         New module 'wcscmp'.
25545         * modules/wcscmp: New file.
25546         * lib/wchar.in.h (wcscmp): New declaration.
25547         * lib/wcscmp.c: New file.
25548         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25549         * m4/wcscmp.m4: New file.
25550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25553         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25554         * doc/posix-functions/wcscmp.texi: Mention the new module.
25555
25556 2011-02-05  Bruno Haible  <bruno@clisp.org>
25557
25558         New module 'wcsncat'.
25559         * modules/wcsncat: New file.
25560         * lib/wchar.in.h (wcsncat): New declaration.
25561         * lib/wcsncat.c: New file.
25562         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25563         * m4/wcsncat.m4: New file.
25564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25567         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25568         * doc/posix-functions/wcsncat.texi: Mention the new module.
25569
25570 2011-02-05  Bruno Haible  <bruno@clisp.org>
25571
25572         New module 'wcscat'.
25573         * modules/wcscat: New file.
25574         * lib/wchar.in.h (wcscat): New declaration.
25575         * lib/wcscat.c: New file.
25576         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25577         * m4/wcscat.m4: New file.
25578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25581         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25582         * doc/posix-functions/wcscat.texi: Mention the new module.
25583
25584 2011-02-05  Bruno Haible  <bruno@clisp.org>
25585
25586         New module 'wcpncpy'.
25587         * modules/wcpncpy: New file.
25588         * lib/wchar.in.h (wcpncpy): New declaration.
25589         * lib/wcpncpy.c: New file.
25590         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25591         * m4/wcpncpy.m4: New file.
25592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25594         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25595         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25596         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25597
25598 2011-02-05  Bruno Haible  <bruno@clisp.org>
25599
25600         New module 'wcsncpy'.
25601         * modules/wcsncpy: New file.
25602         * lib/wchar.in.h (wcsncpy): New declaration.
25603         * lib/wcsncpy.c: New file.
25604         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25605         * m4/wcsncpy.m4: New file.
25606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25609         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25610         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25611
25612 2011-02-05  Bruno Haible  <bruno@clisp.org>
25613
25614         New module 'wcpcpy'.
25615         * modules/wcpcpy: New file.
25616         * lib/wchar.in.h (wcpcpy): New declaration.
25617         * lib/wcpcpy.c: New file.
25618         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25619         * m4/wcpcpy.m4: New file.
25620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25622         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25623         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25624         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25625
25626 2011-02-05  Bruno Haible  <bruno@clisp.org>
25627
25628         New module 'wcscpy'.
25629         * modules/wcscpy: New file.
25630         * lib/wchar.in.h (wcscpy): New declaration.
25631         * lib/wcscpy.c: New file.
25632         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25633         * m4/wcscpy.m4: New file.
25634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25637         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25638         * doc/posix-functions/wcscpy.texi: Mention the new module.
25639
25640 2011-02-05  Bruno Haible  <bruno@clisp.org>
25641
25642         New module 'wcsnlen'.
25643         * modules/wcsnlen: New file.
25644         * lib/wchar.in.h (wcsnlen): New declaration.
25645         * lib/wcsnlen.c: New file.
25646         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25647         * m4/wcsnlen.m4: New file.
25648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25651         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25652         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25653
25654 2011-02-05  Bruno Haible  <bruno@clisp.org>
25655
25656         New module 'wcslen'.
25657         * modules/wcslen: New file.
25658         * lib/wchar.in.h (wcslen): New declaration.
25659         * lib/wcslen.c: New file.
25660         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25661         * m4/wcslen.m4: New file.
25662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25665         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25666         * doc/posix-functions/wcslen.texi: Mention the new module.
25667
25668 2011-02-05  Bruno Haible  <bruno@clisp.org>
25669
25670         New module 'wmemset'.
25671         * modules/wmemset: New file.
25672         * lib/wchar.in.h (wmemset): New declaration.
25673         * lib/wmemset.c: New file.
25674         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25675         * m4/wmemset.m4: New file.
25676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25678         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25679         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25680         * doc/posix-functions/wmemset.texi: Mention the new module.
25681
25682 2011-02-05  Bruno Haible  <bruno@clisp.org>
25683
25684         New module 'wmemmove'.
25685         * modules/wmemmove: New file.
25686         * lib/wchar.in.h (wmemmove): New declaration.
25687         * lib/wmemmove.c: New file.
25688         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25689         * m4/wmemmove.m4: New file.
25690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25692         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25693         HAVE_WMEMMOVE.
25694         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25695         * doc/posix-functions/wmemmove.texi: Mention the new module.
25696
25697 2011-02-05  Bruno Haible  <bruno@clisp.org>
25698
25699         New module 'wmemcpy'.
25700         * modules/wmemcpy: New file.
25701         * lib/wchar.in.h (wmemcpy): New declaration.
25702         * lib/wmemcpy.c: New file.
25703         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25704         * m4/wmemcpy.m4: New file.
25705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25707         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25708         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25709         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25710
25711 2011-02-05  Bruno Haible  <bruno@clisp.org>
25712
25713         New module 'wmemcmp'.
25714         * modules/wmemcmp: New file.
25715         * lib/wchar.in.h (wmemcmp): New declaration.
25716         * lib/wmemcmp.c: New file.
25717         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25718         * m4/wmemcmp.m4: New file.
25719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25721         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25722         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25723         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25724
25725 2011-02-07  Jim Meyering  <meyering@redhat.com>
25726
25727         di-set, ino-map: new modules, from coreutils
25728         * lib/di-set.c: New file.
25729         * lib/di-set.h: Likewise.
25730         * lib/ino-map.c: Likewise.
25731         * lib/ino-map.h: Likewise.
25732         * modules/di-set: Likewise.
25733         * modules/di-set-tests: Likewise.
25734         * modules/ino-map: Likewise.
25735         * modules/ino-map-tests: Likewise.
25736         * tests/test-di-set.c: Likewise.
25737         * tests/test-ino-map.c: Likewise.
25738
25739 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25740
25741         getloadavg: merge minor changes from Emacs
25742
25743         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25744         (getloadavg): Use memset, not bzero.
25745
25746         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25747         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25748         clash (bug#86).
25749
25750 2010-11-14  Bruno Haible  <bruno@clisp.org>
25751
25752         Allow multiple gnulib generated replacements to coexist.
25753         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25754         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25755         * lib/langinfo.in.h (nl_item): Likewise.
25756         * lib/math.in.h (_NaN, NAN): Likewise.
25757         * lib/netdb.in.h (struct addrinfo): Likewise.
25758         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25759         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25760         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25761         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25762         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25763         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25764         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25765         pthread_mutexattr_init, pthread_mutexattr_settype,
25766         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25767         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25768         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25769         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25770         * lib/sched.in.h (struct sched_param): Likewise.
25771         * lib/se-selinux.in.h (security_class_t, security_context_t,
25772         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25773         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25774         lsetfilecon, fsetfilecon, security_check_context,
25775         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25776         Likewise.
25777         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25778         Likewise.
25779         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25780         _gl_function_taking_int_returning_void_t, union sigval,
25781         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25782         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25783         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25784         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25785         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25786         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25787         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25788         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25789         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25790         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25791         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25792         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25793         socklen_t, rpl_fd_isset): Likewise.
25794         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25795         * lib/sys_time.in.h (struct timeval): Likewise.
25796         * lib/sys_times.in.h (struct tms): Likewise.
25797         * lib/sys_utsname.in.h (struct utsname):
25798         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25799         * lib/unistd.in.h (getpagesize): Likewise.
25800         * lib/wchar.in.h (mbstate_t): Likewise.
25801         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25802         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25803         towlower, towupper): Likewise.
25804         Reported by Sam Steingold <sds@gnu.org>.
25805
25806 2011-02-05  Eric Blake  <eblake@redhat.com>
25807
25808         unsetenv: work around Haiku issues
25809         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25810         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25811
25812 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25813
25814         libposix: avoid calling error() within libposix
25815         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25816         is defined.
25817
25818 2011-02-05  Eric Blake  <eblake@redhat.com>
25819
25820         strerror_r-posix: port to cygwin
25821         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25822         implementation.
25823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25824         * tests/test-strerror_r.c (main): Fix test.
25825         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25826         issue.
25827
25828 2011-02-05  Bruno Haible  <bruno@clisp.org>
25829
25830         New module 'wmemchr'.
25831         * modules/wmemchr: New file.
25832         * lib/wchar.in.h (wmemchr): New declaration.
25833         * lib/wmemchr.c: New file.
25834         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25835         * m4/wmemchr.m4: New file.
25836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25838         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25839         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25840         * doc/posix-functions/wmemchr.texi: Mention the new module.
25841
25842 2011-02-04  Eric Blake  <eblake@redhat.com>
25843
25844         fdopendir: detect FreeBSD bug
25845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25846         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25847
25848 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25849
25850         stdbool: do not define HAVE_STDBOOL_H
25851         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25852         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25853         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25854         imported from the latest Autoconf git.  It was motivated by Emacs,
25855         which uses gnulib but does not need HAVE_STDBOOL_H.
25856
25857 2011-02-04  Bruno Haible  <bruno@clisp.org>
25858
25859         wcsnrtombs: Prepare for new module wwcsnrtombs.
25860         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25861         * lib/wcsnrtombs.c: Include it.
25862         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25863
25864         wcsrtombs: Prepare for new module wwcsrtombs.
25865         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25866         * lib/wcsrtombs.c: Include it.
25867         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25868
25869         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25870         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25871         * lib/mbsnrtowcs.c: Include it.
25872         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25873
25874         mbsrtowcs: Prepare for new module mbsrtowwcs.
25875         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25876         * lib/mbsrtowcs.c: Include it.
25877         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25878
25879 2011-02-04  Bruno Haible  <bruno@clisp.org>
25880
25881         vasnprintf: Reduce use of malloc for small format strings.
25882         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25883         (arguments): Add room for the first 7 arguments.
25884         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25885         (char_directives, u8_directives, u16_directives, u32_directives): Add
25886         room for the first 7 directives.
25887         * lib/printf-parse.c: Include <string.h>.
25888         (PRINTF_PARSE): Change memory handling code so that it uses the first
25889         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25890         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25891         Reported by Pádraig Brady <P@draigbrady.com>.
25892
25893 2011-01-31  Eric Blake  <eblake@redhat.com>
25894
25895         dup2: work around Haiku bug
25896         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25897         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25898         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25899         * tests/test-dup2.c (main): Enhance test.
25900
25901 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25902
25903         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25904         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25905         declared by eglibc 2.11.2.
25906         * lib/stdio.in.h: Likewise.
25907
25908 2011-01-31  Eric Blake  <eblake@redhat.com>
25909
25910         ignore-value: add missing test dependency
25911         * tests/test-ignore-value.c: Revert previous change; stdio.h
25912         provides off_t.
25913         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25914
25915 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25916
25917         mktime: clarify long_int width checking
25918         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25919         the top level, to make it clearer that the assumption about
25920         long_int width is being checked.  See
25921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25922
25923 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25924
25925         ignore-value: Fix self-test.
25926         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25927
25928 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25929
25930         TYPE_MAXIMUM: avoid theoretically undefined behavior
25931         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25932         negative number, which the C Standard says has undefined behavior.
25933         In practice this is not a problem, but might as well do it by the book.
25934         Reported by Rich Felker and Eric Blake; see
25935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25936         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25937         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25939         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25940         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25941         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25942
25943         mktime: #undef mktime before #defining it
25944         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25945
25946         mktime: systematically normalize tm_isdst comparisons
25947         * lib/mktime.c (isdst_differ): New function.
25948         (__mktime_internal): Use it systematically for all isdst comparisons.
25949         This completes the fix for libc BZ #6723, and removes the need for
25950         normalizing tm_isdst.  See
25951         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25952         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25953
25954         mktime: fix some integer overflow issues and sidestep the rest
25955
25956         This was prompted by a bug report by Benjamin Lindner for MinGW
25957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25958         His bug is due to signed integer overflow (0 - INT_MIN), and I
25959         I scanned through mktime.c looking for other integer overflow
25960         problems, fixing all the bugs I found.
25961
25962         Although the C Standard says the resulting code is still not safe
25963         in the presence of integer overflow, in practice it should be good
25964         enough for all real-world two's-complement implementations, except
25965         for debugging environments that deliberately trap on integer
25966         overflow (e.g., gcc -ftrapv).
25967
25968         * lib/mktime.c (WRAPV): New macro.
25969         (SHR): Also check that long_int and time_t shift right in the
25970         usual way, before using the fast-but-unportable method.
25971         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25972         used.  The code already assumed two's complement, so there's
25973         no need to test for alternatives.  All uses removed.
25974         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25975         the C standard.  Problem reported by Rich Felker in
25976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25977         (twos_complement_arithmetic): Also check long_int and time_t.
25978         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25979         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25980         (__mktime_internal): Avoid integer overflow with unary subtraction
25981         in two instances where -1 - X is an adequate replacement for -X,
25982         since the calculations are approximate.
25983
25984 2011-01-29  Eric Blake  <eblake@redhat.com>
25985
25986         mktime: avoid infinite loop
25987         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25988         type; behavior is still undefined but portable to all known targets.
25989         Reported by Rich Felker.
25990
25991 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25992
25993         rename, unlink, same-inode: Relicense.
25994         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25995         * modules/unlink (License): Likewise.
25996         * modules/same-inode (License): Likewise.
25997
25998 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25999
26000         mktime: avoid problems on NetBSD 5 / i386
26001         * lib/mktime.c (long_int): New type.  This works around a problem
26002         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26003         but time_t is 64 bits, and where I expect the existing code is
26004         wrong in some cases.
26005         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26006         (ydhms_diff): Bring back the compile-time check for wide-enough
26007         year and yday.
26008
26009         mktime: fix misspelling in comment
26010         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26011         This merges all recent glibc changes of importance.
26012
26013 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26014
26015         move-if-change: cope with concurrent mv of identical file.
26016         * build-aux/move-if-change (CMPPROG): Accept environment
26017         variable as an override for `cmp'.
26018         (usage): Document CMPPROG.
26019         Adjust comparison to drop stdout.  Cope with failure of mv if
26020         the target file exists and is identical to the source, for
26021         parallel builds.
26022         Report from H.J. Lu against binutils in PR binutils/12283.
26023
26024 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26025
26026         * users.txt: Mention sharutils.
26027
26028 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26029
26030         * users.txt: Mention OATH Toolkit.
26031
26032 2011-01-27  Bruno Haible  <bruno@clisp.org>
26033
26034         Prepare for supporting FreeBSD 10.
26035         * build-aux/config.libpath: Remove handling of freebsd1*.
26036
26037 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26038
26039         Prepare for supporting FreeBSD 10.
26040         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26041         match FreeBSD 10.0.
26042
26043 2011-01-27  Bruno Haible  <bruno@clisp.org>
26044
26045         vma-iter, get-rusage-as: Add OpenBSD support.
26046         * modules/vma-iter (configure.ac): Test for mquery.
26047         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26048         * lib/vma-iter.c: Include <sys/mman.h>.
26049         (vma_iterate): Add an implementation based on mquery().
26050         * lib/resource-ext.h (get_rusage_as): Update comments.
26051         * lib/get-rusage-as.c: Likewise.
26052         * lib/get-rusage-data.c: Likewise.
26053
26054 2011-01-26  Karl Berry  <karl@gnu.org>
26055
26056         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26057         variables to make it easier to override the makeinfo program used.
26058
26059 2011-01-26  Eric Blake  <eblake@redhat.com>
26060
26061         fcntl: work around Haiku F_DUPFD bugs
26062         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26063         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26064         cloexec bit on duplication.
26065         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26066
26067 2011-01-26  Bruno Haible  <bruno@clisp.org>
26068
26069         Enable memory leak tests on AIX.
26070         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26071         * tests/test-fprintf-posix3.c (main): Likewise.
26072
26073 2011-01-26  Bruno Haible  <bruno@clisp.org>
26074
26075         Tests for module 'get-rusage-data'.
26076         * modules/get-rusage-data-tests: New file.
26077         * tests/test-get-rusage-data.c: New file.
26078
26079         New module 'get-rusage-data'.
26080         * lib/resource-ext.h (get_rusage_data): New declaration.
26081         * lib/get-rusage-data.c: New file.
26082         * modules/get-rusage-data: New file.
26083
26084 2011-01-25  Bruno Haible  <bruno@clisp.org>
26085
26086         get-rusage-as: Allow for easier testing.
26087         * lib/resource-ext.h (get_rusage_as): Add comment.
26088         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26089         (main): New function for interactive testing.
26090
26091 2011-01-25  Bruno Haible  <bruno@clisp.org>
26092
26093         vma-iter: Treat Haiku like BeOS.
26094         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26095         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26096
26097 2011-01-25  Eric Blake  <eblake@redhat.com>
26098
26099         c-stack: fix regression on cygwin when libsigsegv is present
26100         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26101
26102 2011-01-24  Bruno Haible  <bruno@clisp.org>
26103
26104         vma-iter: Avoid empty intervals.
26105         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26106         on an empty interval.
26107
26108 2011-01-24  Jim Meyering  <meyering@redhat.com>
26109
26110         u64: remove unnecessary #include
26111         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26112
26113 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26114
26115         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26116         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26117
26118 2011-01-23  Bruno Haible  <bruno@clisp.org>
26119
26120         New module 'vma-iter'.
26121         * lib/vma-iter.h: New file.
26122         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26123         * modules/vma-iter: New file.
26124         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26125         for get_rusage_as_via_iterator.
26126         (vma_iterate_callback): New function.
26127         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26128         * modules/get-rusage-as (Depends-on): Add vma-iter.
26129
26130 2011-01-23  Bruno Haible  <bruno@clisp.org>
26131
26132         uninorm: Tweak includes.
26133         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26134         Reported by Jim Meyering.
26135
26136 2011-01-23  Bruno Haible  <bruno@clisp.org>
26137
26138         get-rusage-as: Improve on NetBSD.
26139         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26140         /proc, like on FreeBSD.
26141
26142 2011-01-23  Jim Meyering  <meyering@redhat.com>
26143
26144         xreadlink.h: remove unnecessary #include
26145         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26146
26147         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26148         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26149
26150 2011-01-23  Bruno Haible  <bruno@clisp.org>
26151
26152         get-rusage-as: Fix bug.
26153         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26154         original limit when aborting the first loop.
26155
26156 2011-01-23  Bruno Haible  <bruno@clisp.org>
26157
26158         wctype: Ensure valid C syntax.
26159         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26160         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26161
26162 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26163
26164         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26166         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26167         as they are needed only for configure's test case.
26168         This removes two unnecessary symbols from config.h.
26169
26170         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26171         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26173         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26174         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26175         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26176         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26177         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26178         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26179         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26180         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26182         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26183         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26184         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26185         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26186         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26187         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26188
26189 2011-01-21  Eric Blake  <eblake@redhat.com>
26190
26191         maintainer-makefile: work with older git for submodule check
26192         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26193         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26194         Reported by Matthias Bolte.
26195
26196         bootstrap: minor portability fixes
26197         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26198         (usage): Omit leading capital and trailing . on help phrases, per
26199         GNU Coding Standards.
26200         (check_versions, top level): Prefix messages with script name.
26201
26202 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26203
26204         bootstrap: support --no-git option
26205         * build-aux/bootstrap: Add --no-git option, to be used when
26206         --gnulib-srcdir points to the exact desired checkout.
26207
26208 2011-01-21  Eric Blake  <eblake@redhat.com>
26209
26210         strerror_r-posix: work with glibc 2.13
26211         * lib/strerror_r.c (strerror_r): Fix return type.
26212
26213 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26214             Bruno Haible  <bruno@clisp.org>
26215
26216         uN_strstr: New unit tests.
26217         * modules/unistr/u8-strstr-tests: New file.
26218         * modules/unistr/u16-strstr-tests: New file.
26219         * modules/unistr/u32-strstr-tests: New file.
26220         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26221         * tests/unistr/test-u8-strstr.c: New file.
26222         * tests/unistr/test-u16-strstr.c: New file.
26223         * tests/unistr/test-u32-strstr.c: New file.
26224
26225 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26226             Bruno Haible  <bruno@clisp.org>
26227
26228         Make uN_strstr functions O(n) worst-case.
26229         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26230         16-bit and 32-bit unit cases, use the unibyte algorithm from
26231         lib/mbsstr.c.
26232         * lib/unistr/u8-strstr.c: Include <string.h>.
26233         (UNIT_IS_UINT8_T): New macro.
26234         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26235         (U_STRLEN, U_STRNLEN): New macros.
26236         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26237         (U_STRLEN, U_STRNLEN): New macros.
26238         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26239         (configure.ac): Update required libunistring version.
26240         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26241         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26242         malloca.
26243         (configure.ac): Update required libunistring version.
26244         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26245         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26246         malloca.
26247         (configure.ac): Update required libunistring version.
26248
26249 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26250             Bruno Haible  <bruno@clisp.org>
26251
26252         Prepare for faster uN_strstr functions.
26253         * lib/str-kmp.h: Support definable UNITs.
26254         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26255         needle_len argument.
26256         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26257         * lib/mbscasestr.c (mbscasestr): Likewise.
26258
26259 2011-01-21  Pádraig Brady <P@draigBrady.com>
26260
26261         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26262         * tests/test-malloca.c (main): Unset the environment variable
26263         to greatly speed up the test.
26264         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26265         * modules/malloca-tests: Depend on unsetenv.
26266
26267 2011-01-21  Pádraig Brady <P@draigBrady.com>
26268
26269         ignore-value: remove stdint dependency
26270         * lib/ignore-value.h: Remove <stdint.h>
26271         * modules/ignore-value: Remove stdint dependency.
26272
26273 2011-01-21  Jim Meyering  <meyering@redhat.com>
26274
26275         maint.mk: adjust variable name to be consistent with other gl_ vars
26276         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26277         to be lower case.
26278
26279 2011-01-20  Jim Meyering  <meyering@redhat.com>
26280
26281         maint.mk: make "check" depend on public-submodule-commit by default
26282         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26283
26284 2011-01-20  Bruno Haible  <bruno@clisp.org>
26285
26286         mbfile, mbiter: Complete change from 2008-12-21.
26287         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26288         * m4/mbiter.m4 (gl_MBITER): Likewise.
26289
26290 2011-01-20  Jim Meyering  <meyering@redhat.com>
26291
26292         init.sh: insert space between each function name and "()"
26293         * tests/init.sh: Make it a little easier to see that a function's
26294         name is "warn_", and not "warn" when looking at the first part of
26295         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26296
26297 2011-01-20  Jim Meyering  <meyering@redhat.com>
26298
26299         mountlist: clean up code formatting
26300         * lib/mountlist.c (read_file_system_list): Split a long line,
26301         correct bracing style, use NULL in place of "(struct statfs *)0",
26302         don't parenthesize return value, add spaces around "=" and after
26303         ";-in-for-stmt".
26304
26305 2011-01-14  Markus Duft <mduft@gentoo.org>
26306
26307         mountlist: add support for Interix
26308         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26309         Apply statvfs to all entries of /dev/fs.
26310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26311         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26312
26313 2011-01-20  Jim Meyering  <meyering@redhat.com>
26314
26315         maint.mk: improve the public-submodule-commit rule
26316         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26317         to suppress printing of its commands... unless V=1.
26318         Add git submodule's --quiet option to suppress printing of e.g.,
26319         "Entering gnulib" output.
26320         "cd" into $(srcdir) before running git submodule.
26321
26322 2011-01-20  Bruno Haible  <bruno@clisp.org>
26323
26324         include_next: Fix bug introduced on 2011-01-18.
26325         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26326         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26327         ac_cv_header_... variable if the second argument is not 'check'.
26328         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26329         gl_NEXT_HEADERS_INTERNAL.
26330
26331 2011-01-20  Bruno Haible  <bruno@clisp.org>
26332
26333         Allow the user to avoid the GNULIB_TEST_* macros.
26334         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26335         Suggested by Paul Eggert.
26336
26337 2011-01-14  Jim Meyering  <meyering@redhat.com>
26338
26339         bootstrap: avoid failure when there is no .gitmodules file
26340         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26341         has been assigned to, even when its value is the empty string.
26342         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26343         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26344         Reported by John W. Eaton <jwe@gnu.org>.
26345
26346 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26347
26348         assume <ctype.h>, ..., <time.h> exist
26349         For years gnulib has been assuming the existence of the headers
26350         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26351         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26352         them, since they don't appear to be needed.
26353         * README (Portability guidelines): Document this.
26354         * lib/flock.c: Assume <fcntl.h> exists.
26355         * lib/regex_internal.h: Assume <locale.h> exists.
26356         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26357         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26358         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26359         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26360         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26361         * m4/regex.m4 (gl_REGEX): Likewise.
26362         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26363         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26364         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26365         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26366         * tests/test-argp.c: Likewise.
26367         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26368
26369         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26370         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26371         AA_APPLE_UNIVERSAL_BUILD.  See
26372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26373         * NEWS: Document this.
26374
26375 2011-01-19  Eric Blake  <eblake@redhat.com>
26376
26377         c-stack: assume stack overflow if SA_SIGINFO unsupported
26378         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26379         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26380         sigaction will work.
26381         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26382         behavior match Linux.
26383         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26384
26385         stdbool-tests: accommodate Haiku
26386         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26387
26388         binary-io: fix O_TEXT on Haiku
26389         * modules/binary-io (Depends-on): Add fcntl-h.
26390         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26391         than blindly undefining O_TEXT.
26392         Reported by Scott McCreary.
26393
26394 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26395
26396         include_next: do not check for standard headers like stddef.h
26397
26398         I found this problem when modifying Emacs to use gnulib.
26399         I noticed that it added HAVE_STDDEF_H to config.h, even though
26400         gnulib always assumes <stddef.h> exists as per README and this
26401         symbol is unnecessary.
26402         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26403         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26404         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26405         faster for headers like stddef.h that are known to exist.
26406         (gl_CHECK_NEXT_HEADERS): Use it.
26407         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26408         rather than gl_CHECK_NEXT_HEADERS.
26409         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26410         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26411
26412 2011-01-18  Eric Blake  <eblake@redhat.com>
26413
26414         ansi-c++-opt: skip C++ dependency style if C++ is unused
26415         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26416         tests when we know C++ compilation is not desired.
26417         Reported by Scott McCreary.
26418
26419 2011-01-18  Bruno Haible  <bruno@clisp.org>
26420
26421         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26422         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26423         (main): Perform test also when getrlimit and setrlimit don't exist or
26424         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26425         limiting the address space size using setrlimit, compare the address
26426         space size before and after the the test.
26427         * tests/test-dprintf-posix2.c: Likewise.
26428         * tests/test-fprintf-posix3.sh: Update skip messages.
26429         * tests/test-dprintf-posix2.sh: Likewise.
26430         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26431         * modules/dprintf-posix-tests (Depends-on): Likewise.
26432         Reported by Bruce Korb <bkorb@gnu.org> and
26433         Gary V. Vaughan <gary@gnu.org>.
26434
26435 2011-01-18  Bruno Haible  <bruno@clisp.org>
26436
26437         get-rusage-as: Improvement for Cygwin.
26438         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26439         areas that are merely reserved.
26440
26441 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26442
26443         strftime: remove dependencies on multibyte modules
26444
26445         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26446         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26447         only if __osf__ is defined, and I suspect OSF doesn't need these
26448         other modules.  If my guess is wrong, we'll need to come up with a
26449         variant of strftime that doesn't need the multibyte modules.
26450
26451         I discovered this problem when attempting modify Emacs to use the
26452         strftime module.  With the previous gnulib, this caused Emacs to
26453         need 31 new files, ranging from lib/config.charset to
26454         m4/wint_t.m4.  This was overkill and I expect would be offputting
26455         to the Emacs maintainers.  After this change, only 6 new files are
26456         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26457         stdbool.m4, and tm_gmtoff.m4.
26458
26459         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26460         Suggested by Bruno Haible in
26461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26462         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26463         and do not check for wchar.h.
26464         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26465         (Depends-on): Remove mbrlen, mbsinit, wchar.
26466
26467 2011-01-18  Bruno Haible  <bruno@clisp.org>
26468
26469         Tests for module 'get-rusage-as'.
26470         * modules/get-rusage-as-tests: New file.
26471         * tests/test-get-rusage-as.c: New file.
26472
26473         New module 'get-rusage-as'.
26474         * modules/get-rusage-as: New file.
26475         * lib/resource-ext.h: New file.
26476         * lib/get-rusage-as.c: New file.
26477
26478 2011-01-17  Eric Blake  <eblake@redhat.com>
26479
26480         sigaction: relax license from LGPLv3+ to LGPLv2+
26481         * modules/sigaction (License): Relax to LGPLv2+.
26482
26483 2011-01-14  Bruno Haible  <bruno@clisp.org>
26484
26485         filemode: Make function declarations usable in C++ mode.
26486         * lib/filemode.h: Enclose function declarations in extern "C" block.
26487         Reported by John W. Eaton <jwe@gnu.org>.
26488
26489 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26490
26491         save-cwd: no longer include "xgetcwd.h"
26492         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26493         This avoids a compilation failure in projects that use save-cwd
26494         without also using the xgetcwd module.
26495
26496 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26497
26498         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26499         This is so that a program like Emacs, which needs only dtoastr,
26500         does not have to bother with distributing and compiling ftoastr
26501         and ldtoastr.
26502         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26503         * modules/dtoastr, modules/ldtoastr: New files.
26504         * modules/ftoastr: Now works just for 'float'.
26505         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26506         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26507         dtoastr.c, ldtoastr.c.
26508
26509 2011-01-11  Jim Meyering  <meyering@redhat.com>
26510
26511         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26512         There is no need to work around the lack of the fchdir function,
26513         since gnulib can now provide a replacement when required.
26514         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26515         * modules/save-cwd (Depends-on): Add fchdir.
26516
26517 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         openat, save-cwd: avoid xmalloc
26520
26521         This removes a direct (but undocumented) dependency of openat on
26522         xalloc, along with an indirect dependency via save-cwd.  It also
26523         removes a dependency of save-cwd on xgetcwd, and thereby
26524         indirectly on xalloc.  This change causes the openat substitute
26525         to fall back on save_cwd when memory is tight, and for save_cwd to
26526         fail instead of dying when memory is tight, but that's good enough.
26527         Problem and initial idea for fix reported by Bastien Roucaries in
26528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26529
26530         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26531         xalloc.h (for xmalloc).
26532         (openat_proc_name): Use malloc, not xmalloc.
26533         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26534         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26535
26536         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26537         This avoids heap allocation for file names whose lengths are in
26538         the range 512..1023, with the upper bound increasing to at most
26539         4031 depending on the platform's PATH_MAX.  (We do not want
26540         pathmax.h here as it might supply a non-constant PATH_MAX.)
26541         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26542         Perhaps they should be moved to malloca.h?
26543         (OPENAT_BUFFER_SIZE): Use them.
26544
26545 2011-01-10  Bruno Haible  <bruno@clisp.org>
26546
26547         doc: Update users.txt.
26548         * users.txt: Add recutils.
26549
26550 2011-01-09  Karl Berry  <karl@gnu.org>
26551
26552         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26553
26554         * doc/configmake.texi: New file.
26555         * doc/gnulib.texi: Include it.
26556         * modules/configmake: Move documentation from here.
26557
26558 2011-01-09  Bruno Haible  <bruno@clisp.org>
26559
26560         Update to Unicode 6.0.0.
26561         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26562         (get_lbp): Update for Unicode 6.0.0.
26563         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26564         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26565         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26566         U+11001, U+11038..U+11046. Remove U+06DE.
26567         (uc_width): Fix bounds of planes.
26568         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26569         lib/uniwidth/width.c.
26570         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26571         trailing whitespace removed.
26572         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26573         without comments, but with the original copyright notice.
26574         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26575         * lib/unicase/ignorable.h: Likewise.
26576         * lib/unicase/tocasefold.h: Likewise.
26577         * lib/unicase/tolower.h: Likewise.
26578         * lib/unicase/totitle.h: Likewise.
26579         * lib/unicase/toupper.h: Likewise.
26580         * lib/unictype/bidi_of.h: Likewise.
26581         * lib/unictype/blocks.h: Likewise.
26582         * lib/unictype/categ_C.h: Likewise.
26583         * lib/unictype/categ_Cn.h: Likewise.
26584         * lib/unictype/categ_L.h: Likewise.
26585         * lib/unictype/categ_Ll.h: Likewise.
26586         * lib/unictype/categ_Lm.h: Likewise.
26587         * lib/unictype/categ_Lo.h: Likewise.
26588         * lib/unictype/categ_Lu.h: Likewise.
26589         * lib/unictype/categ_M.h: Likewise.
26590         * lib/unictype/categ_Mc.h: Likewise.
26591         * lib/unictype/categ_Me.h: Likewise.
26592         * lib/unictype/categ_Mn.h: Likewise.
26593         * lib/unictype/categ_N.h: Likewise.
26594         * lib/unictype/categ_Nd.h: Likewise.
26595         * lib/unictype/categ_No.h: Likewise.
26596         * lib/unictype/categ_P.h: Likewise.
26597         * lib/unictype/categ_Po.h: Likewise.
26598         * lib/unictype/categ_S.h: Likewise.
26599         * lib/unictype/categ_Sc.h: Likewise.
26600         * lib/unictype/categ_Sk.h: Likewise.
26601         * lib/unictype/categ_Sm.h: Likewise.
26602         * lib/unictype/categ_So.h: Likewise.
26603         * lib/unictype/categ_of.h: Likewise.
26604         * lib/unictype/combining.h: Likewise.
26605         * lib/unictype/ctype_alnum.h: Likewise.
26606         * lib/unictype/ctype_alpha.h: Likewise.
26607         * lib/unictype/ctype_graph.h: Likewise.
26608         * lib/unictype/ctype_lower.h: Likewise.
26609         * lib/unictype/ctype_print.h: Likewise.
26610         * lib/unictype/ctype_punct.h: Likewise.
26611         * lib/unictype/ctype_upper.h: Likewise.
26612         * lib/unictype/decdigit.h: Likewise.
26613         * lib/unictype/digit.h: Likewise.
26614         * lib/unictype/numeric.h: Likewise.
26615         * lib/unictype/pr_alphabetic.h: Likewise.
26616         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26618         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26619         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26620         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26621         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26622         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26623         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26624         * lib/unictype/pr_case_ignorable.h: Likewise.
26625         * lib/unictype/pr_cased.h: Likewise.
26626         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26627         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26628         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26629         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26630         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26631         * lib/unictype/pr_combining.h: Likewise.
26632         * lib/unictype/pr_composite.h: Likewise.
26633         * lib/unictype/pr_currency_symbol.h: Likewise.
26634         * lib/unictype/pr_decimal_digit.h: Likewise.
26635         * lib/unictype/pr_deprecated.h: Likewise.
26636         * lib/unictype/pr_format_control.h: Likewise.
26637         * lib/unictype/pr_grapheme_base.h: Likewise.
26638         * lib/unictype/pr_grapheme_extend.h: Likewise.
26639         * lib/unictype/pr_grapheme_link.h: Likewise.
26640         * lib/unictype/pr_id_continue.h: Likewise.
26641         * lib/unictype/pr_id_start.h: Likewise.
26642         * lib/unictype/pr_ideographic.h: Likewise.
26643         * lib/unictype/pr_lowercase.h: Likewise.
26644         * lib/unictype/pr_math.h: Likewise.
26645         * lib/unictype/pr_numeric.h: Likewise.
26646         * lib/unictype/pr_other_alphabetic.h: Likewise.
26647         * lib/unictype/pr_other_id_continue.h: Likewise.
26648         * lib/unictype/pr_other_math.h: Likewise.
26649         * lib/unictype/pr_punctuation.h: Likewise.
26650         * lib/unictype/pr_sentence_terminal.h: Likewise.
26651         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26652         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26653         * lib/unictype/pr_unified_ideograph.h: Likewise.
26654         * lib/unictype/pr_uppercase.h: Likewise.
26655         * lib/unictype/pr_xid_continue.h: Likewise.
26656         * lib/unictype/pr_xid_start.h: Likewise.
26657         * lib/unictype/scripts.h: Likewise.
26658         * lib/unictype/scripts_byname.gperf: Likewise.
26659         * lib/unictype/sy_java_ident.h: Likewise.
26660         * lib/unigbrk/gbrkprop.h: Likewise.
26661         * lib/unilbrk/lbrkprop1.h: Likewise.
26662         * lib/unilbrk/lbrkprop2.h: Likewise.
26663         * lib/uninorm/decomposition-table2.h: Likewise.
26664         * lib/uniwbrk/wbrkprop.h: Likewise.
26665         * tests/unicase/test-cased.c: Likewise.
26666         * tests/unicase/test-ignorable.c: Likewise.
26667         * tests/unicase/test-uc_tolower.c: Likewise.
26668         * tests/unicase/test-uc_totitle.c: Likewise.
26669         * tests/unicase/test-uc_toupper.c: Likewise.
26670         * tests/unictype/test-categ_C.c: Likewise.
26671         * tests/unictype/test-categ_Cn.c: Likewise.
26672         * tests/unictype/test-categ_L.c: Likewise.
26673         * tests/unictype/test-categ_Ll.c: Likewise.
26674         * tests/unictype/test-categ_Lm.c: Likewise.
26675         * tests/unictype/test-categ_Lo.c: Likewise.
26676         * tests/unictype/test-categ_Lu.c: Likewise.
26677         * tests/unictype/test-categ_M.c: Likewise.
26678         * tests/unictype/test-categ_Mc.c: Likewise.
26679         * tests/unictype/test-categ_Me.c: Likewise.
26680         * tests/unictype/test-categ_Mn.c: Likewise.
26681         * tests/unictype/test-categ_N.c: Likewise.
26682         * tests/unictype/test-categ_Nd.c: Likewise.
26683         * tests/unictype/test-categ_No.c: Likewise.
26684         * tests/unictype/test-categ_P.c: Likewise.
26685         * tests/unictype/test-categ_Po.c: Likewise.
26686         * tests/unictype/test-categ_S.c: Likewise.
26687         * tests/unictype/test-categ_Sc.c: Likewise.
26688         * tests/unictype/test-categ_Sk.c: Likewise.
26689         * tests/unictype/test-categ_Sm.c: Likewise.
26690         * tests/unictype/test-categ_So.c: Likewise.
26691         * tests/unictype/test-ctype_alnum.c: Likewise.
26692         * tests/unictype/test-ctype_alpha.c: Likewise.
26693         * tests/unictype/test-ctype_graph.c: Likewise.
26694         * tests/unictype/test-ctype_lower.c: Likewise.
26695         * tests/unictype/test-ctype_print.c: Likewise.
26696         * tests/unictype/test-ctype_punct.c: Likewise.
26697         * tests/unictype/test-ctype_upper.c: Likewise.
26698         * tests/unictype/test-decdigit.h: Likewise.
26699         * tests/unictype/test-digit.h: Likewise.
26700         * tests/unictype/test-numeric.h: Likewise.
26701         * tests/unictype/test-pr_alphabetic.c: Likewise.
26702         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26703         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26704         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26705         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26706         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26707         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26708         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26709         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26710         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26711         * tests/unictype/test-pr_cased.c: Likewise.
26712         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26713         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26714         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26715         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26716         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26717         * tests/unictype/test-pr_combining.c: Likewise.
26718         * tests/unictype/test-pr_composite.c: Likewise.
26719         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26720         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26721         * tests/unictype/test-pr_deprecated.c: Likewise.
26722         * tests/unictype/test-pr_format_control.c: Likewise.
26723         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26724         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26725         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26726         * tests/unictype/test-pr_id_continue.c: Likewise.
26727         * tests/unictype/test-pr_id_start.c: Likewise.
26728         * tests/unictype/test-pr_ideographic.c: Likewise.
26729         * tests/unictype/test-pr_lowercase.c: Likewise.
26730         * tests/unictype/test-pr_math.c: Likewise.
26731         * tests/unictype/test-pr_numeric.c: Likewise.
26732         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26733         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26734         * tests/unictype/test-pr_other_math.c: Likewise.
26735         * tests/unictype/test-pr_punctuation.c: Likewise.
26736         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26737         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26738         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26739         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26740         * tests/unictype/test-pr_uppercase.c: Likewise.
26741         * tests/unictype/test-pr_xid_continue.c: Likewise.
26742         * tests/unictype/test-pr_xid_start.c: Likewise.
26743         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26744         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26745         changes.
26746         * lib/unictype/categ_Cc.h: Likewise.
26747         * lib/unictype/categ_Cf.h: Likewise.
26748         * lib/unictype/categ_Co.h: Likewise.
26749         * lib/unictype/categ_Cs.h: Likewise.
26750         * lib/unictype/categ_Lt.h: Likewise.
26751         * lib/unictype/categ_Nl.h: Likewise.
26752         * lib/unictype/categ_Pc.h: Likewise.
26753         * lib/unictype/categ_Pd.h: Likewise.
26754         * lib/unictype/categ_Pe.h: Likewise.
26755         * lib/unictype/categ_Pf.h: Likewise.
26756         * lib/unictype/categ_Pi.h: Likewise.
26757         * lib/unictype/categ_Ps.h: Likewise.
26758         * lib/unictype/categ_Z.h: Likewise.
26759         * lib/unictype/categ_Zl.h: Likewise.
26760         * lib/unictype/categ_Zp.h: Likewise.
26761         * lib/unictype/categ_Zs.h: Likewise.
26762         * lib/unictype/ctype_blank.h: Likewise.
26763         * lib/unictype/ctype_cntrl.h: Likewise.
26764         * lib/unictype/ctype_digit.h: Likewise.
26765         * lib/unictype/ctype_space.h: Likewise.
26766         * lib/unictype/ctype_xdigit.h: Likewise.
26767         * lib/unictype/mirror.h: Likewise.
26768         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26769         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26770         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26771         * lib/unictype/pr_bidi_control.h: Likewise.
26772         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26773         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26774         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26775         * lib/unictype/pr_bidi_pdf.h: Likewise.
26776         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26777         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26778         * lib/unictype/pr_dash.h: Likewise.
26779         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26780         * lib/unictype/pr_diacritic.h: Likewise.
26781         * lib/unictype/pr_extender.h: Likewise.
26782         * lib/unictype/pr_hex_digit.h: Likewise.
26783         * lib/unictype/pr_hyphen.h: Likewise.
26784         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26785         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26786         * lib/unictype/pr_ignorable_control.h: Likewise.
26787         * lib/unictype/pr_iso_control.h: Likewise.
26788         * lib/unictype/pr_join_control.h: Likewise.
26789         * lib/unictype/pr_left_of_pair.h: Likewise.
26790         * lib/unictype/pr_line_separator.h: Likewise.
26791         * lib/unictype/pr_logical_order_exception.h: Likewise.
26792         * lib/unictype/pr_non_break.h: Likewise.
26793         * lib/unictype/pr_not_a_character.h: Likewise.
26794         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26795         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26796         * lib/unictype/pr_other_id_start.h: Likewise.
26797         * lib/unictype/pr_other_lowercase.h: Likewise.
26798         * lib/unictype/pr_other_uppercase.h: Likewise.
26799         * lib/unictype/pr_paired_punctuation.h: Likewise.
26800         * lib/unictype/pr_paragraph_separator.h: Likewise.
26801         * lib/unictype/pr_pattern_syntax.h: Likewise.
26802         * lib/unictype/pr_pattern_white_space.h: Likewise.
26803         * lib/unictype/pr_private_use.h: Likewise.
26804         * lib/unictype/pr_quotation_mark.h: Likewise.
26805         * lib/unictype/pr_radical.h: Likewise.
26806         * lib/unictype/pr_soft_dotted.h: Likewise.
26807         * lib/unictype/pr_space.h: Likewise.
26808         * lib/unictype/pr_titlecase.h: Likewise.
26809         * lib/unictype/pr_variation_selector.h: Likewise.
26810         * lib/unictype/pr_white_space.h: Likewise.
26811         * lib/unictype/pr_zero_width.h: Likewise.
26812         * lib/unictype/sy_c_ident.h: Likewise.
26813         * lib/unictype/sy_c_whitespace.h: Likewise.
26814         * lib/unictype/sy_java_whitespace.h: Likewise.
26815         * lib/uninorm/composition-table.gperf: Likewise.
26816         * lib/uninorm/decomposition-table1.h: Likewise.
26817         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26818         LB8.
26819         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26820         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26821         * modules/unictype/*: Bump version number of expected libunistring
26822         version.
26823
26824 2011-01-09  Bruno Haible  <bruno@clisp.org>
26825
26826         Update to Unicode 5.2.0.
26827         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26828         trailing whitespace removed.
26829
26830 2011-01-09  Bruno Haible  <bruno@clisp.org>
26831
26832         New Unicode character properties, from Unicode 5.2.0.
26833         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26834         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26835         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26836         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26837         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26838         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26839         uc_is_property_cased, uc_is_property_case_ignorable,
26840         uc_is_property_changes_when_lowercased,
26841         uc_is_property_changes_when_uppercased,
26842         uc_is_property_changes_when_titlecased,
26843         uc_is_property_changes_when_casefolded,
26844         uc_is_property_changes_when_casemapped): New declarations.
26845         * lib/unictype/pr_byname.gperf: Add the new properties.
26846         * modules/unictype/property-byname (Depends-on): Depend on the new
26847         properties modules.
26848         * modules/unictype/property-all (Depends-on): Likewise.
26849         * MODULES.html.sh (Unicode string functions): Add
26850         unictype/property-case-ignorable, unictype/property-cased,
26851         unictype/property-changes-when-casefolded,
26852         unictype/property-changes-when-casemapped,
26853         unictype/property-changes-when-lowercased,
26854         unictype/property-changes-when-titlecased,
26855         unictype/property-changes-when-uppercased.
26856
26857         New module 'unictype/property-changes-when-casemapped'.
26858         * modules/unictype/property-changes-when-casemapped: New file.
26859         * lib/unictype/pr_changes_when_casemapped.c: New file.
26860         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26861         generated by gen-uni-tables.
26862         * modules/unictype/property-changes-when-casemapped-tests: New file.
26863         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26864         automatically generated by gen-uni-tables.
26865
26866         New module 'unictype/property-changes-when-casefolded'.
26867         * modules/unictype/property-changes-when-casefolded: New file.
26868         * lib/unictype/pr_changes_when_casefolded.c: New file.
26869         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26870         generated by gen-uni-tables.
26871         * modules/unictype/property-changes-when-casefolded-tests: New file.
26872         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26873         automatically generated by gen-uni-tables.
26874
26875         New module 'unictype/property-changes-when-titlecased'.
26876         * modules/unictype/property-changes-when-titlecased: New file.
26877         * lib/unictype/pr_changes_when_titlecased.c: New file.
26878         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26879         generated by gen-uni-tables.
26880         * modules/unictype/property-changes-when-titlecased-tests: New file.
26881         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26882         automatically generated by gen-uni-tables.
26883
26884         New module 'unictype/property-changes-when-uppercased'.
26885         * modules/unictype/property-changes-when-uppercased: New file.
26886         * lib/unictype/pr_changes_when_uppercased.c: New file.
26887         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26888         generated by gen-uni-tables.
26889         * modules/unictype/property-changes-when-uppercased-tests: New file.
26890         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26891         automatically generated by gen-uni-tables.
26892
26893         New module 'unictype/property-changes-when-lowercased'.
26894         * modules/unictype/property-changes-when-lowercased: New file.
26895         * lib/unictype/pr_changes_when_lowercased.c: New file.
26896         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26897         generated by gen-uni-tables.
26898         * modules/unictype/property-changes-when-lowercased-tests: New file.
26899         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26900         automatically generated by gen-uni-tables.
26901
26902         New module 'unictype/property-case-ignorable'.
26903         * modules/unictype/property-case-ignorable: New file.
26904         * lib/unictype/pr_case_ignorable.c: New file.
26905         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26906         by gen-uni-tables.
26907         * modules/unictype/property-case-ignorable-tests: New file.
26908         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26909         generated by gen-uni-tables.
26910
26911         New module 'unictype/property-cased'.
26912         * modules/unictype/property-cased: New file.
26913         * lib/unictype/pr_cased.c: New file.
26914         * lib/unictype/pr_cased.h: New file, automatically generated by
26915         gen-uni-tables.
26916         * modules/unictype/property-cased-tests: New file.
26917         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26918         gen-uni-tables.
26919
26920 2011-01-09  Bruno Haible  <bruno@clisp.org>
26921
26922         Update to Unicode 5.2.0.
26923         * lib/gen-uni-tables.c (output_predicate, output_category,
26924         output_combclass, output_bidi_category, output_decimal_digit_test,
26925         output_decimal_digit, output_digit_test, output_digit,
26926         output_numeric_test, output_numeric, output_mirror, output_scripts,
26927         output_scripts_byname, output_blocks, output_ident_category): Fix
26928         comment header.
26929         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26930         get_wbp.
26931         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26932         items.
26933         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26934         Changes_When_Lowercased, Changes_When_Uppercased,
26935         Changes_When_Titlecased, Changes_When_Casefolded,
26936         Changes_When_Casemapped.
26937         (is_property_alphabetic, is_property_default_ignorable_code_point):
26938         Update for Unicode 5.2.0.
26939         (is_property_cased, is_property_case_ignorable,
26940         is_property_changes_when_lowercased,
26941         is_property_changes_when_uppercased,
26942         is_property_changes_when_titlecased,
26943         is_property_changes_when_casefolded,
26944         is_property_changes_when_casemapped): New functions.
26945         (output_properties): Output also the properties cased, case_ignorable,
26946         changes_when_lowercased, changes_when_uppercased,
26947         changes_when_titlecased, changes_when_casefolded,
26948         changes_when_casemapped.
26949         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26950         Unicode TR#11 revision 17 -> 19.
26951         (LBP_CP): New enumeration value.
26952         (LBP_*): Adjust values accordingly.
26953         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26954         TR#14 revision 22 -> 24.
26955         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26956         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26957         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26958         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26959         is_WBP_MIDLETTER.
26960         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26961         the code1 and code2 of each composition rule.
26962         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26963         * lib/unicase/ignorable.h: Likewise.
26964         * lib/unicase/tocasefold.h: Likewise.
26965         * lib/unicase/tolower.h: Likewise.
26966         * lib/unicase/totitle.h: Likewise.
26967         * lib/unicase/toupper.h: Likewise.
26968         * lib/unictype/bidi_of.h: Likewise.
26969         * lib/unictype/blocks.h: Likewise.
26970         * lib/unictype/categ_C.h: Likewise.
26971         * lib/unictype/categ_Cf.h: Likewise.
26972         * lib/unictype/categ_Cn.h: Likewise.
26973         * lib/unictype/categ_L.h: Likewise.
26974         * lib/unictype/categ_Ll.h: Likewise.
26975         * lib/unictype/categ_Lm.h: Likewise.
26976         * lib/unictype/categ_Lo.h: Likewise.
26977         * lib/unictype/categ_Lu.h: Likewise.
26978         * lib/unictype/categ_M.h: Likewise.
26979         * lib/unictype/categ_Mc.h: Likewise.
26980         * lib/unictype/categ_Mn.h: Likewise.
26981         * lib/unictype/categ_N.h: Likewise.
26982         * lib/unictype/categ_Nd.h: Likewise.
26983         * lib/unictype/categ_Nl.h: Likewise.
26984         * lib/unictype/categ_No.h: Likewise.
26985         * lib/unictype/categ_P.h: Likewise.
26986         * lib/unictype/categ_Pd.h: Likewise.
26987         * lib/unictype/categ_Po.h: Likewise.
26988         * lib/unictype/categ_S.h: Likewise.
26989         * lib/unictype/categ_Sc.h: Likewise.
26990         * lib/unictype/categ_So.h: Likewise.
26991         * lib/unictype/categ_of.h: Likewise.
26992         * lib/unictype/combining.h: Likewise.
26993         * lib/unictype/ctype_alnum.h: Likewise.
26994         * lib/unictype/ctype_alpha.h: Likewise.
26995         * lib/unictype/ctype_graph.h: Likewise.
26996         * lib/unictype/ctype_lower.h: Likewise.
26997         * lib/unictype/ctype_print.h: Likewise.
26998         * lib/unictype/ctype_punct.h: Likewise.
26999         * lib/unictype/ctype_upper.h: Likewise.
27000         * lib/unictype/decdigit.h: Likewise.
27001         * lib/unictype/digit.h: Likewise.
27002         * lib/unictype/numeric.h: Likewise.
27003         * lib/unictype/pr_alphabetic.h: Likewise.
27004         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27005         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27006         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27007         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27008         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27009         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27010         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27011         * lib/unictype/pr_combining.h: Likewise.
27012         * lib/unictype/pr_composite.h: Likewise.
27013         * lib/unictype/pr_currency_symbol.h: Likewise.
27014         * lib/unictype/pr_dash.h: Likewise.
27015         * lib/unictype/pr_decimal_digit.h: Likewise.
27016         * lib/unictype/pr_deprecated.h: Likewise.
27017         * lib/unictype/pr_diacritic.h: Likewise.
27018         * lib/unictype/pr_extender.h: Likewise.
27019         * lib/unictype/pr_grapheme_base.h: Likewise.
27020         * lib/unictype/pr_grapheme_extend.h: Likewise.
27021         * lib/unictype/pr_grapheme_link.h: Likewise.
27022         * lib/unictype/pr_id_continue.h: Likewise.
27023         * lib/unictype/pr_id_start.h: Likewise.
27024         * lib/unictype/pr_ideographic.h: Likewise.
27025         * lib/unictype/pr_ignorable_control.h: Likewise.
27026         * lib/unictype/pr_logical_order_exception.h: Likewise.
27027         * lib/unictype/pr_lowercase.h: Likewise.
27028         * lib/unictype/pr_numeric.h: Likewise.
27029         * lib/unictype/pr_other_alphabetic.h: Likewise.
27030         * lib/unictype/pr_punctuation.h: Likewise.
27031         * lib/unictype/pr_sentence_terminal.h: Likewise.
27032         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27033         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27034         * lib/unictype/pr_unified_ideograph.h: Likewise.
27035         * lib/unictype/pr_uppercase.h: Likewise.
27036         * lib/unictype/pr_xid_continue.h: Likewise.
27037         * lib/unictype/pr_xid_start.h: Likewise.
27038         * lib/unictype/pr_zero_width.h: Likewise.
27039         * lib/unictype/scripts.h: Likewise.
27040         * lib/unictype/scripts_byname.gperf: Likewise.
27041         * lib/unictype/sy_java_ident.h: Likewise.
27042         * lib/unigbrk/gbrkprop.h: Likewise.
27043         * lib/unilbrk/lbrkprop1.h: Likewise.
27044         * lib/unilbrk/lbrkprop2.h: Likewise.
27045         * lib/unilbrk/lbrktables.h: Likewise.
27046         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27047         LBP_CP. Implement rule LB30.
27048         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27049         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27050         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27051         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27052         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27053         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27054         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27055         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27056         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27057         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27058         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27059         bits instead of 16 bits in the code1 and code2 of each composition
27060         rule.
27061         (uc_composition): Update for Unicode 5.2.0.
27062         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27063         * lib/uninorm/decomposition-table2.h: Likewise.
27064         * lib/uniwbrk/wbrkprop.h: Likewise.
27065         * tests/unicase/test-cased.c: Likewise.
27066         * tests/unicase/test-ignorable.c: Likewise.
27067         * tests/unicase/test-uc_tolower.c: Likewise.
27068         * tests/unicase/test-uc_totitle.c: Likewise.
27069         * tests/unicase/test-uc_toupper.c: Likewise.
27070         * tests/unictype/test-categ_C.c: Likewise.
27071         * tests/unictype/test-categ_Cf.c: Likewise.
27072         * tests/unictype/test-categ_Cn.c: Likewise.
27073         * tests/unictype/test-categ_L.c: Likewise.
27074         * tests/unictype/test-categ_Ll.c: Likewise.
27075         * tests/unictype/test-categ_Lm.c: Likewise.
27076         * tests/unictype/test-categ_Lo.c: Likewise.
27077         * tests/unictype/test-categ_Lu.c: Likewise.
27078         * tests/unictype/test-categ_M.c: Likewise.
27079         * tests/unictype/test-categ_Mc.c: Likewise.
27080         * tests/unictype/test-categ_Mn.c: Likewise.
27081         * tests/unictype/test-categ_N.c: Likewise.
27082         * tests/unictype/test-categ_Nd.c: Likewise.
27083         * tests/unictype/test-categ_Nl.c: Likewise.
27084         * tests/unictype/test-categ_No.c: Likewise.
27085         * tests/unictype/test-categ_P.c: Likewise.
27086         * tests/unictype/test-categ_Pd.c: Likewise.
27087         * tests/unictype/test-categ_Po.c: Likewise.
27088         * tests/unictype/test-categ_S.c: Likewise.
27089         * tests/unictype/test-categ_Sc.c: Likewise.
27090         * tests/unictype/test-categ_So.c: Likewise.
27091         * tests/unictype/test-ctype_alnum.c: Likewise.
27092         * tests/unictype/test-ctype_alpha.c: Likewise.
27093         * tests/unictype/test-ctype_graph.c: Likewise.
27094         * tests/unictype/test-ctype_lower.c: Likewise.
27095         * tests/unictype/test-ctype_print.c: Likewise.
27096         * tests/unictype/test-ctype_punct.c: Likewise.
27097         * tests/unictype/test-ctype_upper.c: Likewise.
27098         * tests/unictype/test-decdigit.h: Likewise.
27099         * tests/unictype/test-digit.h: Likewise.
27100         * tests/unictype/test-numeric.h: Likewise.
27101         * tests/unictype/test-pr_alphabetic.c: Likewise.
27102         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27103         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27104         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27105         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27106         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27107         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27108         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27109         * tests/unictype/test-pr_combining.c: Likewise.
27110         * tests/unictype/test-pr_composite.c: Likewise.
27111         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27112         * tests/unictype/test-pr_dash.c: Likewise.
27113         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27114         * tests/unictype/test-pr_deprecated.c: Likewise.
27115         * tests/unictype/test-pr_diacritic.c: Likewise.
27116         * tests/unictype/test-pr_extender.c: Likewise.
27117         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27118         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27119         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27120         * tests/unictype/test-pr_id_continue.c: Likewise.
27121         * tests/unictype/test-pr_id_start.c: Likewise.
27122         * tests/unictype/test-pr_ideographic.c: Likewise.
27123         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27124         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27125         * tests/unictype/test-pr_lowercase.c: Likewise.
27126         * tests/unictype/test-pr_numeric.c: Likewise.
27127         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27128         * tests/unictype/test-pr_punctuation.c: Likewise.
27129         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27130         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27131         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27132         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27133         * tests/unictype/test-pr_uppercase.c: Likewise.
27134         * tests/unictype/test-pr_xid_continue.c: Likewise.
27135         * tests/unictype/test-pr_xid_start.c: Likewise.
27136         * tests/unictype/test-pr_zero_width.c: Likewise.
27137         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27138         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27139         changed behaviour: line breaking is now disallowed between a letter
27140         or '=' and '('.
27141         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27142         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27143         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27144         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27145         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27146         lib/uniwidth/width.c.
27147         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27148         without comments, but with the original copyright notice.
27149         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27150         changes.
27151         * lib/unictype/categ_Cc.h: Likewise.
27152         * lib/unictype/categ_Co.h: Likewise.
27153         * lib/unictype/categ_Cs.h: Likewise.
27154         * lib/unictype/categ_Lt.h: Likewise.
27155         * lib/unictype/categ_Me.h: Likewise.
27156         * lib/unictype/categ_Pc.h: Likewise.
27157         * lib/unictype/categ_Pe.h: Likewise.
27158         * lib/unictype/categ_Pf.h: Likewise.
27159         * lib/unictype/categ_Pi.h: Likewise.
27160         * lib/unictype/categ_Ps.h: Likewise.
27161         * lib/unictype/categ_Sk.h: Likewise.
27162         * lib/unictype/categ_Sm.h: Likewise.
27163         * lib/unictype/categ_Z.h: Likewise.
27164         * lib/unictype/categ_Zl.h: Likewise.
27165         * lib/unictype/categ_Zp.h: Likewise.
27166         * lib/unictype/categ_Zs.h: Likewise.
27167         * lib/unictype/ctype_blank.h: Likewise.
27168         * lib/unictype/ctype_cntrl.h: Likewise.
27169         * lib/unictype/ctype_digit.h: Likewise.
27170         * lib/unictype/ctype_space.h: Likewise.
27171         * lib/unictype/ctype_xdigit.h: Likewise.
27172         * lib/unictype/mirror.h: Likewise.
27173         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27174         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27175         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27176         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27177         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27178         * lib/unictype/pr_bidi_control.h: Likewise.
27179         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27180         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27181         * lib/unictype/pr_bidi_pdf.h: Likewise.
27182         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27183         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27184         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27185         * lib/unictype/pr_format_control.h: Likewise.
27186         * lib/unictype/pr_hex_digit.h: Likewise.
27187         * lib/unictype/pr_hyphen.h: Likewise.
27188         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27189         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27190         * lib/unictype/pr_iso_control.h: Likewise.
27191         * lib/unictype/pr_join_control.h: Likewise.
27192         * lib/unictype/pr_left_of_pair.h: Likewise.
27193         * lib/unictype/pr_line_separator.h: Likewise.
27194         * lib/unictype/pr_math.h: Likewise.
27195         * lib/unictype/pr_non_break.h: Likewise.
27196         * lib/unictype/pr_not_a_character.h: Likewise.
27197         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27198         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27199         * lib/unictype/pr_other_id_continue.h: Likewise.
27200         * lib/unictype/pr_other_id_start.h: Likewise.
27201         * lib/unictype/pr_other_lowercase.h: Likewise.
27202         * lib/unictype/pr_other_math.h: Likewise.
27203         * lib/unictype/pr_other_uppercase.h: Likewise.
27204         * lib/unictype/pr_paired_punctuation.h: Likewise.
27205         * lib/unictype/pr_paragraph_separator.h: Likewise.
27206         * lib/unictype/pr_pattern_syntax.h: Likewise.
27207         * lib/unictype/pr_pattern_white_space.h: Likewise.
27208         * lib/unictype/pr_private_use.h: Likewise.
27209         * lib/unictype/pr_quotation_mark.h: Likewise.
27210         * lib/unictype/pr_radical.h: Likewise.
27211         * lib/unictype/pr_soft_dotted.h: Likewise.
27212         * lib/unictype/pr_space.h: Likewise.
27213         * lib/unictype/pr_titlecase.h: Likewise.
27214         * lib/unictype/pr_variation_selector.h: Likewise.
27215         * lib/unictype/pr_white_space.h: Likewise.
27216         * lib/unictype/sy_c_ident.h: Likewise.
27217         * lib/unictype/sy_c_whitespace.h: Likewise.
27218         * lib/unictype/sy_java_whitespace.h: Likewise.
27219         * modules/uni*/*: Bump version number of expected libunistring version.
27220         Reported by Simon Josefsson.
27221
27222 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27223
27224         useless-if-before-free: fix typo in --help and make the internal,
27225         automatic version date update process work once again.
27226         --help output contained a NUL character instead of the
27227         backslash-zero that was intended.  Also, the "must lie within
27228         the first 8 lines" line is on line 9, and hence not getting
27229         automatically updated.
27230         * build-aux/useless-if-before-free: Fix the former by adding a
27231         backslash, and the latter by condensing the three lines of what-it-does
27232         to a single line, leaving one line of slack for the future.
27233
27234 2011-01-09  Bruno Haible  <bruno@clisp.org>
27235
27236         uniwidth/width: Fix width of U+1D173..U+1D17A.
27237         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27238         symbolic_width, output_width_property_test): New functions.
27239         (main): Invoke output_nonspacing_property, output_width_property_test.
27240         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27241         U+1D173..U+1D17A.
27242         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27243         1.
27244         * modules/uniwidth/*: Bump version number of expected libunistring
27245         version.
27246         * modules/unilbrk/*: Likewise.
27247
27248 2011-01-08  Bruno Haible  <bruno@clisp.org>
27249
27250         uninorm tests: Preserve copyright of Unicode data file.
27251         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27252         Mention modifications.
27253
27254 2011-01-08  Bruno Haible  <bruno@clisp.org>
27255
27256         gen-uni-tables: Prepare for Unicode 5.2.0.
27257         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27258         (debug_output_lbp, output_lbp): Update.
27259
27260 2011-01-08  Bruno Haible  <bruno@clisp.org>
27261
27262         unilbrk: Clarify gen-uni-tables.c code.
27263         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27264         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27265         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27266
27267 2011-01-07  Bruno Haible  <bruno@clisp.org>
27268
27269         strtod: Restore errno when successfully parsing Infinity or NaN.
27270         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27271         restore the original errno.
27272
27273 2011-01-07  Bruno Haible  <bruno@clisp.org>
27274
27275         remove test: Avoid failure on HP-UX 11.
27276         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27277
27278 2011-01-07  Bruno Haible  <bruno@clisp.org>
27279
27280         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27281         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27282         error code.
27283
27284 2011-01-07  Pádraig Brady <P@draigBrady.com>
27285
27286         ignore-value: fixup comments, and add Eric Blake
27287         as an author since he rewrote the macros.
27288         * lib/ignore-value.h (ignore_value):  State that
27289         we now support aggregates.  Also specify exactly
27290         when the GCC warn_unused_result feature was added.
27291
27292 2011-01-06  Eric Blake  <eblake@redhat.com>
27293
27294         ignore-value: support aggregate types
27295         * lib/ignore-value.h (ignore_value): Provide separate gcc
27296         definition.
27297         * modules/ignore-value-tests: New test module.
27298         * tests/test-ignore-value.c: New test.
27299
27300         maint.mk: improve sc_prohibit_strcmp regex
27301         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27302         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27303         definition of STRNEQ.
27304
27305         signal: work around Haiku issue with SIGBUS
27306         * lib/siglist.h: Add comment.
27307         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27308         strsignal's favoring of SIGSEGV.
27309         * tests/test-signal.c (main): Avoid test failure.
27310         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27311         Reported by Scott McCreary.
27312
27313         maint.mk: add pre-release check to ensure submodule commits are public
27314         * top/maint.mk (public-submodule-commit): New rule.
27315         (submodule-checks): New variable.
27316         (alpha beta stable): Depend on the variable.
27317
27318 2011-01-05  Pádraig Brady <P@draigBrady.com>
27319         and Jim Meyering  <meyering@redhat.com>
27320
27321         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27322         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27323         (ATTRIBUTE_DEPRECATED): Define.
27324         (_ignore_case): New function.
27325         (ignore_value): New macro, to replace the old function.
27326         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27327         * modules/ignore-value (Depends-on): Add stdint.
27328
27329 2011-01-04  Eric Blake  <eblake@redhat.com>
27330
27331         doc: regenerate INSTALL
27332         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27333         @firstparagraphindent support, now that autoconf dropped it.
27334         (INSTALL_PRELUDE): Reinstate old macro.
27335         * doc/install.texi: Resync from autoconf.
27336         * doc/INSTALL: Reflect recent autoconf update.
27337         * doc/INSTALL.ISO: Likewise.
27338         * doc/INSTALL.UTF-8: Likewise.
27339         Reported by Karl Berry.
27340
27341 2011-01-04  Bruce Korb  <address@hidden>
27342
27343         git-version-gen: avoid a sub-shell
27344         * build-aux/git-version-gen: Redirect stderr in `...` via
27345         "exec 2>...", rather than via an added sub-shell.
27346
27347 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27348
27349         git-version-gen: use (...) rather than sh -c '...'
27350         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27351         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27352
27353 2011-01-03  Jim Meyering  <meyering@redhat.com>
27354
27355         git-version-gen: convert leading TABs to spaces
27356         * build-aux/git-version-gen: Expand leading TABs.
27357
27358         git-version-gen: handle failed "git rev-list"
27359         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27360         from git and proceeding as if it had succeeded but printed no SHA1
27361         checksums, suppress the diagnostic and handle the failure.
27362         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27363
27364         git-version-gen: include command name in one more diagnostic
27365         * build-aux/git-version-gen: When the required .tarball-version file
27366         was missing or unreadable, you might see the diagnostic from "cat",
27367         but no trace of the name of the invoking script.  Now, you still see
27368         the diagnostic from cat, but also get one from "git-version-gen: ".
27369         Inspired by a patch from Bruce Korb.
27370
27371         update-copyright: adjust test to match changed code
27372         * tests/test-update-copyright.sh: Change test's expected output
27373         to match new actual output.
27374
27375 2011-01-02  Bruno Haible  <bruno@clisp.org>
27376
27377         getlogin_r: Avoid test failure on HP-UX 11.
27378         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27379         ERANGE when the second argument is zero.
27380         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27381         portability problem.
27382
27383 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27384
27385         * build-aux/update-copyright: doc Simon's changes
27386
27387 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27388
27389         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27390         environment variable.
27391
27392 2011-01-02  Bruno Haible  <bruno@clisp.org>
27393
27394         unigbrk: Avoid gcc warnings.
27395         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27396         unused variable.
27397         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27398         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27399         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27400         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27401         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27402         Change type of first argument to 'const char *'.
27403         (main): Remove unused variable.
27404         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27405         type of first argument to 'const char *'.
27406         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27407         Likewise.
27408         (main): Change type of variable 's'.
27409         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27410         to 'int'.
27411
27412 2011-01-02  Bruno Haible  <bruno@clisp.org>
27413
27414         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27415         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27416         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27417         bug.
27418         * lib/pwrite.c: Undo 2010-12-31 patch.
27419         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27420
27421 2011-01-02  Bruno Haible  <bruno@clisp.org>
27422
27423         pread: Fix test whether it works.
27424         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27425
27426 2011-01-02  Bruno Haible  <bruno@clisp.org>
27427
27428         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27429         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27430         ends in "6". Don't require a specific month name. Try also the locale
27431         names found on HP-UX 11 and Solaris 7.
27432
27433 2011-01-02  Bruno Haible  <bruno@clisp.org>
27434
27435         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27436         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27437         C linkage.
27438         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27439
27440 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27441
27442         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27443         for consistency, since the "cluster" term is not used elsewhere.
27444         * lib/unigbrk.in.h: Update name.
27445         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27446         * lib/unigbrk/u16-grapheme-next.c: Update name.
27447         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27448         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27449         * lib/unigbrk/u32-grapheme-next.c: Update name.
27450         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27451         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27452         * lib/unigbrk/u8-grapheme-next.c: Update name.
27453         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27454         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27455         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27456         Suggested by Bruno Haible.
27457
27458 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27459
27460         Remove module 'u8-grapheme-len' as too redundant with
27461         'u8-grapheme-next'.
27462         * modules/unigbrk/u8-grapheme-len: Delete file.
27463         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27464         * lib/unigbrk.in.h: Remove prototype for deleted function.
27465         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27466         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27467
27468         Remove module 'u16-grapheme-len' as too redundant with
27469         'u16-grapheme-next'.
27470         * modules/unigbrk/u16-grapheme-len: Delete file.
27471         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27472         * lib/unigbrk.in.h: Remove prototype for deleted function.
27473         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27474         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27475
27476         Remove module 'u32-grapheme-len' as too redundant with
27477         'u32-grapheme-next'.
27478         * modules/unigbrk/u32-grapheme-len: Delete file.
27479         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27480         * lib/unigbrk.in.h: Remove prototype for deleted function.
27481         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27482         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27483
27484         Suggested by Bruno Haible.
27485
27486 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27487
27488         * unigbrk.in.h: Fix typo: "ben" => "been".
27489         Reported by Bruno Haible.
27490
27491 2011-01-01  Jim Meyering  <meyering@redhat.com>
27492
27493         maint: update almost all copyright ranges to include 2011
27494         Run the new "make update-copyright" rule.
27495
27496 2011-01-01  Jim Meyering  <meyering@redhat.com>
27497
27498         maint: update-copyright: exempt doc/INSTALL*
27499         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27500         since they are generated.  Suggested by Bruno Haible.
27501
27502 2011-01-01  Jim Meyering  <meyering@redhat.com>
27503
27504         maint: refine the update-copyright rule
27505         * Makefile (update-copyright): Also exclude any file that includes
27506         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27507         code that merely generates the comment.
27508
27509 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27510
27511         New module 'u8-grapheme-len'.
27512         * modules/unigbrk/u8-grapheme-len: New file.
27513         * modules/unigbrk/u8-grapheme-len-tests: New file.
27514         * lib/unigbrk.in.h: Add prototype for new function.
27515         * lib/unigbrk/u8-grapheme-len.c: New file.
27516         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27517
27518         New module 'u16-grapheme-len'.
27519         * modules/unigbrk/u16-grapheme-len: New file.
27520         * modules/unigbrk/u16-grapheme-len-tests: New file.
27521         * lib/unigbrk.in.h: Add prototype for new function.
27522         * lib/unigbrk/u16-grapheme-len.c: New file.
27523         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27524
27525         New module 'u32-grapheme-len'.
27526         * modules/unigbrk/u32-grapheme-len: New file.
27527         * modules/unigbrk/u32-grapheme-len-tests: New file.
27528         * lib/unigbrk.in.h: Add prototype for new function.
27529         * lib/unigbrk/u32-grapheme-len.c: New file.
27530         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27531
27532         New module 'u8-grapheme-next'.
27533         * modules/unigbrk/u8-grapheme-next: New file.
27534         * modules/unigbrk/u8-grapheme-next-tests: New file.
27535         * lib/unigbrk.in.h: Add prototype for new function.
27536         * lib/unigbrk/u8-grapheme-next.c: New file.
27537         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27538
27539         New module 'u16-grapheme-next'.
27540         * modules/unigbrk/u16-grapheme-next: New file.
27541         * modules/unigbrk/u16-grapheme-next-tests: New file.
27542         * lib/unigbrk.in.h: Add prototype for new function.
27543         * lib/unigbrk/u16-grapheme-next.c: New file.
27544         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27545
27546         New module 'u32-grapheme-next'.
27547         * modules/unigbrk/u32-grapheme-next: New file.
27548         * modules/unigbrk/u32-grapheme-next-tests: New file.
27549         * lib/unigbrk.in.h: Add prototype for new function.
27550         * lib/unigbrk/u32-grapheme-next.c: New file.
27551         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27552
27553         New module 'u8-grapheme-prev'.
27554         * modules/unigbrk/u8-grapheme-prev: New file.
27555         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27556         * lib/unigbrk.in.h: Add prototype for new function.
27557         * lib/unigbrk/u8-grapheme-prev.c: New file.
27558         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27559
27560         New module 'u16-grapheme-prev'.
27561         * modules/unigbrk/u16-grapheme-prev: New file.
27562         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27563         * lib/unigbrk.in.h: Add prototype for new function.
27564         * lib/unigbrk/u16-grapheme-prev.c: New file.
27565         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27566
27567         New module 'u32-grapheme-prev'.
27568         * modules/unigbrk/u32-grapheme-prev: New file.
27569         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27570         * lib/unigbrk.in.h: Add prototype for new function.
27571         * lib/unigbrk/u32-grapheme-prev.c: New file.
27572         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27573
27574         New module 'u8-grapheme-breaks'.
27575         * modules/unigbrk/u8-grapheme-breaks: New file.
27576         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27577         * lib/unigbrk.in.h: Add prototype for new function.
27578         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27579         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27580
27581         New module 'u16-grapheme-breaks'.
27582         * modules/unigbrk/u16-grapheme-breaks: New file.
27583         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27584         * lib/unigbrk.in.h: Add prototype for new function.
27585         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27586         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27587
27588         New module 'u32-grapheme-breaks'.
27589         * modules/unigbrk/u32-grapheme-breaks: New file.
27590         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27591         * lib/unigbrk.in.h: Add prototype for new function.
27592         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27593         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27594
27595         New module 'ulc-grapheme-breaks'.
27596         * modules/unigbrk/ulc-grapheme-breaks: New file.
27597         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27598         * m4/locale-ar.m4: New file.
27599         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27600         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27601         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27602
27603 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27604
27605         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27606         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27607         modified how this file was generated before I initially submitted
27608         the module, but failed to regenerate it.  This meant that several
27609         of the level2 entries were wrong.
27610         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27611         Remove the division-by-2 that is folded into the table now that
27612         gbrkprop.h has been regenerated properly.  Now -1 entries are
27613         handled correctly.
27614
27615         New module 'unigbrk/uc-gbrk-prop-tests'.
27616         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27617         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27618         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27619         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27620
27621 2011-01-01  Bruno Haible  <bruno@clisp.org>
27622
27623         Avoid use of hexadecimal escapes.
27624         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27625         instead of hexadecimal escapes.
27626
27627 2011-01-01  Jim Meyering  <meyering@redhat.com>
27628
27629         maint: new rule to update copyright year ranges
27630         * Makefile (update-copyright): New rule.
27631
27632         maint: indent with TABs in Makefile
27633         * Makefile: Expand leading sequences of spaces to TABs
27634
27635         version-etc: update the copyright year it reports
27636         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27637
27638 2010-12-31  Bruno Haible  <bruno@clisp.org>
27639
27640         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27641         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27642         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27643         zero.
27644
27645 2010-12-31  Bruno Haible  <bruno@clisp.org>
27646
27647         pwrite: Work around HP-UX 11.11 bug.
27648         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27649         works and set REPLACE_PWRITE if not.
27650         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27651         function.
27652         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27653
27654 2010-12-31  Bruno Haible  <bruno@clisp.org>
27655
27656         pread: Work around HP-UX 11 bugs.
27657         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27658         and set REPLACE_PREAD if not.
27659         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27660
27661 2010-12-31  Eric Blake  <eblake@redhat.com>
27662
27663         nl_langinfo: fix YESEXPR on Irix 6.5
27664         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27665         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27666         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27667         it.
27668
27669 2010-12-31  Bruno Haible  <bruno@clisp.org>
27670
27671         iconv: Document HP-UX 11 bug.
27672         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27673
27674 2010-12-31  Bruno Haible  <bruno@clisp.org>
27675
27676         ldexpl: Fix link error on HP-UX 11.
27677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27678         LDEXPL_LIBM, using $ISNANL_LIBM.
27679
27680 2010-12-31  Eric Blake  <eblake@redhat.com>
27681
27682         ftello: avoid compilation failure with SunStudio c89
27683         * lib/ftello.c (ftello): Use lseek, not llseek.
27684
27685         tests: avoid failing coreutils tests on cygwin
27686         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27687         (create_exe_shims_): Return 0 when skipping.
27688
27689 2010-12-31  Bruno Haible  <bruno@clisp.org>
27690
27691         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27692         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27693
27694 2010-12-31  Bruno Haible  <bruno@clisp.org>
27695
27696         waitpid: Fix link error in C++ mode.
27697         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27698
27699 2010-12-31  Bruno Haible  <bruno@clisp.org>
27700
27701         isnan: Use GCC built-ins when possible.
27702         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27703         __builtin_isnan.
27704         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27705         (isnan): Define using GCC built-ins for GCC >= 4.0.
27706
27707 2010-12-31  Bruno Haible  <bruno@clisp.org>
27708
27709         isnand: Fix mistake.
27710         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27711         __builtin_isnand.
27712
27713 2010-12-31  Bruno Haible  <bruno@clisp.org>
27714
27715         open: Avoid C++ error on HP-UX 11.
27716         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27717
27718 2010-12-31  Bruno Haible  <bruno@clisp.org>
27719
27720         time_r: Add missing declarations on HP-UX 11.
27721         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27722         instead of HAVE_LOCALTIME_R.
27723         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27724         HAVE_LOCALTIME_R always.
27725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27726         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27727         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27728         HAVE_LOCALTIME_R.
27729         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27730         * doc/posix-functions/localtime_r.texi: Likewise.
27731
27732 2010-12-29  Eric Blake  <eblake@redhat.com>
27733
27734         mountlist: tweak previous commit
27735         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27736         Reported by Paul Eggert.
27737
27738         mountlist: fix local drive detection on cygwin
27739         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27740         that works for cygwin.
27741
27742 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27743
27744         ftoastr, snprintf: ftoastr + snprintf module
27745         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27746         since the snprintf module now should be good enough here.
27747         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27748         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27749         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27750         GNULIB_SNPRINTF only for the test directory, and the latter
27751         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27752         seems to suffice by itself.
27753
27754 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27755
27756         alloca: one step towards thread-safety
27757         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27758         need for a static variable.  All callers changed.  This does not
27759         make the alloca replacement thread-safe, but it's one step.
27760
27761         tests: minor indenting change
27762         * tests/init.sh: Sync from coreutils housekeeping patch
27763         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27764         to keep lines within 80 columns.
27765
27766 2010-12-28  Jim Meyering  <meyering@redhat.com>
27767
27768         regex: don't infloop on persistent failing calloc
27769         * lib/regexec.c (build_trtable): Return failure indication upon
27770         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27771         In glibc, this was fixed for version 2.13:
27772         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27773
27774 2010-12-28  Bruno Haible  <bruno@clisp.org>
27775             Paul Eggert <eggert@cs.ucla.edu>
27776
27777         linkat: Make implementation robust against system behaviour variations.
27778         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27779         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27780         way, and to -2 if it needs a generic runtime test.
27781         * lib/linkat.c (solaris_optimized_link_immediate,
27782         solaris_optimized_link_follow): New functions.
27783         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27784         (check_same_link): Use it.
27785
27786 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27787
27788         New module 'unigbrk/base'.
27789         * modules/unigbrk/base: New file.
27790         * lib/unigbrk.in.h: New file.
27791
27792         New module 'unigbrk/uc-gbrk-prop'.
27793         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27794         * modules/unigbrk/uc-gbrk-prop: New file.
27795         * lib/unigbrk/gbrkprop.h: New file.
27796         * lib/unigbrk/uc-gbrk-prop.c: New file.
27797
27798         New module 'unigbrk/uc-is-grapheme-break'.
27799         * modules/unigbrk/uc-is-grapheme-break: New file.
27800         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27801         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27802         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27803         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27804         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27805
27806         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27807
27808 2010-12-27  Bruno Haible  <bruno@clisp.org>
27809
27810         linkat test: Avoid failure on Solaris 11 2010-11.
27811         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27812
27813 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         utimens: work around glibc rounding bug on more platforms
27816         * lib/utimens.c (fdutimens): Work around rounding bug even if
27817         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27818         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27819
27820 2010-12-27  Bruno Haible  <bruno@clisp.org>
27821
27822         select tests: Improve comments.
27823         * tests/test-select.c (do_select): Add comments.
27824
27825 2010-12-27  Bruno Haible  <bruno@clisp.org>
27826
27827         select tests: Safer way of handling timeout.
27828         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27829         at every invocation.
27830
27831 2010-12-27  Bruno Haible  <bruno@clisp.org>
27832
27833         select tests: Use 'bool' where appropriate.
27834         * tests/test-select.c (connect_to_socket): Change argument type to
27835         'bool'.
27836
27837 2010-12-27  Bruno Haible  <bruno@clisp.org>
27838
27839         select tests: Use existing modules.
27840         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27841         (configure.ac): Don't test for unistd.h.
27842         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27843         declared in <unistd.h>.
27844
27845 2010-12-27  Bruno Haible  <bruno@clisp.org>
27846
27847         mbrtowc: Work around a Solaris 7 bug.
27848         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27849         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27850         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27851         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27852         MBRTOWC_NULL_ARG1_BUG.
27853         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27854         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27855         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27856         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27857
27858 2010-12-27  Jim Meyering  <meyering@redhat.com>
27859
27860         read-file.c: tweak syntax
27861         * lib/read-file.c (fread_file): Remove space after "*" in function
27862         definitions.
27863
27864 2010-12-27  Bruno Haible  <bruno@clisp.org>
27865
27866         times test: Avoid gcc warnings on OSF/1.
27867         * tests/test-times.c (main): Cast printf arguments from clock_t to
27868         'long int'.
27869
27870 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27871
27872         utimens: work around glibc rounding bug on older Linux kernels
27873         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27874         on Linux with a glibc whose utimes might not work, then work
27875         around a longstanding glibc bug involving rounding rather than
27876         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27878
27879 2010-12-26  Bruno Haible  <bruno@clisp.org>
27880
27881         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27882         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27883         _GL_CXXALIAS_SYS.
27884         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27885
27886 2010-12-26  Bruno Haible  <bruno@clisp.org>
27887
27888         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27889         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27890         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27891         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27892         looking for the declaration.
27893         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27894         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27895         problem.
27896         * doc/posix-functions/inet_pton.texi: Likewise.
27897
27898 2010-12-26  Bruno Haible  <bruno@clisp.org>
27899
27900         arpa_inet: Use the common idioms with C++ support.
27901         * lib/arpa_inet.in.h: Include c++defs.h.
27902         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27903         support.
27904         * modules/arpa_inet (Depends-on): Add c++defs.
27905         (Makefile.am): Substitute the contents of c++defs.h.
27906         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27907         * modules/arpa_inet-c++-tests: New file.
27908         * tests/test-arpa_inet-c++.cc: New file.
27909
27910 2010-12-25  Bruno Haible  <bruno@clisp.org>
27911
27912         Fix more C++ link errors on Solaris 8.
27913         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27914         $(LIB_EACCESS).
27915         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27916         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27917         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27918         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27919         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27920
27921 2010-12-25  Bruno Haible  <bruno@clisp.org>
27922
27923         printf-posix: Fix link error when a non-GCC compiler is used.
27924         * lib/stdio.in.h (printf): When not using GCC, override printf
27925         correctly.
27926         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27927
27928 2010-12-25  Bruno Haible  <bruno@clisp.org>
27929
27930         strerror_r-posix: Update doc.
27931         * doc/posix-functions/strerror_r.texi: Update doc about the return
27932         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27933
27934 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27935
27936         utimens: simplify the logic of the previous change
27937         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27938         This should not affect whether the test succeeds or fails.
27939
27940         utimens: configure better on hosts with NFS clock skew
27941         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27942         uses the clock of the local host.  It might use the clock of the
27943         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27945
27946 2010-12-25  Bruno Haible  <bruno@clisp.org>
27947
27948         ptsname test: Avoid failure on Solaris.
27949         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27950         open a pseudo-terminal; don't use BSD-style ptys.
27951         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27952
27953 2010-12-25  Bruno Haible  <bruno@clisp.org>
27954
27955         ptsname: Avoid ERANGE failure on some systems.
27956         * lib/ptsname.c (buffer): Increase size.
27957
27958 2010-12-25  Bruno Haible  <bruno@clisp.org>
27959
27960         rename, renameat: Avoid test failures at NFS mounted locations.
27961         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27962         so that subsequent mkdir calls succeed.
27963
27964 2010-12-25  Bruno Haible  <bruno@clisp.org>
27965
27966         iswblank: Fix C++ link error on Solaris 8.
27967         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27968         _GL_FUNCDECL_SYS.
27969
27970 2010-12-25  Bruno Haible  <bruno@clisp.org>
27971
27972         unistd: Fix C++ link error on Solaris 8.
27973         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27974
27975 2010-12-25  Bruno Haible  <bruno@clisp.org>
27976
27977         readlink doc: Mention an old glibc bug.
27978         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27979
27980 2010-12-25  Bruno Haible  <bruno@clisp.org>
27981
27982         fcntl-h: Fix for use of C++ on glibc systems.
27983         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27984         also on glibc systems in C++ mode.
27985         Reported by Gary V. Vaughan <gary@gnu.org>.
27986
27987 2010-12-25  Bruno Haible  <bruno@clisp.org>
27988
27989         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27990         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27991
27992 2010-12-25  Bruno Haible  <bruno@clisp.org>
27993
27994         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27995         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27996         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27997         test whether truncl works according to ISO C 99 with IEC 60559.
27998         * m4/truncl-ieee.m4: New file.
27999         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28000         m4/signbit.m4.
28001         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28002
28003 2010-12-25  Bruno Haible  <bruno@clisp.org>
28004
28005         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28006         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28007         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28008         test whether ceill works according to ISO C 99 with IEC 60559.
28009         * m4/ceill-ieee.m4: New file.
28010         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28011         m4/signbit.m4.
28012         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28013
28014 2010-12-25  Bruno Haible  <bruno@clisp.org>
28015
28016         Ensure all prerequisites of <wchar.h> are included.
28017         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28018         before <wchar.h>.
28019         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28020         gl_MBRLEN_NUL_RETVAL): Likewise.
28021         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28022         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28023         AC_FUNC_MBRTOWC): Likewise.
28024         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28025         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28027         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28028         Likewise.
28029         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28030         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28031         (gl_WCHAR_H): Improve comments.
28032         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28033
28034 2010-12-25  Bruno Haible  <bruno@clisp.org>
28035
28036         strtok_r: Fix C syntax error in autoconf macro.
28037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28038         characters in test program.
28039
28040 2010-12-24  Bruno Haible  <bruno@clisp.org>
28041
28042         ceil, trunc, round: Fix gcc warnings.
28043         * lib/ceil.c (MIN): Undefine before redefining.
28044         * lib/trunc.c (MIN): Likewise.
28045         * lib/round.c (MIN): Likewise.
28046         Include <math.h> first.
28047
28048 2010-12-24  Bruno Haible  <bruno@clisp.org>
28049
28050         select tests: Avoid failures on OSF/1 5.1.
28051         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28052         failure of closing the last socket; it may fail with ECONNRESET.
28053
28054 2010-12-24  Eric Blake  <eblake@redhat.com>
28055
28056         stdint: avoid HP-UX 10.20 preprocessor bug
28057         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28058         than #if.
28059         * tests/test-floor2.c (main): Likewise.
28060         Reported by Peter O'Gorman.
28061
28062         pipe: make obsoletion transition easier
28063         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28064         * modules/pipe (Files): Include revived file.
28065         (Include): Drop reference, to mirror getdate's behavior.
28066
28067 2010-12-24  Bruno Haible  <bruno@clisp.org>
28068
28069         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28070         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28071         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28072         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28073
28074 2010-12-24  Bruno Haible  <bruno@clisp.org>
28075
28076         gethostname: Ensure declaration on NonStop Kernel.
28077         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28079
28080 2010-12-24  Bruno Haible  <bruno@clisp.org>
28081
28082         sys_select: Ensure all necessary types on NonStop Kernel.
28083         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28084         include <sys/time.h>.
28085         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28086         NonStop Kernel.
28087         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28088
28089 2010-12-24  Bruno Haible  <bruno@clisp.org>
28090
28091         sys_select: Remove unneeded include.
28092         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28093         have <sys/select.h>.
28094
28095 2010-12-24  Bruno Haible  <bruno@clisp.org>
28096
28097         gethostname: Provide a fallback for HOST_NAME_MAX.
28098         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28099         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28100         instead.
28101         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28102
28103 2010-12-24  Bruno Haible  <bruno@clisp.org>
28104
28105         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28106         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28107         (SA_RESTART): Likewise.
28108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28109
28110 2010-12-24  Bruno Haible  <bruno@clisp.org>
28111
28112         signal: Define NSIG.
28113         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28114         * tests/test-signal.c (nsig): New variable.
28115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28116
28117 2010-12-24  Bruno Haible  <bruno@clisp.org>
28118
28119         rename, renameat: Avoid test failures on OSF/1 5.1.
28120         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28121         alternative error codes.
28122         * tests/test-renameat.c (main): Likewise.
28123
28124 2010-12-24  Bruno Haible  <bruno@clisp.org>
28125
28126         *printf: Detect large precisions bug on Solaris 10/SPARC.
28127         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28128         by Paul Eggert.
28129         * tests/test-snprintf-posix.h (test_function): Add this test code here
28130         too.
28131         * tests/test-sprintf-posix.h (test_function): Likewise.
28132         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28133         * tests/test-vasprintf-posix.c (test_function): Likewise.
28134         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28135         around by gnulib.
28136         * doc/posix-functions/printf.texi: Likewise.
28137         * doc/posix-functions/snprintf.texi: Likewise.
28138         * doc/posix-functions/sprintf.texi: Likewise.
28139         * doc/posix-functions/vfprintf.texi: Likewise.
28140         * doc/posix-functions/vprintf.texi: Likewise.
28141         * doc/posix-functions/vsnprintf.texi: Likewise.
28142         * doc/posix-functions/vsprintf.texi: Likewise.
28143         * doc/posix-functions/dprintf.texi: Undo last commit.
28144         * doc/posix-functions/vdprintf.texi: Likewise.
28145
28146 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28147
28148         tests: port test-fdutimensat.c to Solaris 8
28149         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28150         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28151         On Solaris 8, it fails with errno == ENOSYS, because there is no
28152         futimens (so it can't use the fd), and there is no lutimens (so it
28153         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28154
28155         vsnprintf: make more consistent with snprintf; doc fixes
28156
28157         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28158         the byte count return problem was promoted from the snprintf-posix
28159         to the snprintf module.
28160         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28161         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28162         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28163         * tests/test-snprintf.c (main): Check the byte count returned.
28164         * tests/test-vsnprintf.c (main): Likewise.
28165
28166 2010-12-23  Eric Blake  <eblake@redhat.com>
28167
28168         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28169         * modules/sigpipe (License): Relax license.
28170
28171 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28172
28173         doc: document Solaris printf bug with large float precisions
28174         * doc/posix-functions/dprintf.texi (dprintf):
28175         * doc/posix-functions/fprintf.texi (fprintf):
28176         * doc/posix-functions/printf.texi (printf):
28177         * doc/posix-functions/snprintf.texi (snprintf):
28178         * doc/posix-functions/sprintf.texi (sprintf):
28179         * doc/posix-functions/vdprintf.texi (vdprintf):
28180         * doc/posix-functions/vfprintf.texi (vfprintf):
28181         * doc/posix-functions/vprintf.texi (vprintf):
28182         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28183         * doc/posix-functions/vsprintf.texi (vsprintf):
28184         Mention that these functions mishandle large floating point
28185         precisions on Solaris 10.  The same bug is also present in Solaris
28186         8, and I assume earlier.  This causes "cd gnulib-tests; make
28187         check" to fail on Solaris 8 (and I assume, later) when building
28188         the latest coreutils, in test-vasprintf-posix's call to
28189         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28190         the wide flavors (e.g., wprintf) so this patch just updates the
28191         documentation for the narrow ones.
28192
28193         test-posixtm.c: add two tests
28194         * tests/test-posixtm.c: Add two tests, to highlight the
28195         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28196         around this bug; this is merely to document it.
28197
28198 2010-12-22  Bruno Haible  <bruno@clisp.org>
28199
28200         getlogin_r: Work around portability problem on OSF/1.
28201         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28202         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28203         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28204         test for a truncated result.
28205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28206         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28207         * modules/getlogin_r (Depends-on): Add memchr.
28208         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28209
28210 2010-12-22  Bruno Haible  <bruno@clisp.org>
28211
28212         ptsname: Avoid test failure on OSF/1 5.1.
28213         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28214         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28215         (same_slave): New function.
28216         (main): Use it to compare ptsname's result with the expected file name.
28217
28218 2010-12-22  Bruno Haible  <bruno@clisp.org>
28219
28220         Port extended stdio modules to HP NonStop Kernel.
28221         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28222         macros.
28223         * lib/fbufmode.c: Update comments.
28224         * lib/fflush.c: Likewise.
28225         * lib/fpurge.c: Likewise.
28226         * lib/freadable.c: Likewise.
28227         * lib/freadahead.c: Likewise.
28228         * lib/freading.c: Likewise.
28229         * lib/freadptr.c: Likewise.
28230         * lib/freadseek.c: Likewise.
28231         * lib/fseeko.c: Likewise.
28232         * lib/fseterr.c: Likewise.
28233         * lib/fwritable.c: Likewise.
28234         * lib/fwriting.c: Likewise.
28235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28236
28237 2010-12-22  Bruno Haible  <bruno@clisp.org>
28238
28239         ttyname_r: Work around bug on OSF/1 5.1.
28240         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28241         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28242         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28243         present.
28244         * lib/ttyname_r.c (ttyname_r): Update comments.
28245
28246 2010-12-22  Bruno Haible  <bruno@clisp.org>
28247
28248         round: Implement result sign according to IEEE 754.
28249         * lib/round.c (MIN, MINUS_ZERO): New macros.
28250         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28251         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28252         * tests/test-round-ieee.c (main): Likewise.
28253         * tests/test-roundl-ieee.c (main): Likewise.
28254
28255         trunc: Implement result sign according to IEEE 754.
28256         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28257         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28258         * tests/test-trunc2.c: Include minus-zero.h.
28259         (MINUS_ZERO): New macro.
28260         (trunc_reference): Keep in sync with lib/trunc.c.
28261         * tests/test-truncf2.c: Include minus-zero.h.
28262         (MINUS_ZERO): New macro.
28263         (truncf_reference): Keep in sync with lib/trunc.c.
28264         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28265         * tests/test-trunc-ieee.c (main): Likewise.
28266         * tests/test-truncl-ieee.c (main): Likewise.
28267
28268         ceil: Implement result sign according to IEEE 754.
28269         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28270         (FUNC): Return -0.0 for -1 < x < 0.
28271         * tests/test-ceil2.c: Include minus-zero.h.
28272         (MINUS_ZERO): New macro.
28273         (ceil_reference): Keep in sync with lib/ceil.c.
28274         * tests/test-ceilf2.c: Include minus-zero.h.
28275         (MINUS_ZERO): New macro.
28276         (ceilf_reference): Keep in sync with lib/ceil.c.
28277         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28278         * tests/test-ceil-ieee.c (main): Likewise.
28279         * tests/test-ceill-ieee.c (main): Likewise.
28280
28281         floor: Implement result sign according to IEEE 754.
28282         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28283         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28284         * tests/test-floorf2.c (floorf_reference): Likewise.
28285         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28286         * tests/test-floor-ieee.c (main): Likewise.
28287         * tests/test-floorl-ieee.c (main): Likewise.
28288
28289 2010-12-22  Bruno Haible  <bruno@clisp.org>
28290
28291         getaddrinfo: Update doc.
28292         * doc/posix-functions/gai_strerror.texi: Return type is also different
28293         on AIX and HP-UX.
28294
28295 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28296
28297         getaddrinfo, inet_ntop: Update doc for Solaris.
28298         * doc/posix-functions/gai_strerror.texi: Return type is also an
28299         issue on Solaris 9 and earlier.
28300         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28301         on Solaris 10 and earlier.
28302
28303 2010-12-21  Bruno Haible  <bruno@clisp.org>
28304
28305         New module 'roundl-ieee'.
28306         * modules/roundl-ieee: New file.
28307         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28308         test whether roundl works according to ISO C 99 with IEC 60559.
28309         * m4/roundl-ieee.m4: New file.
28310         * modules/roundl-ieee-tests: New file.
28311         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28312         * tests/test-roundl.c (main): Remove signbit tests.
28313         * modules/roundl-tests (Depends-on): Remove signbit.
28314         * doc/posix-functions/roundl.texi: Mention the new module.
28315
28316 2010-12-21  Bruno Haible  <bruno@clisp.org>
28317
28318         New module 'truncl-ieee'.
28319         * modules/truncl-ieee: New file.
28320         * modules/truncl-ieee-tests: New file.
28321         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28322         * tests/test-truncl.c (main): Remove signbit tests.
28323         * modules/truncl-tests (Depends-on): Remove signbit.
28324         * doc/posix-functions/truncl.texi: Mention the new module.
28325
28326 2010-12-21  Bruno Haible  <bruno@clisp.org>
28327
28328         New module 'ceill-ieee'.
28329         * modules/ceill-ieee: New file.
28330         * modules/ceill-ieee-tests: New file.
28331         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28332         * tests/test-ceill.c (main): Remove signbit tests.
28333         * modules/ceill-tests (Depends-on): Remove signbit.
28334         * doc/posix-functions/ceill.texi: Mention the new module.
28335
28336 2010-12-21  Bruno Haible  <bruno@clisp.org>
28337
28338         New module 'floorl-ieee'.
28339         * modules/floorl-ieee: New file.
28340         * modules/floorl-ieee-tests: New file.
28341         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28342         * tests/test-floorl.c (main): Remove signbit tests.
28343         * modules/floorl-tests (Depends-on): Remove signbit.
28344         * doc/posix-functions/floorl.texi: Mention the new module.
28345
28346 2010-12-21  Bruno Haible  <bruno@clisp.org>
28347
28348         New module 'round-ieee'.
28349         * modules/round-ieee: New file.
28350         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28351         whether round works according to ISO C 99 with IEC 60559.
28352         * m4/round-ieee.m4: New file.
28353         * modules/round-ieee-tests: New file.
28354         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28355         * tests/test-round1.c (main): Remove signbit tests.
28356         * modules/round-tests (Depends-on): Remove 'signbit'.
28357         * doc/posix-functions/round.texi: Mention the new module.
28358
28359 2010-12-21  Bruno Haible  <bruno@clisp.org>
28360
28361         New module 'trunc-ieee'.
28362         * modules/trunc-ieee: New file.
28363         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28364         whether trunc works according to ISO C 99 with IEC 60559.
28365         * m4/trunc-ieee.m4: New file.
28366         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28368         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28369         * modules/trunc-ieee-tests: New file.
28370         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28371         * tests/test-trunc1.c (main): Remove signbit tests.
28372         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28373         * doc/posix-functions/trunc.texi: Mention the new module.
28374
28375 2010-12-21  Bruno Haible  <bruno@clisp.org>
28376
28377         New module 'ceil-ieee'.
28378         * modules/ceil-ieee: New file.
28379         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28380         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28381         ISO C 99 with IEC 60559.
28382         * m4/ceil-ieee.m4: New file.
28383         * modules/ceil (Files): Add lib/ceil.c.
28384         (Depends-on): Add 'float'.
28385         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28386         * lib/math.in.h (ceil): New declaration.
28387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28388         REPLACE_CEIL.
28389         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28390         * modules/ceil-ieee-tests: New file.
28391         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28392         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28393         * doc/posix-functions/ceil.texi: Mention the new module.
28394
28395 2010-12-21  Bruno Haible  <bruno@clisp.org>
28396
28397         New module 'floor-ieee'.
28398         * modules/floor-ieee: New file.
28399         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28400         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28401         ISO C 99 with IEC 60559.
28402         * m4/floor-ieee.m4: New file.
28403         * modules/floor (Files): Add lib/floor.c.
28404         (Depends-on): Add 'float'.
28405         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28406         * lib/math.in.h (floor): New declaration.
28407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28408         REPLACE_FLOOR.
28409         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28410         * modules/floor-ieee-tests: New file.
28411         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28412         * tests/test-math-c++.cc: Check the signature of 'floor'.
28413         * doc/posix-functions/floor.texi: Mention the new module.
28414
28415 2010-12-21  Bruno Haible  <bruno@clisp.org>
28416
28417         New module 'roundf-ieee'.
28418         * modules/roundf-ieee: New file.
28419         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28420         test whether roundf works according to ISO C 99 with IEC 60559.
28421         * m4/roundf-ieee.m4: New file.
28422         * modules/roundf-ieee-tests: New file.
28423         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28424         * tests/test-roundf1.c (main): Remove signbit tests.
28425         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28426         * doc/posix-functions/roundf.texi: Mention the new module.
28427
28428 2010-12-21  Bruno Haible  <bruno@clisp.org>
28429
28430         New module 'truncf-ieee'.
28431         * modules/truncf-ieee: New file.
28432         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28433         test whether truncf works according to ISO C 99 with IEC 60559.
28434         * m4/truncf-ieee.m4: New file.
28435         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28437         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28438         * modules/truncf-ieee-tests: New file.
28439         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28440         * tests/test-truncf1.c (main): Remove signbit tests.
28441         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28442         * doc/posix-functions/truncf.texi: Mention the new module.
28443
28444 2010-12-21  Bruno Haible  <bruno@clisp.org>
28445
28446         New module 'ceilf-ieee'.
28447         * modules/ceilf-ieee: New file.
28448         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28449         test whether ceilf works according to ISO C 99 with IEC 60559.
28450         * m4/ceilf-ieee.m4: New file.
28451         * modules/ceilf-ieee-tests: New file.
28452         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28453         * tests/test-ceilf1.c (main): Remove signbit tests.
28454         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28455         * doc/posix-functions/ceilf.texi: Mention the new module.
28456
28457 2010-12-21  Bruno Haible  <bruno@clisp.org>
28458
28459         New module 'floorf-ieee'.
28460         * modules/floorf-ieee: New file.
28461         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28462         test whether floorf works according to ISO C 99 with IEC 60559.
28463         * m4/floorf-ieee.m4: New file.
28464         * modules/floorf-ieee-tests: New file.
28465         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28466         * tests/test-floorf1.c (main): Remove signbit tests.
28467         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28468         * doc/posix-functions/floorf.texi: Mention the new module.
28469
28470 2010-12-21  Bruno Haible  <bruno@clisp.org>
28471
28472         Support for minus zero in autoconf macros.
28473         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28474         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28475         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28476         * tests/minus-zero.h: Update comments.
28477
28478 2010-12-21  Bruno Haible  <bruno@clisp.org>
28479
28480         Tests for module 'ceil'.
28481         * modules/ceil-tests: New file.
28482         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28483         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28484
28485 2010-12-21  Bruno Haible  <bruno@clisp.org>
28486
28487         Tests for module 'floor'.
28488         * modules/floor-tests: New file.
28489         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28490         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28491
28492 2010-12-21  Bruno Haible  <bruno@clisp.org>
28493
28494         math: Fix indentation.
28495         * lib/math.in.h (floorf): Fix indentation.
28496
28497 2010-12-21  Bruno Haible  <bruno@clisp.org>
28498
28499         Fix cross-compilation guesses on Solaris.
28500         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28501         not match "solaris2.10".
28502         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28503         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28504         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28505
28506 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28507
28508         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28509         This fixes a problem observed with the latest coreutils snapshot
28510         that caused a test to fail on Solaris 8.  src/csplit.c's call
28511         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28512         earlier, instead of returning the number of bytes that would have
28513         been generated; this causes csplit to incorrectly report memory
28514         exhaustion.
28515         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28516         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28517         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28518         comments to match.
28519         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28520         Fix typo in matching older versions of Solaris: "solaris2.10"
28521         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28522         only for guessing while cross-compiling.
28523         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28524
28525 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         ftoastr: fix comment again
28528         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28529         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28530         Also, simplify example a bit by using flags = 0.
28531
28532 2010-12-20  Bruno Haible  <bruno@clisp.org>
28533
28534         round*, trunc*: Update documentation regarding glibc.
28535         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28536         * doc/posix-functions/round.texi: Likewise.
28537         * doc/posix-functions/roundl.texi: Likewise.
28538         * doc/posix-functions/truncf.texi: Likewise.
28539         * doc/posix-functions/trunc.texi: Likewise.
28540         * doc/posix-functions/truncl.texi: Likewise.
28541
28542 2010-12-20  Bruno Haible  <bruno@clisp.org>
28543
28544         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28545         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28546         * doc/posix-functions/round.texi: Likewise.
28547         * doc/posix-functions/roundl.texi: Likewise.
28548
28549 2010-12-20  Bruno Haible  <bruno@clisp.org>
28550
28551         ttyname_r: Add missing declaration on HP-UX 11.
28552         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28553         HAVE_TTYNAME_R.
28554         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28555         declared. Set HAVE_TTYNAME_R always.
28556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28557         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28558         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28559         HAVE_TTYNAME_R.
28560         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28561
28562 2010-12-20  Bruno Haible  <bruno@clisp.org>
28563
28564         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28565         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28566         * doc/posix-functions/getlogin_r.texi: Likewise.
28567         * tests/test-getlogin.c: Include <errno.h>.
28568         (main): Avoid test failure on HP-UX 11.11.
28569         * tests/test-getlogin_r.c (main): Likewise.
28570
28571 2010-12-20  Bruno Haible  <bruno@clisp.org>
28572
28573         getlogin_r: Add missing declaration on HP-UX 11.
28574         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28575         declared also when it exists as a function.
28576         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28577
28578 2010-12-20  Bruno Haible  <bruno@clisp.org>
28579
28580         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28581         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28582         through wcrtomb.
28583
28584 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28585
28586         ftoastr: fix comment
28587         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28588         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28589
28590 2010-12-19  Bruno Haible  <bruno@clisp.org>
28591
28592         isnan: Ensure it is a macro.
28593         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28594         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28595         Solaris.
28596
28597 2010-12-19  Bruno Haible  <bruno@clisp.org>
28598
28599         ldexpl test: Fix link error on OSF/1 5.1.
28600         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28601
28602 2010-12-19  Bruno Haible  <bruno@clisp.org>
28603
28604         wctype: Make it work in C++ mode on OSF/1 5.1.
28605         * lib/wctype.in.h (iswblank): Declare but not define here.
28606         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28607         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28608         * modules/wctype (Files): Add lib/iswblank.c.
28609
28610 2010-12-19  Bruno Haible  <bruno@clisp.org>
28611
28612         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28613         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28614         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28615
28616 2010-12-19  Bruno Haible  <bruno@clisp.org>
28617
28618         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28620         _POSIX_PII_SOCKET.
28621         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28622         * doc/posix-functions/recvfrom.texi: Likewise.
28623         * doc/posix-functions/send.texi: Likewise.
28624         * doc/posix-functions/sendto.texi: Likewise.
28625
28626 2010-12-19  Bruno Haible  <bruno@clisp.org>
28627
28628         tcgetsid: Add missing declaration on OSF/1 5.1.
28629         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28630         HAVE_TCGETSID.
28631         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28632         Don't set HAVE_TCGETSID.
28633         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28634         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28635         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28636         HAVE_TCGETSID.
28637         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28638
28639 2010-12-19  Bruno Haible  <bruno@clisp.org>
28640
28641         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28642         * lib/stdio.in.h: During the include_next statement, let recursive
28643         includes of this file include only the system header file.
28644
28645 2010-12-19  Bruno Haible  <bruno@clisp.org>
28646
28647         iconv_open: Fix regression from 2010-12-04.
28648         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28649         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28650
28651 2010-12-19  Bruno Haible  <bruno@clisp.org>
28652
28653         stdbool test: Avoid a gcc warning.
28654         * tests/test-stdbool.c (main): Fail if e1 is false.
28655         Reported by Jim Meyering.
28656
28657 2010-12-19  Jim Meyering  <meyering@redhat.com>
28658
28659         setenv: restore to working order
28660         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28661         mistakenly removed.
28662         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28663         HAVE_SETENV.
28664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28665         HAVE_SETENV.
28666
28667 2010-12-19  Bruno Haible  <bruno@clisp.org>
28668
28669         Document some different function declarations on OSF/1 5.1.
28670         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28671         * doc/posix-functions/inet_ntop.texi: Likewise.
28672         * doc/posix-functions/gethostname.texi: Likewise.
28673         * lib/unistd.in.h (gethostname): Update comment.
28674
28675 2010-12-19  Bruno Haible  <bruno@clisp.org>
28676
28677         doc: Mention vasprintf-posix module.
28678         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28679         the 'vasprintf-posix' module.
28680         * doc/glibc-functions/vasprintf.texi: Likewise.
28681
28682 2010-12-19  Bruno Haible  <bruno@clisp.org>
28683
28684         unsetenv: Add missing declaration on OSF/1 5.1.
28685         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28686         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28687         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28689         not HAVE_UNSETENV.
28690         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28691         HAVE_UNSETENV.
28692         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28693
28694 2010-12-19  Bruno Haible  <bruno@clisp.org>
28695
28696         setenv: Add missing declaration on OSF/1 5.1.
28697         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28698         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28699         declared. Don't set HAVE_SETENV.
28700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28701         not HAVE_SETENV.
28702         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28703         HAVE_SETENV.
28704         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28705
28706 2010-12-19  Bruno Haible  <bruno@clisp.org>
28707
28708         nl_langinfo tests: Avoid gcc warning.
28709         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28710
28711 2010-12-19  Bruno Haible  <bruno@clisp.org>
28712
28713         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28714         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28715         _GL_CXXALIAS_SYS.
28716
28717 2010-12-19  Bruno Haible  <bruno@clisp.org>
28718
28719         stdbool: Relax test.
28720         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28721         address to 'bool' work in static initializer, for compilers other than
28722         GCC.
28723
28724 2010-12-19  Bruno Haible  <bruno@clisp.org>
28725
28726         ftello: Add missing declaration on OSF/1 5.1.
28727         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28728         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28730         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28731         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28732
28733 2010-12-19  Bruno Haible  <bruno@clisp.org>
28734
28735         fseeko: Add missing declaration on OSF/1 5.1.
28736         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28737         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28739         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28740         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28741
28742 2010-12-19  Bruno Haible  <bruno@clisp.org>
28743
28744         fchdir: Add missing declaration on OSF/1 5.1.
28745         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28748         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28749         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28750
28751 2010-12-19  Bruno Haible  <bruno@clisp.org>
28752
28753         relocatable-prog-wrapper: Separate from relocatable-prog.
28754         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28755         uninstall-relocwrapper rule here.
28756         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28757         Reported by Ian Beckwith <ianb@erislabs.net>.
28758
28759 2010-12-19  Bruno Haible  <bruno@clisp.org>
28760
28761         unistr/u8-mbsnlen: Add missing dependency.
28762         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28763         Reported by Ian Beckwith <ianb@erislabs.net>.
28764
28765 2010-12-19  Bruno Haible  <bruno@clisp.org>
28766
28767         iconv: Make it possible again to use this module without 'iconv-h'.
28768         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28769         if it is not defined.
28770         Reported by Ian Beckwith <ianb@erislabs.net>.
28771
28772 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28773
28774         acl: port to Solaris 8 when copying from tmpfs to ufs
28775         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28776         error number.  Problem observed on Solaris 8 with latest
28777         coreutils, with "mv A B", where A is on a tmpfs file system and B
28778         is on a ufs file system.  This caused coreutils' mv/part-symlink
28779         test to fail.
28780
28781         tests: set fail=0 at start
28782         * tests/init.sh (setup_): Move fail=0 initialization here ...
28783         (mktempd_): ... from here, so that tests can rely on fail being
28784         set to 0 initially.  This fixes a problem in coreutils; see:
28785         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28786
28787 2010-12-18  Bruno Haible  <bruno@clisp.org>
28788
28789         memmem-simple: Stylistic changes.
28790         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28791         Fix preprocessor directive indentation.
28792
28793 2010-12-15  Pádraig Brady <P@draigBrady.com>
28794
28795         memmem, memmem-simple: reorganize and expand empty needle check
28796         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28797         functional checks to memmem-simple so that one has a fully functional
28798         memmem by using just this module.
28799         Restrict the performance only check to the memmem module.
28800         Also expand the empty needle check to ensure the correct
28801         pointer is returned, not just a non NULL pointer.
28802         * doc/glibc-functions/memmem.texi: Rearrange the portability
28803         documentation to correlate with the rearranged checks.
28804         Clarify exactly how the memmem and memmem-simple modules
28805         relate to each other.
28806
28807 2010-12-15  Pádraig Brady <P@draigBrady.com>
28808             Bruno Haible  <bruno@clisp.org>
28809
28810         Improve cross-compilation guesses for uClibc.
28811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28812         that uClibc does not have the glibc bug.
28813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28814         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28815
28816 2010-12-14  Eric Blake  <eblake@redhat.com>
28817
28818         configmake: provide fallbacks for oldest supported autotools
28819         * m4/configmake.m4: New file.
28820         * modules/configmake (Files): Ship it.
28821         (configure.ac): Use it to guarantee fallbacks.
28822
28823 2010-12-13  Pádraig Brady <P@draigBrady.com>
28824
28825         read-file: Improve handling of large files
28826         * lib/read-file.c (fread_file): Minimize realloc()s
28827         for regular files, and better manage sizes around SIZE_MAX.
28828
28829 2010-12-13  Eric Blake  <eblake@redhat.com>
28830
28831         cloexec, fcntl: relax license
28832         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28833         consent from all contributors.
28834         * modules/fcntl (License): Likewise.
28835
28836 2010-12-10  Bruno Haible  <bruno@clisp.org>
28837
28838         Tests for module 'pipe-posix'.
28839         * modules/pipe-posix-tests: New file.
28840         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28841
28842 2010-12-10  Bruno Haible  <bruno@clisp.org>
28843
28844         pipe-posix: Make it work in C++ mode.
28845         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28846         (pipe): Use common idiom, not a macro definition.
28847         * lib/pipe.c: New file.
28848         * m4/pipe.m4: New file.
28849         * modules/pipe-posix (Description): Enhance.
28850         (Files): Add lib/pipe.c, m4/pipe.m4.
28851         (configure.ac): Invoke gl_FUNC_PIPE.
28852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28853         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28854         * tests/test-unistd-c++.cc: Check the signature of pipe.
28855
28856 2010-12-10  Bruno Haible  <bruno@clisp.org>
28857
28858         Rename module 'pipe' to 'spawn-pipe'.
28859         * modules/spawn-pipe: New file, renamed from modules/pipe.
28860         (Files, configure.ac, Makefile.am): Update.
28861         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28862         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28863         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28864         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28865         "spawn-pipe.h" instead of "pipe.h".
28866         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28867         to gl_SPAWN_PIPE.
28868         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28869         (Files, Makefile.am): Update.
28870         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28871         Update.
28872         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28873         Include "spawn-pipe.h" instead of "pipe.h".
28874         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28875         * lib/javacomp.c: Likewise.
28876         * lib/javaversion.c: Likewise.
28877         * lib/pipe-filter-gi.c: Likewise.
28878         * lib/pipe-filter-ii.c: Likewise.
28879         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28880         * modules/javacomp (Depends-on): Likewise.
28881         * modules/javaversion (Depends-on): Likewise.
28882         * modules/pipe-filter-gi (Depends-on): Likewise.
28883         * modules/pipe-filter-ii (Depends-on): Likewise.
28884         * MODULES.html.sh (Executing programs): Update.
28885         * NEWS: Mention the change.
28886
28887 2010-12-10  Eric Blake  <eblake@redhat.com>
28888
28889         pipe-posix: new module
28890         * modules/pipe-posix: New file.
28891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28892         (gl_UNISTD_H): Check for declaration.
28893         * modules/unistd (Makefile.am): Substitute it.
28894         * lib/unistd.in.h (pipe): Provide it for mingw.
28895         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28896         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28897
28898 2010-12-07  Bruno Haible  <bruno@clisp.org>
28899
28900         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28901         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28902         u8_strcmp_gnu.
28903         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28904
28905 2010-12-06  Bruno Haible  <bruno@clisp.org>
28906
28907         Update internal documentation.
28908         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28909
28910 2010-12-04  Bruno Haible  <bruno@clisp.org>
28911
28912         Put more information about failed tests into the test return codes.
28913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28914         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28915         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28917         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28918         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28919         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28920         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28921         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28923         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28924         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28925         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28926         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28927         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28928         returns a bit mask.
28929         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28930         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28931         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28932         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28933         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28934         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28937         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28938         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28939         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28940         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28941         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28943         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28944         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28945         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28946         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28947         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28948         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28949         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28950         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28952         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28953         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28954         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28955         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28956         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28957         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28958         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28959         gl_PRINTF_PRECISION): Likewise.
28960         * m4/regex.m4 (gl_REGEX): Likewise.
28961         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28963         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28964         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28968         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28969         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28970         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28971         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28972         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28974         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28975         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28976         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28977         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28978         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28980         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28981         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28982         enumerated value.
28983         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28984
28985 2010-12-04  Bruno Haible  <bruno@clisp.org>
28986
28987         Update for Solaris 11 2010-11.
28988         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28989         Express, released in November 2010.
28990
28991 2010-12-04  Bruno Haible  <bruno@clisp.org>
28992
28993         nproc: Relax license.
28994         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28995         and Paul Eggert.
28996         Requested by Ludovic Courtès <ludo@gnu.org>.
28997
28998 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28999
29000         utimecmp: fine-grained src to nearby coarse-grained dest
29001
29002         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29003         and the source is on a file system with higher-resolution time
29004         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29005         not work, and the time stamps are close together, the algorithm to
29006         determine the exact resolution from the read-back mtime was buggy:
29007         it had a "!=" where it should have had an "==".  This bug has been
29008         in the code ever since it was introduced to gnulib.
29009         Problem reported by Dan Jacobson in
29010         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29011
29012 2010-11-30  Bruno Haible  <bruno@clisp.org>
29013
29014         strerror_r-posix: Fix autoconf test.
29015         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29016
29017 2010-11-28  Bruno Haible  <bruno@clisp.org>
29018             Paul Eggert  <eggert@cs.ucla.edu>
29019
29020         Tests for module 'getdomainname'.
29021         * modules/getdomainname-tests: New file.
29022         * tests/test-getdomainname.c: New file, based on
29023         tests/test-gethostname.c.
29024
29025 2010-11-28  Bruno Haible  <bruno@clisp.org>
29026             Paul Eggert  <eggert@cs.ucla.edu>
29027
29028         getdomainname: Use the system function when possible.
29029         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29030         (getdomainname): Replace if needed. Provide the declaration if it is
29031         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29032         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29033         (getdomainname): When the system has getdomainname, call the system
29034         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29035         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29036         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29037         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29038         the function if its second argument is of type 'int' or if it is found
29039         in libnsl.
29040         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29041         <sys/systeminfo.h> and sysinfo().
29042         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29044         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29045         HAVE_GETDOMAINNAME.
29046         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29047         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29048         * doc/glibc-functions/getdomainname.texi: Document the problems with
29049         the getdomainname declaration.
29050
29051 2010-11-28  Bruno Haible  <bruno@clisp.org>
29052
29053         sys_socket: Ensure ss_family field on AIX.
29054         * lib/sys_socket.in.h (ss_family): New macro definition.
29055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29056         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29057         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29058         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29059         * modules/sys_socket (Makefile.am): Substitute
29060         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29061         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29062
29063 2010-11-27  Bruno Haible  <bruno@clisp.org>
29064
29065         readline: Improve configure output.
29066         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29067         "checking for readline..." result understandable.
29068
29069 2010-11-27  Bruno Haible  <bruno@clisp.org>
29070
29071         *printf-posix: Detect a bug on Solaris 10/x86.
29072         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29073         for floating-point output.
29074         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29075         directive.
29076         * tests/test-snprintf-posix.h (test_function): Likewise.
29077         * tests/test-sprintf-posix.h (test_function): Likewise.
29078         * tests/test-vasprintf-posix.c (test_function): Likewise.
29079         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29080         * doc/posix-functions/printf.texi: Likewise.
29081         * doc/posix-functions/snprintf.texi: Likewise.
29082         * doc/posix-functions/sprintf.texi: Likewise.
29083         * doc/posix-functions/vfprintf.texi: Likewise.
29084         * doc/posix-functions/vprintf.texi: Likewise.
29085         * doc/posix-functions/vsnprintf.texi: Likewise.
29086         * doc/posix-functions/vsprintf.texi: Likewise.
29087         * doc/glibc-functions/obstack_printf.texi: Likewise.
29088         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29089
29090 2010-11-27  Bruno Haible  <bruno@clisp.org>
29091
29092         Fix link error when module libunistring-optional is in use.
29093         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29094         * modules/striconveha-tests (Makefile.am): Likewise.
29095
29096 2010-11-27  Bruno Haible  <bruno@clisp.org>
29097
29098         regex: Mention link dependencies.
29099         * modules/regex (Link): New section.
29100         * modules/rpmatch (Link): Likewise.
29101         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29102
29103 2010-11-27  Bruno Haible  <bruno@clisp.org>
29104
29105         ftoastr: Fix compilation error on Solaris.
29106         * lib/ftoastr.c: Include <config.h>.
29107
29108 2010-11-27  Bruno Haible  <bruno@clisp.org>
29109
29110         getloadavg: Update documentation.
29111         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29112
29113 2010-11-27  Bruno Haible  <bruno@clisp.org>
29114
29115         sys_socket: Fix test whether the functions are declared.
29116         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29117         not <sys/select.h>.
29118
29119 2010-11-27  Bruno Haible  <bruno@clisp.org>
29120
29121         getpass: Make sure to get system declaration on some platforms.
29122         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29123         gl_USE_SYSTEM_EXTENSIONS.
29124         * modules/getpass (Depends-on): Add extensions.
29125
29126 2010-11-26  Bruno Haible  <bruno@clisp.org>
29127
29128         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29129         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29130         'iconv' module is present.
29131         (ICONV_CONST): New macro.
29132         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29133         ICONV_CONST.
29134         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29135         set ICONV_CONST.
29136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29137         here.
29138         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29139         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29140         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29141         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29142         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29143         present.
29144
29145 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29146
29147         ftoastr: comment fix
29148         * lib/ftoastr.c: "little" -> "little or no" in comment
29149
29150 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29151
29152         stdint: port to GCC 4.3 + OSX + Octave
29153         On this platform, stdint.h is buggy and defines int64_t to long
29154         long int.  The replacement defined it to long int, causing
29155         problems with C++ style name mangling.  Instead, trust the system
29156         definition if INT64_MAX is defined, and likewise for the unsigned
29157         variant.   Problem reported by Jarno Rajahalme in
29158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29159         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29160         and don't mess with int64_t and INT64_MAX in this case.
29161         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29162
29163 2010-11-24  Bruno Haible  <bruno@clisp.org>
29164
29165         doc: Corrections regarding MacOS X 10.4 and 10.5.
29166         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29167         MacOS X.
29168         Reported by Simon Josefsson.
29169
29170 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29171
29172         Uninstall ".bin" files installed by relocwrapper.
29173         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29174         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29175         unless it is already there.
29176
29177 2010-11-21  Bruno Haible  <bruno@clisp.org>
29178
29179         Update for NetBSD 5.0.
29180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29181         NetBSD; the test fails on NetBSD 5.0.
29182         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29183         about NetBSD.
29184
29185 2010-11-21  Bruno Haible  <bruno@clisp.org>
29186
29187         Update for HP-UX 11.23 and HP-UX 11.31.
29188         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29189         HP-UX.
29190
29191 2010-11-21  Bruno Haible  <bruno@clisp.org>
29192
29193         Update for MacOS X 10.5.
29194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29195         MacOS X; the test fails on MacOS X 10.5.8.
29196         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29197         about MacOS X.
29198
29199 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29200
29201         bootstrap: add bootstrap_sync option.
29202         See discussion at
29203         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29205         * build-aux/bootstrap: Accept --bootstrap-sync to update
29206         bootstrap if it is not identical to the local gnulib's
29207         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29208         enable this by default.  Accept --no-bootstrap-sync to disable
29209         it.
29210
29211 2010-11-20  Bruno Haible  <bruno@clisp.org>
29212
29213         Ensure that <features.h> is included before __GLIBC__ is tested.
29214         * lib/printf-parse.h: Include <features.h>.
29215         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29216         Reported by Mike Frysinger <vapier@gentoo.org>.
29217
29218         Ensure that <features.h> is included before __GLIBC__ is tested.
29219         * lib/wchar.in.h: Include <features.h>.
29220         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29221         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29222         Reported by Mike Frysinger <vapier@gentoo.org>.
29223
29224         Ensure that <features.h> is included before __GLIBC__ is tested.
29225         * lib/arpa_inet.in.h: Include <features.h>.
29226         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29227         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29228         Reported by Mike Frysinger <vapier@gentoo.org>.
29229
29230         Ensure that <features.h> is included before __GLIBC__ is tested.
29231         * build-aux/link-warning.h: Include <features.h>.
29232         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29233         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29234         Reported by Mike Frysinger <vapier@gentoo.org>.
29235
29236         Ensure that <features.h> is included before __GLIBC__ is tested.
29237         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29238         Reported by Mike Frysinger <vapier@gentoo.org>.
29239
29240 2010-11-20  Bruno Haible  <bruno@clisp.org>
29241
29242         memmem: Fix autoconf test.
29243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29244
29245 2010-11-20  Bruno Haible  <bruno@clisp.org>
29246
29247         Port to uClibc.
29248         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29249         * lib/fcntl.in.h: Likewise.
29250         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29251         * lib/mbrtowc.c (mbrtowc): Likewise.
29252         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29253         * lib/strerror_r.c: Likewise.
29254         * lib/unistr/u8-strnlen.c: Likewise.
29255         * lib/vasnprintf.c (decimal_point_char): Likewise.
29256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29257         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29258         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29259         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29260         * tests/test-sigaction.c (handler, main): Likewise.
29261         * lib/freading.h: Treat uClibc like a non-glibc platform.
29262         * lib/freading.c: Likewise.
29263         * lib/gettext.h: Likewise.
29264         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29265         Likewise.
29266         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29267         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29268         * lib/propername.c (proper_name_utf8): Likewise.
29269         * lib/spawn.in.h: Likewise.
29270         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29271         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29272         mem_cd_iconveh_internal): Likewise.
29273         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29274         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29275         strstr, strcasestr): Likewise.
29276         * lib/unicodeio.c (unicode_to_mb): Likewise.
29277         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29278         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29279         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29280         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29281         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29282         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29283         * lib/unistr/u8-stpncpy.c: Likewise.
29284         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29285         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29286         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29287         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29288         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29289         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29290         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29293         Likewise.
29294         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29295         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29299         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29300         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29301         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29302         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29303         * tests/test-striconveha.c (main): Likewise.
29304         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29305         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29306         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29307         * doc/posix-functions/getline.texi: Likewise.
29308         Reported by Mike Frysinger <vapier@gentoo.org>.
29309
29310 2010-11-20  Bruno Haible  <bruno@clisp.org>
29311
29312         nproc: Fix condition.
29313         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29314         HAVE_PTHREAD_AFFINITY_NP.
29315
29316 2010-11-20  Bruno Haible  <bruno@clisp.org>
29317
29318         Fix a comment.
29319         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29320
29321 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29322
29323         ftoastr: don't assume snprintf
29324         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29325         Implement a subset of snprintf here, by using sprintf safely.
29326         * modules/ftoastr (Depends-on): Remove snprintf.
29327
29328 2010-11-19  Jim Meyering  <meyering@redhat.com>
29329
29330         test-rename.h: fix compilation failure
29331         * tests/test-rename.h (test_rename): Add omitted "}".
29332
29333 2010-11-17  Jim Meyering  <meyering@redhat.com>
29334
29335         maint.mk: add a URL discussing the no-@acronym policy
29336         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29337
29338 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29339
29340         ftoastr: depend on snprintf, improve comments
29341         * lib/ftoastr.c: Also mention Loitsch's draft.
29342         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29343         needed in the current implementation, but it might simplify
29344         speeding up the code later.
29345         * modules/ftoastr: Depend on snprintf; this improves portability.
29346         Suggested by Bruno Haible in the same email.
29347
29348         ftoastr: port to hosts lacking strtof and strtold
29349         Problem reported by Bruno Haible in
29350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29351         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29352         environment and strtold (and presumably strtof) are not available.
29353         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29354         (configure.ac): Require gl_C99_STRTOLD.
29355
29356 2010-11-18  Bruno Haible  <bruno@clisp.org>
29357
29358         c-strtold: Avoid link error on AIX 7.
29359         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29360         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29361         (gl_C_STRTOLD): Test whether strtold_l exists.
29362         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29363
29364 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         intprops: new macro INT_BITS_STRLEN_BOUND
29367         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29368         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29369         not exposed.  Also, it uses a slightly tighter bound than before;
29370         though this makes no practical difference, we might as well be as
29371         tight as we easily can.
29372
29373         ftoastr: new module, for lossless conversion of floats to short strings
29374         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29375         * modules/ftoastr: New files.
29376
29377 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29378
29379         bootstrap: port to Solaris sed
29380         * build-aux/bootstrap (get_version): Port to Solaris sed.
29381         See Ralf Wildenhues's note in
29382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29383
29384 2010-11-14  Jim Meyering  <meyering@redhat.com>
29385
29386         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29387         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29388         and move definition closer to sole use.
29389
29390 2010-11-13  Jim Meyering  <meyering@redhat.com>
29391
29392         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29393         Now we require at least autoconf-2.59, which means the work-around
29394         is no longer needed.
29395         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29396         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29397         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29398         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29399         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29400
29401 2010-11-13  Bruno Haible  <bruno@clisp.org>
29402
29403         rename, renameat: Avoid test failures at NFS mounted locations.
29404         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29405         functions.
29406         (test_rename): Use assert_nonexistent.
29407         * tests/test-rename.c: Include <dirent.h>.
29408         * tests/test-renameat.c: Likewise.
29409         Reported by Gary V. Vaughan <gary@gnu.org>.
29410
29411         rename, renameat: Document Linux bug with NFS
29412         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29413         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29414         * doc/posix-functions/renameat.texi: Likewise.
29415         Suggested by Eric Blake.
29416
29417 2010-11-13  Bruno Haible  <bruno@clisp.org>
29418
29419         rename test: Add comments.
29420         * tests/test-rename.h (test_rename): Add structure and comments.
29421
29422 2010-11-13  Eric Blake  <eblake@redhat.com>
29423
29424         maintainer-makefile: cover a few more files
29425         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29426         scripts generated within C files, for libvirt.
29427
29428 2010-11-13  Bruno Haible  <bruno@clisp.org>
29429
29430         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29431         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29432         character, return the number of bytes that belong together, not always
29433         1.
29434         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29435         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29436         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29437         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29438         number of bytes of an invalid character.
29439         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29440         (main): Invoke it.
29441         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29442         results.
29443         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29444         malformed byte sequences.
29445         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29446         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29447         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29448         Reported by Ben Pfaff and Paolo Bonzini.
29449
29450 2010-11-13  Bruno Haible  <bruno@clisp.org>
29451
29452         openat: Work around glibc bug with fchownat() and empty file names.
29453         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29454         (gl_FUNC_FCHOWNAT): Invoke it.
29455         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29456         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29457         Reported by Gary V. Vaughan <gary@gnu.org>.
29458
29459 2010-11-13  Bruno Haible  <bruno@clisp.org>
29460
29461         openat: Ensure autoconf macro ordering.
29462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29463         gl_USE_SYSTEM_EXTENSIONS.
29464         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29465
29466 2010-11-13  Bruno Haible  <bruno@clisp.org>
29467
29468         Update comments.
29469         * lib/unistr/u8-check.c: Update file name in comments.
29470         * lib/unistr/u8-mblen.c: Likewise.
29471         * lib/unistr/u8-prev.c: Likewise.
29472         * lib/unistr/u8-strmblen.c: Likewise.
29473         * lib/unistr/u8-strmbtouc.c: Likewise.
29474
29475 2010-11-13  Jim Meyering  <meyering@redhat.com>
29476
29477         tests: avoid test failure on Solaris 10 due to lack of PATH export
29478         * tests/test-update-copyright.sh: Don't forget to export PATH.
29479
29480         init.sh: ensure that IFS is defined, just in case...
29481         * tests/init.sh (setup_): Ensure that IFS is defined,
29482         so that saving and restoring it works as expected.  This
29483         appears to be useful at least for an old version of dash
29484         from a long time ago (RH 6).  See here for details:
29485         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29486
29487         maint.mk: tighten "test a == b" check
29488         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29489         test to files that contain something like #!/bin/sh.
29490         Without this, coreutils would get two false positives in
29491         the comments of C source files.
29492
29493 2010-11-12  Eric Blake  <eblake@redhat.com>
29494
29495         bootstrap: fix typo in previous attempt
29496         * build-aux/bootstrap (buildreq): Correct the grouping.
29497         Reported by Paul Eggert.
29498
29499         maintainer-makefile: prohibit test x == x
29500         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29501         Based on a report by Matthias Bolte.
29502
29503         bootstrap: allow FreeBSD gzip
29504         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29505         which has no '.' and goes to stderr.
29506         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29507         Reported by Matthias Bolte.
29508
29509         maintainer-makefile: check for i18n setup
29510         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29511         will likely work.
29512
29513 2010-11-12  Bruno Haible  <bruno@clisp.org>
29514
29515         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29516         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29517         * lib/nanosleep.c (nanosleep): Likewise.
29518
29519 2010-11-11  Bruno Haible  <bruno@clisp.org>
29520
29521         fcntl-h: Fix for use of C++ on glibc systems.
29522         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29523         also on glibc systems in C++ mode.
29524         Reported by Gary V. Vaughan <gary@gnu.org>.
29525
29526 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29527
29528         mknod: avoid false failure with dash
29529         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29530
29531 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29532
29533         unlink: Fix "is it should" typo in diagnostic.
29534         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29536
29537 2010-11-11  Bruno Haible  <bruno@clisp.org>
29538
29539         Tests for module 'strerror_r-posix'.
29540         * modules/strerror_r-posix-tests: New file.
29541         * tests/test-strerror_r.c: New file.
29542         * tests/test-string-c++.cc: Check the signature of strerror_r.
29543
29544         New module 'strerror_r-posix'.
29545         * lib/string.in.h (strerror_r): New declaration.
29546         * lib/strerror_r.c: New file.
29547         * m4/strerror_r.m4: New file.
29548         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29549         of strerror_r.
29550         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29551         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29552         * modules/strerror_r-posix: New file.
29553         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29554         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29555         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29556         portability problems.
29557
29558 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29559
29560         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29561         line is also considered for output. Quoted function name in shell
29562         command, so temporary files for functions like MyClass::operator()
29563         are removed correctly without errors.
29564
29565 2010-11-09  Bruno Haible  <bruno@clisp.org>
29566
29567         * doc/posix-functions/strerror.texi: List more failing platforms.
29568
29569         * doc/posix-functions/strerror.texi: Add a comment.
29570
29571 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29572
29573         fdopendir: fix bug on MacOS X when low on file descriptors
29574
29575         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29576         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29577         All callers changed.
29578         (fdopendir): Invoke save_cwd at the top level, not after using
29579         multiple dup() calls to use up file descriptors.  Then retry
29580         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29581         less than the maximum number of open file descriptors, because
29582         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29583         on Mac OS X 10.6.4 for tar 1.24
29584         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29585         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29586         and for tar 1.25
29587         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29588
29589 2010-11-07  Bruno Haible  <bruno@clisp.org>
29590
29591         vasnprintf: Support I flag on glibc systems.
29592         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29593         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29594         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29595         snprintf function.
29596         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29597         glibc systems.
29598         * tests/test-vasnprintf-posix3.c: New file.
29599         * modules/vasnprintf-posix-tests (Files): Add it.
29600         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29601
29602 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29603
29604         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29605         * MODULES.html.sh: For compiler warnings, use name
29606         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29607
29608 2010-11-05  Eric Blake  <eblake@redhat.com>
29609
29610         ceil, floor: avoid spurious failure with icc
29611         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29612         [denormals-as-zero] when optimizing without -mieee-fp option.
29613         * tests/test-floorf2.c (floorf_reference): Likewise.
29614         * tests/test-ceilf1.c (dummy): New function.
29615         (main): Use it to outsmart icc's optimization.
29616         * tests/test-floorf1.c (dummy, main): Likewise.
29617
29618         tests: require working signbit
29619         * modules/ceilf-tests (Depends-on): Add signbit.
29620         * modules/ceill-tests (Depends-on): Likewise.
29621         * modules/floorf-tests (Depends-on): Likewise.
29622         * modules/floorl-tests (Depends-on): Likewise.
29623         * modules/round-tests (Depends-on): Likewise.
29624         * modules/roundf-tests (Depends-on): Likewise.
29625         * modules/roundl-tests (Depends-on): Likewise.
29626         * modules/trunc-tests (Depends-on): Likewise.
29627         * modules/truncf-tests (Depends-on): Likewise.
29628         * modules/truncl-tests (Depends-on): Likewise.
29629
29630         strtod: work around icc bug
29631         * lib/strtod.c (minus_zero): Define to working value.
29632         (strtod): Use it to avoid icc bug.
29633
29634         copysign: enhance tests
29635         * modules/copysign-tests (Files): Add minus-zero.h.
29636         * tests/test-copysign.c (main): Also test zeros.
29637
29638 2010-11-04  Eric Blake  <eblake@redhat.com>
29639
29640         ceil, floor, round, trunc: enhance tests of -0
29641         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29642         * tests/test-ceill.c (main): Likewise.
29643         * tests/test-floorf1.c (main): Likewise.
29644         * tests/test-floorl.c (main): Likewise.
29645         * tests/test-round1.c (main): Likewise.
29646         * tests/test-roundf1.c (main): Likewise.
29647         * tests/test-roundl.c (main): Likewise.
29648         * tests/test-trunc1.c (main): Likewise.
29649         * tests/test-truncf1.c (main): Likewise.
29650         * tests/test-truncl.c (main): Likewise.
29651
29652 2010-11-04  Eric Blake  <eblake@redhat.com>
29653
29654         frexp, tests: work around ICC bug with -zero
29655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29656         works with more compilers.
29657         * tests/minus-zero.h: New file.
29658         * modules/ceilf-tests (Files): Include it.
29659         * modules/ceill-tests (Files): Likewise.
29660         * modules/floorf-tests (Files): Likewise.
29661         * modules/floorl-tests (Files): Likewise.
29662         * modules/frexp-nolibm-tests (Files): Likewise.
29663         * modules/frexp-tests (Files): Likewise.
29664         * modules/frexpl-nolibm-tests (Files): Likewise.
29665         * modules/frexpl-tests (Files): Likewise.
29666         * modules/isnan-tests (Files): Likewise.
29667         * modules/isnand-nolibm-tests (Files): Likewise.
29668         * modules/isnand-tests (Files): Likewise.
29669         * modules/isnanf-nolibm-tests (Files): Likewise.
29670         * modules/isnanf-tests (Files): Likewise.
29671         * modules/isnanl-nolibm-tests (Files): Likewise.
29672         * modules/isnanl-tests (Files): Likewise.
29673         * modules/round-tests (Files): Likewise.
29674         * modules/roundf-tests (Files): Likewise.
29675         * modules/roundl-tests (Files): Likewise.
29676         * modules/ldexpl-tests (Files): Likewise.
29677         * modules/signbit-tests (Files): Likewise.
29678         * modules/snprintf-posix-tests (Files): Likewise.
29679         * modules/sprintf-posix-tests (Files): Likewise.
29680         * modules/strtod-tests (Files): Likewise.
29681         * modules/trunc-tests (Files): Likewise.
29682         * modules/truncf-tests (Files): Likewise.
29683         * modules/truncl-tests (Files): Likewise.
29684         * modules/vsnprintf-posix-tests (Files): Likewise.
29685         * modules/vsprintf-posix-tests (Files): Likewise.
29686         * modules/vasnprintf-posix-tests (Files): Likewise.
29687         * modules/vasprintf-posix-tests (Files): Likewise.
29688         * tests/test-ceilf1.c (main): Use it.
29689         * tests/test-ceill.c (main): Likewise.
29690         * tests/test-floorf1.c (main): Likewise.
29691         * tests/test-floorl.c (main): Likewise.
29692         * tests/test-frexp.c (main): Likewise.
29693         * tests/test-frexpl.c (main): Likewise.
29694         * tests/test-isnan.c (main): Likewise.
29695         * tests/test-isnand.h (main): Likewise.
29696         * tests/test-isnanf.h (main): Likewise.
29697         * tests/test-isnanl.h (main): Likewise.
29698         * tests/test-ldexpl.c (main): Likewise.
29699         * tests/test-round.c (main): Likewise.
29700         * tests/test-roundf.c (main): Likewise.
29701         * tests/test-roundl.c (main): Likewise.
29702         * tests/test-signbit.c (test_signbitf, test_signbitd)
29703         (test_signbitl): Likewise.
29704         * tests/test-snprintf-posix.h (test_function): Likewise.
29705         * tests/test-sprintf-posix.h (test_function): Likewise.
29706         * tests/test-strtod.c (main): Likewise.
29707         * tests/test-trunc1.c (main): Likewise.
29708         * tests/test-truncf1.c (main): Likewise.
29709         * tests/test-truncl.c (main): Likewise.
29710
29711         isnanl: work around icc bug
29712         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29713
29714 2010-11-03  Eric Blake  <eblake@redhat.com>
29715
29716         tests: fix compiler warnings
29717         * tests/test-getopt.h (test_getopt): Fix condition.
29718         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29719         * tests/test-pipe2.c (main): Likewise.
29720         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29721
29722         utimens: fix broken m4 test
29723         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29724
29725 2010-10-28  Bruno Haible  <bruno@clisp.org>
29726
29727         posix_spawn*, getdtablesize: Relax license.
29728         * modules/posix_spawn (License): Change to LGPLv2+.
29729         * modules/posix_spawnp (License): Likewise.
29730         * modules/posix_spawn-internal (License): Likewise.
29731         * modules/posix_spawnattr_init (License): Likewise.
29732         * modules/posix_spawnattr_getflags (License): Likewise.
29733         * modules/posix_spawnattr_setflags (License): Likewise.
29734         * modules/posix_spawnattr_getpgroup (License): Likewise.
29735         * modules/posix_spawnattr_setpgroup (License): Likewise.
29736         * modules/posix_spawnattr_getschedparam (License): Likewise.
29737         * modules/posix_spawnattr_setschedparam (License): Likewise.
29738         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29739         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29740         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29741         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29742         * modules/posix_spawnattr_getsigmask (License): Likewise.
29743         * modules/posix_spawnattr_setsigmask (License): Likewise.
29744         * modules/posix_spawnattr_destroy (License): Likewise.
29745         * modules/posix_spawn_file_actions_init (License): Likewise.
29746         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29747         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29748         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29749         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29750         * modules/getdtablesize (License): Likewise.
29751         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29752
29753 2010-10-26  Bruno Haible  <bruno@clisp.org>
29754
29755         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29756         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29757         Cygwin and mingw.
29758         Suggested by Eric Blake.
29759
29760 2010-10-26  Bruno Haible  <bruno@clisp.org>
29761
29762         stdio: Work around compilation error due to renameat() on Solaris 10.
29763         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29764         * lib/renameat.c: Don't include <unistd.h> here.
29765         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29766         Reported by Paul Eggert and Eric Blake.
29767
29768 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29769
29770         renameat: port to Solaris 10, which declares renameat in unistd.h
29771
29772         * lib/renameat.c: Include unistd.h before stdio.h, because
29773         Solaris 10 declares renameat in unistd.h.  Problem encountered
29774         when building GNU tar 1.24 on Solaris 10.
29775
29776 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29777
29778         fdopendir: fix C89 compilation
29779         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29780         compilers.
29781
29782 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29783
29784         inttostr: simplify by removing unnecessary redundancy
29785         * lib/anytostr.c: Don't include verify.h.
29786         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29787         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29788         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29789         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29790         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29791         Likewise.
29792         * modules/inttostr (Depends-on): Remove 'verify'.
29793
29794 2010-10-23  Bruno Haible  <bruno@clisp.org>
29795
29796         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29797         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29798         Reported by Eric Blake.
29799
29800 2010-10-23  Bruno Haible  <bruno@clisp.org>
29801
29802         Tests: Fix LOCALE_JA on MirBSD 10.
29803         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29804         to an UTF-8 locale.
29805         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29806         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29807         Reported by Eric Blake.
29808
29809 2010-10-21  Bruno Haible  <bruno@clisp.org>
29810
29811         nl_langinfo test: Avoid test failure on NetBSD 5.
29812         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29813         Reported by Eric Blake.
29814
29815 2010-10-21  Eric Blake  <eblake@redhat.com>
29816
29817         c-stack: work around libsigsegv 2.8 bug
29818         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29819         overflow on at least PowerPC64.
29820
29821 2010-10-17  Bruno Haible  <bruno@clisp.org>
29822
29823         userspec: Drop redundant file.
29824         * modules/userspec (Files): Remove lib/inttostr.h.
29825
29826 2010-10-17  Bruno Haible  <bruno@clisp.org>
29827
29828         nl_langinfo tests: Silence some warnings.
29829         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29830         Reported by Jim Meyering.
29831
29832 2010-10-17  Bruno Haible  <bruno@clisp.org>
29833
29834         Make use of GCC's attribute __alloc_size__.
29835         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29836         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29837         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29838         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29839         __alloc_size__.
29840         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29841         Suggested by Jim Meyering.
29842
29843 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29844
29845         bootstrap: anchor .gitignore entries.
29846         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29847         with...
29848         (insert_vc_ignore): ... this new function, which prepends `/' to
29849         all .gitignore entries before passing them to
29850         insert_sorted_if_absent.
29851
29852 2010-10-16  Bruno Haible  <bruno@clisp.org>
29853
29854         nextafter: Fix configure check.
29855         * modules/nextafter (configure.ac): Correct expected prototype.
29856
29857 2010-10-16  Bruno Haible  <bruno@clisp.org>
29858
29859         termios: Update documentation.
29860         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29861
29862 2010-10-16  Bruno Haible  <bruno@clisp.org>
29863
29864         tests: Make them compile with TinyCC.
29865         * tests/test-strstr.c (main): Remove parentheses around array
29866         initializer.
29867
29868 2010-10-15  Eric Blake  <eblake@redhat.com>
29869
29870         ignore-value: make header idempotent
29871         * lib/ignore-value.h: Add double-inclusion guards.
29872         Reported by Stefan Berger.
29873
29874 2010-10-15  Jim Meyering  <meyering@redhat.com>
29875
29876         GNUmakefile: handle "stable" target, not "major"
29877         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29878         lists in maint.mk and announce-gen.  Without this, "make stable"
29879         would fail to ensure that $(VERSION) is up to date.
29880
29881 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29882
29883         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29884         & co.
29885
29886 2010-10-14  Bruno Haible  <bruno@clisp.org>
29887
29888         vasnprintf: Don't set errno to 0.
29889         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29890         block that sets it to 0.
29891         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29892
29893 2010-10-14  Bruno Haible  <bruno@clisp.org>
29894
29895         socketlib: Fix.
29896         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29897         gl_PREREQ_SYS_H_WINSOCK2.
29898         Reported by Ian Beckwith <ianb@erislabs.net>.
29899
29900 2010-10-13  Jim Meyering  <meyering@redhat.com>
29901
29902         test-select-stdin.c: avoid warn_unused_result warnings
29903         * tests/test-select-stdin.c: Include "macros.h".
29904         ASSERT that read and fflush succeed.
29905
29906 2010-10-13  Jim Meyering  <meyering@redhat.com>
29907
29908         git-version-gen: do require git-VC'd files in cwd
29909         * build-aux/git-version-gen: Reject a git version string
29910         if there are no commits associated with the current directory.
29911         This avoids an unlikely false-positive (unrelated dir whose parent
29912         repository also contains a tag matching v*), as pointed out
29913         by Giuseppe Scrivano in
29914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29915
29916 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29917
29918         argv-iter: omit nonconforming declaration
29919         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29920         enum arg_iter_err declaration, which doesn't conform to C99.
29921         Solaris 10 cc warns about this.
29922
29923 2010-10-13  Eric Blake  <eblake@redhat.com>
29924
29925         termios: fix compilation on mingw
29926         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29927         (gl_TERMIOS_H): Adjust it on mingw.
29928         * modules/termios (Makefile.am): Substitute new key.
29929         * lib/termios.in.h (includes): Make include_next conditional.
29930         * doc/posix-headers/termios.texi (termios.h): Update
29931         documentation.
29932         Reported by Daniel P. Berrange.
29933
29934 2010-10-13  Jim Meyering  <meyering@redhat.com>
29935
29936         git-version-gen: don't require that .git/ be in the current dir
29937         * build-aux/git-version-gen: Adjust this script so that it works
29938         when run from any working directory beneath the top-level .git/-
29939         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29940         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29941
29942         test-select: avoid warn_unused_result warnings
29943         * tests/test-select.c: Include "macros.h".
29944         ASSERT that each call to read, write, and pipe succeeds.
29945         While not technically required, also check each "close".
29946         * modules/select-tests (Files): Add tests/macros.h.
29947
29948         test-symlinkat: remove declaration of unused local
29949         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29950
29951         test-inttostr: avoid shadowing warnings
29952         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29953         and use malloc rather than the stack for the same reason as
29954         mentioned in the comment justifying the other allocation.
29955
29956 2010-10-11  Bruno Haible  <bruno@clisp.org>
29957
29958         stdlib: Allow multiple gnulib generated replacements to coexist.
29959         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29960         Reported by Sam Steingold <sds@gnu.org>.
29961
29962 2010-10-11  Jim Meyering  <meyering@redhat.com>
29963
29964         fix a documentation typo
29965         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29966
29967 2010-10-11  Eric Blake  <eblake@redhat.com>
29968
29969         futimens: work around Solaris 11 bug
29970         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29971         * tests/test-futimens.h (test_futimens): Enhance, rather than
29972         weaken test.
29973         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29974
29975 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29976
29977         Indentation.
29978         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29979         higher-level operators more to the left.
29980
29981 2010-10-11  Jim Meyering  <meyering@redhat.com>
29982
29983         test-futimens: avoid unwarranted test failure on Solaris 5.11
29984         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29985         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29986         because it tries to dereference the NULL name argument.
29987
29988 2010-10-11  Bruno Haible  <bruno@clisp.org>
29989
29990         Indentation.
29991         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29992         indentation.
29993
29994 2010-10-11  Jim Meyering  <meyering@redhat.com>
29995
29996         spawn.in.h: make indentation consistent with parentheses
29997         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29998         Make indentation consistent with parentheses.
29999
30000 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30001
30002         Fix mismatched parens in previous commit
30003         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30004         parens.
30005
30006 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30007
30008         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30009
30010         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30011         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30012         * lib/malloca.c: Include "verify.h".
30013         (verify1): Remove, replacing with a verify call.
30014         * lib/relocwrapper.c (verify1): Likewise.
30015         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30016         Likewise.
30017         * modules/malloca (Depends-on): Add 'verify'.
30018         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30019         * modules/vasnprintf (Depends-on): Add 'verify'.
30020         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30021         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30022         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30023         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30024         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30025         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30026         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30027
30028         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30029
30030         Formerly the style was sometimes 2*X - 1, because the C standard
30031         was wrongly thought to disallow ?: in integral constant expressions.
30032         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30033         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30034         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30035         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30036         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30037         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30038         verify that time_t cannot be floating.
30039
30040 2010-10-08  Eric Blake  <eblake@redhat.com>
30041
30042         time: enforce recent POSIX ruling that time_t is integral
30043         * lib/time.in.h (__time_t_must_be_integral): Detect any
30044         problematic systems, allowing the rest of gnulib to assume POSIX.
30045
30046 2010-10-08  Jim Meyering  <meyering@redhat.com>
30047
30048         fdopendir: fix a bug on systems lacking openat and /proc support
30049         OpenBSD 4.7 is one such system.  The most noticeable effect was
30050         failure of any application making nontrivial use of fts: rm, du,
30051         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30052           ./rm: traversal failed: `a': Bad file descriptor
30053         Debugging that, you see that even though FD 6 was closed just
30054         prior to the opendir call in fd_clone_opendir, its resulting
30055         dir->dd_fd was 8, rather than the expected value of 6:
30056
30057         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30058         93                close (fd);
30059         (gdb) n
30060         94                dir = fd_clone_opendir (dupfd);
30061         (gdb) n
30062         95                saved_errno = errno;
30063         (gdb) p dir->dd_fd
30064         $11 = 8
30065
30066         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30067         The problem is that on OpenBSD, fd_clone_opendir has to resort
30068         to using the old-style save/restore CWD mechanism, due to its
30069         lack of openat/proc support, and *that* would steal the FD (6)
30070         that opendir was supposed to use.
30071
30072         The fix is to squirrel away the desired FD so that save_cwd uses a
30073         different one, and then free the dest FD right before calling opendir.
30074         That guarantees opendir will use the required file descriptor.
30075
30076         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30077
30078 2010-10-08  Bruno Haible  <bruno@clisp.org>
30079
30080         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30081         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30082
30083 2010-10-08  Bruno Haible  <bruno@clisp.org>
30084
30085         nanosleep: Make replacement POSIX compliant.
30086         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30087         is out of range.
30088         Reported by Jim Meyering.
30089
30090 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30091
30092         bootstrap: add hook for altering gnulib.mk, for Bison
30093         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30094         the Bison bootstrapping process can rewrite file names and variables
30095         in this file before later parts of 'bootstrap' use the file.
30096         Bison wants to include lib/gnulib.mk from the top-level makefile,
30097         so it needs the file names in this file to be relative to the top
30098         level, not relative to lib; plus it needs variable names to be
30099         rewritten.
30100         (slurp): Use the new function.
30101
30102         bootstrap: reformat for readability
30103         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30104
30105 2010-10-08  Eric Blake  <eblake@redhat.com>
30106
30107         docs: update cygwin progress
30108         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30109         1.7.7.
30110         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30111         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30112         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30113         * doc/posix-functions/carg.texi (carg): Likewise.
30114         * doc/posix-functions/cargf.texi (cargf): Likewise.
30115         * doc/posix-functions/casin.texi (casin): Likewise.
30116         * doc/posix-functions/casinf.texi (casinf): Likewise.
30117         * doc/posix-functions/casinh.texi (casinh): Likewise.
30118         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30119         * doc/posix-functions/catan.texi (catan): Likewise.
30120         * doc/posix-functions/catanf.texi (catanf): Likewise.
30121         * doc/posix-functions/catanh.texi (catanh): Likewise.
30122         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30123         * doc/posix-functions/ccos.texi (ccos): Likewise.
30124         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30125         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30126         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30127         * doc/posix-functions/cexp.texi (cexp): Likewise.
30128         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30129         * doc/posix-functions/cimag.texi (cimag): Likewise.
30130         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30131         * doc/posix-functions/clog.texi (clog): Likewise.
30132         * doc/posix-functions/clogf.texi (clogf): Likewise.
30133         * doc/posix-functions/conj.texi (conj): Likewise.
30134         * doc/posix-functions/conjf.texi (conjf): Likewise.
30135         * doc/posix-functions/cpow.texi (cpow): Likewise.
30136         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30137         * doc/posix-functions/cproj.texi (cproj): Likewise.
30138         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30139         * doc/posix-functions/creal.texi (creal): Likewise.
30140         * doc/posix-functions/crealf.texi (crealf): Likewise.
30141         * doc/posix-functions/csin.texi (csin): Likewise.
30142         * doc/posix-functions/csinf.texi (csinf): Likewise.
30143         * doc/posix-functions/csinh.texi (csinh): Likewise.
30144         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30145         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30146         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30147         * doc/posix-functions/ctan.texi (ctan): Likewise.
30148         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30149         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30150         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30151         * doc/posix-headers/complex.texi (complex.h): Likewise.
30152
30153 2010-10-07  Jim Meyering  <meyering@redhat.com>
30154
30155         parse-datetime: avoid compilation failure on OpenBSD 4.7
30156         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30157         This works around a compilation failure on OpenBSD 4.7:
30158         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30159
30160 2010-10-07  Eric Blake  <eblake@redhat.com>
30161
30162         docs: update cygwin progress
30163         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30164         1.7.6.
30165         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30166         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30167         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30168         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30169         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30170         Likewise.
30171         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30172         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30173         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30174         Likewise.
30175         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30176         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30177         Likewise.
30178         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30179         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30180         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30181         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30182         Likewise.
30183         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30184         Likewise.
30185         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30186
30187         docs: update parse-datetime history
30188         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30189         documentation of this function's history and alternatives.
30190
30191         cygwin: use more robust version check
30192         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30193         exclude an eventual cygwin 1.9.1.
30194         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30196         (gl_FUNC_STRCASESTR): Likewise.
30197         Reported by Bruno Haible.
30198
30199 2010-10-06  Bruno Haible  <bruno@clisp.org>
30200
30201         string, sys_select: Avoid #including large headers unless necessary.
30202         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30203         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30204         OSF/1, BeOS, Haiku.
30205         Reported by Jim Meyering.
30206
30207 2010-10-05  Eric Blake  <eblake@redhat.com>
30208
30209         memmem, strstr, strcasestr: fix bug with long periodic needle
30210         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30211         periodic needle having false positive.
30212         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30213         and cygwin 1.7.7.
30214         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30216         (gl_FUNC_STRCASESTR): Likewise.
30217         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30218         * tests/test-memmem.c (main): Expose the bug.
30219         * tests/test-strcasestr.c (main): Likewise.
30220         * tests/test-strstr.c (main): Likewise.
30221         * tests/test-c-strcasestr.c (main): Likewise.
30222         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30223         * doc/posix-functions/strstr.texi (strstr): Likewise.
30224         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30225         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30226
30227 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30228
30229         parse-datetime: do some more renaming
30230         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30231         parse_datetime, not get_date.  Mention the renaming.
30232         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30233         in comments.
30234         * m4/bison.m4: Likewise.
30235
30236 2010-10-05  Eric Blake  <eblake@redhat.com>
30237
30238         parse-datetime: better name than get_date
30239         * NEWS: Reword the deprecation notice.
30240         * modules/get_date: Rename to modules/parse-datetime.
30241         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30242         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30243         * lib/get_date.y: Rename to lib/parse-datetime.y.
30244         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30245         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30246         * doc/getdate.texi: Provide fallback wrapper.
30247         * lib/getdate.h: Move guts, and wrap...
30248         * lib/parse-datetime.h: ...new file.
30249         * lib/parse-datetime.y (get_date): Rename...
30250         (parse_datetime): ...to this.
30251         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30252         (gl_PARSE_DATETIME): ...to this.
30253         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30254         documentation.
30255         * modules/getdate (Files): Provide fallback docs and header.
30256         (Notice, Depends-on): Update references.
30257         * tests/test-parse-datetime.c: Likewise.
30258         * DEPENDENCIES: Likewise.
30259         * MODULES.html.sh (Date and time <time.h>): Likewise.
30260         * doc/parse-datetime.texi (Date input formats)
30261         (Authors of parse_datetime): Likewise.
30262         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30263         (Include): Likewise.
30264         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30265         * gnulib-tool: Likewise.
30266         * m4/bison.m4 (gl_BISON): Likewise.
30267         Suggested by Bruno Haible.
30268
30269 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30270
30271         more ports to Solaris tr, which needs [] around ranges
30272         * gnulib-tool: Solaris tr needs [] around ranges.
30273         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30274         * tests/test-pipe-filter-gi1.c (main): Likewise.
30275         * tests/test-pipe-filter-ii1.c (main): Likewise.
30276
30277 2010-10-05  Eric Blake  <eblake@redhat.com>
30278
30279         bootstrap: fix Solaris regression
30280         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30281         around ranges.
30282         Reported by Pádraig Brady.
30283
30284         bootstrap: work with pkg-config
30285         * build-aux/bootstrap (check_versions): Also transliterate - in
30286         prerequisite name.
30287         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30288         prerequisites that were already found, to avoid confusion.
30289         Reported by Justin Clift.
30290
30291         faccessat: remove unused wrappers
30292         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30293         presence of these wrappers dragged in -lgen on Solaris.
30294         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30295
30296 2010-10-05  Jim Meyering  <meyering@redhat.com>
30297
30298         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30299         * Makefile (sc_pragma_columns): New syntax-check rule.
30300
30301 2010-10-04  Bruno Haible  <bruno@clisp.org>
30302
30303         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30304         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30305         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30306         Reported by Bruce Korb and Eric Blake.
30307
30308 2010-10-04  Bruno Haible  <bruno@clisp.org>
30309
30310         threadlib: Make option --with-libpth-prefix work.
30311         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30312         use $LIBPTH, not just -lpth.
30313
30314 2010-10-04  Bruno Haible  <bruno@clisp.org>
30315
30316         Avoid line length limitation from HP NonStop system header files.
30317         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30318         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30319         * lib/ctype.in.h: Likewise.
30320         * lib/dirent.in.h: Likewise.
30321         * lib/errno.in.h: Likewise.
30322         * lib/fcntl.in.h: Likewise.
30323         * lib/float.in.h: Likewise.
30324         * lib/getopt.in.h: Likewise.
30325         * lib/iconv.in.h: Likewise.
30326         * lib/inttypes.in.h: Likewise.
30327         * lib/langinfo.in.h: Likewise.
30328         * lib/locale.in.h: Likewise.
30329         * lib/math.in.h: Likewise.
30330         * lib/netdb.in.h: Likewise.
30331         * lib/netinet_in.in.h: Likewise.
30332         * lib/poll.in.h: Likewise.
30333         * lib/pthread.in.h: Likewise.
30334         * lib/pty.in.h: Likewise.
30335         * lib/sched.in.h: Likewise.
30336         * lib/se-selinux.in.h: Likewise.
30337         * lib/search.in.h: Likewise.
30338         * lib/signal.in.h: Likewise.
30339         * lib/spawn.in.h: Likewise.
30340         * lib/stdarg.in.h: Likewise.
30341         * lib/stddef.in.h: Likewise.
30342         * lib/stdint.in.h: Likewise.
30343         * lib/stdio.in.h: Likewise.
30344         * lib/stdlib.in.h: Likewise.
30345         * lib/string.in.h: Likewise.
30346         * lib/strings.in.h: Likewise.
30347         * lib/sys_file.in.h: Likewise.
30348         * lib/sys_ioctl.in.h: Likewise.
30349         * lib/sys_select.in.h: Likewise.
30350         * lib/sys_socket.in.h: Likewise.
30351         * lib/sys_stat.in.h: Likewise.
30352         * lib/sys_time.in.h: Likewise.
30353         * lib/sys_times.in.h: Likewise.
30354         * lib/sys_utsname.in.h: Likewise.
30355         * lib/sys_wait.in.h: Likewise.
30356         * lib/sysexits.in.h: Likewise.
30357         * lib/termios.in.h: Likewise.
30358         * lib/time.in.h: Likewise.
30359         * lib/unistd.in.h: Likewise.
30360         * lib/wchar.in.h: Likewise.
30361         * lib/wctype.in.h: Likewise.
30362         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30363         * modules/ctype (Makefile.am): Likewise.
30364         * modules/dirent (Makefile.am): Likewise.
30365         * modules/errno (Makefile.am): Likewise.
30366         * modules/fcntl-h (Makefile.am): Likewise.
30367         * modules/float (Makefile.am): Likewise.
30368         * modules/getopt-posix (Makefile.am): Likewise.
30369         * modules/iconv-h (Makefile.am): Likewise.
30370         * modules/inttypes (Makefile.am): Likewise.
30371         * modules/langinfo (Makefile.am): Likewise.
30372         * modules/locale (Makefile.am): Likewise.
30373         * modules/math (Makefile.am): Likewise.
30374         * modules/netdb (Makefile.am): Likewise.
30375         * modules/netinet_in (Makefile.am): Likewise.
30376         * modules/poll-h (Makefile.am): Likewise.
30377         * modules/pthread (Makefile.am): Likewise.
30378         * modules/pty (Makefile.am): Likewise.
30379         * modules/sched (Makefile.am): Likewise.
30380         * modules/search (Makefile.am): Likewise.
30381         * modules/selinux-h (Makefile.am): Likewise.
30382         * modules/signal (Makefile.am): Likewise.
30383         * modules/spawn (Makefile.am): Likewise.
30384         * modules/stdarg (Makefile.am): Likewise.
30385         * modules/stddef (Makefile.am): Likewise.
30386         * modules/stdint (Makefile.am): Likewise.
30387         * modules/stdio (Makefile.am): Likewise.
30388         * modules/stdlib (Makefile.am): Likewise.
30389         * modules/string (Makefile.am): Likewise.
30390         * modules/strings (Makefile.am): Likewise.
30391         * modules/sys_file (Makefile.am): Likewise.
30392         * modules/sys_ioctl (Makefile.am): Likewise.
30393         * modules/sys_select (Makefile.am): Likewise.
30394         * modules/sys_socket (Makefile.am): Likewise.
30395         * modules/sys_stat (Makefile.am): Likewise.
30396         * modules/sys_time (Makefile.am): Likewise.
30397         * modules/sys_times (Makefile.am): Likewise.
30398         * modules/sys_utsname (Makefile.am): Likewise.
30399         * modules/sys_wait (Makefile.am): Likewise.
30400         * modules/sysexits (Makefile.am): Likewise.
30401         * modules/termios (Makefile.am): Likewise.
30402         * modules/time (Makefile.am): Likewise.
30403         * modules/unistd (Makefile.am): Likewise.
30404         * modules/wchar (Makefile.am): Likewise.
30405         * modules/wctype (Makefile.am): Likewise.
30406
30407 2010-10-04  Bruno Haible  <bruno@clisp.org>
30408
30409         read-file tests: Avoid a test failure on NonStop Kernel.
30410         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30411         a regular file.
30412         Reported by Joachim Schmitz <schmitz@hp.com>.
30413
30414 2010-10-03  Bruno Haible  <bruno@clisp.org>
30415
30416         gnulib-tool: Fixes for --create-testdir with --libtool.
30417         * gnulib-tool (func_get_automake_snippet): Don't augment
30418         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30419         an executable.
30420         (func_create_testdir): Handle module 'alloca' like func_import.
30421         Reported by Bruce Korb <bruce.korb@gmail.com>.
30422
30423 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30424
30425         Avoid some lines longer than 80 characters.
30426         * lib/stdint.in.h: Break long comment lines.
30427         * lib/math.in.h: Likewise.
30428         (_GL_NUM_UINT_WORDS): New macro, for readability.
30429         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30430         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30431         * lib/stdlib.in.h: Likewise.
30432         * lib/spawn.in.h: Likewise.
30433         * lib/sys_socket.in.h: Update an URL.
30434         * lib/sys_stat.in.h: Break long line.
30435
30436 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30437
30438         Improve pmccabe2html.
30439         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30440         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30441         when the sources change. Remove the line in the HTML about "Used
30442         ranges" (which implied that there might be other unused ranges),
30443         rename "Resume" to "Summary" (easier to understand for more users).
30444         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30445         styles, and some unnecessary blank lines.
30446
30447 2010-10-03  Bruno Haible  <bruno@clisp.org>
30448             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30449
30450         acl: Add support for ACLs on NonStop Kernel.
30451         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30452         Check whether the function aclsort() exists.
30453         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30454         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30455         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30456         (acl_nontrivial [HAVE_ACLSORT]: New function.
30457         (file_has_acl): Implement for NonStop Kernel.
30458         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30459         (qset_acl): Implement for NonStop Kernel.
30460         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30461         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30462         (main): Implement for NonStop Kernel.
30463         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30464         Kernel. Handle this flavor.
30465         * tests/test-set-mode-acl.sh: Likewise.
30466         * tests/test-copy-acl.sh: Likewise.
30467         * tests/test-copy-file.sh: Likewise.
30468
30469 2010-10-03  Bruno Haible  <bruno@clisp.org>
30470
30471         Info about ACLs on NonStop Kernel.
30472         * doc/acl-resources.txt: Add info about NonStop Kernel.
30473         References by Joachim Schmitz <schmitz@hp.com>.
30474
30475 2010-10-02  Bruno Haible  <bruno@clisp.org>
30476
30477         Define missing EDQUOT on NonStop Kernel.
30478         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30479         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30480         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30481         missing.
30482         * doc/posix-headers/errno.texi: Mention the NSK bug.
30483         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30484         Reported by Joachim Schmitz <schmitz@hp.com>.
30485
30486 2010-10-02  Bruno Haible  <bruno@clisp.org>
30487
30488         Update doc for POSIX:2008.
30489         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30490         Update URL of POSIX specification.
30491
30492 2010-10-02  Bruno Haible  <bruno@clisp.org>
30493
30494         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30495         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30496         from gnulib, not from Automake.
30497
30498 2010-10-02  Bruno Haible  <bruno@clisp.org>
30499
30500         New module 'system-posix'.
30501         * modules/system-posix: New file.
30502         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30503         module is present.
30504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30505         GNULIB_SYSTEM_POSIX.
30506         * modules/stdlib (Depends-on): Remove sys_wait.
30507         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30508         * doc/posix-functions/system.texi: Mention the new module.
30509         * doc/posix-headers/stdlib.texi: Likewise.
30510         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30511         define test_sys_wait_macros to a no-op.
30512         Reported by Sam Steingold <sds@gnu.org>.
30513
30514 2010-09-30  Bruno Haible  <bruno@clisp.org>
30515
30516         More renaming from 'getdate' to 'get_date'.
30517         * doc/get_date.texi: Renamed from doc/getdate.texi.
30518         * modules/get_date (Files): Update.
30519         * MODULES.html.sh (Date and time <time.h>): Update.
30520         * DEPENDENCIES: Update.
30521         * gnulib-tool: Update comment.
30522         * m4/bison.m4 (gl_BISON): Likewise.
30523         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30524
30525 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30526
30527         bootstrap: support ACLOCAL_FLAGS during aclocal
30528         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30529         can add additional -I dir for third-party .m4 files.
30530
30531 2010-09-30  Eric Blake  <eblake@redhat.com>
30532
30533         bootstrap: use glibtoolize on MacOS
30534         * build-aux/bootstrap (check_versions): Convert libtool into
30535         libtoolize.
30536         (tool search): Move libtool check earlier, and look for
30537         glibtoolize for MacOS.
30538         (gnulib_tool_options): Auto-add --libtool when appropriate.
30539         Reported by Justin Clift.
30540
30541         poll: fix typo that broke test on MacOS
30542         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30543         Reported by Justin Clift.
30544
30545         getdate: rename to get_date
30546         Note: getdate.h is not renamed, to minimize client impact.
30547         * modules/getdate: Mark obsolete.  Move old contents...
30548         * modules/get_date: ...to new module name.
30549         * modules/getdate-tests: Move...
30550         * modules/get_date-tests: ...here.
30551         * m4/getdate.m4: Move...
30552         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30553         * lib/getdate.y: Move...
30554         * lib/get_date.y: ...here.
30555         * tests/test-getdate.c: Move...
30556         * tests/test-get_date.c: ...here.
30557         * doc/posix-functions/getdate.texi (getdate): Update name.
30558         * NEWS: Mention the change.
30559
30560 2010-09-29  Bruno Haible  <bruno@clisp.org>
30561
30562         Separate the module 'waitpid' from the module 'sys_wait'.
30563         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30564         present.
30565         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30566         gl_MODULE_INDICATOR_FOR_TESTS.
30567         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30568         * modules/sys_wait (Depends-on): Remove waitpid.
30569         (Makefile.am): Substitute GNULIB_WAITPID.
30570         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30571         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30572         signature only if the 'waitpid' module is present.
30573         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30574         * NEWS: Mention the change.
30575         * modules/grantpt (Depends-on): Add waitpid.
30576         * modules/wait-process (Depends-on): Likewise.
30577
30578 2010-09-29  Bruno Haible  <bruno@clisp.org>
30579
30580         More tests for module 'sys_wait'.
30581         * modules/sys_wait-c++-tests: New file.
30582         * tests/test-sys_wait-c++.cc: New file.
30583         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30584         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30585
30586 2010-09-29  Bruno Haible  <bruno@clisp.org>
30587
30588         New module 'waitpid'.
30589         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30590         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30591         Don't include <process.h>.
30592         (waitpid): Declare only, using modern idiom.
30593         * m4/waitpid.m4: New file.
30594         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30595         * modules/waitpid: New file.
30596         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30597         (Makefile.am): Update.
30598         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30599
30600 2010-09-28  Bruno Haible  <bruno@clisp.org>
30601
30602         poll: Assume ANSI C.
30603         * lib/poll.c (poll): Use an ANSI C declaration.
30604
30605 2010-09-28  Bruno Haible  <bruno@clisp.org>
30606
30607         poll-h: Create poll.h on all platforms.
30608         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30609         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30610         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30611         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30612         (gl_REPLACE_POLL_H): Don't set POLL_H.
30613         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30614         * modules/poll-h (Depends-on): Add include_next.
30615         (Makefile.am): Create poll.h unconditionally. Substitute also
30616         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30617
30618 2010-09-28  Bruno Haible  <bruno@clisp.org>
30619
30620         Tests for module 'poll-h'.
30621         * modules/poll-h-c++-tests: New file.
30622         * tests/test-poll-h-c++.cc: New file.
30623
30624         Tests for module 'poll-h'.
30625         * modules/poll-h-tests: New file.
30626         * tests/test-poll-h.c: New file.
30627
30628 2010-09-28  Bruno Haible  <bruno@clisp.org>
30629
30630         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30631         * modules/poll-h (Depends-on): Add 'extensions'.
30632
30633 2010-09-28  Bruno Haible  <bruno@clisp.org>
30634
30635         New module 'poll-h'.
30636         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30637         (poll): Use modern idiom.
30638         * modules/poll-h: New file.
30639         * modules/poll (Files): Remove lib/poll.in.h.
30640         (Depends-on): Add poll-h.
30641         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30642         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30643         * m4/poll_h.m4: New file.
30644         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30645         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30646         and invoke gl_REPLACE_POLL_H.
30647         * lib/poll.c: Use common idiom.
30648         * tests/test-poll.c: Likewise.
30649         * doc/posix-headers/poll.texi: Mention the poll-h module.
30650         Suggested by Eric Blake.
30651
30652 2010-09-26  Bruno Haible  <bruno@clisp.org>
30653
30654         sys_wait: Implement WSTOPSIG.
30655         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30656         Reported by Simon Josefsson.
30657
30658 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30659
30660         stdlib, sys_wait: Avoid compilation error on mingw.
30661         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30662
30663 2010-09-26  Bruno Haible  <bruno@clisp.org>
30664
30665         stdlib tests: Avoid code duplication.
30666         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30667         * modules/sys_wait-tests (Files): Likewise.
30668         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30669         * tests/test-stdlib.c: Include test-sys_wait.h.
30670         (main): Invoke test_sys_wait_macros.
30671         * tests/test-sys_wait.c: Include test-sys_wait.h.
30672         (main): Invoke test_sys_wait_macros.
30673
30674 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30675
30676         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30677         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30678         sure Windows sockets are working before calling getaddrinfo.
30679         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30680         * doc/gnulib.texi (Windows sockets): Fix typo.
30681
30682 2010-09-25  Bruno Haible  <bruno@clisp.org>
30683
30684         Tests for module 'regex-quote'.
30685         * modules/regex-quote-tests: New file.
30686         * tests/test-regex-quote.c: New file.
30687
30688         New module 'regex-quote'.
30689         * lib/regex-quote.h: New file.
30690         * lib/regex-quote.c: New file.
30691         * modules/regex-quote: New file.
30692         Suggested by Reuben Thomas <rrt@sc3d.org>.
30693
30694 2010-09-24  Bruno Haible  <bruno@clisp.org>
30695
30696         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30697         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30698
30699 2010-09-23  Bruno Haible  <bruno@clisp.org>
30700
30701         setenv: Relax license.
30702         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30703         Blake.
30704         Requested by Eric Blake.
30705
30706 2010-09-22  Bruno Haible  <bruno@clisp.org>
30707
30708         termios: Relax license.
30709         * modules/termios (License): Change to LGPLv2+.
30710         Requested by Eric Blake.
30711
30712 2010-09-22  Bruno Haible  <bruno@clisp.org>
30713
30714         threadlib: Allow the package to change the default to 'no'.
30715         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30716         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30717         Reported by Paul Eggert.
30718
30719 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30720             Bruno Haible  <bruno@clisp.org>
30721
30722         Fix endless loop in mbmemcasecoll.
30723         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30724         byte.
30725         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30726
30727 2010-09-22  Bruno Haible  <bruno@clisp.org>
30728
30729         Tests for module 'memcoll'.
30730         * modules/memcoll-tests: New file.
30731         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30732
30733         memcoll, xmemcoll: Clarify size vs. length.
30734         * modules/memcoll.c (memcoll0): Clarify specification.
30735         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30736         passed to collate_error.
30737
30738 2010-09-22  Bruno Haible  <bruno@clisp.org>
30739
30740         Tests for module 'memcasecmp'.
30741         * modules/memcasecmp-tests: New file.
30742         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30743
30744 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30745
30746         * lib/pthread.in.h: Add split double-inclusion guard, and include
30747         system <pthread.h> if there is one.  Use @@-style as in other
30748         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30749         pthread.h doesn't.
30750         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30751         (pthread_mutexattr_settype, pthread_mutex_trylock):
30752         New static inline functions, if there's no system <pthread.h>.
30753         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30754         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30755         Approximate with mutexes if the system lacks spinlocks, as in
30756         MacOS.
30757         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30758         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30759         @@-style.  Check for spinlocks separately.
30760         (gl_PTHREAD_DEFAULTS): New macro.
30761         * modules/pthread: Redo to use a more typical style for in.h files.
30762
30763 2010-09-21  Eric Blake  <eblake@redhat.com>
30764
30765         net_if: enhance tests
30766         * tests/test-net_if.c (main): Move signature checks earlier.
30767         Print failures to stderr.
30768         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30769         Document the bug that we do not yet fix.
30770
30771 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30772
30773         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30774         about gnulib, not GSS.
30775
30776 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30777
30778         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30779         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30780         for Emacs.
30781         * build-aux/pmccabe2html: Make Makefile.am example code more
30782         cut-and-paste friendly.
30783
30784 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30785
30786         * tests/test-net_if.c: New file.
30787         * modules/net_if-tests: New file.
30788
30789 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30790
30791         pthread: add pthread_spin_destroy
30792         * lib/pthread.in.h (pthread_spin_destroy): New function.
30793
30794 2010-09-19  Bruno Haible  <bruno@clisp.org>
30795
30796         gnulib-tool: Fix --help output.
30797         * gnulib-tool (func_usage): Fix help message.
30798         Reported by Reuben Thomas <rrt@sc3d.org>.
30799
30800 2010-09-18  Jim Meyering  <meyering@redhat.com>
30801
30802         maint.mk: avoid unexpanded \n in two diagnostics
30803         * top/maint.mk (sc_prohibit_always_true_header_tests):
30804         Don't use a literal \n in a halt=... assignment.  It would not be
30805         expanded, and the two \n bytes would appear in the diagnostic output
30806         rather than the desired newline.  Use halt=$$(printf ... instead.
30807         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30808
30809 2010-09-18  Bruno Haible  <bruno@clisp.org>
30810
30811         netinet_in: Doc tweak.
30812         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30813         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30814
30815 2010-09-18  Jim Meyering  <meyering@redhat.com>
30816
30817         init.sh: correct an outdated comment
30818         * tests/init.sh (create_exe_shims_):  s/function/alias/
30819
30820         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30821         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30822         a file named "*.exe" is removed between the glob expansion and the
30823         processing of that oddly named file.
30824
30825 2010-09-17  Eric Blake  <eblake@redhat.com>
30826
30827         mirbsd: add some more support
30828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30829         in BSD family.
30830         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30831         devices as OpenBSD.
30832         * m4/host-os.m4 (mirbsd): Add MirBSD.
30833
30834         tests: fix unportable assumption on sys/wait.h
30835         * tests/test-sys_wait.c (main): Relax test.
30836         * tests/test-stdlib.c (main): Likewise.
30837
30838         init.sh: accommodate directory with no .exes
30839         * tests/init.sh: Accomodate directory containing only scripts.
30840
30841         tests: avoid compiler warning
30842         * tests/test-stdlib.c (main): Use the variable.
30843
30844         fdutimens, fdutimensat: update signature, again
30845         * lib/utimens.h (gl_futimens): Delete, and move signature...
30846         (fdutimens): ...here.
30847         (fdutimensat): Rearrange signature.
30848         (lutimensat): Rename variable for clarity.
30849         * lib/fdutimensat.c (fdutimensat): Update signature.
30850         * lib/utimens.c (fdutimens): Likewise.
30851         (gl_futimens): Delete.
30852         (utimens, lutimens): Update callers.
30853         * lib/futimens.c (futimens): Likewise.
30854         * tests/test-fdutimensat.c: Likewise.
30855         * tests/test-utimens.c: Likewise.
30856         * tests/test-futimens.h: Update comment.
30857         * NEWS: Mention this.
30858         Suggested by Paul Eggert.
30859
30860 2010-09-17  Bruno Haible  <bruno@clisp.org>
30861
30862         Take over the maintenance of some older macros from Autoconf.
30863         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30864         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30865         GNU Autoconf.
30866         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30867         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30868
30869 2010-09-17  Eric Blake  <eblake@redhat.com>
30870
30871         fdutimensat: drop atflag validation
30872         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30873         with valid fd, to close a race scenario where futimens is
30874         unsupported and FILE was replaced by a symlink.
30875         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30876         accordingly.
30877         Suggested by Paul Eggert.
30878
30879 2010-09-16  Bruno Haible  <bruno@clisp.org>
30880
30881         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30882         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30883
30884 2010-09-16  Bruno Haible  <bruno@clisp.org>
30885
30886         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30887         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30888         login_tty exists.
30889         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30890
30891 2010-09-16  Bruno Haible  <bruno@clisp.org>
30892
30893         login_tty: Make the replacement code work on BSD systems.
30894         * lib/login_tty.c: Include <sys/ioctl.h>.
30895         (login_tty): Use ioctl TIOCSCTTY when available.
30896         * modules/login_tty (Depends-on): Add sys_ioctl.
30897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30898
30899 2010-09-16  Bruno Haible  <bruno@clisp.org>
30900
30901         login_tty: Stricter unit test.
30902         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30903         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30904         and tcgetsid() after login_tty.
30905         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30906
30907 2010-09-16  Bruno Haible  <bruno@clisp.org>
30908
30909         New module 'tcgetsid'.
30910         * lib/tcgetsid.c: New file.
30911         * m4/tcgetsid.m4: New file.
30912         * modules/tcgetsid: New file.
30913         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30914         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30915         GNULIB_TCGETSID, HAVE_TCGETSID.
30916         * lib/termios.in.h: Include <sys/types.h>.
30917         (tcgetsid): New declaration.
30918         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30919         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30920         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30921         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30922
30923 2010-09-16  Bruno Haible  <bruno@clisp.org>
30924
30925         Tests for module 'termios'.
30926         * modules/termios-c++-tests: New file.
30927         * modules/termios-tests: New file.
30928         * tests/test-termios-c++.cc: New file.
30929         * tests/test-termios.c: New file.
30930
30931         New module 'termios'.
30932         * modules/termios: New file.
30933         * lib/termios.in.h: New file.
30934         * m4/termios_h.m4: New file.
30935         * doc/posix-headers/termios.texi: Mention the new module.
30936
30937 2010-09-16  Eric Blake  <eblake@redhat.com>
30938
30939         fdutimensat: add an atflag parameter
30940         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30941         * lib/utimens.h (fdutimensat): Update prototype.
30942         * tests/test-fdutimensat.c: Adjust test to match.
30943         * NEWS: Document the change.
30944         Suggested by Paul Eggert.
30945
30946 2010-09-16  Bruno Haible  <bruno@clisp.org>
30947
30948         Fix typos in comments.
30949         * lib/striconveh.h: Fix typo in comment.
30950         * lib/login_tty.c (login_tty): Likewise.
30951
30952 2010-09-15  Bruno Haible  <bruno@clisp.org>
30953
30954         stdlib: clarify MirBSD WEXITSTATUS bug
30955         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30956         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30957
30958 2010-09-15  Eric Blake  <eblake@redhat.com>
30959
30960         stdlib: work around MirBSD WEXITSTATUS bug
30961         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30962         * modules/stdlib (Depends-on): Add sys_wait.
30963         * tests/test-sys_wait.c (main): Enhance test.
30964         * tests/test-stdlib.c (main): Likewise.
30965         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30966
30967         docs: mention MacOS issue with WEXITSTATUS(constant)
30968         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30969         issue.
30970         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30971
30972         strnlen: add tests
30973         * modules/strnlen-tests: New file.
30974         * tests/test-strnlen.c: Likewise.
30975
30976 2010-09-14  Bruno Haible  <bruno@clisp.org>
30977
30978         unistr/base: Avoid link errors when module 'libunistring' is also used.
30979         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30980         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30981         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30982         Declare also when HAVE_LIBUNISTRING is set.
30983         Reported by Pádraig Brady <P@draigbrady.com>.
30984
30985 2010-09-14  Eric Blake  <eblake@redhat.com>
30986
30987         test-rawmemchr: make more robust
30988         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30989         (Depends-on, configure.ac): Add needed prerequisites to use it.
30990         * modules/memchr-tests (Files, Depends-on, configure.ac):
30991         Likewise, to avoid implicit reliance on memchr module prereqs.
30992         * tests/test-memchr.c (main): Ensure proper masking.
30993         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30994         reads.
30995
30996         memchr: detect glibc Alpha bug
30997         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30998         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30999         Alpha.
31000         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31001         * tests/test-memchr.c (main): Enhance test.
31002         Reported by Nelson H. F. Beebe.
31003
31004 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31005
31006         fts, getcwd, glob: audit for dirfd returning -1
31007         * lib/fts.c (opendir): Remove #define; no longer used.
31008         (opendirat): New arg PDIR_FD.  All callers changed.
31009         (fts_build, _opendir2): Use new opendirat to avoid the need for
31010         dirfd, or for checking whether dirfd returns a negative value.
31011         Don't use opendir; always use openat followed by fdopendir.
31012         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31013         it.
31014         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31015         returns -1 here.
31016         * modules/fts (Depends-on): Remove dirfd.
31017         * modules/getcwd (Depends-on): Likewise.
31018
31019 2010-09-13  Eric Blake  <eblake@redhat.com>
31020
31021         float: fix broken MirBSD header
31022         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31023         * doc/posix-headers/float.texi (float.h): Document it.
31024
31025 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31026
31027         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31028         * lib/fts.c (opendirat): New arg extra_flags.
31029         (__opendir2): Use it to avoid following symlinks when opening
31030         a directory, if symlinks are not supposed to be followed.  See
31031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31032
31033         fdopendir: preserve argument fd before returning
31034         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31035         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31036         (fdopendir): Use them, arranging for FD to be open to the same
31037         directory that it was when it started.  (It might be temporarily
31038         closed while fdopendir is running, so this not thread- or
31039         signal-safe.)  Be careful to do the right thing even when file
31040         descriptors are scarce and dup fails with errno == EMFILE.  See
31041         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31042
31043 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31044
31045         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31046         * NEWS: Document change.
31047         * m4/regex.m4: Disable test for regoff_t size.
31048
31049 2010-09-13  Jim Meyering  <meyering@redhat.com>
31050
31051         fts: don't operate on an invalid file descriptor after failed dup
31052         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31053         negative file descriptor.
31054
31055 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31056
31057         savedir: add streamsavedir, deprecate fdsavedir
31058         * NEWS: Mention deprecation of fdsavedir.
31059         * lib/savedir.c (streamsavedir): New extern function, whose name
31060         ends in "savedir" to be consistent with the others.  This differs
31061         from savedirstream in that it doesn't close its argument.  The
31062         next version of GNU tar will use this instead of fdsavedir, to
31063         avoid some race conditions and conserve file descriptors.
31064         (savedirstream): Reimplement as a wrapper around streamsavedir.
31065         (fdsavedir): Add a comment deprecating this function.  As far as
31066         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31067         * lib/savedir.h (streamsavedir): New decl.
31068         (fdsavedir): Add a comment deprecating this.
31069
31070 2010-09-10  Bruno Haible  <bruno@clisp.org>
31071
31072         langinfo: Fix last commit.
31073         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31074         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31076
31077 2010-09-10  Bruno Haible  <bruno@clisp.org>
31078
31079         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31080         * lib/progreloc.c (O_EXEC): Define fallback.
31081
31082 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31083
31084         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31085         * NEWS: Document recent changes to fcntl-h.
31086         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31087         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31088         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31089         Similarly for O_SEARCH; this last was already true, but not documented.
31090         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31091         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31092         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31093         Likewise.
31094         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31095         is zero, not whether it is defined.
31096         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31097         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31098         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31099
31100 2010-09-10  Bruno Haible  <bruno@clisp.org>
31101
31102         langinfo, nl_langinfo: Fix for IRIX 5.3.
31103         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31104         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31105         HAVE_LANGINFO_YESEXPR.
31106         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31107         HAVE_LANGINFO_YESEXPR.
31108         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31109         HAVE_LANGINFO_T_FMT_AMPM is 0.
31110         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31111         HAVE_LANGINFO_YESEXPR is 0.
31112         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31113         NOEXPR.
31114         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31115         * doc/posix-functions/nl_langinfo.texi: Likewise.
31116         Reported by Eric Blake.
31117
31118 2010-09-10  Bruno Haible  <bruno@clisp.org>
31119
31120         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31121         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31122         on FreeBSD 8.0 and OpenBSD 4.6.
31123         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31124         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31125         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31126         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31127         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31128         ac_includes_default.
31129         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31130
31131 2010-09-09  Eric Blake  <eblake@redhat.com>
31132
31133         strsignal: work around NetBSD bug
31134         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31135         * lib/string.in.h (includes): Likewise.
31136         * doc/posix-functions/strsignal.texi (strsignal): Document the
31137         bug.
31138         Reported by Nelson H. F. Beebe.
31139
31140         gnulib-tool: work with NetBSD /bin/sh
31141         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31142         (func_get_description, func_get_comment, func_get_status)
31143         (func_get_notice, func_get_applicability, func_get_filelist)
31144         (func_get_dependencies, func_get_autoconf_early_snippet)
31145         (func_get_autoconf_snippet, func_get_automake_snippet)
31146         (func_get_include_directive, func_get_link_directive)
31147         (func_get_license, func_get_maintainer, func_import): Avoid
31148         shell syntax errors from parsing syntax extensions.
31149
31150 2010-09-09  Bruno Haible  <bruno@clisp.org>
31151
31152         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31153         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31154         a reliable way to determine whether the 'alias' command works.
31155
31156 2010-09-08  Jim Meyering  <meyering@redhat.com>
31157
31158         init.sh: penalize a set-x-impaired shell; don't disqualify it
31159         * tests/init.sh: Too many shells corrupt application stderr when
31160         you set -x, so we can't afford to disqualify them, since at least
31161         on Irix-6.5, that would disqualify all bourne shells.
31162         Instead, use a two-pass approach.
31163         On the first pass, try to find a shell that meets the stricter
31164         condition that set -x does not corrupt stderr.
31165         If no shell meets the stricter condition, retest each candidate
31166         shell, but without that extra condition.  Finally, when
31167         VERBOSE=yes is requested and set -x might cause trouble, simply
31168         issue a warning and refrain from enabling debug output.
31169
31170 2010-09-08  Eric Blake  <eblake@redhat.com>
31171
31172         unsetenv: fix OpenBSD bug
31173         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31174         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31175         documentation.
31176         Reported by Jim Meyering.
31177
31178         strtod: work around IRIX 6.5 bug
31179         * lib/strtod.c (strtod): Reparse number on shorter string if
31180         exponent parse was invalid.
31181         * tests/test-strtod.c (main): Add check for "0x1p 2".
31182         Reported by Tom G. Christensen.
31183
31184         getopt: optimize previous patch
31185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31186         empty variable.  Speed up awk script.
31187         Reported by Paolo Bonzini.
31188
31189 2010-09-08  Jim Meyering  <meyering@redhat.com>
31190
31191         test.sh: disqualify shells for which set -x corrupts stderr
31192         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31193         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31194         appear in stderr output.  For example, this command:
31195             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31196         prints "P=1" on those two systems:
31197
31198 2010-09-08  Bruno Haible  <bruno@clisp.org>
31199
31200         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31201         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31202         commands, because some shells ignore redirections when there is an
31203         error in the command lookup.
31204         Reported by Eric Blake.
31205
31206 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31207
31208         * lib/regex.h: Fix a mention of `regex_compile' (should be
31209         `re_compile_pattern').
31210         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31211         (re_set_registers): Correct name of parameter in comment.
31212
31213         * doc/regex.texi: Add documentation for missing syntax flags.
31214         Remove commented-out documentation of defunct syntax option
31215         RE_NO_EMPTY_ALTS.
31216         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31217         Add documentation of re_set_registers.
31218         Document trick to re-use a pattern buffer by setting fastmap manually.
31219         Update documentation of struct re_pattern_buffer per public members.
31220         Uncomment documentation of equivalence class operators and
31221         collating symbol operators, since they are now implemented,
31222         Explain leftmost-longest matching in relation to alternatives.
31223         Tidy documentation of substring matching.
31224         Remove POSIX documentation, which is done better in
31225         glibc, and refer the reader there. Keep BSD API documentation, as
31226         that is not readily available elsewhere.
31227
31228 2010-09-07  Eric Blake  <eblake@redhat.com>
31229
31230         getopt: handle POSIXLY_CORRECT set but not exported
31231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31232         export state of POSIXLY_CORRECT, due to bash set -o posix.
31233         Reported by Dustin J. Mitchell.
31234
31235 2010-09-05  Bruno Haible  <bruno@clisp.org>
31236
31237         gnulib-tool: Highlight the changed options.
31238         * gnulib-tool (func_usage): Display the --import, --add-import,
31239         --remove-import explanations in bold font.
31240
31241 2010-09-06  Karl Berry  <karl@gnu.org>
31242
31243         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31244
31245 2010-09-05  Bruno Haible  <bruno@clisp.org>
31246
31247         uniwidth/width: Update comment.
31248         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31249         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31250
31251 2010-09-05  Bruno Haible  <bruno@clisp.org>
31252
31253         isinf, isnan: Relax license.
31254         * modules/isinf (License): Change from GPL to LGPL, with consent from
31255         Ben Pfaff.
31256         * modules/isnan (License): Likewise.
31257         Requested by Ludovic Courtès.
31258
31259 2010-09-04  Bruno Haible  <bruno@clisp.org>
31260
31261         gnulib-tool: Help migration from --import to --add-import or --update.
31262         * gnulib-tool: Emit a verbose error message when --import is used
31263         without any module name.
31264
31265 2010-09-04  Bruno Haible  <bruno@clisp.org>
31266
31267         Update doc about gnulib-tool.
31268         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31269         'gnulib-tool --update' in more detail.
31270         Reported by Eric Blake.
31271
31272 2010-09-04  Bruno Haible  <bruno@clisp.org>
31273
31274         gnulib-tool: Change --import. New options --add/remove-import.
31275         * gnulib-tool: New options --add-import, --remove-import.
31276         (func_usage): Document them.
31277         (have_associative): Define always.
31278         (func_import): In import mode, don't merge the specified settings with
31279         the cached settings. Implement remove-import mode.
31280         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31281         Explain when to use them versus --import.
31282         (Simple update): Use --add-import instead of --import.
31283         * NEWS: Mention the change.
31284
31285 2010-09-04  Bruno Haible  <bruno@clisp.org>
31286
31287         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31288         separate gnulib.mk.
31289
31290 2010-09-04  Bruno Haible  <bruno@clisp.org>
31291
31292         gnulib-tool: Don't talk about CVS any more.
31293         * gnulib-tool (func_usage, func_import): Write "version control"
31294         instead of CVS.
31295
31296 2010-09-04  Jim Meyering  <meyering@redhat.com>
31297
31298         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31299         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31300         false positives (whose names may be ill-chosen) when searching
31301         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31302         would cause a false-positive.
31303
31304         avoid coreutils "make distcheck" failure
31305         Coreutils tests with an absolute build directory name that contains
31306         a space.  Not quoting this directory name caused a failure.
31307         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31308         * tests/test-vc-list-files-cvs.sh: Likewise.
31309
31310 2010-09-04  Bruno Haible  <bruno@clisp.org>
31311
31312         gnulib-tool: Avoid error when run in a package without Makefile.am.
31313         * gnulib-tool: When collecting the m4dirs in a package that does not
31314         have a Makefile.am, eliminate those directories that contain no
31315         gnulib-cache.m4. Fix expression that counts these directories.
31316
31317 2010-09-04  Bruno Haible  <bruno@clisp.org>
31318
31319         update-copyright test: Improve output when perl is missing or too old.
31320         * tests/test-update-copyright.sh: Move test of Perl version down after
31321         the test whether Perl exists. Provide an explanation relating Perl's
31322         error message to Automake's SKIP: message.
31323
31324 2010-09-04  Bruno Haible  <bruno@clisp.org>
31325
31326         Don't augment PATH in TESTS_ENVIRONMENT.
31327         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31328         set abs_aux_dir instead of augmenting PATH.
31329         * modules/vc-list-files-tests (Makefile.am): Likewise.
31330         * tests/test-update-copyright.sh: Augment PATH here.
31331         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31332         path_prepend_.
31333         * tests/test-vc-list-files-git.sh: Likewise.
31334
31335 2010-09-04  Jim Meyering  <meyering@redhat.com>
31336
31337         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31338         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31339
31340 2010-09-04  Bruno Haible  <bruno@clisp.org>
31341
31342         strdup: Fix compilation error in C++ mode.
31343         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31344         the macro.
31345
31346 2010-09-04  Bruno Haible  <bruno@clisp.org>
31347
31348         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31349         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31350         macro into a function.
31351         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31352
31353 2010-09-04  Bruno Haible  <bruno@clisp.org>
31354
31355         Set PATH_SEPARATOR the same way autoconf does.
31356         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31357         the value of PATH_SEPARATOR the same way autoconf-generated configure
31358         scripts do.
31359         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31360         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31361
31362 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31363
31364         Set PATH_SEPARATOR the same way autoconf does.
31365         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31366         the same way autoconf-generated configure scripts do.
31367         * posix-modules: Likewise.
31368
31369 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31370
31371         hash: fix safe_hasher const typo
31372         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31373         const; otherwise, there is a type error later.
31374
31375 2010-09-02  Jim Meyering  <meyering@redhat.com>
31376
31377         test-update-copyright.sh: require perl 5.8.0
31378         * tests/test-update-copyright.sh: Require 5.8.0,
31379         which Tom G. Christensen has confirmed is adequate,
31380         while 5.6.1 is not.
31381
31382 2010-09-02  Eric Blake  <eblake@redhat.com>
31383
31384         tests: init.sh improvements for re-exec'ing with zsh
31385         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31386         -vx through shell re-exec.
31387         Reported by Tom G. Christensen.
31388
31389         wctype: fix typo in previous commit
31390         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31391         Reported by Ludovic Courtès.
31392
31393 2010-09-02  Jim Meyering  <meyering@redhat.com>
31394
31395         test-update-copyright.sh: skip test if Perl is too old
31396         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31397         Reported by Tom G. Christensen.
31398
31399 2010-09-02  Bruno Haible  <bruno@clisp.org>
31400
31401         wctype: Avoid compilation error on IRIX 6.5.30.
31402         * lib/wctype.in.h (iswblank): Declare with a replacement if
31403         REPLACE_ISWBLANK is set.
31404         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31405         declared. Set REPLACE_ISWBLANK.
31406         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31407         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31408         * doc/posix-headers/wctype.texi: Likewise.
31409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31410
31411 2010-09-01  Bruno Haible  <bruno@clisp.org>
31412
31413         New module 'socketlib'.
31414         * modules/socketlib: New file.
31415         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31416         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31417         * modules/sockets (Depends-on): Add socketlib.
31418         Suggested by Sam Steingold <sds@gnu.org>.
31419
31420 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31421
31422         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31423
31424         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31425         when one needs search access to a directory but not read access.
31426         On systems where it is available, it works in some cases where
31427         O_RDONLY does not, namely on directories that are searchable but
31428         not readable, and which need only to be searchable.  If O_SEARCH
31429         is not available, fall back to the traditional method of using
31430         O_RDONLY.
31431
31432         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31433         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31434         when opening a directory that needs only to be searchable.
31435         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31436         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31437         * lib/openat-proc.c (openat_proc_name): Likewise.
31438         * lib/openat.c (openat_needs_fchdir): Likewise.
31439         * lib/save-cwd.c (save_cwd): Likewise.
31440         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31441
31442 2010-08-28  Bruno Haible  <bruno@clisp.org>
31443
31444         New module 'host-cpu-c-abi'.
31445         * modules/host-cpu-c-abi: New file.
31446         * m4/host-cpu-c-abi.m4: New file, based on part of
31447         clisp/src/m4/general.m4.
31448         Requested by Sam Steingold <sds@gnu.org>.
31449
31450 2010-08-31  Eric Blake  <eblake@redhat.com>
31451         and Jim Meyering  <meyering@redhat.com>
31452
31453         hash: factor, and guard against misbehaving hasher function
31454         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31455         of table->hasher's return value.  Also protect against a hash value
31456         so large that adding it to table->bucket results in a NULL pointer.
31457         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31458         Use it in place of open-coded check-and-abort.
31459
31460 2010-08-30  Bruno Haible  <bruno@clisp.org>
31461
31462         hash: silence spurious clang warning
31463         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31464         Reported by Eric Blake.
31465
31466 2010-08-30  Eric Blake  <eblake@redhat.com>
31467
31468         strstr, memmem, strcasestr: avoid leaked shell message
31469         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31470         FreeBSD.
31471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31473
31474         tests: silence clang warning
31475         * tests/test-malloca.c (do_allocation): Avoid dead store.
31476
31477 2010-08-29  Bruno Haible  <bruno@clisp.org>
31478
31479         gettext: Fix recent mistake.
31480         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31481
31482 2010-08-29  Bruno Haible  <bruno@clisp.org>
31483
31484         selinux-h: Offer a --without-selinux option.
31485         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31486         --without-selinux was specified, skip all tests and define
31487         HAVE_SELINUX_SELINUX_H to 0.
31488         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31489         set LIB_SELINUX to empty.
31490         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31491         gl_LIBSELINUX. If --without-selinux was specified, replace
31492         selinux/context.h.
31493         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31494
31495 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31496             Bruno Haible  <bruno@clisp.org>
31497
31498         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31499         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31500         of HAVE_REALLOC.
31501         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31502         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31503         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31504         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31505
31506 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31507             Bruno Haible  <bruno@clisp.org>
31508
31509         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31510         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31511         HAVE_CALLOC.
31512         * lib/xmalloc.c: Update accordingly.
31513         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31514         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31515         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31516
31517 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31518             Bruno Haible  <bruno@clisp.org>
31519
31520         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31521         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31522         HAVE_MALLOC.
31523         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31524         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31525         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31526
31527 2010-08-29  Bruno Haible  <bruno@clisp.org>
31528
31529         Update modules list.
31530         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31531         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31532         (String handling <string.h>): Add astrxfrm.
31533         (File system functions): Add readlinkat.
31534
31535 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31536
31537         Tests for module 'realloc-gnu'.
31538         * modules/realloc-gnu-tests: New file.
31539         * tests/test-realloc-gnu.c: New file.
31540
31541         Tests for module 'calloc-gnu'.
31542         * modules/calloc-gnu-tests: New file.
31543         * tests/test-calloc-gnu.c: New file.
31544
31545         Tests for module 'malloc-gnu'.
31546         * modules/malloc-gnu-tests: New file.
31547         * tests/test-malloc-gnu.c: New file.
31548
31549 2010-08-28  Bruno Haible  <bruno@clisp.org>
31550
31551         Rename module 'realloc' -> 'realloc-gnu'.
31552         * modules/realloc-gnu: New file, copied from modules/realloc.
31553         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31554         obsolete.
31555         * modules/mgetgroups (Depends-on): Update.
31556         * doc/posix-functions/realloc.texi: Update.
31557         * NEWS: Mention the change.
31558
31559         Rename module 'calloc' -> 'calloc-gnu'.
31560         * modules/calloc-gnu: New file, copied from modules/calloc.
31561         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31562         obsolete.
31563         * doc/posix-functions/calloc.texi: Update.
31564         * NEWS: Mention the change.
31565
31566         Rename module 'malloc' -> 'malloc-gnu'.
31567         * modules/malloc-gnu: New file, copied from modules/malloc.
31568         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31569         obsolete.
31570         * modules/argp (Depends-on): Update.
31571         * modules/regex (Depends-on): Update.
31572         * doc/posix-functions/malloc.texi: Update.
31573         * NEWS: Mention the change.
31574
31575 2010-08-28  Eric Blake  <eblake@redhat.com>
31576
31577         pread, pwrite: add missing dependency
31578         * modules/pread (Depends-on): Add extensions.
31579         * modules/pwrite (Depends-on): Likewise.
31580
31581 2010-08-28  Bruno Haible  <bruno@clisp.org>
31582
31583         unistr/u*-strchr: Fix tests dependencies.
31584         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31585         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31586         Reported by Ian Beckwith <ianb@erislabs.net>.
31587
31588 2010-08-28  Bruno Haible  <bruno@clisp.org>
31589
31590         read-file: Don't occupy too much unused memory.
31591         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31592
31593 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31594             Eric Blake  <eblake@redhat.com>
31595             Bruno Haible  <bruno@clisp.org>
31596
31597         read-file: Avoid memory reallocations with regular files.
31598         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31599         (fread_file): With regular files, use the remaining length as the
31600         initial buffer size.  Check against overflow.
31601         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31602         sys_stat.
31603
31604 2010-08-28  Bruno Haible  <bruno@clisp.org>
31605
31606         ftello: Relax license.
31607         * modules/ftello (License): Relax to LGPLv2+.
31608         Reported by Eric Blake.
31609
31610 2010-08-28  Bruno Haible  <bruno@clisp.org>
31611
31612         Avoid relocwrapper link errors due to gnulib replacement functions.
31613         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31614         function.
31615         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31616
31617 2010-08-28  Bruno Haible  <bruno@clisp.org>
31618
31619         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31620         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31621         defined.
31622         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31623         Suggested by Eric Blake.
31624
31625 2010-08-28  Bruno Haible  <bruno@clisp.org>
31626
31627         sys_socket, netdb: Ensure socklen_t gets defined.
31628         * modules/sys_socket (Depends-on): Add socklen.
31629         * modules/netdb (Depends-on): Likewise.
31630         * modules/getaddrinfo (Depends-on): Remove socklen.
31631         * modules/getsockopt (Depends-on): Likewise.
31632         * modules/setsockopt (Depends-on): Likewise.
31633         * tests/test-sys_socket.c: Check that socklen_t is defined.
31634         * tests/test-netdb.c: Likewise.
31635         * m4/socklen.m4: Update comments.
31636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31637
31638 2010-08-27  Eric Blake  <eblake@redhat.com>
31639
31640         login_tty: add missing dependency
31641         * modules/login_tty (Depends-on): Add pty.
31642
31643 2010-08-26  Eric Blake  <eblake@redhat.com>
31644
31645         lib-symbol-versions: fix m4 quoting
31646         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31647         format for AC_LINK_IFELSE.
31648
31649         glob: fix compile test
31650         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31651
31652         btowc: fix missing file
31653         * modules/btowc (Files): Also ship locale-fr.m4.
31654
31655         lseek: fix link test
31656         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31657         AC_LINK_IFELSE.
31658
31659         include_next: silence autoconf 2.68 warning
31660         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31661         AC_COMPILE_IFELSE as special.
31662         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31663         autoconf < 2.68.
31664
31665         acl: fix compilation test
31666         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31667         AC_COMPILE_IFELSE.
31668
31669 2010-08-26  Bruno Haible  <bruno@clisp.org>
31670
31671         Modernize AC_TRY_RUN invocations.
31672         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31673         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31674         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31675         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31676         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31677         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31678         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31680         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31681         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31683         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31684         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31685         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31687         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31688         gl_MBRLEN_NUL_RETVAL): Likewise.
31689         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31690         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31691         Likewise.
31692         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31693         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31694         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31695         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31696         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31697         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31698         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31699         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31700         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31701         Likewise.
31702         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31703         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31705         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31706         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31707         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31708         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31709         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31710         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31712
31713 2010-08-26  Bruno Haible  <bruno@clisp.org>
31714
31715         Modernize AC_TRY_LINK invocations.
31716         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31717         AC_TRY_LINK.
31718         * m4/argp.m4 (gl_ARGP): Likewise.
31719         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31720         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31721         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31722         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31723         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31724         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31725         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31726         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31727         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31728         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31729         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31730         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31731         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31732         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31733         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31734         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31735         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31736         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31737         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31738         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31739         Likewise.
31740         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31741         Likewise.
31742         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31743         Likewise.
31744         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31745         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31746         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31747         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31748         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31749         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31750         * m4/servent.m4 (gl_SERVENT): Likewise.
31751         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31752         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31753         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31754         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31755         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31756         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31757         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31759         * modules/tsearch-tests (configure.ac): Likewise.
31760
31761 2010-08-26  Bruno Haible  <bruno@clisp.org>
31762
31763         Modernize AC_TRY_COMPILE invocations.
31764         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31765         AC_TRY_COMPILE.
31766         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31767         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31768         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31769         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31770         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31771         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31772         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31773         * m4/lock.m4 (gl_LOCK): Likewise.
31774         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31775         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31776         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31778         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31779         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31780         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31781         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31782         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31783         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31784         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31785         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31786         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31787         extraneous semicolon.
31788
31789 2010-08-26  Jim Meyering  <meyering@redhat.com>
31790
31791         stat-time: relax license LGPL
31792         * modules/stat-time (License): Change from GPL to LGPL,
31793         with consent from all contributors, for use in libguile.
31794         Requested by Ludovic Courtès.
31795
31796 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31797
31798         poll: return immediately on POLLHUP.
31799         * lib/poll.c (poll): Always set timeout before wait_timeout is
31800         computed.
31801
31802 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31803
31804         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31805         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31806         rmdir ("dir/.//"), unlinkat.
31807
31808 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31809
31810         stdbool: avoid spurious failure with modern xlc
31811         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31812
31813 2010-08-24  Bruno Haible  <bruno@clisp.org>
31814
31815         getloadavg: simplify code
31816         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31817         gl_have_func. Update comments.
31818
31819 2010-08-24  Eric Blake  <eblake@redhat.com>
31820
31821         getloadavg: don't define SVR4 on cygwin
31822         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31823         only define SVR4 when -lkvm is required.
31824         Reported by Yaakov Selkowitz.
31825
31826 2010-08-24  Bruno Haible  <bruno@clisp.org>
31827
31828         priv-set: fix comment
31829         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31830
31831 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31832
31833         priv-set: fix comments
31834         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31835         to match code, as suggested by David Bartley in:
31836         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31837
31838 2010-08-23  Eric Blake  <eblake@redhat.com>
31839
31840         stdbool: avoid rejecting clang
31841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31842         * tests/test-stdbool.c: Enable more tests if using the system
31843         <stdbool.h> instead of the gnulib replacement.
31844         (main): Move xlc bug test to a runtime test for all compilers.
31845         Reported by Anders Kaseorg.
31846
31847         argz: fix shell quoting issue
31848         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31849         Reported by Charles Wilson.
31850
31851 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31852             Erik Faye-Lund <kusmabite@gmail.com>
31853
31854         poll, select: handle ERROR_BROKEN_PIPE.
31855         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31856         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31857         * lib/select.c (win32_compute_revents): Do not mark a pipe
31858         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31859
31860 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31861
31862         fts: allow compilation with C++
31863         * lib/fts_.h: Specify extern "C" linkage with C++.
31864
31865 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31866
31867         Fix gnulib-tool sed script de-commentation for AIX sed.
31868         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31869         sed.
31870
31871 2010-08-17  Eric Blake  <eblake@redhat.com>
31872
31873         test-stddef: test for (some) offsetof bugs
31874         * tests/test-stddef.c: Enhance test to ensure correct type of
31875         offsetof.
31876         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31877         that we are not fixing at this time.
31878
31879 2010-08-15  Bruno Haible  <bruno@clisp.org>
31880
31881         stpncpy: Allow stpncpy to be defined as a macro.
31882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31883         if it's already correctly declared.
31884         * lib/string.in.h (stpncpy): Undefine before redefining.
31885         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31886
31887 2010-08-14  Bruno Haible  <bruno@clisp.org>
31888
31889         Rename module 'memxfrm' to 'amemxfrm'.
31890         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31891         (amemxfrm): Renamed from memxfrm.
31892         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31893         (amemxfrm): Renamed from memxfrm.
31894         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31895         * NEWS: Mention the change.
31896         * MODULES.html.sh (String handling <string.h>): Update.
31897         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31898         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31899         * lib/unicase/u16-casexfrm.c: Likewise.
31900         * lib/unicase/u32-casexfrm.c: Likewise.
31901         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31902         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31903         * lib/uninorm/u16-normxfrm.c: Likewise.
31904         * lib/uninorm/u32-normxfrm.c: Likewise.
31905         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31906         memxfrm.
31907         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31908         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31909         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31910         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31911         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31912         Suggested by Paul Eggert.
31913
31914 2010-08-14  Bruno Haible  <bruno@clisp.org>
31915
31916         Tests for module 'astrxfrm'.
31917         * modules/astrxfrm-tests: New file.
31918         * tests/test-astrxfrm.c: New file.
31919
31920         New module 'astrxfrm'.
31921         * lib/astrxfrm.h: New file.
31922         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31923         * modules/astrxfrm: New file.
31924
31925 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31926
31927         regex: Tweak doc.
31928         * doc/regex.texi (Overview): Don't mention regex.c.
31929         (GNU Regular Expression Compiling): Likewise.
31930         (Match-end-of-line Operator): Mention 'not_eol'.
31931
31932 2010-08-14  Brian Gough  <bjg@gnu.org>
31933             Bruno Haible  <bruno@clisp.org>
31934
31935         git-merge-changelog: add doc relating to use with bzr and hg.
31936         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31937
31938 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31939
31940         pthread: fix pthread.h creation for srcdir != builddir
31941         * modules/pthread (Makefile.am): Fix the rule to work also in a
31942         non-srcdir build.
31943
31944 2010-08-13  Karl Berry  <karl@gnu.org>
31945
31946         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31947         * doc/posix-*/*: force line break before @url of POSIX
31948         specifications.
31949         Suggested by Werner Lemberg.
31950
31951 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31952
31953         strtod: fix const diagnostic
31954         * lib/strtod.c (strtod): Don't assign const char * to char *,
31955         as this elicits a warning from GCC when warnings are enabled.
31956
31957 2010-08-10  Pádraig Brady <P@draigbrady.com>
31958         and Eric Blake  <eblake@redhat.com>
31959
31960         copy-acl: ignore ENOTSUP on HP-UX
31961         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31962         so that it is available for HP-UX.
31963         * lib/copy-acl.c (qcopy_acl): Use it.
31964         Reported by Patrick M. Callahan.
31965
31966 2010-08-10  Eric Blake  <eblake@redhat.com>
31967
31968         open, chown: relax license
31969         * modules/open (License): Change to LGPLv2+, with consent by all
31970         authors, for use in augeas.
31971         * modules/chown (License): Likewise.
31972         * modules/lchown (Likewise): Likewise.
31973         Requested by Adam Stokes.
31974
31975 2010-08-09  Karl Berry  <karl@gnu.org>
31976
31977         * build-aux/ar-lib: new file, import from Automake.
31978         * config/srclist.txt: autocheck for updates.
31979
31980 2010-08-09  Eric Blake  <eblake@redhat.com>
31981
31982         readlinkat: adjust client modules
31983         * modules/areadlinkat (Depends-on): Use readlinkat, not
31984         symlinkat.
31985         * modules/areadlinkat-with-size (Depends-on): Likewise.
31986
31987         mknod: be more vocal about danger of running tests as root
31988         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31989         root, since that is just asking for problems.
31990         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31991
31992         readlinkat: split into its own module
31993         * modules/symlinkat: Split readlinkat...
31994         * modules/readlinkat: ...into separate module.
31995         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31996         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31997         * lib/symlinkat.c (readlinkat): Move...
31998         * lib/readlinkat.c: ...into new file.
31999         * modules/symlinkat-tests: Split readlinkat test...
32000         * modules/readlinkat-tests: ...into separate module.
32001         * tests/test-symlinkat.c: Split...
32002         * tests/test-readlinkat.c: ...into new file.
32003         * NEWS: Document the split.
32004         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32005         * lib/unistd.in.h (readlinkat): Likewise.
32006         Suggested by Bruno Haible.
32007
32008 2010-08-08  Bruno Haible  <bruno@clisp.org>
32009
32010         memxfrm: Speed up.
32011         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32012         that usually only one call to strxfrm is necessary for each string
32013         part.
32014         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32015
32016 2010-08-07  Karl Berry  <karl@gnu.org>
32017
32018         * doc/posix-headers/limits.texi,
32019         * doc/posix-functions/malloc.texi,
32020         * doc/posix-functions/strsignal.texi: missing @item.
32021         * doc/ld-version-script.texi: spurious leading i.
32022         * doc/regex.texi (Interval Operators): no commas inside @var.
32023
32024 2010-08-01  Bruno Haible  <bruno@clisp.org>
32025
32026         Integrate the regex documentation.
32027         * doc/gnulib.texi: Define 'cn' index.
32028         (Regular expressions): New a chapter that includes regex.texi and
32029         regexprops-generic.texi.
32030         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32031         syntax.
32032
32033         Whitespace cleanup.
32034         * doc/regex.texi: Remove trailing spaces.
32035
32036         Add regex documentation.
32037         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32038         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32039         Written by Kathy A. Hargreaves and Karl Berry.
32040
32041 2010-08-01  Bruno Haible  <bruno@clisp.org>
32042
32043         link: Update documentation.
32044         * doc/posix-functions/link.texi: Update regarding Solaris.
32045
32046 2010-07-31  Bruno Haible  <bruno@clisp.org>
32047
32048         Update modules list.
32049         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32050         (String handling <string.h>): Add memcmp2, memxfrm.
32051         (Container data structures): Add xlist, xsublist, xoset.
32052         (Core language properties): Add alignof, unused-parameter.
32053         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32054         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32055         (Unibyte characters <ctype.h>): New section.
32056         (String handling <string.h>): New section.
32057         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32058         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32059         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32060         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32061         tan, tanh, tanl, y0, y1, yn.
32062         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32063         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32064         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32065         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32066         unlockpt, vdprintf, vdprintf-posix.
32067         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32068         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32069         xconcat-filename.
32070         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32071         getdtablesize, pipe2, pipe2-safer.
32072         (Security): New section.
32073         (Networking functions): Add accept4.
32074         (Signal handling): Add sigpipe.
32075         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32076         mbmemcasecoll.
32077         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32078         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32079         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32080         pipe-filter-ii.
32081         (Misc): Add argp-version-etc, login_tty, parse-duration.
32082
32083 2010-07-31  Bruno Haible  <bruno@clisp.org>
32084
32085         Improve doc in MODULES.html.
32086         * modules/linkat (Description): Add the word "function".
32087         * modules/mkfifo (Description): Likewise.
32088         * modules/mknod (Description): Likewise.
32089         * modules/remove (Description): Likewise.
32090         * modules/renameat (Description): Likewise.
32091         * modules/stat (Description): Likewise.
32092         * modules/symlink (Description): Likewise.
32093         * modules/unlink (Description): Likewise.
32094
32095 2010-07-31  Bruno Haible  <bruno@clisp.org>
32096
32097         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32098         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32099         option --enable/disable-c++ instead of --enable/disable-cxx.
32100         * NEWS: Mention the change.
32101
32102 2010-07-31  Bruno Haible  <bruno@clisp.org>
32103
32104         readlink, areadlink: Relax test a bit.
32105         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32106         alternative to ENOTDIR.
32107         * tests/test-areadlink.h (test_areadlink): Likewise.
32108         Reported by Rainer Tammer.
32109
32110 2010-07-31  Bruno Haible  <bruno@clisp.org>
32111
32112         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32113         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32114         character, perform the search using U_STRCHR.
32115         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32116         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32117         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32118         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32119         Suggested by Paolo Bonzini.
32120
32121 2010-07-31  Bruno Haible  <bruno@clisp.org>
32122
32123         unistr/u*-strstr: Fix dependencies.
32124         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32125         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32126         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32127
32128 2010-07-31  Bruno Haible  <bruno@clisp.org>
32129
32130         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32131         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32132         the beginning of the loop.
32133         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32134         cases in 'switch' statement.
32135
32136         unistr/u8-strchr: Fix several bugs.
32137         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32138         the string. When not found, return NULL, not a pointer near the end.
32139
32140         More tests for unistr/u8-strchr.
32141         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32142         that the function does not read past the first occurrence of the byte
32143         being searched.
32144         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32145         * tests/unistr/test-u16-strchr.c (main): New function.
32146         * tests/unistr/test-u32-strchr.c (main): New function.
32147
32148 2010-07-31  Bruno Haible  <bruno@clisp.org>
32149
32150         posix-modules: Ignore backup files of documentation files.
32151         * posix-modules: grep only through files named *.texi.
32152
32153 2010-07-31  Bruno Haible  <bruno@clisp.org>
32154
32155         symlinkat: Fix documentation.
32156         * doc/posix-functions/readlinkat.texi: Fix module name.
32157
32158 2010-07-31  Bruno Haible  <bruno@clisp.org>
32159
32160         fchownat: Replace also when chown has the trailing slash bug.
32161         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32162         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32163         introduced on 2010-04-10.
32164         Reported by Rainer Tammer.
32165
32166 2010-07-31  Bruno Haible  <bruno@clisp.org>
32167
32168         linkat: Work around AIX 7.1 bug.
32169         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32170         whether linkat handles trailing slash correctly. If not, replace linkat
32171         and define LINKAT_TRAILING_SLASH_BUG.
32172         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32173         check whether (fd1,file1) points to a directory if file1 or file2 ends
32174         in a slash. Code taken from lib/link.c.
32175         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32176         Reported by Rainer Tammer.
32177
32178 2010-07-31  Bruno Haible  <bruno@clisp.org>
32179
32180         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32181         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32182         This disables an xlc optimization that was causing wrong test results.
32183         Reported by Rainer Tammer.
32184
32185 2010-07-31  Bruno Haible  <bruno@clisp.org>
32186
32187         iconv: Work around AIX 6.1..7.1 bug.
32188         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32189         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32190         cross-compiling, guess no on all versions of AIX.
32191         Reported by Rainer Tammer.
32192
32193 2010-07-31  Bruno Haible  <bruno@clisp.org>
32194
32195         readlink: Relax test a bit.
32196         * tests/test-readlink.h (test_readlink): Allow different errno value
32197         when readlink is called with a file name that ends in / and refers to
32198         a file.
32199         Suggested by Eric Blake.
32200         Reported by Rainer Tammer.
32201
32202 2010-07-31  Bruno Haible  <bruno@clisp.org>
32203
32204         copysign: Does not require -lm on glibc systems.
32205         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32206         gl_COMMON_DOUBLE_MATHFUNC.
32207         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32208
32209 2010-07-31  Bruno Haible  <bruno@clisp.org>
32210
32211         duplocale: Work around AIX 7.1 bug.
32212         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32213         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32214         * lib/duplocale.c (rpl_duplocale): Update comment.
32215         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32216         Reported by Rainer Tammer.
32217
32218 2010-07-30  Bruno Haible  <bruno@clisp.org>
32219
32220         dirfd: Avoid link error on AIX 7.1.
32221         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32222         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32223         exist, set REPLACE_DIRFD.
32224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32225         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32226         * doc/posix-functions/dirfd.texi: Update.
32227         Reported by Rainer Tammer.
32228
32229 2010-07-30  Eric Blake  <eblake@redhat.com>
32230
32231         strtod: next round of AIX fixes
32232         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32233         exponent.
32234         * tests/test-strtod.c (main): Enhance tests.
32235         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32236         Reported by Rainer Tammer.
32237
32238         futimens: fix configure check
32239         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32240         Reported by Bruno Haible.
32241
32242 2010-07-30  Bruno Haible  <bruno@clisp.org>
32243
32244         getline: Update regarding AIX.
32245         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32246         Reported by Rainer Tammer.
32247
32248 2010-07-30  Bruno Haible  <bruno@clisp.org>
32249
32250         wcwidth: Drop replacement on AIX 7.
32251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32252         AIX 7.
32253         Reported by Rainer Tammer.
32254
32255 2010-07-30  Bruno Haible  <bruno@clisp.org>
32256
32257         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32258         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32259         a 'char *'.
32260         Reported by Rainer Tammer.
32261
32262 2010-07-30  Bruno Haible  <bruno@clisp.org>
32263
32264         unlink: Update regarding AIX.
32265         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32266         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32267         Reported by Rainer Tammer.
32268
32269 2010-07-30  Bruno Haible  <bruno@clisp.org>
32270
32271         symlink: Update regarding AIX.
32272         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32273         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32274         Reported by Rainer Tammer.
32275
32276 2010-07-30  Bruno Haible  <bruno@clisp.org>
32277
32278         strndup: Update regarding AIX.
32279         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32280         AIX 7.
32281         Reported by Rainer Tammer.
32282
32283 2010-07-30  Bruno Haible  <bruno@clisp.org>
32284
32285         stat: Update regarding AIX.
32286         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32287         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32288         Reported by Rainer Tammer.
32289
32290 2010-07-30  Bruno Haible  <bruno@clisp.org>
32291
32292         truncl: Fix autoconf test.
32293         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32294         whether truncl works.
32295         Reported by Rainer Tammer.
32296
32297 2010-07-30  Bruno Haible  <bruno@clisp.org>
32298
32299         round: Update regarding AIX.
32300         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32301         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32302         Reported by Rainer Tammer.
32303
32304 2010-07-30  Bruno Haible  <bruno@clisp.org>
32305
32306         rename: Update regarding AIX.
32307         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32308         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32309         Reported by Rainer Tammer.
32310
32311 2010-07-30  Bruno Haible  <bruno@clisp.org>
32312
32313         printf.m4: Update regarding AIX.
32314         * m4/printf.m4: Update comments regarding AIX.
32315         Reported by Rainer Tammer.
32316
32317 2010-07-30  Bruno Haible  <bruno@clisp.org>
32318
32319         iconv: Update regarding AIX.
32320         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32321         AIX 7.
32322         Reported by Rainer Tammer.
32323
32324 2010-07-30  Bruno Haible  <bruno@clisp.org>
32325
32326         getopt: Update regarding AIX.
32327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32328         no on AIX.
32329         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32330         Reported by Rainer Tammer.
32331
32332 2010-07-30  Bruno Haible  <bruno@clisp.org>
32333
32334         ldexpl; Update regarding AIX.
32335         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32336         on AIX 7.
32337         Reported by Rainer Tammer.
32338
32339 2010-07-30  Bruno Haible  <bruno@clisp.org>
32340
32341         frexpl: Update regarding AIX.
32342         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32343         on AIX 7.
32344         Reported by Rainer Tammer.
32345
32346 2010-07-30  Bruno Haible  <bruno@clisp.org>
32347
32348         open, fopen: Update regarding AIX.
32349         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32350         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32351         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32352         * doc/posix-functions/fopen.texi: Likewise.
32353         Reported by Rainer Tammer.
32354
32355 2010-07-30  Bruno Haible  <bruno@clisp.org>
32356
32357         chown: Update doc regarding AIX.
32358         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32359         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32360         Reported by Rainer Tammer.
32361
32362 2010-07-30  Eric Blake  <eblake@redhat.com>
32363
32364         strtod: fix bug in replacement function on AIX
32365         * lib/strtod.c (strtod): Special case broken "0x" parse in
32366         underlying strtod.
32367         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32368         * doc/posix-functions/strtod.texi (strtod): Likewise.
32369         Reported by Rainer Tammer.
32370
32371 2010-07-30  Bruno Haible  <bruno@clisp.org>
32372
32373         mbrlen: Fix cross-compilation guess for AIX.
32374         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32375         guess. Leftover from 2008-12-22.
32376
32377 2010-07-30  Bruno Haible  <bruno@clisp.org>
32378
32379         mbrtowc: Fix cross-compilation guess for AIX.
32380         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32381         guess. Leftover from 2008-12-21.
32382
32383 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32384
32385         init.sh: work around trap limitation of some shells
32386         * tests/init.sh (setup_): Move exit trap outside of shell function.
32387
32388 2010-07-29  Eric Blake  <eblake@redhat.com>
32389
32390         strtod: aid debugging
32391         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32392         understanding why strtod is rejected.
32393
32394 2010-07-28  Bruno Haible  <bruno@clisp.org>
32395
32396         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32397         * lib/unistr/u8-chr.c: Include <string.h>.
32398         * tests/unistr/test-u8-chr.c: Likewise.
32399         * tests/unistr/test-u16-chr.c: Likewise.
32400         * tests/unistr/test-u32-chr.c: Likewise.
32401         * tests/unistr/test-u8-strchr.c: Likewise.
32402         * tests/unistr/test-u16-strchr.c: Likewise.
32403         * tests/unistr/test-u32-strchr.c: Likewise.
32404         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32405         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32406         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32407         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32408
32409 2010-07-28  Bruno Haible  <bruno@clisp.org>
32410
32411         Use spaces for indentation, not tabs.
32412         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32413
32414 2010-07-27  Bruno Haible  <bruno@clisp.org>
32415
32416         mbspcasecmp: Fix function specification.
32417         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32418         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32419         Reported by Eric Blake <eblake@redhat.com>.
32420
32421 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32422
32423         timespec: use cast and not conditional, as truncation isn't possible
32424         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32425         instead of a conditional.  Comment about the situation in more detail.
32426         This undoes most of the 2009-10-29 patch.
32427
32428 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32429
32430         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32431         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32432         * lib/unistr/u8-strchr.c: Likewise.
32433         * modules/unistr/u8-chr: Depend on memchr.
32434
32435         unistr/u*-strchr: add tests
32436         * modules/unistr/u8-strchr-tests: New file.
32437         * modules/unistr/u16-strchr-tests: New file.
32438         * modules/unistr/u32-strchr-tests: New file.
32439         * tests/unistr/test-strchr.h: New file.
32440         * tests/unistr/test-u8-strchr.c: New file.
32441         * tests/unistr/test-u16-strchr.c: New file.
32442         * tests/unistr/test-u32-strchr.c: New file.
32443
32444         unistr/u*-chr: test multibyte sequences more
32445         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32446         test vector.
32447         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32448         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32449         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32450
32451         unistr/u*-chr: test multibyte sequences
32452         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32453
32454         unistr/u*-chr: prepare for multibyte tests
32455         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32456         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32457         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32458         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32459         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32460         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32461
32462 2010-07-18  Bruno Haible  <bruno@clisp.org>
32463
32464         unistr/u8-strchr: Optimize non-ASCII argument case.
32465         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32466         because the first byte often matches anyway.
32467         Reported by Pádraig Brady <P@draigbrady.com>.
32468
32469 2010-07-15  Karl Berry  <karl@gnu.org>
32470
32471         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32472
32473 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32474
32475         getcwd: on Solaris, work better if ancestors are inaccessible
32476         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32477         buffer and size, try again with a large buffer.  This works better
32478         on Solaris, since its getcwd succeeds even if the path to the root
32479         is inaccessible, and this is helpful in common cases such as .zfs
32480         hidden directories.  Problem reported by J Chapman Flack in
32481         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32482         Use system getcwd if it's declared, not merely if it's partly
32483         working; use the partly-working test only to avoid needless effort
32484         if the system getcwd fails.
32485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32486         comment that was already obsolete and is now even more obsolete.
32487         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32488         now might call strdup.
32489
32490 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32491
32492         pthread: Add enough so that coreutils/src/sort.c compiles.
32493         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32494         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32495         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32496         Include <sys/types.h>, in case it defines pthread_t.
32497         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32498         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32499         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32500         (pthread_rwlockattr_t, pthread_spinlock_t):
32501         New typedefs, if HAVE_PTHREAD_T is not defined.
32502         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32503         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32504         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32505         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32506         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32507         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32508         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32509         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32510         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32511         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32512         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32513         New macros.
32514         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32515         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32516         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32517         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32518         (pthread_spin_unlock): New dummy functions.
32519         (pthread_create): Return EAGAIN; don't set errno.
32520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32521         require AC_C_INLINE.
32522         * modules/pthread (Depends-on): Add sched, time.
32523         (pthread.h): Use AM_V_GEN.
32524
32525 2010-07-13  Bruno Haible  <bruno@clisp.org>
32526
32527         striconveh: Don't malloc memory if the result buffer is sufficient.
32528         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32529         buffer if its size is sufficient.
32530         Reported by Ludovic Courtès <ludo@gnu.org>.
32531
32532 2010-07-13  Bruno Haible  <bruno@clisp.org>
32533
32534         strtod: Add safety check.
32535         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32536
32537 2010-07-12  Bruno Haible  <bruno@clisp.org>
32538
32539         Unify tests that set gl_cv_func_ldexpl_no_libm.
32540         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32541         gl_FUNC_LDEXPL.
32542         (gl_FUNC_LDEXPL): Invoke it.
32543         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32544
32545 2010-07-12  Bruno Haible  <bruno@clisp.org>
32546
32547         Unify tests that set gl_cv_func_ldexp_no_libm.
32548         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32549         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32550         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32551         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32552         * modules/strtod (Files): Add m4/ldexp.m4.
32553
32554 2010-07-12  Bruno Haible  <bruno@clisp.org>
32555
32556         Unify tests that set gl_cv_func_frexpl_no_libm.
32557         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32558         gl_FUNC_FREXPL_NO_LIBM.
32559         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32560         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32561
32562 2010-07-12  Bruno Haible  <bruno@clisp.org>
32563
32564         Unify tests that set gl_cv_func_frexp_no_libm.
32565         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32566         gl_FUNC_FREXP_NO_LIBM.
32567         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32568         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32569
32570 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32571
32572         memcoll: clarify sizes versus lengths, document better, and tweak perf
32573         * lib/memcoll.c (strcoll_loop, memcoll0):
32574         Improve quality of descriptive comments.  Name variables
32575         consistently as to whether they are lengths (which do not include
32576         terminating null) versus sizes (which do).
32577         * lib/xmemcoll.c (xmemcoll0): Likewise.
32578         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32579         returned when s1size == 0; this is easier to compile and saves
32580         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32581
32582 2010-07-12  Bruno Haible  <bruno@clisp.org>
32583
32584         Tests for module '_Exit'.
32585         * modules/_Exit-tests: New file.
32586         * tests/test-_Exit.sh: New file.
32587         * tests/test-_Exit.c: New file.
32588
32589         New module '_Exit'.
32590         * lib/stdlib.in.h (__attribute__): New macro.
32591         (_Exit): New declaration.
32592         * lib/_Exit.c: New file.
32593         * m4/_Exit.m4: New file.
32594         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32595         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32596         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32597         * modules/_Exit: New file.
32598         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32599         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32600
32601 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32602
32603         strtod: make it more-accurate typically, and don't require libm
32604         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32605         Include limits.h.  Don't include string.h.
32606         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32607         (locale_isspace): New function, so that no casts are needed to
32608         check whether *s is a space.
32609         (ldexp): Provide an unused dummy if not available.
32610         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32611         (strtod): Use them.  This implementation prefers to use the
32612         underlying strtod if available, falling back on our own code
32613         only to fix known bugs.  This is more likely to produce an
32614         accurate result.  Also, it avoids the use of libm functions.
32615         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32616         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32617         was absent, but it caused a test failure with coreutils.
32618         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32619         with libm.
32620         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32621         * modules/strtod-tests (Makefile.am): Likewise.
32622
32623 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32624             Bruno Haible  <bruno@clisp.org>
32625
32626         unistr/u8-strchr: Optimize ASCII argument case.
32627         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32628
32629 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32630
32631         (x)memcoll: minor tweaks
32632         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32633         is after the type that it qualifies.
32634         (memcoll0): Likewise.
32635         * lib/memcoll.h (memcoll0): Likewise.
32636         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32637         * lib/xmemcoll.h (xmemcoll0): Likewise.
32638         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32639         differs from memcoll in that the NUL byte is part of the argument.
32640         Omit the abort-checks, as performance is a real issue here.  Plus,
32641         the checks were wrong anyway (an off-by-one error).  Omit local
32642         variable 'diff', as it's a bit clearer that way.
32643         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32644         no longer needed.
32645
32646 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32647
32648         (x)memcoll: speedup when input is known to be NUL delimited
32649         * lib/memcoll.c: Include stdlib.
32650         (memcoll0): New function.
32651         (strcoll_loop): New function, refactored for use in both memcoll
32652         and memcoll0.
32653         * lib/memcoll.h (memcoll0): Add prototype.
32654         * lib/xmemcoll.c (xmemcoll0): New function.
32655         (collate_error): New function, refactored for use in both xmemcoll
32656         and xmemcoll0.
32657         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32658         * m4/memcoll.m4: add inline invocation.
32659
32660 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32661
32662         * build-aux/bootstrap: Remove any local translations
32663         from the translation project synchronization directory,
32664         so that local only translations are not distributed.
32665
32666 2010-07-04  Bruno Haible  <bruno@clisp.org>
32667
32668         fsusage: Clarify which code applies to which platforms.
32669         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32670         platform.
32671         * lib/fsusage.c (get_fs_usage): Likewise.
32672
32673 2010-07-04  Bruno Haible  <bruno@clisp.org>
32674
32675         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32676         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32677         Reported by Martin Lambers <marlam@marlam.de>.
32678
32679 2010-07-04  Jim Meyering  <meyering@redhat.com>
32680
32681         hash: once again explicitly disallow insertion of NULL
32682         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32683         inserting a NULL pointer cannot work with these functions.
32684         Add a comment with details.
32685         This reverts part of the 2010-07-01 commit, 5bef1a35
32686         "hash: extend module to deal with non-pointer keys".
32687
32688 2010-07-01  Bruno Haible  <bruno@clisp.org>
32689
32690         stdbool: Update doc.
32691         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32692         Info from Christian Weisgerber <naddy@mips.inka.de>.
32693
32694 2010-07-01  Jim Meyering  <meyering@redhat.com>
32695
32696         hash: extend module to deal with non-pointer keys
32697         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32698         but that allows insertion of non-pointer entries.
32699         Do not disallow an ENTRY value of NULL.
32700         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32701         * lib/hash.h (hash_insert0): Declare.
32702
32703 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32704
32705         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32706         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32707         not present (i.e. with autoconf 2.59 and when using gettextize, not
32708         gnulib), require AC_GNU_SOURCE instead.
32709
32710 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32711
32712         idpriv-drop: Fix tests.
32713         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32714         not to the test-idpriv-droptemp program.
32715
32716 2010-06-29  Bruno Haible  <bruno@clisp.org>
32717
32718         string: Fix syntax error with g++ 2.96.
32719         * lib/string.in.h (__pure__): Remove definition.
32720         (_GL_ATTRIBUTE_PURE): New macro.
32721         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32722         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32723         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32724
32725 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32726
32727         unitypes: Fix bug introduced on 2010-05-18.
32728         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32729
32730 2010-06-22  Eric Blake  <eblake@redhat.com>
32731
32732         memmem: slight optimization
32733         * lib/str-two-way.h (critical_factorization): Update comments.
32734         Reduce work during factorization phase.
32735         Reported by Carlos Bueno <carlos@bueno.org>.
32736
32737 2010-06-21  Bruno Haible  <bruno@clisp.org>
32738
32739         Fix HAVE_CALLOC_POSIX misnomer.
32740         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32741         !HAVE_CALLOC_POSIX.
32742         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32743         HAVE_CALLOC_POSIX.
32744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32745         instead of HAVE_CALLOC_POSIX.
32746         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32747         HAVE_CALLOC_POSIX.
32748
32749         Use modern idiom for calloc() replacement.
32750         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32751         AC_FUNC_CALLOC.
32752         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32753         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32754         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32755         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32756         (gl_REPLACE_CALLOC): New macro.
32757
32758 2010-06-21  Bruno Haible  <bruno@clisp.org>
32759
32760         Fix HAVE_REALLOC_POSIX misnomer.
32761         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32762         !HAVE_REALLOC_POSIX.
32763         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32764         HAVE_REALLOC_POSIX.
32765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32766         instead of HAVE_REALLOC_POSIX.
32767         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32768         HAVE_REALLOC_POSIX.
32769
32770         Use modern idiom for realloc() replacement.
32771         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32772         AC_FUNC_REALLOC.
32773         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32774         Autoconf's AC_FUNC_REALLOC.
32775         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32776         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32777         (gl_REPLACE_REALLOC): New macro.
32778         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32779
32780 2010-06-21  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix HAVE_MALLOC_POSIX misnomer.
32783         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32784         !HAVE_MALLOC_POSIX.
32785         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32786         HAVE_MALLOC_POSIX.
32787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32788         instead of HAVE_MALLOC_POSIX.
32789         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32790         HAVE_MALLOC_POSIX.
32791
32792         Use modern idiom for malloc() replacement.
32793         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32794         AC_FUNC_MALLOC.
32795         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32796         Autoconf's AC_FUNC_MALLOC.
32797         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32798         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32799         (gl_REPLACE_MALLOC): New macro.
32800         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32801
32802 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32803
32804         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32805         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32806         This macro takes 3 arguments, not 4.
32807
32808 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32809
32810         ipv6: fix detection under mingw
32811         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32812         in6_addr.
32813
32814 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32815
32816         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32817         that strtod() works when cross-compiling to a glibc version known
32818         to work.
32819
32820 2010-06-15  Bruno Haible  <bruno@clisp.org>
32821
32822         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32823
32824 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32825
32826         select: Correct timeout.
32827         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32828
32829 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32830
32831         git-version-gen: init shell var to avoid env var influence
32832         * build-aux/git-version-gen (v): Init shell var to empty.
32833
32834 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32835
32836         priv-set: Don't assume that priv.h exists merely because getppriv does.
32837         See Jan Andersen's bug report about AIX 5L in
32838         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32839         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32840         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32841         * lib/priv-set.h: Likewise.
32842         * tests/test-priv-set.c: Likewise.
32843
32844 2010-06-13  Bruno Haible  <bruno@clisp.org>
32845
32846         relocatable: Make it easier to test whether to install wrappers.
32847         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32848         RELOCATABLE_VIA_WRAPPER.
32849
32850 2010-06-13  Bruno Haible  <bruno@clisp.org>
32851
32852         gnulib-tool: Display specified modules and dependencies differently.
32853         * gnulib-tool (func_show_module_list): New function.
32854         (func_import, func_create_testdir): Invoke it.
32855         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32856
32857 2010-06-13  Bruno Haible  <bruno@clisp.org>
32858
32859         gnulib-tool: Align code of func_import and func_create_testdir.
32860         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32861         specified_modules.
32862
32863 2010-06-12  Jim Meyering  <meyering@redhat.com>
32864
32865         test-inttostr: avoid spurious failure on Solaris 9
32866         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32867         to accept "%ju".  Reported by Bruno Haible.
32868
32869 2010-06-11  Jim Meyering  <meyering@redhat.com>
32870
32871         test-sys_socket: mark variables as used more readably
32872         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32873         as "used" explicitly via (void) statement casts.  This is more
32874         readable than using them in an artificial return expression.
32875         Suggestion from Bruno Haible.
32876
32877 2010-06-11  Bruno Haible  <bruno@clisp.org>
32878
32879         Avoid some more warnings from "gcc -Wwrite-strings".
32880         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32881         to 'const char *'.
32882         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32883         * tests/test-c-strcasestr.c (main): Likewise.
32884         * tests/test-mbscasestr1.c (main): Likewise.
32885         * tests/test-mbscasestr2.c (main): Likewise.
32886         * tests/test-memmem.c (main): Likewise.
32887         * tests/test-strstr.c (main): Likewise.
32888         * tests/test-strcasestr.c (main): Likewise.
32889
32890 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32891
32892         init.sh: change framework_failure_ to fail with status 99, not 1
32893         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32894         automake's parallel-tests rule that this is an unexpected failure,
32895         even if the test is listed in XFAIL_TESTS.
32896
32897 2010-06-11  Jim Meyering  <meyering@redhat.com>
32898
32899         test-inttostr: avoid warnings about 4-6KB literal strings
32900         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32901         Include "macros.h", for its definition of ASSERT.
32902         (CK): s/assert/ASSERT/
32903         * modules/inttostr-tests (Files): Add macros.h.
32904
32905         init.sh: don't use $ME_ or skip_ before they are defined
32906         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32907         their first uses.  Also hoist their companions: warn_, fail_,
32908         framework_failure_, $stderr_fileno.  Prompted by a patch from
32909         Stefano Lattarini.
32910
32911         test-sys_socket: avoid set-but-not-used warnings from gcc
32912         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32913         avoid warning about set-but-not-used variables.
32914
32915         test-xvasprintf: avoid 'const' discard warnings
32916         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32917         "const" when assigning from literal strings.
32918         (test_xasprintf): Add "void" in function argument list to placate
32919         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32920
32921         tests: avoid compilation warnings in argmatch and exclude tests...
32922         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32923         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32924         Since it always exits, declare with the "noreturn" attribute.
32925         * tests/test-argmatch.c: Likewise.
32926
32927         tests: avoid 'const' discard warnings in mbsstr tests
32928         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32929         * tests/test-mbsstr2.c (main): Likewise.
32930
32931         test-verify: avoid warning from gcc's -Wmissing-declarations
32932         * tests/test-verify.c (function): Declare to be static.
32933
32934         test-inttostr.c: include <string.h> for use of strcmp
32935         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32936
32937         test-linkat: avoid failed assertion on "other" architectures
32938         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32939         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32940         sparc: https://bugs.launchpad.net/bugs/591968
32941
32942 2010-06-11  Jim Meyering  <meyering@redhat.com>
32943
32944         printf.m4: avoid autoconf's "Expanded Before Required" warning
32945         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32946         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32947         autoconf warning.
32948
32949 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32950
32951         Replacement header templates are now named with ".in", not "_".
32952         * doc/gnulib-intro.texi: Correct.
32953
32954 2010-06-10  Jim Meyering  <meyering@redhat.com>
32955
32956         inttostr-tests: depend on snprintf, not snprintf-posix
32957         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32958         snprintf-posix, to avoid this aclocal failure:
32959           missing file gnulib-tests/vasnprintf.c
32960           configure.ac:45: error: expected source file, required through \
32961           AC_LIBSOURCES, not found
32962
32963 2010-06-10  Jim Meyering  <meyering@redhat.com>
32964
32965         inttostr: add a new function, inttostr, and tests
32966         The namesake function was not available.  The existence of the
32967         template file, inttostr.c makes its addition nontrivial.
32968         * lib/anytostr.c: Rename from inttostr.c.
32969         (anytostr): Rename from inttostr.
32970         * lib/inttostr.c: New file.
32971         * modules/inttostr (Files): Add anytostr.c.
32972         (Makefile.am): Set lib_SOURCES instead of ...
32973         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32974         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32975         * lib/offtostr.c: Likewise.
32976         * lib/uinttostr.c: Likewise.
32977         * lib/umaxtostr.c: Likewise.
32978         * modules/inttostr-tests: New file.
32979         * tests/test-inttostr.c: New file.  Test these functions.
32980
32981 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32982             Bruno Haible  <bruno@clisp.org>
32983
32984         Add "Extending Gnulib" chapter to manual.
32985         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32986         chapter.
32987         (Extending Gnulib): New chapter.
32988         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32989         chapter.
32990
32991 2010-06-09  Bruno Haible  <bruno@clisp.org>
32992
32993         Avoid relocwrapper link errors due to gnulib replacement functions.
32994         * lib/areadlink.c: Use the system's malloc, realloc functions.
32995         (areadlink): Set errno to ENOMEM explicitly.
32996         * modules/areadlink (Depends-on): Remove malloc-posix.
32997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32998
32999 2010-06-09  Bruno Haible  <bruno@clisp.org>
33000
33001         Avoid relocwrapper link errors due to gnulib replacement functions.
33002         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33003         * lib/malloca.c: Likewise.
33004         * lib/relocatable.c: Likewise.
33005         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33006         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33007         * lib/setenv.c: Use the system's malloc, realloc functions.
33008         * lib/strerror.c: Use the system's sprintf function.
33009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33010
33011 2010-06-04  Bruno Haible  <bruno@clisp.org>
33012
33013         Prefer documented low-level autoconf macro names.
33014         * m4/lib-link.m4: Use m4_translit instead of translit.
33015         * m4/environ.m4: Likewise.
33016         * m4/mathfunc.m4: Likewise.
33017         * m4/onceonly.m4: Likewise.
33018         * m4/stdint.m4: Likewise.
33019         Suggested by Eric Blake.
33020
33021 2010-06-04  Martin Lambers  <marlam@marlam.de>
33022             Bruno Haible  <bruno@clisp.org>
33023
33024         havelib: Allow library names with '+' characters.
33025         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33026         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33027
33028 2010-06-09  Bruno Haible  <bruno@clisp.org>
33029
33030         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33031         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33032         realloc failed.
33033
33034 2010-06-08  Peter Simons  <simons@cryp.to>
33035
33036         maint.mk: make the news-check rule more configurable
33037         * top/maint.mk (news-check-lines-spec): New variable.
33038         (news-check): Use "sed -n 1,10p" in place of "head".
33039
33040 2010-06-07  Jim Meyering  <meyering@redhat.com>
33041
33042         do-release-commit-and-tag: fix typo in --help
33043         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33044
33045         regex: avoid new dead-code warning with gcc-4.6.0
33046         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33047         if-block containing a while-loop.  It's been unused for at least
33048         5 years.
33049
33050 2010-06-05  Bruno Haible  <bruno@clisp.org>
33051
33052         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33053         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33054
33055 2010-06-04  Bruno Haible  <bruno@clisp.org>
33056
33057         Update to GNU gettext 0.18.1.
33058         * modules/gettext (configure.ac): Require gettext infrastructure from
33059         version 0.18.1.
33060
33061 2010-06-03  Bruno Haible  <bruno@clisp.org>
33062
33063         Don't use AC_LIBOBJ with file names in subdirectories.
33064         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33065         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33066         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33067         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33068         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33069         gl_LIBUNISTRING_LIBSOURCE.
33070         (Makefile.am): Augment lib_SOURCES here, conditionally.
33071         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33072
33073 2010-06-03  Bruno Haible  <bruno@clisp.org>
33074
33075         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33076         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33077         expansion does not end with a newline.
33078         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33079         unnecessary newline.
33080
33081 2010-06-03  Bruno Haible  <bruno@clisp.org>
33082
33083         Reduce dependencies.
33084         * tests/test-quotearg.h: New file, extracted from
33085         tests/test-quotearg.c.
33086         * tests/test-quotearg-simple.c: New file, extracted from
33087         tests/test-quotearg.c.
33088         * tests/test-quotearg.c: Don't include <ctype.h>.
33089         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33090         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33091         use_quote_double_quotes, use_quotearg_colon): Moved to
33092         tests/test-quotearg.h.
33093         (results_g, flag_results, custom_quotes, custom_results): Moved
33094         to tests/test-quotearg-simple.c.
33095         (main): Moved the part that does not depend on gettext to
33096         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33097         performed.
33098         * modules/quotearg-simple: New file.
33099         * modules/quotearg-simple-tests: New file.
33100         * modules/quotearg (Depends-on): Add quotearg-simple.
33101         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33102         (Files): Add tests/test-quotearg.h.
33103         Reported by Paolo Bonzini.
33104
33105 2010-06-03  Bruno Haible  <bruno@clisp.org>
33106
33107         Reduce dependencies.
33108         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33109
33110 2010-06-03  Bruno Haible  <bruno@clisp.org>
33111
33112         time: Undefine more broken macros.
33113         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33114         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33115         Reported by Eric Blake.
33116
33117 2010-06-03  Bruno Haible  <bruno@clisp.org>
33118
33119         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33120         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33121         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33122         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33123         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33124         Reported by Ludovic Courtès <ludo@gnu.org>.
33125
33126 2010-06-02  Eric Blake  <eblake@redhat.com>
33127
33128         time: work with mingw + pthreads-win32 library
33129         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33130         if timespec is defined only in pthread.h.
33131         * modules/time (Makefile.am): Substitute it.
33132         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33133         <pthread.h>, when needed.
33134         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33135         from the library.
33136
33137 2010-05-31  Bruno Haible  <bruno@clisp.org>
33138
33139         Avoid expanding two macros in the wrong order.
33140         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33141         gl_LIBUNISTRING if it is defined.
33142         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33143         autoconf >= 2.64.
33144         Reported by Ludovic Courtès <ludo@gnu.org>.
33145
33146 2010-05-27  Jim Meyering  <meyering@redhat.com>
33147
33148         maint.mk: also prohibit "#undef" of always-defined symbols
33149         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33150         Allow more than one space before the symbol name.
33151         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33152         the regexp uses alternation.
33153
33154 2010-05-26  Eric Blake  <eblake@redhat.com>
33155
33156         maint.mk: avoid echo -e
33157         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33158         Convert all uses of echo -* to printf.
33159         Reported by Matthias Bolte.
33160
33161 2010-05-25  Bruno Haible  <bruno@clisp.org>
33162
33163         Update to GNU gettext 0.18, part 2.
33164         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33165         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33166
33167 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33168
33169         Add missing include in test-pwrite.c.
33170         * tests/test-pwrite.c: Include string.h, for strcmp.
33171
33172 2010-05-24  Bruno Haible  <bruno@clisp.org>
33173
33174         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33175
33176 2010-05-24  Bruno Haible  <bruno@clisp.org>
33177
33178         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33179         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33180         iconveh_error argument.
33181         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33182         U_STRCONV_TO_LOCALE.
33183         * lib/unistr/u16-strcoll.c: Likewise.
33184         * lib/unistr/u32-strcoll.c: Likewise.
33185         * modules/unistr/u8-strcoll (Depends-on): Add
33186         uniconv/u8-strconv-to-enc, localcharset. Remove
33187         uniconv/u8-strconv-to-locale.
33188         (configure.ac): Bump version number.
33189         * modules/unistr/u16-strcoll (Depends-on): Add
33190         uniconv/u16-strconv-to-enc, localcharset. Remove
33191         uniconv/u16-strconv-to-locale.
33192         (configure.ac): Bump version number.
33193         * modules/unistr/u32-strcoll (Depends-on): Add
33194         uniconv/u32-strconv-to-enc, localcharset. Remove
33195         uniconv/u32-strconv-to-locale.
33196         (configure.ac): Bump version number.
33197
33198 2010-05-24  Bruno Haible  <bruno@clisp.org>
33199
33200         Avoid a test failure on NetBSD 5.0.
33201         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33202         an iconv() bug.
33203
33204 2010-05-24  Bruno Haible  <bruno@clisp.org>
33205
33206         Adjust #include directive style.
33207         * modules/regex (Includes): Recommend to write <regex.h>.
33208
33209 2010-05-24  Bruno Haible  <bruno@clisp.org>
33210
33211         regex: Don't require alloca.
33212         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33213         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33214         only inside if (0).
33215
33216 2010-05-23  Jim Meyering  <meyering@redhat.com>
33217
33218         test-renameat.c: include <sys/stat.h>
33219         * tests/test-renameat.c: Include <sys/stat.h>; required for
33220         definition of S_IS* macros.
33221
33222 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33223
33224         Update maintainer documentation for 'relocatable-prog' module.
33225         * doc/relocatable-maint.texi: Update.
33226         Comments by Bruno Haible.
33227
33228 2010-05-23  Bruno Haible  <bruno@clisp.org>
33229
33230         git-merge-changelog: Enable --split-merged-entry by default.
33231         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33232         (usage): Don't mention this option any more.
33233         Reported by Ralf Wildenhues.
33234
33235 2010-05-23  Jim Meyering  <meyering@redhat.com>
33236
33237         test-pwrite: do not leave behind a test file named "out"
33238         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33239         The trivial-looking use of init.sh is really necessary.
33240         It ensures that the temporary file, "out", is created in
33241         a temporary directory, and removed upon termination.
33242         * tests/test-pwrite.sh: Re-add file.
33243         * modules/pwrite-tests: Reference it.
33244
33245 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33246
33247         Fix output redirection buglet in init.sh.
33248         * tests/init.sh: Fix redirection of stderr.
33249
33250 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33251
33252         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33253
33254 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33255
33256         * modules/valgrind-tests: New file.
33257         * m4/valgrind-tests.m4: New file.
33258         * doc/valgrind-tests.texi: New file.
33259         * doc/gnulib.texi (Running self-tests under valgrind): New
33260         section.
33261
33262 2010-05-19  Bruno Haible  <bruno@clisp.org>
33263
33264         Clean up dead code in recent commit.
33265         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33266         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33267         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33268         Suggested by Paolo Bonzini.
33269
33270 2010-05-19  Bruno Haible  <bruno@clisp.org>
33271
33272         Avoid valgrind error reports from libunistring.
33273         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33274         * modules/libunistring (Files): Add it.
33275         * modules/libunistring-optional (Files): Likewise.
33276
33277 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33278             Bruno Haible  <bruno@clisp.org>
33279
33280         New module 'libunistring-optional'.
33281         * modules/libunistring-optional: New file.
33282         * m4/libunistring-base.m4: New file.
33283         * m4/libunistring-optional.m4: New file.
33284         * lib/unicase.in.h: Renamed from lib/unicase.h.
33285         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33286         * lib/unictype.in.h: Renamed from lib/unictype.h.
33287         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33288         * lib/uniname.in.h: Renamed from lib/uniname.h.
33289         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33290         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33291         * lib/unistr.in.h: Renamed from lib/unistr.h.
33292         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33293         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33294         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33295         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33296         gl_LIBUNISTRING. If the library was found, determine the installed
33297         version and set LIBUNISTRING_VERSION.
33298         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33299         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33300         handle a configuration option --with-included-libunistring.
33301         * modules/libunistring (Files): Add m4/absolute-header.m4.
33302         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33303         Add m4/libunistring-base.m4.
33304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33305         (Makefile.am): Build unicase.h from unicase.in.h.
33306         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33307         Add m4/libunistring-base.m4.
33308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33309         (Makefile.am): Build uniconv.h from uniconv.in.h.
33310         * modules/unictype/base (Files): Use unictype.in.h instead of
33311         unictype.h. Add m4/libunistring-base.m4.
33312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33313         (Makefile.am): Build unictype.h from unictype.in.h.
33314         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33315         Add m4/libunistring-base.m4.
33316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33317         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33318         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33319         Add m4/libunistring-base.m4.
33320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33321         (Makefile.am): Build uniname.h from uniname.in.h.
33322         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33323         Add m4/libunistring-base.m4.
33324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33325         (Makefile.am): Build uninorm.h from uninorm.in.h.
33326         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33327         unistdio.h. Add m4/libunistring-base.m4.
33328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33329         (Makefile.am): Build unistdio.h from unistdio.in.h.
33330         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33331         Add m4/libunistring-base.m4.
33332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33333         (Makefile.am): Build unistr.h from unistr.in.h.
33334         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33335         Add m4/libunistring-base.m4.
33336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33337         (Makefile.am): Build unitypes.h from unitypes.in.h.
33338         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33339         Add m4/libunistring-base.m4.
33340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33341         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33342         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33343         uniwidth.h. Add m4/libunistring-base.m4.
33344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33345         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33346         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33347         instead of augmenting lib_SOURCES.
33348         * modules/unicase/empty-suffix-context: Likewise.
33349         * modules/unicase/locale-language: Likewise.
33350         * modules/unicase/tolower: Likewise.
33351         * modules/unicase/totitle: Likewise.
33352         * modules/unicase/toupper: Likewise.
33353         * modules/unicase/u8-casecmp: Likewise.
33354         * modules/unicase/u8-casecoll: Likewise.
33355         * modules/unicase/u8-casefold: Likewise.
33356         * modules/unicase/u8-casexfrm: Likewise.
33357         * modules/unicase/u8-ct-casefold: Likewise.
33358         * modules/unicase/u8-ct-tolower: Likewise.
33359         * modules/unicase/u8-ct-totitle: Likewise.
33360         * modules/unicase/u8-ct-toupper: Likewise.
33361         * modules/unicase/u8-is-cased: Likewise.
33362         * modules/unicase/u8-is-casefolded: Likewise.
33363         * modules/unicase/u8-is-lowercase: Likewise.
33364         * modules/unicase/u8-is-titlecase: Likewise.
33365         * modules/unicase/u8-is-uppercase: Likewise.
33366         * modules/unicase/u8-prefix-context: Likewise.
33367         * modules/unicase/u8-suffix-context: Likewise.
33368         * modules/unicase/u8-tolower: Likewise.
33369         * modules/unicase/u8-totitle: Likewise.
33370         * modules/unicase/u8-toupper: Likewise.
33371         * modules/unicase/u16-casecmp: Likewise.
33372         * modules/unicase/u16-casecoll: Likewise.
33373         * modules/unicase/u16-casefold: Likewise.
33374         * modules/unicase/u16-casexfrm: Likewise.
33375         * modules/unicase/u16-ct-casefold: Likewise.
33376         * modules/unicase/u16-ct-tolower: Likewise.
33377         * modules/unicase/u16-ct-totitle: Likewise.
33378         * modules/unicase/u16-ct-toupper: Likewise.
33379         * modules/unicase/u16-is-cased: Likewise.
33380         * modules/unicase/u16-is-casefolded: Likewise.
33381         * modules/unicase/u16-is-lowercase: Likewise.
33382         * modules/unicase/u16-is-titlecase: Likewise.
33383         * modules/unicase/u16-is-uppercase: Likewise.
33384         * modules/unicase/u16-prefix-context: Likewise.
33385         * modules/unicase/u16-suffix-context: Likewise.
33386         * modules/unicase/u16-tolower: Likewise.
33387         * modules/unicase/u16-totitle: Likewise.
33388         * modules/unicase/u16-toupper: Likewise.
33389         * modules/unicase/u32-casecmp: Likewise.
33390         * modules/unicase/u32-casecoll: Likewise.
33391         * modules/unicase/u32-casefold: Likewise.
33392         * modules/unicase/u32-casexfrm: Likewise.
33393         * modules/unicase/u32-ct-casefold: Likewise.
33394         * modules/unicase/u32-ct-tolower: Likewise.
33395         * modules/unicase/u32-ct-totitle: Likewise.
33396         * modules/unicase/u32-ct-toupper: Likewise.
33397         * modules/unicase/u32-is-cased: Likewise.
33398         * modules/unicase/u32-is-casefolded: Likewise.
33399         * modules/unicase/u32-is-lowercase: Likewise.
33400         * modules/unicase/u32-is-titlecase: Likewise.
33401         * modules/unicase/u32-is-uppercase: Likewise.
33402         * modules/unicase/u32-prefix-context: Likewise.
33403         * modules/unicase/u32-suffix-context: Likewise.
33404         * modules/unicase/u32-tolower: Likewise.
33405         * modules/unicase/u32-totitle: Likewise.
33406         * modules/unicase/u32-toupper: Likewise.
33407         * modules/unicase/ulc-casecmp: Likewise.
33408         * modules/unicase/ulc-casecoll: Likewise.
33409         * modules/unicase/ulc-casexfrm: Likewise.
33410         * modules/uniconv/u8-conv-from-enc: Likewise.
33411         * modules/uniconv/u8-conv-to-enc: Likewise.
33412         * modules/uniconv/u8-strconv-from-enc: Likewise.
33413         * modules/uniconv/u8-strconv-from-locale: Likewise.
33414         * modules/uniconv/u8-strconv-to-enc: Likewise.
33415         * modules/uniconv/u8-strconv-to-locale: Likewise.
33416         * modules/uniconv/u16-conv-from-enc: Likewise.
33417         * modules/uniconv/u16-conv-to-enc: Likewise.
33418         * modules/uniconv/u16-strconv-from-enc: Likewise.
33419         * modules/uniconv/u16-strconv-from-locale: Likewise.
33420         * modules/uniconv/u16-strconv-to-enc: Likewise.
33421         * modules/uniconv/u16-strconv-to-locale: Likewise.
33422         * modules/uniconv/u32-conv-from-enc: Likewise.
33423         * modules/uniconv/u32-conv-to-enc: Likewise.
33424         * modules/uniconv/u32-strconv-from-enc: Likewise.
33425         * modules/uniconv/u32-strconv-from-locale: Likewise.
33426         * modules/uniconv/u32-strconv-to-enc: Likewise.
33427         * modules/uniconv/u32-strconv-to-locale: Likewise.
33428         * modules/unictype/bidicategory-byname: Likewise.
33429         * modules/unictype/bidicategory-name: Likewise.
33430         * modules/unictype/bidicategory-of: Likewise.
33431         * modules/unictype/bidicategory-test: Likewise.
33432         * modules/unictype/block-list: Likewise.
33433         * modules/unictype/block-test: Likewise.
33434         * modules/unictype/category-C: Likewise.
33435         * modules/unictype/category-Cc: Likewise.
33436         * modules/unictype/category-Cf: Likewise.
33437         * modules/unictype/category-Cn: Likewise.
33438         * modules/unictype/category-Co: Likewise.
33439         * modules/unictype/category-Cs: Likewise.
33440         * modules/unictype/category-L: Likewise.
33441         * modules/unictype/category-Ll: Likewise.
33442         * modules/unictype/category-Lm: Likewise.
33443         * modules/unictype/category-Lo: Likewise.
33444         * modules/unictype/category-Lt: Likewise.
33445         * modules/unictype/category-Lu: Likewise.
33446         * modules/unictype/category-M: Likewise.
33447         * modules/unictype/category-Mc: Likewise.
33448         * modules/unictype/category-Me: Likewise.
33449         * modules/unictype/category-Mn: Likewise.
33450         * modules/unictype/category-N: Likewise.
33451         * modules/unictype/category-Nd: Likewise.
33452         * modules/unictype/category-Nl: Likewise.
33453         * modules/unictype/category-No: Likewise.
33454         * modules/unictype/category-P: Likewise.
33455         * modules/unictype/category-Pc: Likewise.
33456         * modules/unictype/category-Pd: Likewise.
33457         * modules/unictype/category-Pe: Likewise.
33458         * modules/unictype/category-Pf: Likewise.
33459         * modules/unictype/category-Pi: Likewise.
33460         * modules/unictype/category-Po: Likewise.
33461         * modules/unictype/category-Ps: Likewise.
33462         * modules/unictype/category-S: Likewise.
33463         * modules/unictype/category-Sc: Likewise.
33464         * modules/unictype/category-Sk: Likewise.
33465         * modules/unictype/category-Sm: Likewise.
33466         * modules/unictype/category-So: Likewise.
33467         * modules/unictype/category-Z: Likewise.
33468         * modules/unictype/category-Zl: Likewise.
33469         * modules/unictype/category-Zp: Likewise.
33470         * modules/unictype/category-Zs: Likewise.
33471         * modules/unictype/category-and: Likewise.
33472         * modules/unictype/category-and-not: Likewise.
33473         * modules/unictype/category-byname: Likewise.
33474         * modules/unictype/category-name: Likewise.
33475         * modules/unictype/category-none: Likewise.
33476         * modules/unictype/category-of: Likewise.
33477         * modules/unictype/category-or: Likewise.
33478         * modules/unictype/category-test: Likewise.
33479         * modules/unictype/combining-class: Likewise.
33480         * modules/unictype/ctype-alnum: Likewise.
33481         * modules/unictype/ctype-alpha: Likewise.
33482         * modules/unictype/ctype-blank: Likewise.
33483         * modules/unictype/ctype-cntrl: Likewise.
33484         * modules/unictype/ctype-digit: Likewise.
33485         * modules/unictype/ctype-graph: Likewise.
33486         * modules/unictype/ctype-lower: Likewise.
33487         * modules/unictype/ctype-print: Likewise.
33488         * modules/unictype/ctype-punct: Likewise.
33489         * modules/unictype/ctype-space: Likewise.
33490         * modules/unictype/ctype-upper: Likewise.
33491         * modules/unictype/ctype-xdigit: Likewise.
33492         * modules/unictype/decimal-digit: Likewise.
33493         * modules/unictype/digit: Likewise.
33494         * modules/unictype/mirror: Likewise.
33495         * modules/unictype/numeric: Likewise.
33496         * modules/unictype/property-alphabetic: Likewise.
33497         * modules/unictype/property-ascii-hex-digit: Likewise.
33498         * modules/unictype/property-bidi-arabic-digit: Likewise.
33499         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33500         * modules/unictype/property-bidi-block-separator: Likewise.
33501         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33502         * modules/unictype/property-bidi-common-separator: Likewise.
33503         * modules/unictype/property-bidi-control: Likewise.
33504         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33505         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33506         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33507         * modules/unictype/property-bidi-european-digit: Likewise.
33508         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33509         * modules/unictype/property-bidi-left-to-right: Likewise.
33510         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33511         * modules/unictype/property-bidi-other-neutral: Likewise.
33512         * modules/unictype/property-bidi-pdf: Likewise.
33513         * modules/unictype/property-bidi-segment-separator: Likewise.
33514         * modules/unictype/property-bidi-whitespace: Likewise.
33515         * modules/unictype/property-byname: Likewise.
33516         * modules/unictype/property-combining: Likewise.
33517         * modules/unictype/property-composite: Likewise.
33518         * modules/unictype/property-currency-symbol: Likewise.
33519         * modules/unictype/property-dash: Likewise.
33520         * modules/unictype/property-decimal-digit: Likewise.
33521         * modules/unictype/property-default-ignorable-code-point: Likewise.
33522         * modules/unictype/property-deprecated: Likewise.
33523         * modules/unictype/property-diacritic: Likewise.
33524         * modules/unictype/property-extender: Likewise.
33525         * modules/unictype/property-format-control: Likewise.
33526         * modules/unictype/property-grapheme-base: Likewise.
33527         * modules/unictype/property-grapheme-extend: Likewise.
33528         * modules/unictype/property-grapheme-link: Likewise.
33529         * modules/unictype/property-hex-digit: Likewise.
33530         * modules/unictype/property-hyphen: Likewise.
33531         * modules/unictype/property-id-continue: Likewise.
33532         * modules/unictype/property-id-start: Likewise.
33533         * modules/unictype/property-ideographic: Likewise.
33534         * modules/unictype/property-ids-binary-operator: Likewise.
33535         * modules/unictype/property-ids-trinary-operator: Likewise.
33536         * modules/unictype/property-ignorable-control: Likewise.
33537         * modules/unictype/property-iso-control: Likewise.
33538         * modules/unictype/property-join-control: Likewise.
33539         * modules/unictype/property-left-of-pair: Likewise.
33540         * modules/unictype/property-line-separator: Likewise.
33541         * modules/unictype/property-logical-order-exception: Likewise.
33542         * modules/unictype/property-lowercase: Likewise.
33543         * modules/unictype/property-math: Likewise.
33544         * modules/unictype/property-non-break: Likewise.
33545         * modules/unictype/property-not-a-character: Likewise.
33546         * modules/unictype/property-numeric: Likewise.
33547         * modules/unictype/property-other-alphabetic: Likewise.
33548         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33549         * modules/unictype/property-other-grapheme-extend: Likewise.
33550         * modules/unictype/property-other-id-continue: Likewise.
33551         * modules/unictype/property-other-id-start: Likewise.
33552         * modules/unictype/property-other-lowercase: Likewise.
33553         * modules/unictype/property-other-math: Likewise.
33554         * modules/unictype/property-other-uppercase: Likewise.
33555         * modules/unictype/property-paired-punctuation: Likewise.
33556         * modules/unictype/property-paragraph-separator: Likewise.
33557         * modules/unictype/property-pattern-syntax: Likewise.
33558         * modules/unictype/property-pattern-white-space: Likewise.
33559         * modules/unictype/property-private-use: Likewise.
33560         * modules/unictype/property-punctuation: Likewise.
33561         * modules/unictype/property-quotation-mark: Likewise.
33562         * modules/unictype/property-radical: Likewise.
33563         * modules/unictype/property-sentence-terminal: Likewise.
33564         * modules/unictype/property-soft-dotted: Likewise.
33565         * modules/unictype/property-space: Likewise.
33566         * modules/unictype/property-terminal-punctuation: Likewise.
33567         * modules/unictype/property-test: Likewise.
33568         * modules/unictype/property-titlecase: Likewise.
33569         * modules/unictype/property-unassigned-code-value: Likewise.
33570         * modules/unictype/property-unified-ideograph: Likewise.
33571         * modules/unictype/property-uppercase: Likewise.
33572         * modules/unictype/property-variation-selector: Likewise.
33573         * modules/unictype/property-white-space: Likewise.
33574         * modules/unictype/property-xid-continue: Likewise.
33575         * modules/unictype/property-xid-start: Likewise.
33576         * modules/unictype/property-zero-width: Likewise.
33577         * modules/unictype/scripts: Likewise.
33578         * modules/unictype/syntax-c-ident: Likewise.
33579         * modules/unictype/syntax-c-whitespace: Likewise.
33580         * modules/unictype/syntax-java-ident: Likewise.
33581         * modules/unictype/syntax-java-whitespace: Likewise.
33582         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33583         * modules/unilbrk/u8-width-linebreaks: Likewise.
33584         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33585         * modules/unilbrk/u16-width-linebreaks: Likewise.
33586         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33587         * modules/unilbrk/u32-width-linebreaks: Likewise.
33588         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33589         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33590         * modules/uniname/uniname: Likewise.
33591         * modules/uninorm/canonical-decomposition: Likewise.
33592         * modules/uninorm/composition: Likewise.
33593         * modules/uninorm/decomposing-form: Likewise.
33594         * modules/uninorm/decomposition: Likewise.
33595         * modules/uninorm/filter: Likewise.
33596         * modules/uninorm/nfc: Likewise.
33597         * modules/uninorm/nfd: Likewise.
33598         * modules/uninorm/nfkc: Likewise.
33599         * modules/uninorm/nfkd: Likewise.
33600         * modules/uninorm/u8-normalize: Likewise.
33601         * modules/uninorm/u8-normcmp: Likewise.
33602         * modules/uninorm/u8-normcoll: Likewise.
33603         * modules/uninorm/u8-normxfrm: Likewise.
33604         * modules/uninorm/u16-normalize: Likewise.
33605         * modules/uninorm/u16-normcmp: Likewise.
33606         * modules/uninorm/u16-normcoll: Likewise.
33607         * modules/uninorm/u16-normxfrm: Likewise.
33608         * modules/uninorm/u32-normalize: Likewise.
33609         * modules/uninorm/u32-normcmp: Likewise.
33610         * modules/uninorm/u32-normcoll: Likewise.
33611         * modules/uninorm/u32-normxfrm: Likewise.
33612         * modules/unistdio/u8-asnprintf: Likewise.
33613         * modules/unistdio/u8-asprintf: Likewise.
33614         * modules/unistdio/u8-snprintf: Likewise.
33615         * modules/unistdio/u8-sprintf: Likewise.
33616         * modules/unistdio/u8-u8-asnprintf: Likewise.
33617         * modules/unistdio/u8-u8-asprintf: Likewise.
33618         * modules/unistdio/u8-u8-snprintf: Likewise.
33619         * modules/unistdio/u8-u8-sprintf: Likewise.
33620         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33621         * modules/unistdio/u8-u8-vasprintf: Likewise.
33622         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33623         * modules/unistdio/u8-u8-vsprintf: Likewise.
33624         * modules/unistdio/u8-vasnprintf: Likewise.
33625         * modules/unistdio/u8-vasprintf: Likewise.
33626         * modules/unistdio/u8-vsnprintf: Likewise.
33627         * modules/unistdio/u8-vsprintf: Likewise.
33628         * modules/unistdio/u16-asnprintf: Likewise.
33629         * modules/unistdio/u16-asprintf: Likewise.
33630         * modules/unistdio/u16-snprintf: Likewise.
33631         * modules/unistdio/u16-sprintf: Likewise.
33632         * modules/unistdio/u16-u16-asnprintf: Likewise.
33633         * modules/unistdio/u16-u16-asprintf: Likewise.
33634         * modules/unistdio/u16-u16-snprintf: Likewise.
33635         * modules/unistdio/u16-u16-sprintf: Likewise.
33636         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33637         * modules/unistdio/u16-u16-vasprintf: Likewise.
33638         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33639         * modules/unistdio/u16-u16-vsprintf: Likewise.
33640         * modules/unistdio/u16-vasnprintf: Likewise.
33641         * modules/unistdio/u16-vasprintf: Likewise.
33642         * modules/unistdio/u16-vsnprintf: Likewise.
33643         * modules/unistdio/u16-vsprintf: Likewise.
33644         * modules/unistdio/u32-asnprintf: Likewise.
33645         * modules/unistdio/u32-asprintf: Likewise.
33646         * modules/unistdio/u32-snprintf: Likewise.
33647         * modules/unistdio/u32-sprintf: Likewise.
33648         * modules/unistdio/u32-u32-asnprintf: Likewise.
33649         * modules/unistdio/u32-u32-asprintf: Likewise.
33650         * modules/unistdio/u32-u32-snprintf: Likewise.
33651         * modules/unistdio/u32-u32-sprintf: Likewise.
33652         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33653         * modules/unistdio/u32-u32-vasprintf: Likewise.
33654         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33655         * modules/unistdio/u32-u32-vsprintf: Likewise.
33656         * modules/unistdio/u32-vasnprintf: Likewise.
33657         * modules/unistdio/u32-vasprintf: Likewise.
33658         * modules/unistdio/u32-vsnprintf: Likewise.
33659         * modules/unistdio/u32-vsprintf: Likewise.
33660         * modules/unistdio/ulc-asnprintf: Likewise.
33661         * modules/unistdio/ulc-asprintf: Likewise.
33662         * modules/unistdio/ulc-fprintf: Likewise.
33663         * modules/unistdio/ulc-snprintf: Likewise.
33664         * modules/unistdio/ulc-sprintf: Likewise.
33665         * modules/unistdio/ulc-vasnprintf: Likewise.
33666         * modules/unistdio/ulc-vasprintf: Likewise.
33667         * modules/unistdio/ulc-vfprintf: Likewise.
33668         * modules/unistdio/ulc-vsnprintf: Likewise.
33669         * modules/unistdio/ulc-vsprintf: Likewise.
33670         * modules/unistr/u8-check: Likewise.
33671         * modules/unistr/u8-chr: Likewise.
33672         * modules/unistr/u8-cmp: Likewise.
33673         * modules/unistr/u8-cmp2: Likewise.
33674         * modules/unistr/u8-cpy: Likewise.
33675         * modules/unistr/u8-cpy-alloc: Likewise.
33676         * modules/unistr/u8-endswith: Likewise.
33677         * modules/unistr/u8-mblen: Likewise.
33678         * modules/unistr/u8-mbsnlen: Likewise.
33679         * modules/unistr/u8-mbtouc: Likewise.
33680         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33681         * modules/unistr/u8-mbtoucr: Likewise.
33682         * modules/unistr/u8-move: Likewise.
33683         * modules/unistr/u8-next: Likewise.
33684         * modules/unistr/u8-prev: Likewise.
33685         * modules/unistr/u8-set: Likewise.
33686         * modules/unistr/u8-startswith: Likewise.
33687         * modules/unistr/u8-stpcpy: Likewise.
33688         * modules/unistr/u8-stpncpy: Likewise.
33689         * modules/unistr/u8-strcat: Likewise.
33690         * modules/unistr/u8-strchr: Likewise.
33691         * modules/unistr/u8-strcmp: Likewise.
33692         * modules/unistr/u8-strcoll: Likewise.
33693         * modules/unistr/u8-strcpy: Likewise.
33694         * modules/unistr/u8-strcspn: Likewise.
33695         * modules/unistr/u8-strdup: Likewise.
33696         * modules/unistr/u8-strlen: Likewise.
33697         * modules/unistr/u8-strmblen: Likewise.
33698         * modules/unistr/u8-strmbtouc: Likewise.
33699         * modules/unistr/u8-strncat: Likewise.
33700         * modules/unistr/u8-strncmp: Likewise.
33701         * modules/unistr/u8-strncpy: Likewise.
33702         * modules/unistr/u8-strnlen: Likewise.
33703         * modules/unistr/u8-strpbrk: Likewise.
33704         * modules/unistr/u8-strrchr: Likewise.
33705         * modules/unistr/u8-strspn: Likewise.
33706         * modules/unistr/u8-strstr: Likewise.
33707         * modules/unistr/u8-strtok: Likewise.
33708         * modules/unistr/u8-to-u16: Likewise.
33709         * modules/unistr/u8-to-u32: Likewise.
33710         * modules/unistr/u8-uctomb: Likewise.
33711         * modules/unistr/u16-check: Likewise.
33712         * modules/unistr/u16-chr: Likewise.
33713         * modules/unistr/u16-cmp: Likewise.
33714         * modules/unistr/u16-cmp2: Likewise.
33715         * modules/unistr/u16-cpy: Likewise.
33716         * modules/unistr/u16-cpy-alloc: Likewise.
33717         * modules/unistr/u16-endswith: Likewise.
33718         * modules/unistr/u16-mblen: Likewise.
33719         * modules/unistr/u16-mbsnlen: Likewise.
33720         * modules/unistr/u16-mbtouc: Likewise.
33721         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33722         * modules/unistr/u16-mbtoucr: Likewise.
33723         * modules/unistr/u16-move: Likewise.
33724         * modules/unistr/u16-next: Likewise.
33725         * modules/unistr/u16-prev: Likewise.
33726         * modules/unistr/u16-set: Likewise.
33727         * modules/unistr/u16-startswith: Likewise.
33728         * modules/unistr/u16-stpcpy: Likewise.
33729         * modules/unistr/u16-stpncpy: Likewise.
33730         * modules/unistr/u16-strcat: Likewise.
33731         * modules/unistr/u16-strchr: Likewise.
33732         * modules/unistr/u16-strcmp: Likewise.
33733         * modules/unistr/u16-strcoll: Likewise.
33734         * modules/unistr/u16-strcpy: Likewise.
33735         * modules/unistr/u16-strcspn: Likewise.
33736         * modules/unistr/u16-strdup: Likewise.
33737         * modules/unistr/u16-strlen: Likewise.
33738         * modules/unistr/u16-strmblen: Likewise.
33739         * modules/unistr/u16-strmbtouc: Likewise.
33740         * modules/unistr/u16-strncat: Likewise.
33741         * modules/unistr/u16-strncmp: Likewise.
33742         * modules/unistr/u16-strncpy: Likewise.
33743         * modules/unistr/u16-strnlen: Likewise.
33744         * modules/unistr/u16-strpbrk: Likewise.
33745         * modules/unistr/u16-strrchr: Likewise.
33746         * modules/unistr/u16-strspn: Likewise.
33747         * modules/unistr/u16-strstr: Likewise.
33748         * modules/unistr/u16-strtok: Likewise.
33749         * modules/unistr/u16-to-u32: Likewise.
33750         * modules/unistr/u16-to-u8: Likewise.
33751         * modules/unistr/u16-uctomb: Likewise.
33752         * modules/unistr/u32-check: Likewise.
33753         * modules/unistr/u32-chr: Likewise.
33754         * modules/unistr/u32-cmp: Likewise.
33755         * modules/unistr/u32-cmp2: Likewise.
33756         * modules/unistr/u32-cpy: Likewise.
33757         * modules/unistr/u32-cpy-alloc: Likewise.
33758         * modules/unistr/u32-endswith: Likewise.
33759         * modules/unistr/u32-mblen: Likewise.
33760         * modules/unistr/u32-mbsnlen: Likewise.
33761         * modules/unistr/u32-mbtouc: Likewise.
33762         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33763         * modules/unistr/u32-mbtoucr: Likewise.
33764         * modules/unistr/u32-move: Likewise.
33765         * modules/unistr/u32-next: Likewise.
33766         * modules/unistr/u32-prev: Likewise.
33767         * modules/unistr/u32-set: Likewise.
33768         * modules/unistr/u32-startswith: Likewise.
33769         * modules/unistr/u32-stpcpy: Likewise.
33770         * modules/unistr/u32-stpncpy: Likewise.
33771         * modules/unistr/u32-strcat: Likewise.
33772         * modules/unistr/u32-strchr: Likewise.
33773         * modules/unistr/u32-strcmp: Likewise.
33774         * modules/unistr/u32-strcoll: Likewise.
33775         * modules/unistr/u32-strcpy: Likewise.
33776         * modules/unistr/u32-strcspn: Likewise.
33777         * modules/unistr/u32-strdup: Likewise.
33778         * modules/unistr/u32-strlen: Likewise.
33779         * modules/unistr/u32-strmblen: Likewise.
33780         * modules/unistr/u32-strmbtouc: Likewise.
33781         * modules/unistr/u32-strncat: Likewise.
33782         * modules/unistr/u32-strncmp: Likewise.
33783         * modules/unistr/u32-strncpy: Likewise.
33784         * modules/unistr/u32-strnlen: Likewise.
33785         * modules/unistr/u32-strpbrk: Likewise.
33786         * modules/unistr/u32-strrchr: Likewise.
33787         * modules/unistr/u32-strspn: Likewise.
33788         * modules/unistr/u32-strstr: Likewise.
33789         * modules/unistr/u32-strtok: Likewise.
33790         * modules/unistr/u32-to-u16: Likewise.
33791         * modules/unistr/u32-to-u8: Likewise.
33792         * modules/unistr/u32-uctomb: Likewise.
33793         * modules/uniwbrk/u8-wordbreaks: Likewise.
33794         * modules/uniwbrk/u16-wordbreaks: Likewise.
33795         * modules/uniwbrk/u32-wordbreaks: Likewise.
33796         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33797         * modules/uniwbrk/wordbreak-property: Likewise.
33798         * modules/uniwidth/u8-strwidth: Likewise.
33799         * modules/uniwidth/u8-width: Likewise.
33800         * modules/uniwidth/u16-strwidth: Likewise.
33801         * modules/uniwidth/u16-width: Likewise.
33802         * modules/uniwidth/u32-strwidth: Likewise.
33803         * modules/uniwidth/u32-width: Likewise.
33804         * modules/uniwidth/width: Likewise.
33805         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33806         with $(LIBUNISTRING).
33807         * modules/unicase/ignorable-tests: Likewise.
33808         * modules/unicase/locale-language-tests: Likewise.
33809         * modules/unicase/tolower-tests: Likewise.
33810         * modules/unicase/totitle-tests: Likewise.
33811         * modules/unicase/toupper-tests: Likewise.
33812         * modules/unicase/u8-casecmp-tests: Likewise.
33813         * modules/unicase/u8-casecoll-tests: Likewise.
33814         * modules/unicase/u8-casefold-tests: Likewise.
33815         * modules/unicase/u8-is-cased-tests: Likewise.
33816         * modules/unicase/u8-is-casefolded-tests: Likewise.
33817         * modules/unicase/u8-is-lowercase-tests: Likewise.
33818         * modules/unicase/u8-is-titlecase-tests: Likewise.
33819         * modules/unicase/u8-is-uppercase-tests: Likewise.
33820         * modules/unicase/u8-tolower-tests: Likewise.
33821         * modules/unicase/u8-totitle-tests: Likewise.
33822         * modules/unicase/u8-toupper-tests: Likewise.
33823         * modules/unicase/u16-casecmp-tests: Likewise.
33824         * modules/unicase/u16-casecoll-tests: Likewise.
33825         * modules/unicase/u16-casefold-tests: Likewise.
33826         * modules/unicase/u16-is-cased-tests: Likewise.
33827         * modules/unicase/u16-is-casefolded-tests: Likewise.
33828         * modules/unicase/u16-is-lowercase-tests: Likewise.
33829         * modules/unicase/u16-is-titlecase-tests: Likewise.
33830         * modules/unicase/u16-is-uppercase-tests: Likewise.
33831         * modules/unicase/u16-tolower-tests: Likewise.
33832         * modules/unicase/u16-totitle-tests: Likewise.
33833         * modules/unicase/u16-toupper-tests: Likewise.
33834         * modules/unicase/u32-casecmp-tests: Likewise.
33835         * modules/unicase/u32-casecoll-tests: Likewise.
33836         * modules/unicase/u32-casefold-tests: Likewise.
33837         * modules/unicase/u32-is-cased-tests: Likewise.
33838         * modules/unicase/u32-is-casefolded-tests: Likewise.
33839         * modules/unicase/u32-is-lowercase-tests: Likewise.
33840         * modules/unicase/u32-is-titlecase-tests: Likewise.
33841         * modules/unicase/u32-is-uppercase-tests: Likewise.
33842         * modules/unicase/u32-tolower-tests: Likewise.
33843         * modules/unicase/u32-totitle-tests: Likewise.
33844         * modules/unicase/u32-toupper-tests: Likewise.
33845         * modules/unicase/ulc-casecmp-tests: Likewise.
33846         * modules/unicase/ulc-casecoll-tests: Likewise.
33847         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33848         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33849         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33850         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33851         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33852         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33853         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33854         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33855         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33856         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33857         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33858         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33859         * modules/unictype/bidicategory-byname-tests: Likewise.
33860         * modules/unictype/bidicategory-name-tests: Likewise.
33861         * modules/unictype/bidicategory-of-tests: Likewise.
33862         * modules/unictype/bidicategory-test-tests: Likewise.
33863         * modules/unictype/block-list-tests: Likewise.
33864         * modules/unictype/block-of-tests: Likewise.
33865         * modules/unictype/block-test-tests: Likewise.
33866         * modules/unictype/category-C-tests: Likewise.
33867         * modules/unictype/category-Cc-tests: Likewise.
33868         * modules/unictype/category-Cf-tests: Likewise.
33869         * modules/unictype/category-Cn-tests: Likewise.
33870         * modules/unictype/category-Co-tests: Likewise.
33871         * modules/unictype/category-Cs-tests: Likewise.
33872         * modules/unictype/category-L-tests: Likewise.
33873         * modules/unictype/category-Ll-tests: Likewise.
33874         * modules/unictype/category-Lm-tests: Likewise.
33875         * modules/unictype/category-Lo-tests: Likewise.
33876         * modules/unictype/category-Lt-tests: Likewise.
33877         * modules/unictype/category-Lu-tests: Likewise.
33878         * modules/unictype/category-M-tests: Likewise.
33879         * modules/unictype/category-Mc-tests: Likewise.
33880         * modules/unictype/category-Me-tests: Likewise.
33881         * modules/unictype/category-Mn-tests: Likewise.
33882         * modules/unictype/category-N-tests: Likewise.
33883         * modules/unictype/category-Nd-tests: Likewise.
33884         * modules/unictype/category-Nl-tests: Likewise.
33885         * modules/unictype/category-No-tests: Likewise.
33886         * modules/unictype/category-P-tests: Likewise.
33887         * modules/unictype/category-Pc-tests: Likewise.
33888         * modules/unictype/category-Pd-tests: Likewise.
33889         * modules/unictype/category-Pe-tests: Likewise.
33890         * modules/unictype/category-Pf-tests: Likewise.
33891         * modules/unictype/category-Pi-tests: Likewise.
33892         * modules/unictype/category-Po-tests: Likewise.
33893         * modules/unictype/category-Ps-tests: Likewise.
33894         * modules/unictype/category-S-tests: Likewise.
33895         * modules/unictype/category-Sc-tests: Likewise.
33896         * modules/unictype/category-Sk-tests: Likewise.
33897         * modules/unictype/category-Sm-tests: Likewise.
33898         * modules/unictype/category-So-tests: Likewise.
33899         * modules/unictype/category-Z-tests: Likewise.
33900         * modules/unictype/category-Zl-tests: Likewise.
33901         * modules/unictype/category-Zp-tests: Likewise.
33902         * modules/unictype/category-Zs-tests: Likewise.
33903         * modules/unictype/category-and-not-tests: Likewise.
33904         * modules/unictype/category-and-tests: Likewise.
33905         * modules/unictype/category-byname-tests: Likewise.
33906         * modules/unictype/category-name-tests: Likewise.
33907         * modules/unictype/category-none-tests: Likewise.
33908         * modules/unictype/category-of-tests: Likewise.
33909         * modules/unictype/category-or-tests: Likewise.
33910         * modules/unictype/category-test-withtable-tests: Likewise.
33911         * modules/unictype/combining-class-tests: Likewise.
33912         * modules/unictype/ctype-alnum-tests: Likewise.
33913         * modules/unictype/ctype-alpha-tests: Likewise.
33914         * modules/unictype/ctype-blank-tests: Likewise.
33915         * modules/unictype/ctype-cntrl-tests: Likewise.
33916         * modules/unictype/ctype-digit-tests: Likewise.
33917         * modules/unictype/ctype-graph-tests: Likewise.
33918         * modules/unictype/ctype-lower-tests: Likewise.
33919         * modules/unictype/ctype-print-tests: Likewise.
33920         * modules/unictype/ctype-punct-tests: Likewise.
33921         * modules/unictype/ctype-space-tests: Likewise.
33922         * modules/unictype/ctype-upper-tests: Likewise.
33923         * modules/unictype/ctype-xdigit-tests: Likewise.
33924         * modules/unictype/decimal-digit-tests: Likewise.
33925         * modules/unictype/digit-tests: Likewise.
33926         * modules/unictype/mirror-tests: Likewise.
33927         * modules/unictype/numeric-tests: Likewise.
33928         * modules/unictype/property-alphabetic-tests: Likewise.
33929         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33930         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33931         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33932         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33933         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33934         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33935         * modules/unictype/property-bidi-control-tests: Likewise.
33936         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33937         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33938         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33939         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33940         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33941         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33942         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33943         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33944         * modules/unictype/property-bidi-pdf-tests: Likewise.
33945         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33946         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33947         * modules/unictype/property-byname-tests: Likewise.
33948         * modules/unictype/property-combining-tests: Likewise.
33949         * modules/unictype/property-composite-tests: Likewise.
33950         * modules/unictype/property-currency-symbol-tests: Likewise.
33951         * modules/unictype/property-dash-tests: Likewise.
33952         * modules/unictype/property-decimal-digit-tests: Likewise.
33953         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33954         * modules/unictype/property-deprecated-tests: Likewise.
33955         * modules/unictype/property-diacritic-tests: Likewise.
33956         * modules/unictype/property-extender-tests: Likewise.
33957         * modules/unictype/property-format-control-tests: Likewise.
33958         * modules/unictype/property-grapheme-base-tests: Likewise.
33959         * modules/unictype/property-grapheme-extend-tests: Likewise.
33960         * modules/unictype/property-grapheme-link-tests: Likewise.
33961         * modules/unictype/property-hex-digit-tests: Likewise.
33962         * modules/unictype/property-hyphen-tests: Likewise.
33963         * modules/unictype/property-id-continue-tests: Likewise.
33964         * modules/unictype/property-id-start-tests: Likewise.
33965         * modules/unictype/property-ideographic-tests: Likewise.
33966         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33967         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33968         * modules/unictype/property-ignorable-control-tests: Likewise.
33969         * modules/unictype/property-iso-control-tests: Likewise.
33970         * modules/unictype/property-join-control-tests: Likewise.
33971         * modules/unictype/property-left-of-pair-tests: Likewise.
33972         * modules/unictype/property-line-separator-tests: Likewise.
33973         * modules/unictype/property-logical-order-exception-tests: Likewise.
33974         * modules/unictype/property-lowercase-tests: Likewise.
33975         * modules/unictype/property-math-tests: Likewise.
33976         * modules/unictype/property-non-break-tests: Likewise.
33977         * modules/unictype/property-not-a-character-tests: Likewise.
33978         * modules/unictype/property-numeric-tests: Likewise.
33979         * modules/unictype/property-other-alphabetic-tests: Likewise.
33980         * modules/unictype/property-other-default-ignorable-code-point-tests:
33981         Likewise.
33982         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33983         * modules/unictype/property-other-id-continue-tests: Likewise.
33984         * modules/unictype/property-other-id-start-tests: Likewise.
33985         * modules/unictype/property-other-lowercase-tests: Likewise.
33986         * modules/unictype/property-other-math-tests: Likewise.
33987         * modules/unictype/property-other-uppercase-tests: Likewise.
33988         * modules/unictype/property-paired-punctuation-tests: Likewise.
33989         * modules/unictype/property-paragraph-separator-tests: Likewise.
33990         * modules/unictype/property-pattern-syntax-tests: Likewise.
33991         * modules/unictype/property-pattern-white-space-tests: Likewise.
33992         * modules/unictype/property-private-use-tests: Likewise.
33993         * modules/unictype/property-punctuation-tests: Likewise.
33994         * modules/unictype/property-quotation-mark-tests: Likewise.
33995         * modules/unictype/property-radical-tests: Likewise.
33996         * modules/unictype/property-sentence-terminal-tests: Likewise.
33997         * modules/unictype/property-soft-dotted-tests: Likewise.
33998         * modules/unictype/property-space-tests: Likewise.
33999         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34000         * modules/unictype/property-test-tests: Likewise.
34001         * modules/unictype/property-titlecase-tests: Likewise.
34002         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34003         * modules/unictype/property-unified-ideograph-tests: Likewise.
34004         * modules/unictype/property-uppercase-tests: Likewise.
34005         * modules/unictype/property-variation-selector-tests: Likewise.
34006         * modules/unictype/property-white-space-tests: Likewise.
34007         * modules/unictype/property-xid-continue-tests: Likewise.
34008         * modules/unictype/property-xid-start-tests: Likewise.
34009         * modules/unictype/property-zero-width-tests: Likewise.
34010         * modules/unictype/scripts-tests: Likewise.
34011         * modules/unictype/syntax-c-ident-tests: Likewise.
34012         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34013         * modules/unictype/syntax-java-ident-tests: Likewise.
34014         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34015         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34016         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34017         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34018         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34019         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34020         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34021         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34022         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34023         * modules/uniname/uniname-tests: Likewise.
34024         * modules/uninorm/canonical-decomposition-tests: Likewise.
34025         * modules/uninorm/compat-decomposition-tests: Likewise.
34026         * modules/uninorm/composition-tests: Likewise.
34027         * modules/uninorm/decomposing-form-tests: Likewise.
34028         * modules/uninorm/decomposition-tests: Likewise.
34029         * modules/uninorm/filter-tests: Likewise.
34030         * modules/uninorm/nfc-tests: Likewise.
34031         * modules/uninorm/nfd-tests: Likewise.
34032         * modules/uninorm/nfkc-tests: Likewise.
34033         * modules/uninorm/nfkd-tests: Likewise.
34034         * modules/uninorm/u8-normcmp-tests: Likewise.
34035         * modules/uninorm/u8-normcoll-tests: Likewise.
34036         * modules/uninorm/u16-normcmp-tests: Likewise.
34037         * modules/uninorm/u16-normcoll-tests: Likewise.
34038         * modules/uninorm/u32-normcmp-tests: Likewise.
34039         * modules/uninorm/u32-normcoll-tests: Likewise.
34040         * modules/unistdio/u8-asnprintf-tests: Likewise.
34041         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34042         * modules/unistdio/u8-vasprintf-tests: Likewise.
34043         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34044         * modules/unistdio/u8-vsprintf-tests: Likewise.
34045         * modules/unistdio/u16-asnprintf-tests: Likewise.
34046         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34047         * modules/unistdio/u16-vasprintf-tests: Likewise.
34048         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34049         * modules/unistdio/u16-vsprintf-tests: Likewise.
34050         * modules/unistdio/u32-asnprintf-tests: Likewise.
34051         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34052         * modules/unistdio/u32-vasprintf-tests: Likewise.
34053         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34054         * modules/unistdio/u32-vsprintf-tests: Likewise.
34055         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34056         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34057         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34058         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34059         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34060         * modules/unistr/u8-check-tests: Likewise.
34061         * modules/unistr/u8-chr-tests: Likewise.
34062         * modules/unistr/u8-cmp-tests: Likewise.
34063         * modules/unistr/u8-cmp2-tests: Likewise.
34064         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34065         * modules/unistr/u8-cpy-tests: Likewise.
34066         * modules/unistr/u8-mblen-tests: Likewise.
34067         * modules/unistr/u8-mbsnlen-tests: Likewise.
34068         * modules/unistr/u8-mbtouc-tests: Likewise.
34069         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34070         * modules/unistr/u8-mbtoucr-tests: Likewise.
34071         * modules/unistr/u8-move-tests: Likewise.
34072         * modules/unistr/u8-next-tests: Likewise.
34073         * modules/unistr/u8-prev-tests: Likewise.
34074         * modules/unistr/u8-set-tests: Likewise.
34075         * modules/unistr/u8-stpcpy-tests: Likewise.
34076         * modules/unistr/u8-stpncpy-tests: Likewise.
34077         * modules/unistr/u8-strcat-tests: Likewise.
34078         * modules/unistr/u8-strcmp-tests: Likewise.
34079         * modules/unistr/u8-strcoll-tests: Likewise.
34080         * modules/unistr/u8-strcpy-tests: Likewise.
34081         * modules/unistr/u8-strdup-tests: Likewise.
34082         * modules/unistr/u8-strlen-tests: Likewise.
34083         * modules/unistr/u8-strmblen-tests: Likewise.
34084         * modules/unistr/u8-strmbtouc-tests: Likewise.
34085         * modules/unistr/u8-strncat-tests: Likewise.
34086         * modules/unistr/u8-strncmp-tests: Likewise.
34087         * modules/unistr/u8-strncpy-tests: Likewise.
34088         * modules/unistr/u8-strnlen-tests: Likewise.
34089         * modules/unistr/u8-to-u16-tests: Likewise.
34090         * modules/unistr/u8-to-u32-tests: Likewise.
34091         * modules/unistr/u8-uctomb-tests: Likewise.
34092         * modules/unistr/u16-check-tests: Likewise.
34093         * modules/unistr/u16-chr-tests: Likewise.
34094         * modules/unistr/u16-cmp-tests: Likewise.
34095         * modules/unistr/u16-cmp2-tests: Likewise.
34096         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34097         * modules/unistr/u16-cpy-tests: Likewise.
34098         * modules/unistr/u16-mblen-tests: Likewise.
34099         * modules/unistr/u16-mbsnlen-tests: Likewise.
34100         * modules/unistr/u16-mbtouc-tests: Likewise.
34101         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34102         * modules/unistr/u16-mbtoucr-tests: Likewise.
34103         * modules/unistr/u16-move-tests: Likewise.
34104         * modules/unistr/u16-next-tests: Likewise.
34105         * modules/unistr/u16-prev-tests: Likewise.
34106         * modules/unistr/u16-set-tests: Likewise.
34107         * modules/unistr/u16-stpcpy-tests: Likewise.
34108         * modules/unistr/u16-stpncpy-tests: Likewise.
34109         * modules/unistr/u16-strcat-tests: Likewise.
34110         * modules/unistr/u16-strcmp-tests: Likewise.
34111         * modules/unistr/u16-strcoll-tests: Likewise.
34112         * modules/unistr/u16-strcpy-tests: Likewise.
34113         * modules/unistr/u16-strdup-tests: Likewise.
34114         * modules/unistr/u16-strlen-tests: Likewise.
34115         * modules/unistr/u16-strmblen-tests: Likewise.
34116         * modules/unistr/u16-strmbtouc-tests: Likewise.
34117         * modules/unistr/u16-strncat-tests: Likewise.
34118         * modules/unistr/u16-strncmp-tests: Likewise.
34119         * modules/unistr/u16-strncpy-tests: Likewise.
34120         * modules/unistr/u16-strnlen-tests: Likewise.
34121         * modules/unistr/u16-to-u32-tests: Likewise.
34122         * modules/unistr/u16-to-u8-tests: Likewise.
34123         * modules/unistr/u16-uctomb-tests: Likewise.
34124         * modules/unistr/u32-check-tests: Likewise.
34125         * modules/unistr/u32-chr-tests: Likewise.
34126         * modules/unistr/u32-cmp-tests: Likewise.
34127         * modules/unistr/u32-cmp2-tests: Likewise.
34128         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34129         * modules/unistr/u32-cpy-tests: Likewise.
34130         * modules/unistr/u32-mblen-tests: Likewise.
34131         * modules/unistr/u32-mbsnlen-tests: Likewise.
34132         * modules/unistr/u32-mbtouc-tests: Likewise.
34133         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34134         * modules/unistr/u32-mbtoucr-tests: Likewise.
34135         * modules/unistr/u32-move-tests: Likewise.
34136         * modules/unistr/u32-next-tests: Likewise.
34137         * modules/unistr/u32-prev-tests: Likewise.
34138         * modules/unistr/u32-set-tests: Likewise.
34139         * modules/unistr/u32-stpcpy-tests: Likewise.
34140         * modules/unistr/u32-stpncpy-tests: Likewise.
34141         * modules/unistr/u32-strcat-tests: Likewise.
34142         * modules/unistr/u32-strcmp-tests: Likewise.
34143         * modules/unistr/u32-strcoll-tests: Likewise.
34144         * modules/unistr/u32-strcpy-tests: Likewise.
34145         * modules/unistr/u32-strdup-tests: Likewise.
34146         * modules/unistr/u32-strlen-tests: Likewise.
34147         * modules/unistr/u32-strmblen-tests: Likewise.
34148         * modules/unistr/u32-strmbtouc-tests: Likewise.
34149         * modules/unistr/u32-strncat-tests: Likewise.
34150         * modules/unistr/u32-strncmp-tests: Likewise.
34151         * modules/unistr/u32-strncpy-tests: Likewise.
34152         * modules/unistr/u32-strnlen-tests: Likewise.
34153         * modules/unistr/u32-to-u16-tests: Likewise.
34154         * modules/unistr/u32-to-u8-tests: Likewise.
34155         * modules/unistr/u32-uctomb-tests: Likewise.
34156         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34157         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34158         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34159         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34160         * modules/uniwidth/u8-strwidth-tests: Likewise.
34161         * modules/uniwidth/u8-width-tests: Likewise.
34162         * modules/uniwidth/u16-strwidth-tests: Likewise.
34163         * modules/uniwidth/u16-width-tests: Likewise.
34164         * modules/uniwidth/u32-strwidth-tests: Likewise.
34165         * modules/uniwidth/u32-width-tests: Likewise.
34166         * modules/uniwidth/width-tests: Likewise.
34167
34168 2010-05-18  Richard Jones  <rjones@redhat.com>
34169
34170         doc: users.txt: list hivex
34171         * users.txt: Add hivex.
34172
34173 2010-05-18  Richard Jones  <rjones@redhat.com>
34174
34175         doc: users.txt: list febootstrap
34176         * users.txt: Add febootstrap.
34177
34178 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34179
34180         bootstrap: fix an error when gnulib is not used as a git submodule
34181         * build-aux/bootstrap (gnulib_path): If its length is zero then
34182         assign "gnulib" to it.
34183         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34184
34185 2010-05-16  Bruno Haible  <bruno@clisp.org>
34186
34187         Avoid autoconf warnings about AM_ICONV.
34188         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34189         2.64.
34190
34191 2010-05-16  Bruno Haible  <bruno@clisp.org>
34192
34193         absolute-header: Make the macro usable in more situations.
34194         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34195         from gl_ABSOLUTE_HEADER.
34196         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34197
34198 2010-05-16  James Youngman  <jay@gnu.org>
34199
34200         doc: update users.txt
34201         * users.txt: Add CSSC.
34202
34203 2010-05-16  Jim Meyering  <meyering@redhat.com>
34204
34205         init.sh: fix an error in the previous change; add more comments
34206         * tests/init.sh: Compare exit code in loop against 9, not 2.
34207         Patch by Bruno Haible.
34208         Make the two tests more similar by adding an empty "then" clause.
34209         Add comments.
34210
34211         init.sh: avoid unnecessary shell re-exec
34212         * tests/init.sh: Improve the re-exec-required check to first test the
34213         current shell.  If it passes the test, do not search for a shell that
34214         does pass, and do not re-exec.  This test is particularly contorted to
34215         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34216         of $(...) evokes a syntax error and causes immediate shell exit with
34217         status 2.  Bruno Haible reported that the re-exec made it impossible
34218         to single-step through any init.sh-using script.
34219
34220 2010-05-16  Bruno Haible  <bruno@clisp.org>
34221
34222         Fix collision between gnulib's and libintl's printf replacements.
34223         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34224         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34225         (printf): When using GNU C, map the __printf__ function to rpl_printf
34226         via __asm__. When not using GNU C, define rpl_printf instead of
34227         __printf__.
34228         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34229         commit.
34230         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34231         commit.
34232         * m4/asm-underscore.m4: New file.
34233         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34234         * modules/stdio (Files): Add m4/asm-underscore.m4.
34235         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34236         Reported by Ben Pfaff.
34237
34238 2010-05-16  Bruno Haible  <bruno@clisp.org>
34239
34240         verify: Avoid skipping the test on openSUSE 11.0.
34241         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34242
34243 2010-05-13  Bruno Haible  <bruno@clisp.org>
34244
34245         Avoid useless warnings from G++.
34246         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34247         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34248         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34249
34250 2010-05-11  Jim Meyering  <meyering@redhat.com>
34251
34252         maint.mk: tweak preceding change
34253         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34254         regexps tighter by anchoring at EOL, and make the new group "shy"
34255         for slightly decreased overhead.
34256
34257 2010-05-11  Eric Blake  <eblake@redhat.com>
34258
34259         maint.mk: gnulib doesn't guarantee NSIG
34260         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34261
34262 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34263
34264         test-pwrite.c: Remove unused variable declaration.
34265         * tests/test-pwrite.c (main): Remove read_buf declaration.
34266
34267         Remove useless test-pwrite.sh file.
34268         * tests/test-pwrite.sh: Delete file.
34269         * modules/pwrite-tests: Remove references.
34270         Reported by Bruno Haible.
34271
34272 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34273
34274         init.sh: fix a typo
34275         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34276
34277 2010-05-10  Jim Meyering  <meyering@redhat.com>
34278
34279         maint.mk: avoid using a temporary file in the always-defined-macros check
34280         * top/maint.mk (.re-defmac): Remove rule.
34281         (gl_trap_): Remove definition.
34282         (sc_prohibit_always-defined_macros): Rewrite not to create and
34283         depend on a temporary file.  Instead, depend on GNU grep's ability
34284         to read a list of regular expressions from stdin when given "-f -".
34285
34286 2010-05-09  Bruno Haible  <bruno@clisp.org>
34287
34288         Update to GNU gettext 0.18, part 1.
34289         * m4/gettext.m4: Update to GNU gettext 0.18.
34290         * m4/intl.m4: Likewise.
34291         * m4/po.m4: Likewise.
34292         * modules/gettext (Files): Add m4/fcntl-o.m4.
34293         (configure.ac): Require gettext infrastructure from version 0.18.
34294
34295 2010-05-09  Jim Meyering  <meyering@redhat.com>
34296
34297         init.sh: enable MALLOC_PERTURB_
34298         * tests/init.sh: Enable glibc's malloc-perturbing option.
34299
34300         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34301         With my recent change in init.sh from the two-line form:
34302             -#   : ${srcdir=.}
34303             -#   . "$srcdir/init.sh"; path_prepend_ .
34304             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34305         I noticed that using the one-line form would cause this test
34306         to fail with a false-positive, or to stop working altogether,
34307         depending on whether help-version changed or all the tests did.
34308         * top/maint.mk (_hv_regex): Remove this definition.
34309         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34310         (_hv_regex_strong): Use a stronger regex to check for conformance.
34311         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34312         Give a separate diagnostic for lack of conforming use.
34313
34314         maint.mk: prohibit definition of symbols defined by gnulib
34315         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34316         definition of symbols defined by gnulib.
34317
34318 2010-05-09  Bruno Haible  <bruno@clisp.org>
34319
34320         acl: Avoid test failure on Cygwin-hosted mingw.
34321         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34322
34323 2010-05-09  Bruno Haible  <bruno@clisp.org>
34324
34325         error: Use system's fcntl function.
34326         * lib/error.c (fcntl): Undefine.
34327
34328 2010-05-09  Jim Meyering  <meyering@redhat.com>
34329
34330         verify: adjust formatting to be more consistent
34331         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34332         argument-list '('s, and after one comma.
34333
34334 2010-05-09  Bruno Haible  <bruno@clisp.org>
34335
34336         error: More reliable output on mingw.
34337         * lib/error.c: Include <windows.h>.
34338         (is_open): New function.
34339         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34340         defined.
34341
34342 2010-05-09  Bruno Haible  <bruno@clisp.org>
34343
34344         vasnprintf: Fix syntax errors in libintl build on mingw.
34345         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34346         pad_ourselves and prec_ourselves after use.
34347
34348 2010-05-08  Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/config.charset: Update comments for Cygwin 1.7.
34351         * lib/localcharset.c: Likewise.
34352
34353 2010-05-07  Jim Meyering  <meyering@redhat.com>
34354
34355         init.sh: improve comments
34356         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34357         . "${srcdir=.}/init.sh"; path_prepend_ .
34358         Add a note about path_prepend_ and the alternative of using
34359         TESTS_ENVIRONMENT.
34360
34361 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34362
34363         exclude: Unescape hashed patterns in wildcard mode.
34364         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34365         to the hash list.
34366         * tests/test-exclude8.sh: New test case.
34367         * modules/exclude-tests: Add new test.
34368
34369 2010-05-05  Eric Blake  <eblake@redhat.com>
34370
34371         verify: automate tests
34372         * modules/verify-tests: New module.
34373         * tests/test-verify.sh: New file.
34374         * tests/test-verify.c: Guard each negative test with a unique id.
34375         Also avoid warning about unused left hand of comma expressions.
34376
34377 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34378
34379         Further improvements to verify.h, suggested by Eric Blake.
34380         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34381         the GL_* versions, to avoid collision with OpenGL.
34382         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34383         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34384         than testing merely whether it's defined.
34385
34386         Modify verify.h to pacify gcc -Wredundant_decls.
34387         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34388         These use the prefix "GL_" since they're likely to be useful elsewhere.
34389         We may need to break them out into a different .h file.
34390         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34391         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34392         of verify_function__.
34393
34394 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34395
34396         Tests for module pwrite.
34397         * modules/pwrite-tests: New file.
34398         * tests/test-pwrite.sh: New file.
34399         * tests/test-pwrite.c: New file.
34400
34401         New module pwrite.
34402         * lib/unistd.in.h (pwrite): New declaration.
34403         * lib/pwrite.c: New file, from glibc with modifications.
34404         * m4/pwrite.m4: New file.
34405         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34406         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34407         REPLACE_PWRITE.
34408         * modules/pwrite: New file.
34409         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34410         REPLACE_PWRITE.
34411         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34412         * doc/posix-functions/pwrite.texi: Mention the new module.
34413
34414 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34415
34416         pread: Update documentation.
34417         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34418
34419 2010-05-04  Eric Blake  <eblake@redhat.com>
34420
34421         docs: update cygwin progress
34422         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34423         this bug.
34424         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34425         Added in cygwin 1.7.2.
34426         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34427         Likewise.
34428         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34429         Likewise.
34430         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34431         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34432         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34433         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34434         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34435         Mention nproc module.
34436         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34437         bug in cygwin 1.7.5 addition.
34438         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34439         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34440         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34441         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34442         1.7.5.
34443         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34444         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34445         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34446         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34447         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34448         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34449         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34450         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34451         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34452         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34453         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34454         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34455         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34456         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34457         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34458         Likewise.
34459         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34460         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34461         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34462         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34463         Likewise.
34464         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34465         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34466         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34467         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34468         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34469         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34470         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34471         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34472         Likewise.
34473         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34474         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34475         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34476         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34477         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34478         Likewise.
34479         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34480         Likewise.
34481         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34482         Likewise.
34483         * doc/glibc-functions/xdrrec_endofrecord.texi
34484         (xdrrec_endofrecord): Likewise.
34485         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34486         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34487         Likewise.
34488         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34489         Likewise.
34490
34491 2010-05-04  Jim Meyering  <meyering@redhat.com>
34492
34493         gendocs.sh: make its "-s FILE" option more useful
34494         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34495         $PACKAGE to reflect the probably-different basename of "FILE".
34496
34497 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34498
34499         bootstrap: don't ignore download_po_files failure
34500         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34501         failure.
34502
34503 2010-05-03  Jim Meyering  <meyering@redhat.com>
34504
34505         maint.mk: allow to pass options to gendocs.sh
34506         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34507         (gendocs_options_): New overridable variable.
34508
34509         gnu-web-doc-update: don't ignore configure or build failure
34510         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34511
34512         announce-gen: backslash-escape '@'s in --help output
34513         * build-aux/announce-gen: Fix syntax errors.
34514
34515         maint.mk, announce-gen: allow project-specific announcement mail headers
34516         * top/maint.mk (translation_project_): Define default.
34517         (announcement_Cc_, announcement_mail_headers_): Likewise.
34518         (announcement): Invoke announce-gen with new --mail-headers option.
34519         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34520
34521         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34522         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34523         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34524         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34525         line in the "err2" output file when running "make check" in verbose
34526         mode (i.e., with set -x enabled).
34527
34528 2010-05-03  Bruno Haible  <bruno@clisp.org>
34529
34530         wctob: Fix for weird platforms.
34531         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34532         argument value.
34533
34534 2010-05-03  Jim Meyering  <meyering@redhat.com>
34535
34536         maint.mk: prohibit unwarranted use of <strings.h>
34537         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34538         strings.h in a file that does not also use strcasecmp, strncasecmp,
34539         ffs or ffsll.
34540
34541         maint.mk: remove obsolete comments
34542         * top/maint.mk: Remove stale, commented-out rules.
34543
34544 2010-05-02  Bruno Haible  <bruno@clisp.org>
34545
34546         wcwidth: Declare also when it's aliased.
34547         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34548         macro.
34549
34550 2010-05-02  Bruno Haible  <bruno@clisp.org>
34551
34552         Fix regression from 2010-04-25.
34553         * gnulib-tool (func_modules_transitive_closure): Check the status of
34554         all modules, not only of the tests that are of the form foo-tests where
34555         foo is a module.
34556
34557 2010-05-02  Bruno Haible  <bruno@clisp.org>
34558
34559         wctob: Work around nasty Cygwin 1.7.2 bug.
34560         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34561         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34562
34563 2010-05-01  Bruno Haible  <bruno@clisp.org>
34564
34565         fpurge: Sharper test.
34566         * tests/test-fpurge.c (main): Add one more ftell check.
34567         * modules/fpurge-tests (Depends-on): Add ftell.
34568         Suggested by Eric Blake.
34569
34570 2010-05-01  Bruno Haible  <bruno@clisp.org>
34571
34572         ftello: Another test.
34573         * tests/test-ftello3.c: New file.
34574         * modules/ftello-tests (Files): Add it.
34575         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34576         MOSTLYCLEANFILES.
34577
34578         ftell: Another test.
34579         * tests/test-ftell3.c: New file.
34580         * modules/ftell-tests (Files): Add it.
34581         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34582         MOSTLYCLEANFILES.
34583
34584 2010-05-01  Bruno Haible  <bruno@clisp.org>
34585
34586         ftell, ftello: Work around Solaris bug.
34587         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34588         * lib/ftello.c: Include stdio-impl.h.
34589         (ftello): On Solaris, when _IOWRT is set, compute the result without
34590         looking at _IOREAD.
34591         * modules/ftello (Files): Add lib/stdio-impl.h.
34592         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34593         * doc/posix-functions/ftello.texi: Likewise.
34594         Reported by Eric Blake.
34595
34596 2010-05-01  Bruno Haible  <bruno@clisp.org>
34597
34598         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34599         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34600         the _IOWRT flag is also set.
34601
34602 2010-05-01  Bruno Haible  <bruno@clisp.org>
34603
34604         Fix doc about a HP-UX stdio bug.
34605         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34606         * doc/posix-functions/ftello.texi: Likewise.
34607
34608 2010-05-01  Bruno Haible  <bruno@clisp.org>
34609
34610         lseek test: Fix failure on Solaris.
34611         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34612         output.
34613
34614 2010-04-30  Jim Meyering  <meyering@redhat.com>
34615
34616         bootstrap: don't ignore failure to generate po*/Makevars
34617         * build-aux/bootstrap (with_gettext): Don't ignore failure
34618         to create po/Makevars or runtime-po/Makevars.
34619
34620 2010-04-29  Eric Blake  <eblake@redhat.com>
34621
34622         headers: relax license to LGPLv2+
34623         * modules/fcntl-h (License): Relax license.
34624         * modules/getopt-posix (License): Likewise.
34625         * modules/locale (License): Likewise.
34626         * modules/math (License): Likewise.
34627         * modules/pty (License): Likewise.
34628         * modules/sched (License): Likewise.
34629         * modules/search (License): Likewise.
34630         * modules/spawn (License): Likewise.
34631         * modules/stdarg (License): Likewise.
34632         * modules/sysexits (License): Likewise.
34633
34634 2010-04-29  Jim Meyering  <meyering@redhat.com>
34635
34636         inttypes: relax license to LGPLv2+
34637         * modules/inttypes (License): Relax license.
34638
34639 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34640
34641         * top/maint.mk (indent): Run twice to produce idempotent results.
34642
34643 2010-04-28  Bruno Haible  <bruno@clisp.org>
34644
34645         getdate: Generate getdate.c in the source directory.
34646         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34647         MOSTLYCLEANFILES.
34648         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34649
34650 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34651
34652         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34653         is not declared as a const *; avoid warnings in that case.
34654
34655 2010-04-28  Eric Blake  <eblake@redhat.com>
34656
34657         canonicalize-lgpl: avoid compiler warning
34658         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34659         declaration' / 'extraneous semicolon' warning with some compilers.
34660         Reported by Andreas Gruenbacher.
34661
34662 2010-04-28  Jim Meyering  <meyering@redhat.com>
34663
34664         init.sh: ensure a more reliable exit status when exiting via trap
34665         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34666         Inspired by patches from Dmitry V. Levin.
34667         Also trap on signal 3 (SIGQUIT).
34668
34669 2010-04-27  Bruno Haible  <bruno@clisp.org>
34670
34671         Update doc about utimes().
34672         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34673         'utimens' module.
34674         Reported by Andreas Gruenbacher <agruen@suse.de>.
34675
34676 2010-04-27  Eric Blake  <eblake@redhat.com>
34677
34678         full-read, full-write: relax license
34679         * modules/full-read (License): Drop to LGPLv2+.
34680         * modules/full-write (License): Likewise.
34681         * modules/safe-read (License): Likewise.
34682         * modules/safe-write (License): Likewise.
34683
34684         pthread: mention library for linking
34685         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34686
34687 2010-04-27  Jim Meyering  <meyering@redhat.com>
34688
34689         maint.mk: fix a bug introduced in last change
34690         * top/maint.mk (gl_assured_headers_): Now that all names are on
34691         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34692         is not anchored to end of word, it should be adequate.
34693
34694         maint.mk: avoid side-effect in latest syntax-check
34695         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34696         to run commands via $(shell...), and hence to incur cost only when
34697         the new rule is actually run.
34698
34699         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34700         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34701         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34702         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34703         (gl_assured_headers_, az_, AZ_): Define.
34704         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34705
34706 2010-04-26  Jim Meyering  <jim@meyering.net>
34707             Bruno Haible  <bruno@clisp.org>
34708
34709         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34710         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34711         Prompted by an exchange with Gilles Espinasse.
34712
34713 2010-04-26  Jim Meyering  <meyering@redhat.com>
34714
34715         git-version-gen: aesthetic tweak
34716         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34717         so that the command remains on a single line.
34718
34719 2010-04-26  Eric Blake  <eblake@redhat.com>
34720
34721         git-version-gen: allow use on EBCDIC hosts
34722         * build-aux/git-version-gen (dirty): Use literal rather than tying
34723         ourselves to ascii.
34724         Reported by Steve Goetze.
34725
34726 2010-04-25  Bruno Haible  <bruno@clisp.org>
34727
34728         netdb: Add support for GNULIB_POSIXCHECK.
34729         * lib/netdb.in.h: Include warn-on-use.h.
34730         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34731         functions are used when GNULIB_POSIXCHECK is defined and the
34732         getaddrinfo module is not in use.
34733         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34734         freeaddrinfo, gai_strerror, getnameinfo are declared.
34735         * modules/netdb (Depends-on): Add warn-on-use.
34736         (Makefile.am): Include warn-on-use.h in netdb.h.
34737
34738 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34739
34740         build: avoid "make check" failure without .git/ directory
34741         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34742         there is no .git/ directory.
34743
34744 2010-04-25  Bruno Haible  <bruno@clisp.org>
34745
34746         ptsname: Fix misuse of ttyname_r.
34747         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34748         of errno.
34749
34750 2010-04-25  Bruno Haible  <bruno@clisp.org>
34751
34752         ttyname_r: Make it work on Solaris 10.
34753         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34754         if the system function has the POSIX declaration. Test whether the
34755         function fails if the buffer is less than 128 bytes large.
34756         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34757         system's ttyname_r function. Provide a reasonably large buffer.
34758         * modules/ttyname_r (Depends-on): Add extensions.
34759         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34760
34761 2010-04-25  Bruno Haible  <bruno@clisp.org>
34762
34763         Use the 'extensions' module for some more functions on Solaris.
34764         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34765         module.
34766         * doc/posix-functions/ctime_r.texi: Likewise.
34767         * doc/posix-functions/getgrgid_r.texi: Likewise.
34768         * doc/posix-functions/getgrnam_r.texi: Likewise.
34769         * doc/posix-functions/getpwnam_r.texi: Likewise.
34770         * doc/posix-functions/getpwuid_r.texi: Likewise.
34771         * doc/posix-functions/readdir_r.texi: Likewise.
34772         * doc/posix-functions/sigwait.texi: Likewise.
34773         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34774         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34775
34776 2010-04-25  Bruno Haible  <bruno@clisp.org>
34777
34778         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34779         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34780         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34781         * lib/ttyname_r.c: Include <limits.h>.
34782         (ttyname_r): Define using the system's ttyname_r function, if it exists
34783         and not on Solaris.
34784         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34785         set.
34786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34787         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34788         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34789         Reported by Simon Josefsson.
34790
34791 2010-04-25  Bruno Haible  <bruno@clisp.org>
34792
34793         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34794         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34795         * doc/posix-functions/ctime_r.texi: Likewise.
34796         * doc/posix-functions/getgrgid_r.texi: Likewise.
34797         * doc/posix-functions/getgrnam_r.texi: Likewise.
34798         * doc/posix-functions/getlogin_r.texi: Likewise.
34799         * doc/posix-functions/getpwnam_r.texi: Likewise.
34800         * doc/posix-functions/getpwuid_r.texi: Likewise.
34801         * doc/posix-functions/readdir_r.texi: Likewise.
34802         * doc/posix-functions/sigwait.texi: Likewise.
34803         * doc/posix-functions/ttyname_r.texi: Likewise.
34804         Reported by Simon Josefsson.
34805
34806 2010-04-25  Bruno Haible  <bruno@clisp.org>
34807
34808         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34809         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34810         also to --create-testdir.
34811         (func_acceptable): Don't consider the status of *-tests modules here.
34812         (func_modules_transitive_closure): Consider it here, before including a
34813         test module.
34814         (func_import, func_create_testdir): Set inc_all_direct_tests,
34815         inc_all_indirect_tests.
34816         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34817         --create-testdir and --create-megatestdir.
34818
34819 2010-04-25  Bruno Haible  <bruno@clisp.org>
34820
34821         gnulib-tool: Add --without-*-tests options.
34822         * gnulib-tool (func_usage): Document the --without-*-tests options.
34823         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34824         excl_unportable_tests): New variables.
34825         Fail if they are specified with --import or --update.
34826         (func_acceptable): Respect the excl_*_tests variables.
34827         (func_import): Set the excl_*_tests variables to empty.
34828
34829 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34830             Bruno Haible  <bruno@clisp.org>
34831
34832         Work around a MacOS X 10.4 bug with openpty.
34833         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34834         * tests/test-openpty.c (main): Close the master side explicitly.
34835
34836 2010-04-25  Bruno Haible  <bruno@clisp.org>
34837
34838         strnlen: Fix a C++ test error on MacOS X and Solaris.
34839         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34840         the function is not declared.
34841         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34842         Simon Josefsson.
34843
34844 2010-04-24  Bruno Haible  <bruno@clisp.org>
34845
34846         Avoid a gcc warning.
34847         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34848         of correct type for %08lx directive.
34849         Reported by Eric Blake.
34850
34851 2010-04-24  Bruno Haible  <bruno@clisp.org>
34852
34853         vasnprintf: Correct errno value in case of out-of-memory.
34854         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34855         or sprintf. Use the errno value from SNPRINTF or sprintf.
34856         Reported by Ian Beckwith <ianb@erislabs.net>.
34857
34858 2010-04-24  Bruno Haible  <bruno@clisp.org>
34859
34860         ansi-c++-opt: Find correct compiler when cross-compiling.
34861         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34862         AC_CHECK_PROGS.
34863         Reported by Simon Josefsson.
34864
34865 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34866
34867         vc-list-files: Add support for subversion
34868         * build-aux/vc-list-files: Use "svn list" to generate the list of
34869         files controlled by subversion.
34870
34871 2010-04-23  Jim Meyering  <meyering@redhat.com>
34872
34873         vc-list-files tests: convert to use init.sh
34874         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34875         path_prepend_.
34876         Use Exit, not exit.
34877         Use skip_ rather than open coding it.
34878         Remove trap set-up and compare definitions.
34879         * tests/test-vc-list-files-git.sh: Likewise.
34880         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34881
34882 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34883
34884         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34885         backup files.
34886
34887 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34888
34889         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34890
34891 2010-04-20  Eric Blake  <eblake@redhat.com>
34892
34893         tests: be robust to ignored SIGPIPE
34894         * tests/test-select-in.sh: Consume all output.
34895         * tests/test-lseek.sh: Check correct exit status, while avoiding
34896         EPIPE.
34897
34898 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34899             Bruno Haible  <bruno@clisp.org>
34900
34901         visibility: Don't use -fvisibility if it leads to a warning.
34902         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34903         yes, don't pretend that visibility works if it leads to a warning.
34904         Reported by Mike Gran <spk121@yahoo.com>.
34905
34906 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34907
34908         * build-aux/bootstrap: Use "git -h" for testing for supported options
34909         instead of "git --help".  The short-form option only shows a summary,
34910         and doesn't layout the full man page.  Grep for the full option name
34911         in the summary, too.
34912
34913 2010-04-19  Bruno Haible  <bruno@clisp.org>
34914
34915         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34916         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34917         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34918         mention of RELOCATABLE_STRIP.
34919         Reported by Sylvain Beucler <beuc@beuc.net>.
34920
34921 2010-04-19  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/diffseq.h: Fix typo in comment.
34924         Reported by Eric Blake.
34925
34926 2010-04-19  Bruno Haible  <bruno@clisp.org>
34927
34928         ioctl: Move autoconf macro to a .m4 file.
34929         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34930         * modules/ioctl (Files): Add it.
34931         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34932         Reported by Ian Beckwith <ianb@erislabs.net>.
34933
34934 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34935             Bruno Haible  <bruno@clisp.org>
34936
34937         diffseq: Accommodate use-case with abstract arrays.
34938         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34939         is not defined.
34940         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34941         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34942
34943 2010-04-18  Bruno Haible  <bruno@clisp.org>
34944
34945         * doc/posix-headers/stdbool.texi: More precise wording.
34946
34947 2010-04-17  Jim Meyering  <meyering@redhat.com>
34948
34949         maint.mk: use gnu-style indentation in an embedded perl script
34950         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34951         Rename variable: s/two/last_two_bytes/
34952
34953 2010-04-16  Eric Blake  <eblake@redhat.com>
34954
34955         test-stdbool: skip test that fails with Solaris CC
34956         * tests/test-stdbool.c (f): Skip test that causes compilation
34957         error under buggy C++ compiler.
34958         * lib/stdbool.in.h: Document the limitation.
34959         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34960
34961         setenv: allow compilation with C++
34962         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34963         register keyword.
34964
34965         stdint: allow test to pass with C++
34966         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34967
34968         getopt: allow compilation with C++
34969         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34970         struct.
34971         * lib/getopt.c (_getopt_internal_r): Use correct type.
34972         Reported by Dagobert Michelson, via Joel E. Denny.
34973
34974 2010-04-16  Bruno Haible  <bruno@clisp.org>
34975
34976         Override netdb.h always.
34977         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34979         Reported by Ludovic Courtès <ludo@gnu.org>.
34980
34981 2010-04-15  Bruno Haible  <bruno@clisp.org>
34982
34983         openpty: Fix mistake from 2010-03-21.
34984         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34985         Reported by Simon Josefsson.
34986
34987 2010-04-15  Eric Blake  <eblake@redhat.com>
34988
34989         test-forkpty: fix expected signature
34990         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34991         Reported by Simon Josefsson.
34992
34993 2010-04-15  Jim Meyering  <meyering@redhat.com>
34994
34995         maint.mk: texinfo_suffix_re_: correct the default regexp
34996         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34997
34998         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34999         make it configurable via texinfo_suffix_re_.
35000
35001 2010-04-14  Eric Blake  <eblake@redhat.com>
35002
35003         strtok_r: relax license to LGPLv2+
35004         * modules/strtok_r (License): Relax license.
35005         Reported by Matthias Bolte.
35006
35007 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35008
35009         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35010         version 1.4.4 by default instead of requiring the libgcrypt
35011         version used during build.  This makes it possible to use the
35012         application with older but still binary compatible libgcrypt
35013         versions.
35014
35015 2010-04-13  Eric Blake  <eblake@redhat.com>
35016
35017         getopt-gnu: match recent glibc fixes and posix ruling
35018         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35019         '+' handling, when requesting extensions.
35020         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35021         'W;' handling.
35022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35023         * doc/posix-functions/getopt.texi (getopt): Document this.
35024         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35025         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35026         Likewise.
35027
35028         getopt: merge bug fixes from glibc
35029         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35030         diagnostics.  Honor '+:' correctly.  Reject ';'.
35031
35032         getopt-posix: detect MacOS bug
35033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35034         optind when missing a required argument.
35035         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35036         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35038         Likewise.
35039
35040         getopt-posix: avoid spurious failure on Solaris
35041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35042         an indicator that setting optind=1 is sufficient for reset.
35043
35044         getopt-posix: avoid spurious failure on FreeBSD
35045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35046         in POSIX mode, since the m4 test uses it.
35047
35048         gnulib-tool: silence warning on BSD sh
35049         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35050
35051 2010-04-13  Jim Meyering  <meyering@redhat.com>
35052
35053         doc: users.txt: GNU patch now uses gnulib
35054         * users.txt: Add patch.
35055
35056 2010-04-12  Jim Meyering  <meyering@redhat.com>
35057
35058         maint.mk: generate more concise timing data for syntax-check rules
35059         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35060         " done" from each line that reports a syntax-check test duration.
35061
35062 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35063
35064         git-version-gen: use "git update-index..." rather than "git status"
35065         * build-aux/git-version-gen: Use git update-index --refresh, not
35066         "git status".  With some versions of git, "git status" would fail
35067         to update the index and result in an unwarranted "-dirty" suffix.
35068
35069 2010-04-11  Jim Meyering  <meyering@redhat.com>
35070
35071         openat: correct formatting (no semantic change)
35072         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35073         Suggested by Bruno Haible.
35074
35075 2010-04-11  Bruno Haible  <bruno@clisp.org>
35076
35077         Stricter declaration checking in testdirs.
35078         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35079         If for_tests is true, augment AM_CPPFLAGS to define
35080         GNULIB_STRICT_CHECKING.
35081         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35082         GNULIB_STRICT_CHECKING is defined, verify that the function is
35083         declared.
35084
35085 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35086             Bruno Haible  <bruno@clisp.org>
35087
35088         libunistring: Improve configure output.
35089         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35090         Don't say "consider installing GNU libunistring" when checking again
35091         with libiconv.
35092
35093 2010-04-11  Bruno Haible  <bruno@clisp.org>
35094
35095         libunistring: Correct value of $LTLIBUNISTRING.
35096         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35097         correct the value of $LTLIBUNISTRING.
35098
35099 2010-04-11  Bruno Haible  <bruno@clisp.org>
35100
35101         havelib: Add static libraries to LIBS in the right order.
35102         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35103         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35104
35105 2010-04-11  Bruno Haible  <bruno@clisp.org>
35106
35107         libunistring: Detect libunistring also when it depends on libiconv.
35108         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35109         the second AC_LIB_HAVE_LINKFLAGS invocation.
35110
35111 2010-04-11  James Youngman  <jay@gnu.org>
35112
35113         close-stream: declare local scalars to be "const"
35114         * lib/close-stream.c (close_stream): Make boolean variables const
35115         to document the fact that we set but do not change them.
35116
35117 2010-04-11  Bruno Haible  <bruno@clisp.org>
35118
35119         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35120
35121 2010-04-11  Jim Meyering  <meyering@redhat.com>
35122
35123         maint.mk: don't include dist-check.mk
35124         * top/maint.mk: Remove bogus include directive.
35125
35126         maint.mk: improve empty-line-at-EOF check
35127         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35128         solution, rather than tail+Perl-based one.  The latter would read
35129         a few kilobytes from the end of each file, and did not handle empty
35130         files properly.
35131
35132         maint.mk: print the elapsed time for each syntax-check rule
35133         * top/maint.mk (sc_m_rules_): Save start time in a file.
35134         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35135         (local-check): Interpose the .z rules
35136
35137 2010-04-11  Jim Meyering  <meyering@redhat.com>
35138
35139         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35140         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35141         empty file with one that ends in an empty line.
35142
35143 2010-04-10  Bruno Haible  <bruno@clisp.org>
35144
35145         mkdir: Make it work on mingw64.
35146         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35147         * lib/mkdir.c: Update comment.
35148         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35149
35150 2010-04-10  Bruno Haible  <bruno@clisp.org>
35151
35152         Don't override improved macro from newer autoconf.
35153         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35154         autoconf >= 2.62.
35155         Reported by Joel E. Denny <jdenny@clemson.edu>.
35156
35157 2010-04-10  Jim Meyering  <meyering@redhat.com>
35158
35159         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35160         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35161
35162         maint.mk: correct a diagnostic
35163         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35164         in diagnostic; now use $prohibit.
35165
35166 2010-04-10  Bruno Haible  <address@hidden>
35167
35168         fchownat: Fix a C++ test error on Solaris 8.
35169         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35170         the function does not exist.
35171
35172 2010-04-10  Bruno Haible  <bruno@clisp.org>
35173
35174         vasnprintf: Add more tests.
35175         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35176         (test_function): Test converting an invalid wide string.
35177
35178         vasnprintf: Correct handling of unconvertible wide string arguments.
35179         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35180         VASNPRINTF.
35181         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35182         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35183         smaller than the expected maximum need for the directive. Set errno to
35184         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35185         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35187         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35188         * modules/vasnprintf (Files): Add m4/printf.m4.
35189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35190
35191 2010-04-10  Bruno Haible  <bruno@clisp.org>
35192
35193         vasnprintf: Fix crash in %ls directive.
35194         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35195         string is passed as argument to %ls, with no precision and no width.
35196         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35197
35198 2010-04-10  Bruno Haible  <bruno@clisp.org>
35199
35200         vasnprintf: Fix multiple test failures on mingw.
35201         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35202         _snprintf, or snwprintf, not _snwprintf.
35203
35204 2010-04-10  Bruno Haible  <bruno@clisp.org>
35205
35206         write: Fix a C++ test error on mingw.
35207         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35208
35209 2010-04-10  Bruno Haible  <bruno@clisp.org>
35210
35211         vasnprintf test: Reduce code duplication.
35212         * tests/test-vasnprintf.c (test_function): New function, extracted from
35213         test_vasnprintf.
35214         (test_vasnprintf, test_asnprintf): Invoke it.
35215
35216 2010-04-10  Bruno Haible  <bruno@clisp.org>
35217
35218         strnlen: Fix warning in C++ mode on MacOS X.
35219         * lib/string.in.h (strnlen): Use the modern idiom.
35220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35221         defining strnlen as a macro already in <config.h>.
35222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35223         REPLACE_STRNLEN.
35224         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35225         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35226
35227 2010-04-08  James Youngman  <jay@gnu.org>
35228
35229         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35230         the example.
35231
35232 2010-04-09  Jim Meyering  <meyering@redhat.com>
35233
35234         maint.mk: print better diagnostic when there is no $(_hv_file)
35235         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35236         announce that when $(_hv_file) (aka help-version) does not exist.
35237
35238         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35239         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35240         not try to interpret its random input bytes.  Jarno Rajahalme reported
35241         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35242         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35243         (mktempd_): Likewise, just in case.
35244
35245         ftruncate: add two years to projected module removal date: 2012
35246         * m4/ftruncate.m4: Adjust comments.
35247
35248         ftruncate: mark module as obsolete; even MinGW provides it, now
35249         * modules/ftruncate (Status): Obsolete.
35250         (Notice): Say that.
35251         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35252         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35253
35254 2010-04-08  Bruno Haible  <bruno@clisp.org>
35255
35256         Fix side effects from tests-related modules.
35257         * modules/dprintf-posix (Comment): New section.
35258         * modules/fprintf-posix (Comment): Likewise.
35259         * modules/obstack-printf-posix (Comment): Likewise.
35260         * modules/printf-posix (Comment): Likewise.
35261         * modules/snprintf-posix (Comment): Likewise.
35262         * modules/sprintf-posix (Comment): Likewise.
35263         * modules/vasnprintf-posix (Comment): Likewise.
35264         * modules/vasprintf-posix (Comment): Likewise.
35265         * modules/vdprintf-posix (Comment): Likewise.
35266         * modules/vfprintf-posix (Comment): Likewise.
35267         * modules/vprintf-posix (Comment): Likewise.
35268         * modules/vsnprintf-posix (Comment): Likewise.
35269         * modules/vsprintf-posix (Comment): Likewise.
35270         * modules/xprintf-posix (Comment): Likewise.
35271         * modules/xvasprintf-posix (Comment): Likewise.
35272         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35273         * modules/floorf-tests (Depends-on): Likewise.
35274         * modules/round-tests (Depends-on): Likewise.
35275         * modules/roundf-tests (Depends-on): Likewise.
35276         * modules/trunc-tests (Depends-on): Likewise.
35277         * modules/truncf-tests (Depends-on): Likewise.
35278         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35279         'fprintf-posix' module is not present.
35280         * tests/test-floorf2.c (check): Likewise.
35281         * tests/test-trunc2.c (check): Likewise.
35282         * tests/test-truncf2.c (check): Likewise.
35283         * tests/test-round2.c (equal): Likewise.
35284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35285
35286 2010-04-07  Karl Berry  <karl@gnu.org>
35287
35288         * config/srclist.txt,
35289         * config/srclistvars.sh,
35290         * config/srclist-update: doc fixes.
35291
35292 2010-04-07  Jim Meyering  <meyering@redhat.com>
35293
35294         maint.mk: add a PATH crosschecking syntax-check rule
35295         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35296         Useful if you use a test like the one in help-version (coreutils,
35297         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35298         printed by prog --version.
35299
35300 2010-04-06  Bruno Haible  <bruno@clisp.org>
35301
35302         Fix link error on mingw.
35303         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35304         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35305
35306 2010-04-06  Bruno Haible  <bruno@clisp.org>
35307
35308         Assume rmdir exists.
35309         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35310
35311 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35312
35313         doc: update users.txt
35314         * users.txt: Add gcal.
35315
35316 2010-04-06  Jim Meyering  <meyering@redhat.com>
35317
35318         init.sh: simply unset TMPDIR rather than risking env -i
35319         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35320         although it probably works fine on all Unix-based systems, some
35321         systems (Cygwin?) cannot tolerate a totally cleared environment.
35322         Suggestion from Eric Blake.
35323
35324 2010-04-06  Jim Meyering  <meyering@redhat.com>
35325
35326         init.sh: portability fix: use env's POSIX-specified -i option not -u
35327         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35328         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35329
35330 2010-04-05  Bruno Haible  <bruno@clisp.org>
35331
35332         btowc: Work around Cygwin 1.7.2 bug.
35333         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35334         does not map NUL to 0.
35335         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35336
35337 2010-04-05  Bruno Haible  <bruno@clisp.org>
35338
35339         Make the multithread modules work on Cygwin 1.7.2.
35340         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35341         imported symbols can be declared weak, so that it returns "no" on
35342         Cygwin 1.7.2.
35343
35344 2010-04-05  Bruno Haible  <bruno@clisp.org>
35345
35346         Use the module 'strncat'.
35347         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35348
35349         Tests for module 'strncat'.
35350         * modules/strncat-tests: New file.
35351         * tests/test-strncat.c: New file.
35352
35353         New module 'strncat'.
35354         * lib/string.in.h (strncat): New declaration.
35355         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35356         * m4/strncat.m4: New file, based on m4/memchr.m4.
35357         * modules/strncat: New file.
35358         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35359         is declared.
35360         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35361         REPLACE_STRNCAT.
35362         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35363         REPLACE_STRNCAT.
35364         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35365         module.
35366         * tests/test-string-c++.cc: Check signature of strncat.
35367
35368 2010-04-05  Jim Meyering  <meyering@redhat.com>
35369
35370         xstrtoumax-tests: convert to use init.sh
35371         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35372         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35373         Use Exit, not exit.
35374         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35375
35376         xstrtoimax-tests: convert to use init.sh
35377         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35378         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35379         Use Exit, not exit.
35380         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35381
35382 2010-04-05  Bruno Haible  <bruno@clisp.org>
35383
35384         sys_socket: Avoid #define replacements in C++ mode.
35385         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35386         warning to the function if possible, rather than #defining the symbol
35387         to a dysfunctional alias.
35388
35389 2010-04-05  Bruno Haible  <bruno@clisp.org>
35390
35391         fseeko: Fix C++ test error on mingw.
35392         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35393         gl_FUNC_FSEEKO.
35394         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35395         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35396         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35397         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35398
35399 2010-04-05  Bruno Haible  <bruno@clisp.org>
35400
35401         duplocale: Improve test output.
35402         * tests/test-duplocale.c (main): Print reason for skipped test.
35403
35404 2010-04-05  Bruno Haible  <bruno@clisp.org>
35405
35406         Assume rmdir exists.
35407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35408         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35409
35410 2010-04-05  Bruno Haible  <bruno@clisp.org>
35411
35412         Fix link error on Solaris 8 with cc.
35413         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35414
35415 2010-04-05  Bruno Haible  <bruno@clisp.org>
35416
35417         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35418         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35419
35420 2010-04-05  Bruno Haible  <bruno@clisp.org>
35421
35422         vasprintf: Update documentation.
35423         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35424
35425 2010-04-05  Bruno Haible  <bruno@clisp.org>
35426
35427         ptsname: Improve test.
35428         * tests/test-ptsname.c (main): Also try the various master names of BSD
35429         systems.
35430
35431 2010-04-05  Bruno Haible  <bruno@clisp.org>
35432
35433         memchr: Avoid a possible C++ test error.
35434         * lib/string.in.h (memchr): Provide declaration if function is missing.
35435         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35436         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35438         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35439
35440 2010-04-05  Bruno Haible  <bruno@clisp.org>
35441
35442         strtok_r: Improve idiom.
35443         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35444         AC_LIBOBJ is used.
35445
35446 2010-04-05  Bruno Haible  <bruno@clisp.org>
35447
35448         strdup: Improve idiom.
35449         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35450         AC_LIBOBJ is used.
35451         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35452         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35453         when AC_LIBOBJ is used.
35454
35455 2010-04-05  Bruno Haible  <bruno@clisp.org>
35456
35457         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35458         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35459         don't set REPLACE_MBSINIT to 1.
35460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35461         don't set REPLACE_MBRTOWC to 1.
35462         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35463         exist, don't set REPLACE_MBSRTOWCS to 1.
35464         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35465         exist, don't set REPLACE_MBSNRTOWCS to 1.
35466         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35467         don't set REPLACE_WCRTOMB to 1.
35468         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35469         exist, don't set REPLACE_WCSRTOMBS to 1.
35470         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35471         exist, don't set REPLACE_WCSNRTOMBS to 1.
35472
35473 2010-04-05  Bruno Haible  <bruno@clisp.org>
35474
35475         ldexpl: Improve idiom.
35476         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35477         make sure to set HAVE_DECL_LDEXPL to 0.
35478
35479 2010-04-05  Jim Meyering  <meyering@redhat.com>
35480
35481         xstrtol-tests: convert to use init.sh
35482         * modules/xstrtol-tests (Files): Add tests/init.sh.
35483         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35484         Use Exit, not exit.
35485         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35486
35487         atexit-tests: convert to use init.sh
35488         * modules/atexit-tests (Files): Add tests/init.sh.
35489         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35490         Use Exit, not exit.
35491         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35492
35493         init.sh: fix typo
35494         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35495
35496         init.sh: make it easier for a test script to write to the tty, ...
35497         when using automake's parallel-tests mode.
35498         * tests/init.sh (stderr_fileno_): Define overridable variable.
35499         (warn_): New function, to use it.
35500         (fail_, skip_, framework_failure_): Use warn_.
35501
35502 2010-04-04  Bruno Haible  <bruno@clisp.org>
35503
35504         btowc: Avoid warning.
35505         * lib/btowc.c: Include <stdlib.h>.
35506         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35507
35508 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35509             Bruno Haible  <bruno@clisp.org>
35510
35511         wchar: Port to NetBSD 1.5.
35512         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35513         * lib/wctype.in.h (WEOF): Likewise.
35514
35515 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35516             Bruno Haible  <bruno@clisp.org>
35517
35518         Port extended stdio to NetBSD 1.5.
35519         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35520         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35521         older.
35522
35523 2010-04-04  Bruno Haible  <bruno@clisp.org>
35524
35525         string: Remove unused substitution.
35526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35527         HAVE_DECL_STRERROR.
35528         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35529
35530 2010-04-04  Bruno Haible  <bruno@clisp.org>
35531
35532         strtod: Avoid a possible C++ test error.
35533         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35534         set REPLACE_STRTOD.
35535
35536 2010-04-04  Bruno Haible  <bruno@clisp.org>
35537
35538         strerror: Update documentation.
35539         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35540
35541 2010-04-04  Bruno Haible  <bruno@clisp.org>
35542
35543         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35544         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35545         _GL_CXXALIAS_SYS_CAST.
35546
35547 2010-04-04  Bruno Haible  <bruno@clisp.org>
35548
35549         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35550         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35551         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35552         REPLACE_FREXPL to 1.
35553         * doc/posix-functions/frexpl.texi: Update documentation.
35554
35555 2010-04-04  Bruno Haible  <bruno@clisp.org>
35556
35557         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35558         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35559
35560 2010-04-04  Bruno Haible  <bruno@clisp.org>
35561
35562         Implement nanosleep for native Windows.
35563         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35564
35565 2010-04-04  Bruno Haible  <bruno@clisp.org>
35566
35567         math: Fix some C++ test errors on Solaris 8.
35568         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35569
35570 2010-04-04  Bruno Haible  <bruno@clisp.org>
35571
35572         math: Fix some C++ test errors on Cygwin.
35573         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35574         truncl): Provide declaration if the system does not have it.
35575         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35576         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35577         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35578         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35579         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35580         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35581         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35582         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35583         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35584         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35585         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35586         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35587         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35588         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35589         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35590         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35592         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35593         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35594         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35595         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35596         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35597
35598 2010-04-04  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35601         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35602         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35603         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35604         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35605         * m4/isinf.m4 (gl_ISINF): Likewise.
35606         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35607
35608 2010-04-04  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35611         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35612
35613 2010-04-04  Bruno Haible  <bruno@clisp.org>
35614
35615         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35616         * modules/tmpfile (configure.ac): Update.
35617
35618         tmpfile: Fix C++ test error on mingw.
35619         * lib/stdio.in.h (tmpfile): New declaration.
35620         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35621         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35622         * modules/tmpfile (Depends-on): Add stdio.
35623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35624         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35625         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35626         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35627         REPLACE_TMPFILE.
35628         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35629
35630 2010-04-04  Bruno Haible  <bruno@clisp.org>
35631
35632         ioctl: Fix C++ test error on mingw.
35633         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35634         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35635         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35636
35637 2010-04-03  Bruno Haible  <bruno@clisp.org>
35638
35639         wcwidth: Fix C++ test error on mingw.
35640         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35642         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35643
35644 2010-04-03  Bruno Haible  <bruno@clisp.org>
35645
35646         nanosleep: Fix C++ test error on mingw.
35647         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35648         * lib/time.in.h (nanosleep): Use modern idiom.
35649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35650         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35651         REPLACE_NANOSLEEP to 1.
35652         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35653         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35654
35655 2010-04-03  Bruno Haible  <bruno@clisp.org>
35656
35657         strptime: Fix C++ test error on mingw.
35658         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35659         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35660         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35661         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35663         not REPLACE_STRPTIME.
35664         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35665         REPLACE_STRPTIME.
35666
35667 2010-04-03  Bruno Haible  <bruno@clisp.org>
35668
35669         timegm: Fix C++ test error on mingw.
35670         * lib/time.in.h (timegm): Use modern idiom.
35671         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35672         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35673         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35674         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35675
35676 2010-04-03  Bruno Haible  <bruno@clisp.org>
35677
35678         timegm: Assume declaration if function exists.
35679         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35680         if it exists. Don't clobber ac_cv_func_timegm.
35681
35682 2010-04-03  Bruno Haible  <bruno@clisp.org>
35683
35684         time_r: Fix C++ test error on mingw.
35685         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35686         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35687         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35688         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35689         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35690
35691 2010-04-03  Bruno Haible  <bruno@clisp.org>
35692
35693         time_r: Minor updates.
35694         * modules/time_r (Description): Mention the provided functions.
35695         * lib/time_r.c: Don't include <string.h>.
35696         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35697         * doc/posix-functions/localtime_r.texi: Likewise.
35698
35699 2010-04-03  Bruno Haible  <bruno@clisp.org>
35700
35701         time: Fix regression introduced on 2010-03-08.
35702         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35703         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35704
35705 2010-04-03  Jim Meyering  <meyering@redhat.com>
35706
35707         maint.mk: don't silently disable project-specific syntax-check rules
35708         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35709         that they need to convert their project-specific syntax-check rules
35710         to use the new _sc_search_regexp.
35711
35712 2010-04-03  Bruno Haible  <bruno@clisp.org>
35713
35714         fchdir: Fix regression introduced on 2010-03-08.
35715         * lib/unistd.in.h (fchdir): Fix declaration.
35716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35718         REPLACE_FCHDIR.
35719         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35720         REPLACE_FCHDIR.
35721
35722 2010-04-03  Bruno Haible  <bruno@clisp.org>
35723
35724         getpagesize: Fix C++ test error on mingw.
35725         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35726         system does not declare the function.
35727         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35728         declared.
35729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35730         HAVE_DECL_GETPAGESIZE.
35731         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35732
35733 2010-04-03  Bruno Haible  <bruno@clisp.org>
35734
35735         stdio: Make C++ tests work on mingw.
35736         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35737         does not declare the function.
35738
35739 2010-04-03  Bruno Haible  <bruno@clisp.org>
35740
35741         ftello: Fix C++ test error on mingw.
35742         * lib/stdio.in.h (ftello): Use modern idiom.
35743         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35744         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35745         is missing and that it needs to be replaced.
35746         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35748         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35749
35750 2010-04-03  Bruno Haible  <bruno@clisp.org>
35751
35752         fseeko: Fix C++ test error on mingw.
35753         * lib/stdio.in.h (fseeko): Use modern idiom.
35754         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35755         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35756         is missing and that it needs to be replaced.
35757         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35759         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35760
35761 2010-04-03  Bruno Haible  <bruno@clisp.org>
35762
35763         mkstemp: Fix C++ test error on mingw.
35764         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35766         function is missing and that it needs to be replaced.
35767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35768         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35769
35770 2010-04-03  Bruno Haible  <bruno@clisp.org>
35771
35772         stpncpy: Fix C++ test error on mingw.
35773         * lib/string.in.h (stpncpy): Use modern idiom.
35774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35775         function is missing and that it needs to be replaced.
35776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35777         REPLACE_STPNCPY.
35778         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35779
35780 2010-04-03  Bruno Haible  <bruno@clisp.org>
35781
35782         sys_stat: Fix C++ test error on mingw.
35783         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35784         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35785
35786 2010-04-03  Bruno Haible  <bruno@clisp.org>
35787
35788         pty: Update doc.
35789         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35790
35791 2010-04-03  Bruno Haible  <bruno@clisp.org>
35792
35793         unistd: Fix C++ test error on mingw.
35794         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35795
35796 2010-04-03  Bruno Haible  <bruno@clisp.org>
35797
35798         Update doc regarding mingw.
35799         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35800         * doc/glibc-functions/login_tty.texi: Likewise.
35801         * doc/glibc-functions/forkpty.texi: Likewise.
35802
35803 2010-04-03  Bruno Haible  <bruno@clisp.org>
35804
35805         stdlib: Avoid compilation failure of c-strtold on mingw.
35806         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35807
35808 2010-04-03  Bruno Haible  <bruno@clisp.org>
35809
35810         locale: Make C++ tests work on Cygwin and mingw.
35811         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35812         cannot provide the function.
35813         Reported by Simon Josefsson.
35814
35815 2010-04-03  Bruno Haible  <bruno@clisp.org>
35816
35817         localename: Port to MacOS X 10.6.
35818         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35819         memory layout of the locales in MacOS X 10.6 as well.
35820         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35821
35822 2010-04-02  Bruno Haible  <bruno@clisp.org>
35823
35824         gnulib-tool: Ensure that long-running tests are executed last.
35825         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35826         running tests after the one for the other tests.
35827
35828 2010-04-02  Bruno Haible  <bruno@clisp.org>
35829
35830         gnulib-tool: Ensure the tests in the main directory are executed first.
35831         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35832         start with the current directory.
35833
35834 2010-04-02  Bruno Haible  <bruno@clisp.org>
35835
35836         Tests for module 'havelib', moved here from GNU gettext.
35837         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35838         modifications.
35839         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35840         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35841         with modifications.
35842         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35843         modifications.
35844         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35845         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35846         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35847         with modifications.
35848         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35849         with modifications.
35850         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35851         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35852         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35853         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35854         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35855         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35856         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35857         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35858         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35859         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35860         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35861         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35862         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35863         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35864         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35865         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35866         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35867         with modifications.
35868         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35869         with modifications.
35870         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35871         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35872         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35873         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35874         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35875         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35876         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35877         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35878         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35879         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35880         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35881         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35882         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35883         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35884         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35885         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35886         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35887         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35888         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35889         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35890         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35891         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35892         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35893         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35894         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35895         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35896         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35897         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35898         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35899         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35900         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35901         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35902         * tests/havelib/rpathx/rpathx.c: New file, from
35903         gettext/autoconf-lib-link.
35904         * tests/havelib/rpathx/Makefile.am: New file, from
35905         gettext/autoconf-lib-link.
35906         * tests/havelib/rpathx/configure.ac: New file, from
35907         gettext/autoconf-lib-link with modifications.
35908         * tests/havelib/rpathy/rpathy.c: New file, from
35909         gettext/autoconf-lib-link.
35910         * tests/havelib/rpathy/Makefile.am: New file, from
35911         gettext/autoconf-lib-link.
35912         * tests/havelib/rpathy/configure.ac: New file, from
35913         gettext/autoconf-lib-link with modifications.
35914         * tests/havelib/rpathz/rpathz.c: New file, from
35915         gettext/autoconf-lib-link.
35916         * tests/havelib/rpathz/Makefile.am: New file, from
35917         gettext/autoconf-lib-link.
35918         * tests/havelib/rpathz/configure.ac: New file, from
35919         gettext/autoconf-lib-link with modifications.
35920         * tests/havelib/rpathlx/usex.c: New file, from
35921         gettext/autoconf-lib-link.
35922         * tests/havelib/rpathlx/Makefile.am: New file, from
35923         gettext/autoconf-lib-link.
35924         * tests/havelib/rpathlx/configure.ac: New file, from
35925         gettext/autoconf-lib-link with modifications.
35926         * tests/havelib/rpathly/usey.c: New file, from
35927         gettext/autoconf-lib-link.
35928         * tests/havelib/rpathly/Makefile.am: New file, from
35929         gettext/autoconf-lib-link.
35930         * tests/havelib/rpathly/configure.ac: New file, from
35931         gettext/autoconf-lib-link with modifications.
35932         * tests/havelib/rpathlz/usez.c: New file, from
35933         gettext/autoconf-lib-link.
35934         * tests/havelib/rpathlz/Makefile.am: New file, from
35935         gettext/autoconf-lib-link.
35936         * tests/havelib/rpathlz/configure.ac: New file, from
35937         gettext/autoconf-lib-link with modifications.
35938         * tests/havelib/rpathlyx/usey.c: New file, from
35939         gettext/autoconf-lib-link.
35940         * tests/havelib/rpathlyx/Makefile.am: New file, from
35941         gettext/autoconf-lib-link.
35942         * tests/havelib/rpathlyx/configure.ac: New file, from
35943         gettext/autoconf-lib-link with modifications.
35944         * tests/havelib/rpathlzyx/usez.c: New file, from
35945         gettext/autoconf-lib-link.
35946         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35947         gettext/autoconf-lib-link.
35948         * tests/havelib/rpathlzyx/configure.ac: New file, from
35949         gettext/autoconf-lib-link with modifications.
35950         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35951         with modifications.
35952
35953 2010-04-02  Bruno Haible  <bruno@clisp.org>
35954
35955         gnulib-tool: Create distributed built sources also for the tests.
35956         * gnulib-tool (func_create_testdir): Also generate distributed built
35957         sources in the tests directory.
35958
35959 2010-04-02  Bruno Haible  <bruno@clisp.org>
35960
35961         gnulib-tool: Obey user's environment variables.
35962         * gnulib-tool (func_create_testdir): When creating built sources,
35963         respect the environment variables for autoconf, automake, etc. given by
35964         the user.
35965
35966 2010-04-02  Bruno Haible  <bruno@clisp.org>
35967
35968         gnulib-tool: Provide the value of --m4-base to modules.
35969         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35970         of gl_m4_base.
35971
35972 2010-04-02  Eric Blake  <eblake@redhat.com>
35973
35974         maint.mk: fix some fallout
35975         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35976         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35977
35978 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35979
35980         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35981         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35982         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35983         (sc_cast_of_x_alloc_return_value): Likewise.
35984         (sc_cast_of_alloca_return_value): Likewise.
35985         (sc_space_tab): Likewise.
35986         (sc_prohibit_atoi_atof): Likewise.
35987         (sc_prohibit_magic_number_exit): Likewise.
35988         (sc_error_exit_success): Likewise.
35989         (sc_file_system): Likewise.
35990         (sc_prohibit_have_config_h): Likewise.
35991         (sc_require_config_h): Likewise.
35992         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35993         (sc_obsolete_symbols): Likewise.
35994         (sc_changelog): Likewise.
35995         (sc_program_name): Likewise.
35996         (sc_the_the): Likewise.
35997         (sc_trailing_blank): Likewise.
35998         (sc_two_space_separator_in_usage): Likewise.
35999         (sc_useless_cpp_parens): Likewise.
36000         (sc_GPL_version): Likewise.
36001         (sc_GFDL_version): Likewise.
36002         (sc_texinfo_acronym): Likewise.
36003         (sc_prohibit_cvs_keyword): Likewise.
36004         (sc_prohibit_stat_st_blocks): Likewise.
36005         (sc_prohibit_S_IS_definition): Likewise.
36006         (sc_redundant_const): Likewise.
36007         (sc_makefile_TAB_only_indentation): Likewise.
36008         (sc_m4_quote_check): Likewise.
36009         (sc_makefile_path_separator_check): Likewise.
36010         (sc_copyright_check): Likewise.
36011         (sc_Wundef_boolean): Likewise.
36012         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36013
36014         maint.mk: match 0 or more whitespace-before-function-call '('
36015         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36016         that have zero or two-and-more spaces between the function name
36017         and the open parenthesis.
36018         (sc_error_message_warn_fatal): Likewise.
36019         (sc_error_message_uppercase): Likewise.
36020         (sc_error_message_period): Likewise.
36021
36022 2010-03-31  Eric Blake  <eblake@redhat.com>
36023
36024         maint.mk: check for [ as well as test
36025         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36026         Based on a libvirt report by Matthias Bolte.
36027
36028         gnumakefile: don't squelch _version output
36029         * top/GNUmakefile (_version): Create one-shot dependency rather
36030         than using $(shell) when version must be regenerated.
36031         (_autoreconf): Run verbosely, by default.
36032
36033         sys_time: avoid compiler warnings
36034         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36035         unconditional, fixing regression from 2010-03-29.
36036         Reported by Simon Josefsson.
36037
36038 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36039
36040         maint.mk: s/_header_without_use/_sc_header_without_use/
36041         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36042         (sc_prohibit_assert_without_use): Use the new name.
36043         (sc_prohibit_close_stream_without_use): Likewise.
36044         (sc_prohibit_getopt_without_use): Likewise.
36045         (sc_prohibit_quotearg_without_use): Likewise.
36046         (sc_prohibit_quote_without_use): Likewise.
36047         (sc_prohibit_long_options_without_use): Likewise.
36048         (sc_prohibit_inttostr_without_use): Likewise.
36049         (sc_prohibit_ignore_value_without_use): Likewise.
36050         (sc_prohibit_error_without_use): Likewise.
36051         (sc_prohibit_xalloc_without_use): Likewise.
36052         (sc_prohibit_hash_without_use): Likewise.
36053         (sc_prohibit_hash_pjw_without_use): Likewise.
36054         (sc_prohibit_safe_read_without_use): Likewise.
36055         (sc_prohibit_argmatch_without_use): Likewise.
36056         (sc_prohibit_canonicalize_without_use): Likewise.
36057         (sc_prohibit_root_dev_ino_without_use): Likewise.
36058         (sc_prohibit_openat_without_use): Likewise.
36059         (sc_prohibit_c_ctype_without_use): Likewise.
36060         (sc_prohibit_signal_without_use): Likewise.
36061         (sc_prohibit_intprops_without_use): Likewise.
36062
36063 2010-03-30  Eric Blake  <eblake@redhat.com>
36064
36065         maint: improve module indicators
36066         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36067         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36068         columns, and avoid extra macro expansion.
36069
36070         fdopendir: work around FreeBSD bug
36071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36072         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36073         * modules/dirent (Makefile.am): Substitute it.
36074         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36075         declaration.
36076         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36077         fix.
36078         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36079
36080 2010-03-29  Bruno Haible  <bruno@clisp.org>
36081
36082         Emit #pragma system_header after the inclusion guard, not before.
36083         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36084         guard that spans the entire file, not before. This enables an
36085         optimization in GCC's preprocessor.
36086         * lib/ctype.in.h: Likewise.
36087         * lib/dirent.in.h: Likewise.
36088         * lib/errno.in.h: Likewise.
36089         * lib/float.in.h: Likewise.
36090         * lib/getopt.in.h: Likewise.
36091         * lib/iconv.in.h: Likewise.
36092         * lib/langinfo.in.h: Likewise.
36093         * lib/locale.in.h: Likewise.
36094         * lib/math.in.h: Likewise.
36095         * lib/netdb.in.h: Likewise.
36096         * lib/netinet_in.in.h: Likewise.
36097         * lib/pty.in.h: Likewise.
36098         * lib/sched.in.h: Likewise.
36099         * lib/se-selinux.in.h: Likewise.
36100         * lib/search.in.h: Likewise.
36101         * lib/spawn.in.h: Likewise.
36102         * lib/stdarg.in.h: Likewise.
36103         * lib/stdint.in.h: Likewise.
36104         * lib/string.in.h: Likewise.
36105         * lib/strings.in.h: Likewise.
36106         * lib/sys_file.in.h: Likewise.
36107         * lib/sys_ioctl.in.h: Likewise.
36108         * lib/sys_time.in.h: Likewise.
36109         * lib/sys_times.in.h: Likewise.
36110         * lib/sys_utsname.in.h: Likewise.
36111         * lib/sys_wait.in.h: Likewise.
36112         * lib/sysexits.in.h: Likewise.
36113         * lib/wctype.in.h: Likewise.
36114
36115 2010-03-28  James Youngman  <jay@gnu.org>
36116
36117         save-cwd: don't leak a file descriptor when the caller execs.
36118         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36119         saved file descriptor.
36120         * modules/save-cwd (Depends-on): Depend on cloexec.
36121
36122 2010-03-29  Bruno Haible  <bruno@clisp.org>
36123
36124         Remove vestiges of fts-lgpl module.
36125         * lib/fts_.h: Assume GNULIB_FTS is 1.
36126         * lib/fts.c: Likewise.
36127         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36128
36129 2010-03-28  Bruno Haible  <bruno@clisp.org>
36130
36131         Fix definition of tests witness macro.
36132         * gnulib-tool (func_import): Fix definition of witness macro.
36133
36134 2010-03-28  Bruno Haible  <bruno@clisp.org>
36135
36136         Fix ioctl's protoype on glibc systems.
36137         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36138         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36139         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36140         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36141         signature. If not, arrange to replace the ioctl function.
36142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36143         REPLACE_IOCTL.
36144         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36145         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36146         Reported by Ludovic Courtès <ludo@gnu.org>.
36147
36148 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36149
36150         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36151         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36152         made it so grep -r --include=GLOB* ... did not work.
36153
36154 2010-03-26  Jim Meyering  <meyering@redhat.com>
36155             Eric Blake  <eblake@redhat.com>
36156
36157         maint.mk: prohibit use of test's -o and -a operators
36158         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36159
36160 2010-03-28  Bruno Haible  <bruno@clisp.org>
36161
36162         Remove unused GNULIB_XYZ macro definitions.
36163         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36164         invocation.
36165
36166 2010-03-28  Bruno Haible  <bruno@clisp.org>
36167
36168         Mark privileged tests modules.
36169         * modules/idpriv-drop-tests (Status): New section.
36170         * modules/idpriv-droptemp-tests (Status): New section.
36171
36172 2010-03-28  Bruno Haible  <bruno@clisp.org>
36173
36174         Split C++ tests into separate tests modules.
36175         * modules/dirent-c++-tests: New file, extracted from
36176         modules/dirent-tests.
36177         * modules/dirent-tests: Depend on it.
36178         * modules/fcntl-h-c++-tests: New file, extracted from
36179         modules/fcntl-h-tests.
36180         * modules/fcntl-h-tests: Depend on it.
36181         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36182         * modules/glob-tests: Depend on it.
36183         * modules/iconv-h-c++-tests: New file, extracted from
36184         modules/iconv-h-tests.
36185         * modules/iconv-h-tests: Depend on it.
36186         * modules/langinfo-c++-tests: New file, extracted from
36187         modules/langinfo-tests.
36188         * modules/langinfo-tests: Depend on it.
36189         * modules/locale-c++-tests: New file, extracted from
36190         modules/locale-tests.
36191         * modules/locale-tests: Depend on it.
36192         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36193         * modules/math-tests: Depend on it.
36194         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36195         * modules/pty-tests: Depend on it.
36196         * modules/search-c++-tests: New file, extracted from
36197         modules/search-tests.
36198         * modules/search-tests: Depend on it.
36199         * modules/signal-c++-tests: New file, extracted from
36200         modules/signal-tests.
36201         * modules/signal-tests: Depend on it.
36202         * modules/spawn-c++-tests: New file, extracted from
36203         modules/spawn-tests.
36204         * modules/spawn-tests: Depend on it.
36205         * modules/stdio-c++-tests: New file, extracted from
36206         modules/stdio-tests.
36207         * modules/stdio-tests: Depend on it.
36208         * modules/stdlib-c++-tests: New file, extracted from
36209         modules/stdlib-tests.
36210         * modules/stdlib-tests: Depend on it.
36211         * modules/string-c++-tests: New file, extracted from
36212         modules/string-tests.
36213         * modules/string-tests: Depend on it.
36214         * modules/sys_ioctl-c++-tests: New file, extracted from
36215         modules/sys_ioctl-tests.
36216         * modules/sys_ioctl-tests: Depend on it.
36217         * modules/sys_select-c++-tests: New file, extracted from
36218         modules/sys_select-tests.
36219         * modules/sys_select-tests: Depend on it.
36220         * modules/sys_socket-c++-tests: New file, extracted from
36221         modules/sys_socket-tests.
36222         * modules/sys_socket-tests: Depend on it.
36223         * modules/sys_stat-c++-tests: New file, extracted from
36224         modules/sys_stat-tests.
36225         * modules/sys_stat-tests: Depend on it.
36226         * modules/sys_time-c++-tests: New file, extracted from
36227         modules/sys_time-tests.
36228         * modules/sys_time-tests: Depend on it.
36229         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36230         * modules/time-tests: Depend on it.
36231         * modules/unistd-c++-tests: New file, extracted from
36232         modules/unistd-tests.
36233         * modules/unistd-tests: Depend on it.
36234         * modules/wchar-c++-tests: New file, extracted from
36235         modules/wchar-tests.
36236         * modules/wchar-tests: Depend on it.
36237         * modules/wctype-c++-tests: New file, extracted from
36238         modules/wctype-tests.
36239         * modules/wctype-tests: Depend on it.
36240         Reported by Simon Josefsson.
36241
36242 2010-03-28  Bruno Haible  <bruno@clisp.org>
36243
36244         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36245         * gnulib-tool (func_exists_module): New function, extracted from
36246         func_verify_module.
36247         (func_verify_module): Use it.
36248         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36249         'foo' only if 'foo' exists.
36250         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36251         module.
36252
36253 2010-03-28  Bruno Haible  <bruno@clisp.org>
36254
36255         gnulib-tool: Add support for special categories of tests.
36256         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36257         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36258         (func_usage): Document them.
36259         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36260         inc_unportable_tests, inc_all_tests): New variables.
36261         (func_acceptable): Consider these variables.
36262         (func_modules_transitive_closure): Make it work when the 'Status' field
36263         consists of multiple words.
36264         (func_import): Store and restore the values of inc_cxx_tests,
36265         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36266         inc_all_tests in gnulib-comp.m4.
36267         (func_create_testdir): Set inc_all_tests to true.
36268         * doc/gnulib.texi (Extra tests modules): New section.
36269         Suggested by Jim Meyering.
36270
36271 2010-03-28  Bruno Haible  <bruno@clisp.org>
36272
36273         ansi-c++-opt: Allow turning off the C++ build by default.
36274         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36275         gl_CXX_CHOICE_DEFAULT_NO is defined.
36276         Requested by Eric Blake.
36277
36278 2010-03-28  Bruno Haible  <bruno@clisp.org>
36279
36280         unistd: Avoid #define replacements in C++ mode.
36281         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36282         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36283         setsockopt, shutdown, select): In C++, attach a warning to the function
36284         if possible, rather than #defining the symbol to a dysfunctional alias.
36285         Reported by John W. Eaton <jwe@gnu.org>.
36286
36287 2010-03-28  Bruno Haible  <bruno@clisp.org>
36288
36289         Fix link errors on mingw.
36290         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36291         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36292         $(LIBSOCKET).
36293         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36294         $(LIBSOCKET).
36295
36296 2010-03-28  Bruno Haible  <bruno@clisp.org>
36297             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36298
36299         lib-ignore: Determine different options for different compilers.
36300         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36301         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36302         Add comments.
36303         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36304         * NEWS: Mention the change.
36305
36306 2010-03-27  Bruno Haible  <bruno@clisp.org>
36307
36308         Remove unused GNULIB_XYZ macro definitions.
36309         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36310         * modules/fseek (configure.ac): Likewise.
36311         * modules/ioctl (configure.ac): Likewise.
36312         * modules/open (configure.ac): Likewise.
36313         * modules/stdlib-safer (configure.ac): Likewise.
36314
36315 2010-03-27  Bruno Haible  <bruno@clisp.org>
36316
36317         Add a remark about certain modules.
36318         * modules/malloc (Comment): New section.
36319         * modules/realloc (Comment): Likewise.
36320         * modules/sigpipe (Comment): Likewise.
36321
36322 2010-03-27  Bruno Haible  <bruno@clisp.org>
36323
36324         Resolve conflict between the two kinds of module indicators.
36325         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36326         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36327         * modules/canonicalize (configure.ac): Invoke
36328         gl_MODULE_INDICATOR_FOR_TESTS.
36329         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36330         GNULIB_XYZ.
36331         * tests/test-dirent-c++.cc: Likewise.
36332         * tests/test-dirent-safer.c: Likewise.
36333         * tests/test-dup2.c: Likewise.
36334         * tests/test-fchdir.c: Likewise.
36335         * tests/test-fcntl-h-c++.cc: Likewise.
36336         * tests/test-getopt.c: Likewise.
36337         * tests/test-getopt.h: Likewise.
36338         * tests/test-langinfo-c++.cc: Likewise.
36339         * tests/test-locale-c++.cc: Likewise.
36340         * tests/test-math-c++.cc: Likewise.
36341         * tests/test-pty-c++.cc: Likewise.
36342         * tests/test-search-c++.cc: Likewise.
36343         * tests/test-signal-c++.cc: Likewise.
36344         * tests/test-spawn-c++.cc: Likewise.
36345         * tests/test-stdio-c++.cc: Likewise.
36346         * tests/test-stdlib-c++.cc: Likewise.
36347         * tests/test-string-c++.cc: Likewise.
36348         * tests/test-sys_ioctl-c++.cc: Likewise.
36349         * tests/test-sys_select-c++.cc: Likewise.
36350         * tests/test-sys_socket-c++.cc: Likewise.
36351         * tests/test-sys_stat-c++.cc: Likewise.
36352         * tests/test-sys_time-c++.cc: Likewise.
36353         * tests/test-time-c++.cc: Likewise.
36354         * tests/test-unistd-c++.cc: Likewise.
36355         * tests/test-wchar-c++.cc: Likewise.
36356         * tests/uninorm/test-u8-nfc.c: Likewise.
36357         * tests/uninorm/test-u8-nfd.c: Likewise.
36358         * tests/uninorm/test-u8-nfkc.c: Likewise.
36359         * tests/uninorm/test-u8-nfkd.c: Likewise.
36360         * tests/uninorm/test-u16-nfc.c: Likewise.
36361         * tests/uninorm/test-u16-nfd.c: Likewise.
36362         * tests/uninorm/test-u16-nfkc.c: Likewise.
36363         * tests/uninorm/test-u16-nfkd.c: Likewise.
36364         * tests/uninorm/test-u32-nfc.c: Likewise.
36365         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36366         * tests/uninorm/test-u32-nfd.c: Likewise.
36367         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36368         * tests/uninorm/test-u32-nfkc.c: Likewise.
36369         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36370         * tests/uninorm/test-u32-nfkd.c: Likewise.
36371         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36372         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36373
36374 2010-03-27  Bruno Haible  <bruno@clisp.org>
36375
36376         Distinguish two kinds of module indicators.
36377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36378         gl_MODULE_INDICATOR.
36379         (gl_MODULE_INDICATOR): New macro.
36380         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36381         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36382         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36383         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36384         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36385         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36386         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36387         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36388         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36389         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36390         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36391         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36394         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36395         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36396         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36397         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36398         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36399         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36400         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36401         * modules/cloexec (configure.ac): Likewise.
36402         * modules/getopt-gnu (configure.ac): Likewise.
36403         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36404         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36405         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36406         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36407
36408 2010-03-27  Bruno Haible  <bruno@clisp.org>
36409
36410         New module description field 'Comment'.
36411         * gnulib-tool: New option --extract-comment.
36412         (func_usage): Document it.
36413         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36414         (func_get_comment): New function.
36415         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36416
36417 2010-03-27  Bruno Haible  <bruno@clisp.org>
36418
36419         Addendum to 2010-02-07 commit.
36420         * gnulib-tool (func_usage): Document --extract-applicability option.
36421
36422 2010-03-27  Bruno Haible  <bruno@clisp.org>
36423
36424         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36425         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36426         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36427         rather than link errors.
36428
36429 2010-03-27  Bruno Haible  <bruno@clisp.org>
36430
36431         Avoid side effects from tests-related modules on the compilation of lib.
36432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36433         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36434         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36435         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36436         macro.
36437         (func_import): Define a witness macro. Assign it a value that depends
36438         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36439         tests-related modules.
36440         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36441         Reported by Jim Meyering.
36442
36443 2010-03-27  Bruno Haible  <bruno@clisp.org>
36444
36445         Factorize common .m4 code.
36446         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36447         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36448         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36449         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36450         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36451         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36452         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36453         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36454         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36455         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36456         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36457         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36458         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36459         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36460         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36461         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36462         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36463         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36465         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36466         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36467         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36468         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36469         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36470         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36471         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36472         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36473         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36474         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36475         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36476         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36477         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36478
36479 2010-03-27  Bruno Haible  <bruno@clisp.org>
36480
36481         Fix a compilation error on Cygwin with g++ >= 4.3.
36482         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36483         if it is undefined or if we alias it to chmod.
36484         (lstat): Don't warn about the use of this function if it is undefined
36485         or if we alias it to stat.
36486         Reported by Simon Josefsson.
36487
36488 2010-03-27  Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36491         * modules/getlogin (configure.ac): Update.
36492
36493         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36494         * modules/getlogin_r (configure.ac): Update.
36495
36496         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36498         * modules/inet_ntop (configure.ac): Update.
36499
36500         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36501         * modules/inet_pton (configure.ac): Update.
36502
36503         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36504         * modules/mbslen (configure.ac): Update.
36505
36506         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36507         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36508         * modules/forkpty (configure.ac): Update.
36509         * modules/openpty (configure.ac): Update.
36510
36511 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36512
36513         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36514         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36515
36516 2010-03-25  Eric Blake  <eblake@redhat.com>
36517
36518         maint: use pragma consistently across replacement headers
36519         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36520         * lib/dirent.in.h (system_header): Likewise.
36521         * lib/errno.in.h (system_header): Likewise.
36522         * lib/float.in.h (system_header): Likewise.
36523         * lib/getopt.in.h (system_header): Likewise.
36524         * lib/iconv.in.h (system_header): Likewise.
36525         * lib/inttypes.in.h (system_header): Likewise.
36526         * lib/langinfo.in.h (system_header): Likewise.
36527         * lib/locale.in.h (system_header): Likewise.
36528         * lib/math.in.h (system_header): Likewise.
36529         * lib/netdb.in.h (system_header): Likewise.
36530         * lib/netinet_in.in.h (system_header): Likewise.
36531         * lib/pty.in.h (system_header): Likewise.
36532         * lib/sched.in.h (system_header): Likewise.
36533         * lib/se-selinux.in.h (system_header): Likewise.
36534         * lib/search.in.h (system_header): Likewise.
36535         * lib/spawn.in.h (system_header): Likewise.
36536         * lib/stdarg.in.h (system_header): Likewise.
36537         * lib/stdint.in.h (system_header): Likewise.
36538         * lib/string.in.h (system_header): Likewise.
36539         * lib/strings.in.h (system_header): Likewise.
36540         * lib/sys_file.in.h (system_header): Likewise.
36541         * lib/sys_ioctl.in.h (system_header): Likewise.
36542         * lib/sys_socket.in.h (system_header): Likewise.
36543         * lib/sys_times.in.h (system_header): Likewise.
36544         * lib/sys_utsname.in.h (system_header): Likewise.
36545         * lib/sys_wait.in.h (system_header): Likewise.
36546         * lib/sysexits.in.h (system_header): Likewise.
36547         * lib/unistd.in.h (system_header): Likewise.
36548         * lib/wctype.in.h (system_header): Likewise.
36549
36550         arpa/inet: fix mingw compilation warning
36551         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36552         Reported by Matthew Bolte.
36553
36554 2010-03-25  Bruno Haible  <bruno@clisp.org>
36555
36556         Avoid collision between gnulib wrapper and libintl wrapper.
36557         * lib/printf.c (printf): Don't define if a printf wrapper is already
36558         defined in intl/printf.c.
36559         Reported by Michel Boaventura <michel@michelboaventura.com>.
36560
36561 2010-03-25  Bruno Haible  <bruno@clisp.org>
36562
36563         Use ANSI C.
36564         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36565
36566 2010-03-25  Bruno Haible  <bruno@clisp.org>
36567
36568         Minor formatting changes.
36569         * lib/acosl.c: Insert space before function argument list.
36570         * lib/argz.c: Likewise.
36571         * lib/asinl.c: Likewise.
36572         * lib/expl.c: Likewise.
36573         * lib/gen-uni-tables.c: Likewise.
36574         * lib/gettext.h: Likewise.
36575         * lib/glthread/lock.h: Likewise.
36576         * lib/tanl.c: Likewise.
36577         * lib/uniname/uniname.c: Likewise.
36578         * tests/test-idpriv-drop.c: Likewise.
36579         * tests/test-idpriv-droptemp.c: Likewise.
36580         * tests/test-lock.c: Likewise.
36581         * tests/test-tls.c: Likewise.
36582         * lib/argp-help.c: Insert space before function-like macro argument
36583         list.
36584         * lib/memcmp.c: Likewise.
36585         * tests/test-base64.c: Likewise.
36586         * lib/localename.c: Insert space before sizeof's argument list.
36587         * lib/safe-alloc.h: Likewise.
36588         * lib/file-set.h: Insert space before macro argument list.
36589         * tests/test-argp.c: Likewise.
36590         * lib/argp-namefrob.h: Insert space before function parameter list.
36591         * lib/getaddrinfo.c: Likewise.
36592         * lib/netdb.in.h: Likewise.
36593         * lib/parse-duration.h: Likewise.
36594         * lib/parse-duration.c: Likewise.
36595         * lib/poll.c: Likewise.
36596         * lib/select.c: Likewise.
36597         * lib/trim.h: Likewise.
36598         * tests/test-usleep.c: Likewise.
36599         * lib/ldexpl.c: Insert space before function parameter list and before
36600         function argument list.
36601         * lib/logl.c: Likewise.
36602         * lib/sqrtl.c: Likewise.
36603         * lib/trim.c: Likewise.
36604         * lib/cosl.c: Use GNU style indentation. Insert space before function
36605         argument list.
36606         * lib/sinl.c: Likewise.
36607         * lib/tsearch.c: Insert space after 'for'.
36608         Reported by Jim Meyering.
36609
36610 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36611
36612         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36613         config header before grepping, as it's not present before
36614         autoreconf/configure are run.  Reported by Simon Josefsson.
36615
36616 2010-03-23  Bruno Haible  <bruno@clisp.org>
36617
36618         pt_chown: Make it work with automake < 1.11.
36619         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36620         Reported by Simon Josefsson.
36621
36622 2010-03-23  Bruno Haible  <bruno@clisp.org>
36623
36624         pt_chown: Don't depend on GPLed modules.
36625         * lib/pt_chown.c: Don't include idpriv.h.
36626         (main): Don't drop privileges.
36627         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36628         Reported by Simon Josefsson.
36629
36630 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36631
36632         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36633         suggestions from karl@freefriends.org (Karl Berry).
36634
36635 2010-03-22  Eric Blake  <eblake@redhat.com>
36636
36637         gethostname: further tweaks
36638         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36639         are overriding gethostname.
36640         Suggested by Bruno Haible.
36641
36642 2010-03-21  Bruno Haible  <bruno@clisp.org>
36643
36644         Fix comments.
36645         * lib/forkpty.c (rpl_forkpty): Fix comment.
36646         * lib/openpty.c (rpl_openpty): Likewise.
36647         Reported by Eric Blake.
36648
36649 2010-03-22  Eric Blake  <eblake@redhat.com>
36650
36651         gethostname: fix build on mingw
36652         * lib/unistd.in.h (includes): Work around fact that mingw
36653         <winsock2.h> re-includes <unistd.h>, by avoiding any
36654         redeclarations if we are being included by <winsock2.h>.
36655         Reported by Matthias Bolte.
36656
36657 2010-03-21  Bruno Haible  <bruno@clisp.org>
36658
36659         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36660         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36661         modifications.
36662         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36663         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36664         provide the replacement.
36665         * modules/forkpty (Depends-on): Add openpty, login_tty.
36666         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36667         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36668         * doc/glibc-functions/forkpty.texi: More supported platforms.
36669         * config/srclist.txt: Add forkpty.c (commented).
36670
36671 2010-03-21  Bruno Haible  <bruno@clisp.org>
36672
36673         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36674         (Makefile.am): Verify that PTY_LIB is defined.
36675
36676         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36677
36678 2010-03-21  Bruno Haible  <bruno@clisp.org>
36679
36680         Tests for module 'login_tty'.
36681         * modules/login_tty-tests: New file.
36682         * tests/test-login_tty.c: New file.
36683
36684         New module 'login_tty'.
36685         * lib/login_tty.c: New file.
36686         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36687         * modules/login_tty: New file.
36688         * doc/glibc-functions/login_tty.texi: Mention the new module.
36689
36690 2010-03-21  Bruno Haible  <bruno@clisp.org>
36691
36692         login_tty: Documentation.
36693         * doc/glibc-functions/login_tty.texi: New file.
36694         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36695
36696 2010-03-21  Bruno Haible  <bruno@clisp.org>
36697
36698         pty: Consistent macro naming.
36699         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36700         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36701         * modules/pty (configure.ac): Update.
36702
36703 2010-03-21  Bruno Haible  <bruno@clisp.org>
36704
36705         Tests for openpty: Make stricter.
36706         * tests/test-openpty.c (main): Add test of canonical processing and
36707         erase.
36708         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36709
36710         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36711         * lib/openpty.c (openpty): New replacement function.
36712         * lib/pty.in.h: Include <termios.h>.
36713         (openpty): Update declaration. Add comments.
36714         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36715         is not declared, arrange to provide the replacement. Check for _getpty
36716         and posix_openpt.
36717         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36718         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36719         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36720         * modules/pty-tests (test_pty_c___LDADD): New variable.
36721         * doc/glibc-functions/openpty.texi: More supported platforms.
36722
36723 2010-03-21  Bruno Haible  <bruno@clisp.org>
36724
36725         setenv: Tweaks.
36726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36727         the test program.
36728         * doc/posix-functions/setenv.texi: Update platforms list.
36729
36730 2010-03-21  Bruno Haible  <bruno@clisp.org>
36731
36732         New module 'unlockpt'.
36733         * lib/unlockpt.c: New file, from glibc with modifications.
36734         * m4/unlockpt.m4: New file.
36735         * modules/unlockpt: New file.
36736         * lib/stdlib.in.h (unlockpt): New declaration.
36737         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36738         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36739         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36740         HAVE_UNLOCKPT.
36741         * doc/posix-functions/unlockpt.texi: Mention the new module.
36742         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36743         * config/srclist.txt: Add unlockpt.c (commented).
36744
36745 2010-03-21  Jim Meyering  <meyering@redhat.com>
36746
36747         maint.mk: prohibit inclusion of "intprops.h" without use
36748         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36749
36750 2010-03-21  Bruno Haible  <bruno@clisp.org>
36751
36752         New module 'grantpt'.
36753         * lib/grantpt.c: New file, from glibc with modifications.
36754         * m4/grantpt.m4: New file.
36755         * modules/grantpt: New file.
36756         * lib/stdlib.in.h (grantpt): New declaration.
36757         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36758         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36759         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36760         HAVE_GRANTPT.
36761         * doc/posix-functions/grantpt.texi: Mention the new module.
36762         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36763         * config/srclist.txt: Add grantpt.c (commented).
36764
36765 2010-03-21  Bruno Haible  <bruno@clisp.org>
36766
36767         New module 'pt_chown'.
36768         * lib/pt_chown.c: New file, from glibc with modifications.
36769         * lib/pty-private.h: New file, from glibc with modifications.
36770         * modules/pt_chown: New file.
36771         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36772
36773 2010-03-21  Bruno Haible  <bruno@clisp.org>
36774
36775         Tests for module 'ptsname'.
36776         * modules/ptsname-tests: New file.
36777         * tests/test-ptsname.c: New file.
36778
36779         New module 'ptsname'.
36780         * lib/ptsname.c: New file, from glibc with modifications.
36781         * m4/ptsname.m4: New file.
36782         * modules/ptsname: New file.
36783         * lib/stdlib.in.h (ptsname): New declaration.
36784         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36785         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36786         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36787         HAVE_PTSNAME.
36788         * doc/posix-functions/ptsname.texi: Mention the new module.
36789         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36790         * config/srclist.txt: Add ptsname.c (commented).
36791
36792 2010-03-21  Bruno Haible  <bruno@clisp.org>
36793
36794         Tests for module 'ttyname_r'.
36795         * modules/ttyname_r-tests: New file.
36796         * tests/test-ttyname_r.c: New file.
36797
36798         New module 'ttyname_r'.
36799         * lib/ttyname_r.c: New file.
36800         * m4/ttyname_r.m4: New file.
36801         * modules/ttyname_r: New file.
36802         * lib/unistd.in.h (ttyname_r): New declaration.
36803         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36804         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36805         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36806         HAVE_TTYNAME_R.
36807         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36808         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36809
36810 2010-03-20  Bruno Haible  <bruno@clisp.org>
36811
36812         signal: Undefine macro definitions in C++ mode.
36813         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36814         sigfillset): Undefine macro definitions from the system header in C++
36815         mode.
36816         Reported by John W. Eaton <jwe@gnu.org>.
36817
36818 2010-03-20  Bruno Haible  <bruno@clisp.org>
36819
36820         Ensure no #include statements inside extern "C" { ... }.
36821         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36822         contain #include statements.
36823         * lib/time.in.h: Likewise.
36824
36825 2010-03-20  Bruno Haible  <bruno@clisp.org>
36826
36827         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36828         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36829         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36830         Reported by John W. Eaton <jwe@gnu.org>.
36831
36832 2010-03-20  Bruno Haible  <bruno@clisp.org>
36833
36834         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36835         Reported by Jim Meyering.
36836
36837 2010-03-20  Bruno Haible  <bruno@clisp.org>
36838
36839         pipe: Set errno upon failure.
36840         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36841         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36842         errno value in error message.
36843
36844 2010-03-20  Bruno Haible  <bruno@clisp.org>
36845             Jim Meyering  <meyering@redhat.com>
36846
36847         lchown: Avoid "unused variable" warning.
36848         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36849
36850 2010-03-20  Bruno Haible  <bruno@clisp.org>
36851
36852         Work around unlink() bug on MacOS X 10.5.6.
36853         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36854         attempting to unlink a parent directory.
36855         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36856         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36857         activate for the replacement function.
36858         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36859
36860 2010-03-20  Bruno Haible  <bruno@clisp.org>
36861
36862         Fix link errors on Solaris 8.
36863         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36864         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36865
36866 2010-03-19  Jim Meyering  <meyering@redhat.com>
36867
36868         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36869         The _LIBC implementation of build_range_exp correctly honors the
36870         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36871         However, the non-_LIBC implementation would ignore that syntax-bit
36872         flag and return REG_ERANGE unconditionally.
36873         This change makes it honor that flag.
36874         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36875         Make two pointer parameters "const".
36876         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36877         (parse_bracket_exp): Update caller.
36878
36879         regex.m4: correct the reversed range endpoint ([b-a]) test
36880         * m4/regex.m4: When requiring that [b-a] evoke failure,
36881         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36882         test pass once again for x86-based systems.
36883
36884 2010-03-19  Bruno Haible  <bruno@clisp.org>
36885
36886         scandir: Fix link error on Solaris 8.
36887         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36888         macros.
36889
36890 2010-03-19  Bruno Haible  <bruno@clisp.org>
36891
36892         getusershell: Fix documentation.
36893         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36894         module.
36895         * doc/glibc-functions/setusershell.texi: Likewise.
36896
36897         getusershell: Provide declaration, missing on Solaris 9.
36898         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36899         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36900         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36901         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36903         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36904         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36905         HAVE_GETUSERSHELL.
36906         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36907
36908 2010-03-19  Bruno Haible  <bruno@clisp.org>
36909
36910         wctype: Provide iswblank function.
36911         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36912         exists and is fine.
36913         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36914         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36915         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36916         * doc/posix-functions/iswblank.texi: Update.
36917
36918 2010-03-19  Bruno Haible  <bruno@clisp.org>
36919
36920         Tests of module 'pty' in C++ mode.
36921         * modules/pty-tests: New file.
36922         * tests/test-pty-c++.cc: New file.
36923         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36924
36925 2010-03-19  Eric Blake  <eblake@redhat.com>
36926
36927         logb: fix documentation
36928         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36929         1.5 declaration bug.
36930
36931         forkpty, openpty: prefer glibc's const-safe prototype
36932         * lib/forkpty.c (rpl_forkpty): New file.
36933         * lib/openpty.c (rpl_openpty): Likewise.
36934         * modules/forkpty (Files): Distribute it.
36935         * modules/openpty (Files): Likewise.
36936         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36937         check...
36938         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36939         replacement for for non-const BSD signature.
36940         * modules/pty (Makefile.am): Substitute witnesses.
36941         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36942         * tests/test-forkpty.c: Update signature check.
36943         * tests/test-openpty.c: Likewise.
36944         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36945         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36946
36947         forkpty, openpty: split functions into new modules
36948         * modules/pty (Makefile.am): Substitute new witnesses.
36949         (Libraries): Move library detection...
36950         * modules/forkpty: ...into new module.
36951         * modules/openpty: Another new module.
36952         * modules/pty-tests: Rename and split...
36953         * modules/forkpty-tests: ...to this...
36954         * modules/openpty-tests: ...and this.
36955         * tests/test-pty.c: Rename and split...
36956         * tests/test-forkpty.c: ...to this...
36957         * tests/test-openpty.c: ...and this.
36958         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36959         (gl_PTY): Split library searching...
36960         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36961         (gl_FORKPTY, gl_OPENPTY): New macros.
36962         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36963         * NEWS: Mention the split.
36964         * MODULES.html.sh (Misc): Document the modules.
36965         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36966         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36967
36968         pty: improve replacement header
36969         * lib/pty.in.h: New file.
36970         * modules/pty (Files): Ship it.
36971         (Makefile.am): Always build replacement.
36972         * m4/pty.m4: Rename...
36973         * m4/pty_h.m4: ...to this.
36974         (gl_PTY): Modernize setting of witness macros; update check of
36975         forkpty to take proper advantage of cache.
36976         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36977
36978         getopt: avoid compiler warning
36979         * lib/getopt.c (attribute_hidden): Remove unused macro.
36980
36981 2010-03-18  Bruno Haible  <bruno@clisp.org>
36982
36983         Fix link errors on Solaris 8.
36984         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36985         * modules/search-tests (test_search_c___LDADD): Likewise.
36986         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36987         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36988         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36989         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36990         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36991         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36992         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36993
36994 2010-03-18  Bruno Haible  <bruno@clisp.org>
36995
36996         Fix bug introduced on 2010-03-14.
36997         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36998         (gl_SPAWN_H): Require it.
36999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37000         Reported by Simon Josefsson.
37001
37002 2010-03-18  Bruno Haible  <bruno@clisp.org>
37003
37004         Fix typo introduced on 2009-12-31.
37005         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37006         posix_spawn_file_actions_adddup2.
37007
37008 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37009         and Eric Blake  <eblake@redhat.com>
37010
37011         test-vc-list-files-git: make more robust
37012         * tests/test-vc-list-files-git.sh: Unset problematic environment
37013         variables.  Chain commands together.
37014
37015 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37016
37017         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37018         `AC_CHECK_DECL' invocation.
37019
37020 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37021
37022         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37023         appears before executable statements. Suggested by Petr Sumbera
37024         <Petr.Sumbera@Sun.COM>.
37025
37026 2010-03-14  Bruno Haible  <bruno@clisp.org>
37027
37028         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37029         portability problems. Instead use a simpler test.
37030         (main): Check that invalid arguments are rejected only on Linux.
37031
37032 2010-03-14  Bruno Haible  <bruno@clisp.org>
37033
37034         Fix bug introduced on 2009-12-31.
37035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37036         gl_PREREQ_SYS_H_WINSOCK2 always.
37037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37038         SYS_SOCKET_H variable.
37039         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37040         Update comments.
37041         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37042         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37043         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37044         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37045         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37046
37047 2010-03-14  Bruno Haible  <bruno@clisp.org>
37048
37049         Fix values returned by sinl, cosl.
37050         * lib/trigl.h: Add specification comments.
37051         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37052         that combines the values from the precomputed table with the values of
37053         the Chebyshev polynomials.
37054
37055 2010-03-14  Bruno Haible  <bruno@clisp.org>
37056
37057         Fix compilation error when modules 'posix_spawn[p]' are not used.
37058         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37059         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37060
37061 2010-03-14  Bruno Haible  <bruno@clisp.org>
37062
37063         Fix compilation error on mingw when module 'time_r' is not used.
37064         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37065         is 1.
37066         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37067         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37068         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37069         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37070
37071 2010-03-14  Bruno Haible  <bruno@clisp.org>
37072
37073         Fix compilation error with Sun C.
37074         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37075         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37076         instead of GCC specific ULONG_LONG_MAX.
37077         * lib/xstrtoll.c: Likewise.
37078         * lib/xstrtoull.c: Likewise.
37079
37080 2010-03-13  Bruno Haible  <bruno@clisp.org>
37081
37082         Allow the user to disable C++ code and tests.
37083         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37084         (gl_PROG_ANSI_CXX): Require it.
37085
37086 2010-03-13  Bruno Haible  <bruno@clisp.org>
37087
37088         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37089         cases.
37090
37091 2010-03-13  Bruno Haible  <bruno@clisp.org>
37092
37093         Test that gnulib does not break the standard C++ headers.
37094         * tests/test-locale-c++2.cc: New file.
37095         * modules/locale-tests (Files): Add it.
37096         (Makefile.am): Compile it for test-locale-c++.
37097         * tests/test-math-c++2.cc: New file.
37098         * modules/math-tests (Files): Add it.
37099         (Makefile.am): Compile it for test-math-c++.
37100         * tests/test-signal-c++2.cc: New file.
37101         * modules/signal-tests (Files): Add it.
37102         (Makefile.am): Compile it for test-signal-c++.
37103         * tests/test-stdio-c++2.cc: New file.
37104         * modules/stdio-tests (Files): Add it.
37105         (Makefile.am): Compile it for test-stdio-c++.
37106         * tests/test-stdlib-c++2.cc: New file.
37107         * modules/stdlib-tests (Files): Add it.
37108         (Makefile.am): Compile it for test-stdlib-c++.
37109         * tests/test-string-c++2.cc: New file.
37110         * modules/string-tests (Files): Add it.
37111         (Makefile.am): Compile it for test-string-c++.
37112         * tests/test-time-c++2.cc: New file.
37113         * modules/time-tests (Files): Add it.
37114         (Makefile.am): Compile it for test-time-c++.
37115         Reported by John W. Eaton <jwe@gnu.org>.
37116
37117 2010-03-13  Bruno Haible  <bruno@clisp.org>
37118
37119         * gnulib-tool (func_usage): Clarify which options are available for
37120         --create-testdir and --create-megatestdir.
37121
37122 2010-03-13  Bruno Haible  <bruno@clisp.org>
37123
37124         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37125         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37126         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37127         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37128         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37129         when appropriate.
37130         Reported by Jim Meyering.
37131
37132 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37133
37134         * gnulib-tool (func_import): Explain origin of code.
37135
37136 2010-03-12  Bruno Haible  <bruno@clisp.org>
37137
37138         Fix problem with automake's definition of CXXLINK.
37139         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37140         Reported by Simon Josefsson and Ludovic Courtès.
37141
37142 2010-03-12  Bruno Haible  <bruno@clisp.org>
37143
37144         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37145         stable releases.
37146
37147 2010-03-11  Bruno Haible  <bruno@clisp.org>
37148
37149         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37150         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37151         whether the system provides one variant or multiple variants of the
37152         function.
37153         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37154         C++ compilers.
37155         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37156         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37157         Reported by Jim Meyering.
37158
37159 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37160
37161         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37162
37163 2010-03-08  Bruno Haible  <bruno@clisp.org>
37164
37165         gnulib-tool: Add support for --libtool in --create-testdir.
37166         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37167         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37168
37169 2010-03-08  Eric Blake  <eblake@redhat.com>
37170
37171         gnulib-tool.texi: mention possibility of git submodule
37172         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37173         submodules.
37174         * doc/.gitignore: Ignore another generated file.
37175
37176 2010-03-08  Karl Berry  <karl@gnu.org>
37177
37178         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37179         of committing gnulib files while skipping others.
37180
37181 2010-03-07  Bruno Haible  <bruno@clisp.org>
37182
37183         Tests of module 'wctype' in C++ mode.
37184         * tests/test-wctype-c++.cc: New file.
37185         * modules/wctype-tests (Files): Add it and tests/signature.h.
37186         (Depends-on): Add ansi-c++-opt.
37187         (Makefile.am): Arrange to compile and run test-wctype-c++.
37188
37189         Tests of module 'wchar' in C++ mode.
37190         * tests/test-wchar-c++.cc: New file.
37191         * modules/wchar-tests (Files): Add it and tests/signature.h.
37192         (Depends-on): Add ansi-c++-opt.
37193         (Makefile.am): Arrange to compile and run test-wchar-c++.
37194         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37195         gl_MODULE_INDICATOR.
37196
37197         Tests of module 'unistd' in C++ mode.
37198         * tests/test-unistd-c++.cc: New file.
37199         * modules/unistd-tests (Files): Add it and tests/signature.h.
37200         (Depends-on): Add ansi-c++-opt.
37201         (Makefile.am): Arrange to compile and run test-unistd-c++.
37202         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37203         gl_MODULE_INDICATOR.
37204
37205         Tests of module 'time' in C++ mode.
37206         * tests/test-time-c++.cc: New file.
37207         * modules/time-tests (Files): Add it and tests/signature.h.
37208         (Depends-on): Add ansi-c++-opt.
37209         (Makefile.am): Arrange to compile and run test-time-c++.
37210         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37211
37212         Tests of module 'sys_time' in C++ mode.
37213         * tests/test-sys_time-c++.cc: New file.
37214         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37215         (Depends-on): Add ansi-c++-opt.
37216         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37217         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37218         gl_MODULE_INDICATOR.
37219
37220         Tests of module 'sys_stat' in C++ mode.
37221         * tests/test-sys_stat-c++.cc: New file.
37222         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37223         (Depends-on): Add ansi-c++-opt.
37224         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37225         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37226         gl_MODULE_INDICATOR.
37227
37228         Tests of module 'sys_socket' in C++ mode.
37229         * tests/test-sys_socket-c++.cc: New file.
37230         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37231         (Depends-on): Add ansi-c++-opt.
37232         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37233         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37234         gl_MODULE_INDICATOR.
37235
37236         Tests of module 'sys_select' in C++ mode.
37237         * tests/test-sys_select-c++.cc: New file.
37238         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37239         (Depends-on): Add ansi-c++-opt.
37240         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37241         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37242         gl_MODULE_INDICATOR.
37243
37244         Tests of module 'sys_ioctl' in C++ mode.
37245         * tests/test-sys_ioctl-c++.cc: New file.
37246         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37247         (Depends-on): Add ansi-c++-opt.
37248         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37249         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37250         gl_MODULE_INDICATOR.
37251
37252         Tests of module 'string' in C++ mode.
37253         * tests/test-string-c++.cc: New file.
37254         * modules/string-tests (Files): Add it and tests/signature.h.
37255         (Depends-on): Add ansi-c++-opt.
37256         (Makefile.am): Arrange to compile and run test-string-c++.
37257         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37258         gl_MODULE_INDICATOR.
37259
37260         Tests of module 'stdlib' in C++ mode.
37261         * tests/test-stdlib-c++.cc: New file.
37262         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37263         (Depends-on): Add ansi-c++-opt.
37264         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37265         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37266         gl_MODULE_INDICATOR.
37267
37268         Tests of module 'stdio' in C++ mode.
37269         * tests/test-stdio-c++.cc: New file.
37270         * modules/stdio-tests (Files): Add it and tests/signature.h.
37271         (Depends-on): Add ansi-c++-opt.
37272         (Makefile.am): Arrange to compile and run test-stdio-c++.
37273         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37274         gl_MODULE_INDICATOR.
37275
37276         Tests of module 'spawn' in C++ mode.
37277         * tests/test-spawn-c++.cc: New file.
37278         * modules/spawn-tests (Files): Add it and tests/signature.h.
37279         (Depends-on): Add ansi-c++-opt.
37280         (Makefile.am): Arrange to compile and run test-spawn-c++.
37281         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37282         gl_MODULE_INDICATOR.
37283
37284         Tests of module 'signal' in C++ mode.
37285         * tests/test-signal-c++.cc: New file.
37286         * modules/signal-tests (Files): Add it and tests/signature.h.
37287         (Depends-on): Add ansi-c++-opt.
37288         (Makefile.am): Arrange to compile and run test-signal-c++.
37289         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37290         gl_MODULE_INDICATOR.
37291
37292         Tests of module 'search' in C++ mode.
37293         * tests/test-search-c++.cc: New file.
37294         * modules/search-tests (Files): Add it and tests/signature.h.
37295         (Depends-on): Add ansi-c++-opt.
37296         (Makefile.am): Arrange to compile and run test-search-c++.
37297         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37298         gl_MODULE_INDICATOR.
37299
37300         Tests of module 'math' in C++ mode.
37301         * tests/test-math-c++.cc: New file.
37302         * modules/math-tests (Files): Add it and tests/signature.h.
37303         (Depends-on): Add ansi-c++-opt.
37304         (Makefile.am): Arrange to compile and run test-math-c++.
37305         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37306
37307         Tests of module 'locale' in C++ mode.
37308         * tests/test-locale-c++.cc: New file.
37309         * modules/locale-tests (Files): Add it and tests/signature.h.
37310         (Depends-on): Add ansi-c++-opt.
37311         (Makefile.am): Arrange to compile and run test-locale-c++.
37312         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37313         gl_MODULE_INDICATOR.
37314
37315         Tests of module 'langinfo' in C++ mode.
37316         * tests/test-langinfo-c++.cc: New file.
37317         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37318         (Depends-on): Add ansi-c++-opt.
37319         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37321         gl_MODULE_INDICATOR.
37322
37323         Tests of module 'iconv-h' in C++ mode.
37324         * tests/test-iconv-h-c++.cc: New file.
37325         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37326         (Depends-on): Add ansi-c++-opt.
37327         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37328
37329         Tests of module 'glob' in C++ mode.
37330         * tests/test-glob-c++.cc: New file.
37331         * modules/glob-tests (Files): Add it.
37332         (Depends-on): Add ansi-c++-opt.
37333         (Makefile.am): Arrange to compile and run test-glob-c++.
37334
37335         Tests of module 'fcntl-h' in C++ mode.
37336         * tests/test-fcntl-h-c++.cc: New file.
37337         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37338         (Depends-on): Add ansi-c++-opt.
37339         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37340         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37341         gl_MODULE_INDICATOR.
37342
37343         Tests of module 'dirent' in C++ mode.
37344         * tests/test-dirent-c++.cc: New file.
37345         * modules/dirent-tests (Files): Add it and tests/signature.h.
37346         (Depends-on): Add ansi-c++-opt.
37347         (Makefile.am): Arrange to compile and run test-dirent-c++.
37348         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37349         gl_MODULE_INDICATOR.
37350
37351         New module 'ansi-c++-opt'.
37352         * modules/ansi-c++-opt: New file.
37353         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37354
37355         Document C++ namespace mode.
37356         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37357
37358         wctype: Avoid #define replacements in C++ mode.
37359         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37360         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37361         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37362         In C++, define a namespaced alias symbol.
37363         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37364         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37365         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37366         rule.
37367
37368         wchar: Avoid #define replacements in C++ mode.
37369         * lib/wchar.in.h: Include c++defs.h.
37370         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37371         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37372         symbol.
37373         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37374         * modules/wchar (Depends-on): Add c++defs.
37375         (Makefile.am): Update wchar.h rule.
37376
37377         unistd: Avoid #define replacements in C++ mode.
37378         * lib/unistd.in.h: Include c++defs.h.
37379         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37380         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37381         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37382         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37383         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37384         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37385         symbol.
37386         (environ): Update.
37387         * modules/unistd (Depends-on): Add c++defs.
37388         (Makefile.am): Update unistd.h rule.
37389
37390         time: Avoid #define replacements in C++ mode.
37391         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37392         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37393         define a namespaced alias symbol.
37394         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37395         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37396         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37397         * modules/time (Depends-on): Add c++defs, warn-on-use.
37398         (Makefile.am): Update time.h rule.
37399         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37400         * modules/nanosleep (configure.ac): Likewise.
37401         * modules/strptime (configure.ac): Likewise.
37402         * modules/timegm (configure.ac): Likewise.
37403
37404         sys_time: Avoid #define replacements in C++ mode.
37405         * lib/sys_time.in.h: Include c++defs.h.
37406         (gettimeofday): In C++, define a namespaced alias symbol.
37407         * modules/sys_time (Depends-on): Add c++defs.
37408         (Makefile.am): Update sys/time.h rule.
37409
37410         sys_stat: Avoid #define replacements in C++ mode.
37411         * lib/sys_stat.in.h: Include c++defs.h.
37412         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37413         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37414         namespaced alias symbol.
37415         In C++, define a namespaced alias symbol.
37416         * modules/sys_stat (Depends-on): Add c++defs.
37417         (Makefile.am): Update sys/stat.h rule.
37418
37419         sys_socket: Avoid #define replacements in C++ mode.
37420         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37421         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37422         definitions also when the system has a <sys/socket.h>.
37423         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37424         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37425         In C++, define a namespaced alias symbol.
37426         * modules/sys_socket (Depends-on): Add c++defs.
37427         (Makefile.am): Update sys/socket.h rule.
37428
37429         sys_select: Avoid #define replacements in C++ mode.
37430         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37431         definitions also when the system has a <sys/select.h>.
37432         (select): In C++, define a namespaced alias symbol.
37433         * modules/sys_select (Depends-on): Add c++defs.
37434         (Makefile.am): Update sys/select.h rule.
37435
37436         sys_ioctl: Avoid #define replacements in C++ mode.
37437         * lib/sys_ioctl.in.h: Include c++defs.h.
37438         (ioctl): In C++, define a namespaced alias symbol.
37439         * modules/sys_ioctl (Depends-on): Add c++defs.
37440         (Makefile.am): Update sys/ioctl.h rule.
37441
37442         string: Avoid #define replacements in C++ mode.
37443         * lib/string.in.h: Include c++defs.h.
37444         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37445         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37446         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37447         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37448         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37449         * modules/string (Depends-on): Add c++defs.
37450         (Makefile.am): Update string.h rule.
37451
37452         stdlib: Avoid #define replacements in C++ mode.
37453         * lib/stdlib.in.h: Include c++defs.h.
37454         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37455         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37456         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37457         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37458         symbol.
37459         * modules/stdlib (Depends-on): Add c++defs.
37460         (Makefile.am): Update stdlib.h rule.
37461
37462         stdio: Avoid #define replacements in C++ mode.
37463         * lib/stdio.in.h: Include c++defs.h.
37464         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37465         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37466         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37467         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37468         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37469         namespaced alias symbol.
37470         * modules/stdio (Depends-on): Add c++defs.
37471         (Makefile.am): Update stdio.h rule.
37472
37473         spawn: Avoid #define replacements in C++ mode.
37474         * lib/spawn.in.h: Include c++defs.h.
37475         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37476         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37477         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37478         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37479         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37480         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37481         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37482         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37483         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37484         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37485         In C++, define a namespaced alias symbol.
37486         * modules/spawn (Depends-on): Add c++defs.
37487         (Makefile.am): Update spawn.h rule.
37488
37489         signal: Avoid #define replacements in C++ mode.
37490         * lib/signal.in.h: Include c++defs.h.
37491         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37492         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37493         namespaced alias symbol.
37494         * modules/signal (Depends-on): Add c++defs.
37495         (Makefile.am): Update signal.h rule.
37496
37497         search: Avoid #define replacements in C++ mode.
37498         * lib/search.in.h: Include c++defs.h.
37499         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37500         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37501         symbol.
37502         * modules/search (Depends-on): Add c++defs.
37503         (Makefile.am): Update search.h rule.
37504
37505         math: Avoid #define replacements in C++ mode.
37506         * lib/math.in.h: Include c++defs.h.
37507         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37508         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37509         trunc, truncl): In C++, define a namespaced alias symbol.
37510         * modules/math (Depends-on): Add c++defs.
37511         (Makefile.am): Update math.h rule.
37512
37513         locale: Avoid #define replacements in C++ mode.
37514         * lib/locale.in.h: Include c++defs.h.
37515         (duplocale): In C++, define a namespaced alias symbol.
37516         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37517         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37518         * modules/locale (Depends-on): Add c++defs.
37519         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37520
37521         langinfo: Avoid #define replacements in C++ mode.
37522         * lib/langinfo.in.h: Include c++defs.h.
37523         (nl_langinfo): In C++, define a namespaced alias symbol.
37524         * modules/langinfo (Depends-on): Add c++defs.
37525         (Makefile.am): Update langinfo.h rule.
37526
37527         iconv-h: Avoid #define replacements in C++ mode.
37528         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37529         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37530         symbol.
37531         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37532         whenever iconv is present.
37533         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37534         (Makefile.am): Update iconv.h rule.
37535
37536         glob: Avoid #define replacements in C++ mode.
37537         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37538         (_gl_glob_errfunc_fn): New type.
37539         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37540         symbol.
37541         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37542         (Makefile.am): Update glob.h rule.
37543
37544         fcntl-h: Avoid #define replacements in C++ mode.
37545         * lib/fcntl.in.h: Include c++defs.h.
37546         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37547         * modules/fcntl-h (Depends-on): Add c++defs.
37548         (Makefile.am): Update fcntl.h rule.
37549
37550         dirent: Avoid #define replacements in C++ mode.
37551         * lib/dirent.in.h: Include c++defs.h.
37552         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37553         namespaced alias symbol.
37554         (dirfd): Update declaration.
37555         * modules/dirent (Depends-on): Add c++defs.
37556         (Makefile.am): Update dirent.h rule.
37557
37558         ctype: Make it usable in C++ code.
37559         * lib/ctype.in.h: Include c++defs.h.
37560         (isblank): Declare as extern "C".
37561         * modules/ctype (Depends-on): Add c++defs.
37562         (Makefile.am): Update ctype.h rule.
37563
37564         New module 'c++defs'.
37565         * modules/c++defs: New file.
37566         * build-aux/c++defs.h: New file.
37567         Reported by John W. Eaton <jwe@gnu.org>.
37568
37569 2010-03-07  Bruno Haible  <bruno@clisp.org>
37570
37571         logb: Provide missing declaration for Cygwin.
37572         * lib/math.in.h (logb): New declaration.
37573         * m4/logb.m4: New file.
37574         * modules/logb (Files): Add m4/logb.m4.
37575         (Depends-on): Add math.
37576         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37577         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37579         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37580         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37581
37582 2010-03-07  Bruno Haible  <bruno@clisp.org>
37583
37584         Fix test-cond link error.
37585         * tests/test-cond.c: Include <stdio.h>.
37586
37587 2010-03-07  Bruno Haible  <bruno@clisp.org>
37588
37589         Fix test-dirent-safer link error.
37590         * modules/dirent-safer-tests (Makefile.am): Define
37591         test_dirent_safer_LDADD.
37592
37593 2010-03-07  Bruno Haible  <bruno@clisp.org>
37594
37595         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37596         among default module list.
37597
37598 2010-03-07  Bruno Haible  <bruno@clisp.org>
37599
37600         Fix link error on platforms with GNU libiconv.
37601         * modules/unistr/u8-strcoll-tests (Makefile): Define
37602         test_u8_strcoll_LDADD.
37603         * modules/unistr/u16-strcoll-tests (Makefile): Define
37604         test_u16_strcoll_LDADD.
37605         * modules/unistr/u32-strcoll-tests (Makefile): Define
37606         test_u32_strcoll_LDADD.
37607
37608 2010-03-07  Bruno Haible  <bruno@clisp.org>
37609
37610         Use POSIX declarations for socket functions.
37611         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37612         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37613         rpl_sendto): Change declaration to match POSIX.
37614         * lib/connect.c (rpl_connect): Likewise.
37615         * lib/accept.c (rpl_accept): Likewise.
37616         * lib/bind.c (rpl_bind): Likewise.
37617         * lib/getpeername.c (rpl_getpeername): Likewise.
37618         * lib/getsockname.c (rpl_getsockname): Likewise.
37619         * lib/recv.c (rpl_recv): Likewise.
37620         * lib/send.c (rpl_send): Likewise.
37621         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37622         * lib/sendto.c (rpl_sendto): Likewise.
37623
37624 2010-03-06  Bruno Haible  <bruno@clisp.org>
37625
37626         Clarify access, euidaccess, faccessat.
37627         * doc/posix-functions/faccessat.texi: Mention security problem under
37628         "Other problems", not "Portability problems".
37629         * doc/posix-functions/access.texi: Likewise. Mention a related security
37630         problem.
37631         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37632         * lib/euidaccess.c: Add comments about platforms.
37633         * lib/unistd.in.h (access, euidaccess): Add warnings.
37634
37635 2010-03-07  Bruno Haible  <bruno@clisp.org>
37636
37637         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37638         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37639         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37640         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37641         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37642         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37643         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37644         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37645         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37646         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37647         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37648         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37649         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37650         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37651         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37652         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37653         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37654         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37655         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37656         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37657         Likewise.
37658         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37659         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37660         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37661         Likewise.
37662         * tests/test-spawn.c (main): Make it work when
37663         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37664
37665 2010-03-07  Bruno Haible  <bruno@clisp.org>
37666
37667         Fix incorrect Makefile.am generation in German locale.
37668         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37669         Execute sed command with character range in C locale.
37670
37671 2010-03-06  Bruno Haible  <bruno@clisp.org>
37672
37673         Tests for module 'iconv-h'.
37674         * modules/iconv-h-tests: New file.
37675         * tests/test-iconv-h.c: New file.
37676
37677         New module 'iconv-h'.
37678         * modules/iconv-h: New file.
37679         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37680         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37681         (configure.ac): Remove gl_ICONV_H.
37682         (Makefile.am): Remove rule for iconv.h.
37683
37684 2010-03-06  Bruno Haible  <bruno@clisp.org>
37685
37686         More consistent naming of *.m4 files.
37687         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37688         * modules/wctype (Files): Update.
37689
37690         More consistent naming of *.m4 files.
37691         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37692         * modules/wchar (Files): Update.
37693
37694 2010-03-06  Jim Meyering  <meyering@redhat.com>
37695
37696         euidaccess: relax license to LGPLv2+
37697         * modules/euidaccess (License): Relax to LGPLv2+.
37698
37699 2010-03-06  Bruno Haible  <bruno@clisp.org>
37700
37701         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37702         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37703         (Makefile.am): Augment lib_SOURCES instead.
37704
37705 2010-03-04  Jim Meyering  <meyering@redhat.com>
37706
37707         utime: remove obsolete module
37708         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37709         unnecessary for years, and has been marked as obsolete for 10 months.
37710         * modules/utime: Remove file.
37711         * lib/utime.c: Remove file.
37712         * m4/utime.m4: Remove file.
37713         * m4/utimes-null.m4: Remove file.
37714         * doc/posix-functions/utime.texi (utime): Remove reference to
37715         the module.  Move the sole "fixed by gnulib" item into the
37716         "problems not fixed by Gnulib" list.
37717         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37718
37719 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37720
37721         * modules/exit (License): Relax license to LGPLv2+.
37722         (Status): Mark as obsolete.
37723         * NEWS: Mention deprecated 'exit' module.
37724         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37725         of now obsolete 'exit'.
37726
37727 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37728
37729         fts-lgpl: remove unused module
37730         * modules/fts-lgpl: Remove.
37731         * MODULES.html.sh (func_all_modules): Adjust.
37732         * check-module (find_included_lib_files): Adjust.
37733         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37734
37735 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37736
37737         copy-acl: enhance Solaris ACL error handling
37738         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37739         * lib/set-mode-acl.c (qset_acl): Likewise.
37740
37741 2010-03-02  Bruno Haible  <bruno@clisp.org>
37742
37743         spawn: Don't override the system defined values on FreeBSD 8.
37744         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37745         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37746         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37747         if HAVE_POSIX_SPAWN is 1.
37748         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37749
37750 2010-03-01  Bruno Haible  <bruno@clisp.org>
37751
37752         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37753         regarding Automake.
37754
37755 2010-02-25  Bruno Haible  <bruno@clisp.org>
37756
37757         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37758         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37759         setting, not afterwards.
37760         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37761
37762 2010-02-24  Eric Blake  <eblake@redhat.com>
37763
37764         bootstrap, git-version-gen: use timestamp
37765         * build-aux/git-version-gen (scriptversion): Force UTC.
37766         * build-aux/bootstrap (scriptversion): New variable.
37767
37768         bootstrap: allow older git
37769         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37770         older than 1.6.4.  Requested by the libvirt project.
37771
37772 2010-02-23  Eric Blake  <eblake@redhat.com>
37773
37774         warn-on-use: work with old autoconf
37775         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37776         AS_VAR semantics of autoconf 2.60.
37777         Reported by Bruno Haible.
37778
37779         bootstrap: improve some comments
37780         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37781         clarification comments.
37782
37783         gettimeofday: provide correct function
37784         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37785         when replacement is declared, otherwise provide gettimeofday.
37786         Reported by Michael Goffioul.
37787
37788 2010-02-23  Jim Meyering  <meyering@redhat.com>
37789
37790         lib-ignore: relax license to "unlimited", not LGPLv2+
37791         * modules/lib-ignore (License): Relax to "unlimited".
37792
37793 2010-02-23  Jim Meyering  <meyering@redhat.com>
37794
37795         lib-ignore: relax license to LGPLv2+
37796         * modules/lib-ignore (License): Relax to LGPLv2+.
37797
37798 2010-02-22  Eric Blake  <eblake@redhat.com>
37799
37800         lseek: avoid bash 3.2 broken pipe bug
37801         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37802         warning from bash 3.2.
37803         Reported by Ben Pfaff, with analysis from Bruno Haible.
37804
37805         bootstrap: support non-FSF copyright holder
37806         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37807         bootstrap.conf override of COPYRIGHT_HOLDER.
37808         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37809
37810         bootstrap: interoperate with gettext 0.14.1
37811         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37812
37813         bootstrap: allow for alternate submodule location
37814         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37815         hardcoding submodule location.
37816         (gnulib_mk): Allow direct use of Makefile.am.
37817
37818         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37819         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37820         rather than reconfiguring where the submodule points.
37821
37822         gettimeofday: restore support for platforms that lack function
37823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37824         replacement if function is missing.
37825         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37826         * modules/sys_time (Makefile.am): Substitute it.
37827         * lib/sys_time.in.h (gettimeofday): Check it.
37828         Reported by Michael Goffioul.
37829
37830 2010-02-21  Bruno Haible  <bruno@clisp.org>
37831
37832         * lib/stdio.in.h (obstack_printf): Fix typo.
37833
37834 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37835
37836         vc-list-files: use bzr ls's -R option
37837         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37838         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37839
37840 2010-02-21  Jim Meyering  <meyering@redhat.com>
37841
37842         init.sh: fix EXEEXT shims to work also for names like test-prog
37843         * tests/init.sh: Re-exec a better shell, when needed.
37844         If the current shell lacks support for posix $(...), an init.sh-using
37845         test will now try to find a shell that supports that.  If EXEEXT is
37846         nonempty, we also require support for hyphen-in-alias-name and shell
37847         substitutions like ${var#glob}.  Failure to find such a shell results
37848         in a skipped test.
37849
37850 2010-02-21  Bruno Haible  <bruno@clisp.org>
37851
37852         Really work around around "broken pipe" error message from bash 3.2.
37853         * gnulib-tool (func_reset_sigpipe): Remove function.
37854         (echo): In bash 3.2, define to a function that uses printf.
37855         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37856
37857 2010-02-20  Bruno Haible  <bruno@clisp.org>
37858
37859         Restore support for automake 1.9.6 with autoconf 2.61.
37860         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37861         Reported by James Youngman <jay@gnu.org>.
37862
37863 2010-02-20  Bruno Haible  <bruno@clisp.org>
37864
37865         Improve *printf warning condition.
37866         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37867         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37868         and the function is overridden due to SIGPIPE emulation.
37869
37870 2010-02-20  Bruno Haible  <bruno@clisp.org>
37871
37872         * lib/stdio.in.h: Tweak comments.
37873
37874 2010-02-19  Bruno Haible  <bruno@clisp.org>
37875
37876         Make it easier to find modules. New gnulib-tool option '--find'.
37877         * gnulib-tool: New option --find.
37878         (func_usage): Document it.
37879         (func_sanitize_modulelist): New function, extracted from
37880         func_all_modules.
37881         (func_all_modules): Invoke it.
37882         * doc/gnulib-tool.texi (Which modules?): New node.
37883
37884 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37885
37886         * lib/sys_select.in.h: Provide select replacement even if
37887         sys/select.h exists on a system, for Interix.
37888
37889 2010-02-18  Jim Meyering  <meyering@redhat.com>
37890
37891         init.sh: don't use $(...) just yet
37892         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37893         to accommodate e.g., Solaris' /bin/sh.
37894
37895 2010-02-17  Bruno Haible  <bruno@clisp.org>
37896
37897         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37898         Reported by Ludovic Courtès <ludo@gnu.org>.
37899
37900 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37901
37902         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37903         linking with -lintl.
37904
37905 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37906
37907         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37908         if not provided by the system's netdb.h.  Reported by
37909         ludo@gnu.org (Ludovic Courtès).
37910
37911 2010-02-15  Jim Meyering  <meyering@redhat.com>
37912
37913         init.sh: improve portability and efficiency
37914         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37915         "dummy" in a for loop.
37916         Use '!', not '^' to select the complement of a character set used
37917         in a "case" statement.
37918         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37919         Suggestions from Eric Blake.
37920
37921         init.sh: automatically accommodate programs with the .exe suffix
37922         Automatically arrange for an invocation of "prog" to execute the
37923         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37924         may use the simpler "prog", yet still work when built on a system
37925         that requires specifying the added suffix.
37926         Do this by constructing a function named "prog" that invokes
37927         "prog.exe" for each .exe file in selected directories.
37928         * tests/init.sh (find_exe_basenames_): New function.
37929         (create_exe_shim_functions_): New function.
37930         (path_prepend_): Use it.
37931
37932         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37933         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37934         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37935
37936 2010-02-14  Jim Meyering  <meyering@redhat.com>
37937
37938         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37939         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37940         (sc_prohibit_hash_pjw_without_use): New rule.
37941
37942         maint.mk: allow the default upload destination dir to be overridden
37943         * top/maint.mk (upload_dest_dir_): Define with a default that
37944         preserves the status quo.
37945         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37946         Reported by Peter Simons.
37947
37948         maint.mk: prohibit inclusion of "hash.h" without_use
37949         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37950
37951 2010-02-10  Jim Meyering  <meyering@redhat.com>
37952
37953         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37954         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37955
37956 2010-02-09  Eric Blake  <ebb9@byu.net>
37957         and Bruno Haible  <bruno@clisp.org>
37958
37959         obstack-printf-posix: ensure declaration
37960         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37961         extracted from gl_FUNC_OBSTACK_PRINTF.
37962         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37963         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37964         Likewise.
37965         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37966         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37967         0.
37968
37969 2010-02-08  Bruno Haible  <bruno@clisp.org>
37970
37971         gnulib-tool: Fix typo in 2010-02-07 commit.
37972         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37973         Reported by Eric Blake.
37974
37975 2010-02-07  Bruno Haible  <bruno@clisp.org>
37976
37977         gnulib-tool: Fix up caching patches.
37978         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37979         option --no-cache. Use associative arrays when supported by the shell.
37980         (sed_comments): New variable.
37981         (modcache): Renamed from do_cache.
37982         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37983         abbreviate unnecessarily.
37984         (have_associative): New variable.
37985         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37986         way also for ksh and zsh.
37987         (func_init_sed_convert_to_cache_statements): New function, extracted
37988         from func_cache_lookup_module. Add support for associative arrays.
37989         Don't set the c_MODULE_cached variable here. Ignore all lines before
37990         the first field header. Remove only the final newline, not all trailing
37991         newlines. Support empty fields correctly. Limit the use of 'eval' to
37992         assignments.
37993         (func_get_description, func_get_status, func_get_notice,
37994         func_get_applicability, func_get_filelist, func_get_dependencies,
37995         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37996         func_get_automake_snippet, func_get_include_directive,
37997         func_get_link_directive, func_get_license, func_get_maintainer):
37998         Update documentation. List the unoptimized code first. Add support for
37999         associative arrays. Limit the use of 'eval' to assignments.
38000         (func_get_applicability): Undo stylistic pessimisations.
38001         (func_get_automake_snippet, func_get_include_directive): Reduce code
38002         duplication.
38003         (func_modules_transitive_closure, func_modules_add_dummy,
38004         func_modules_notice, func_modules_to_filelist, func_add_file,
38005         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38006         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38007         func_create_testdir, func_create_megatestdir): Update documentation.
38008
38009 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38010
38011         * gnulib-tool (func_cache_lookup_module): Store the module name
38012         belonging to the cache variable; error out if two different
38013         module names map to the same cache variable name.
38014
38015 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38016
38017         gnulib-tool: Make caching optional.
38018         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38019         Update matching short versions of --no-changelog.
38020         (func_usage): Update.
38021         (sed_extract_cache_prog): Renamed from ...
38022         (sed_extract_prog): ... this; revert to old extraction script.
38023         (func_get_description, func_get_status)
38024         (func_get_notice, func_get_applicability, func_get_filelist)
38025         (func_get_dependencies, func_get_autoconf_early_snippet)
38026         (func_get_autoconf_snippet, func_get_automake_snippet)
38027         (func_get_include_directive, func_get_link_directive)
38028         (func_get_license, func_get_maintainer): If $do_cache is false,
38029         use old, non-caching extraction scripts.
38030         Suggestion by Bruno Haible.
38031
38032 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38033
38034         gnulib-tool: cache module metainformation.
38035         * gnulib-tool (sed_extract_prog): Match newline before each
38036         header, and rewrite header to a shell variable suffix.
38037         (func_cache_var, func_cache_lookup_module): New functions,
38038         to turn a module name into a cache variable prefix, and to
38039         look up and cache module metainformation.
38040         (func_get_description, func_get_status)
38041         (func_get_notice, func_get_applicability, func_get_filelist)
38042         (func_get_dependencies, func_get_autoconf_early_snippet)
38043         (func_get_autoconf_snippet, func_get_automake_snippet)
38044         (func_get_include_directive, func_get_link_directive)
38045         (func_get_license, func_get_maintainer): Use
38046         func_cache_lookup_module.
38047
38048 2010-02-07  Bruno Haible  <bruno@clisp.org>
38049
38050         fnctl: Fix missing dependency.
38051         * modules/fcntl (Depends-on): Add getdtablesize.
38052         Reported by John W. Eaton <jwe@gnu.org>.
38053
38054 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38055
38056         Argp: fix recognition of short alias options.
38057
38058         * lib/argp-parse.c (convert_options): Fix improper use of
38059         `|' between character values.
38060         * tests/test-argp.c (group1_option): New alias option
38061         --read (-r).
38062         (group1_parser): Special handling for 'r'.
38063         (test15): New test case.
38064         (test_fun): Add test15.
38065         * tests/test-argp-2.sh: Update expected --help and --usage
38066         outputs.
38067
38068 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38069
38070         * tests/test-argp.c: Fix indentation.
38071
38072 2010-02-04  Eric Blake  <ebb9@byu.net>
38073
38074         gettimeofday: expose type of second argument
38075         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38076         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38077         * tests/test-gettimeofday.c: Use it to silence warning.
38078         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38079         the issue.
38080
38081 2010-02-03  Jim Meyering  <meyering@redhat.com>
38082
38083         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38084         * lib/regcomp.c (TYPE_SIGNED): Define.
38085         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38086
38087         regcomp.c: avoid a new -Wshadow warning
38088         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38089
38090 2010-02-01  Jim Meyering  <meyering@redhat.com>
38091
38092         removing useless parentheses in cpp #define directives
38093         For motivation, see commit c0221df4, "define STREQ(a,b)
38094         consistently, removing useless parentheses"
38095         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38096         * lib/mountlist.c (MNT_IGNORE): Likewise.
38097         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38098
38099 2010-02-01  Eric Blake  <ebb9@byu.net>
38100
38101         sys_time: use link-warning
38102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38103         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38104         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38105         * modules/sys_time (Depends-on): Add warn-on-use.
38106         (Makefile.am): Always build replacement.
38107         (configure.ac): Update substitutions.
38108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38109         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38110         bother with SYS_TIME_H.
38111         * modules/gettimeofday (configure.ac): Declare indicator.
38112         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38113         in use.
38114
38115         closein-tests: silence compiler warning
38116         * tests/test-closein.c (main): Ignore fread result.
38117         * modules/closein-tests (Depends-on): Add ignore-value.
38118
38119         tests: silence warning about system return
38120         * tests/test-areadlink-with-size.c (main): Ignore system result.
38121         * tests/test-areadlink.c (main): Likewise.
38122         * tests/test-areadlinkat-with-size.c (main): Likewise.
38123         * tests/test-areadlinkat.c (main): Likewise.
38124         * tests/test-canonicalize-lgpl.c (main): Likewise.
38125         * tests/test-canonicalize.c (main): Likewise.
38126         * tests/test-chown.c (main): Likewise.
38127         * tests/test-fchownat.c (main): Likewise.
38128         * tests/test-fdutimensat.c (main): Likewise.
38129         * tests/test-fstatat.c (main): Likewise.
38130         * tests/test-futimens.c (main): Likewise.
38131         * tests/test-lchown.c (main): Likewise.
38132         * tests/test-link.c (main): Likewise.
38133         * tests/test-linkat.c (main): Likewise.
38134         * tests/test-lstat.c (main): Likewise.
38135         * tests/test-mkdir.c (main): Likewise.
38136         * tests/test-mkdirat.c (main): Likewise.
38137         * tests/test-mkfifo.c (main): Likewise.
38138         * tests/test-mkfifoat.c (main): Likewise.
38139         * tests/test-mknod.c (main): Likewise.
38140         * tests/test-readlink.c (main): Likewise.
38141         * tests/test-remove.c (main): Likewise.
38142         * tests/test-rename.c (main): Likewise.
38143         * tests/test-renameat.c (main): Likewise.
38144         * tests/test-rmdir.c (main): Likewise.
38145         * tests/test-symlink.c (main): Likewise.
38146         * tests/test-symlinkat.c (main): Likewise.
38147         * tests/test-unlink.c (main): Likewise.
38148         * tests/test-unlinkat.c (main): Likewise.
38149         * tests/test-utimens.c (main): Likewise.
38150         * tests/test-utimensat.c (main): Likewise.
38151         * modules/areadlink-tests (Depends-on): Add ignore-value.
38152         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38153         * modules/areadlinkat-tests (Depends-on): Likewise.
38154         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38155         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38156         * modules/canonicalize-tests (Depends-on): Likewise.
38157         * modules/chown-tests (Depends-on): Likewise.
38158         * modules/fdutimensat-tests (Depends-on): Likewise.
38159         * modules/futimens-tests (Depends-on): Likewise.
38160         * modules/lchown-tests (Depends-on): Likewise.
38161         * modules/link-tests (Depends-on): Likewise.
38162         * modules/linkat-tests (Depends-on): Likewise.
38163         * modules/lstat-tests (Depends-on): Likewise.
38164         * modules/mkdir-tests (Depends-on): Likewise.
38165         * modules/mkfifo-tests (Depends-on): Likewise.
38166         * modules/mkfifoat-tests (Depends-on): Likewise.
38167         * modules/mknod-tests (Depends-on): Likewise.
38168         * modules/openat-tests (Depends-on): Likewise.
38169         * modules/readlink-tests (Depends-on): Likewise.
38170         * modules/remove-tests (Depends-on): Likewise.
38171         * modules/rename-tests (Depends-on): Likewise.
38172         * modules/renameat-tests (Depends-on): Likewise.
38173         * modules/rmdir-tests (Depends-on): Likewise.
38174         * modules/symlink-tests (Depends-on): Likewise.
38175         * modules/symlinkat-tests (Depends-on): Likewise.
38176         * modules/unlink-tests (Depends-on): Likewise.
38177         * modules/utimens-tests (Depends-on): Likewise.
38178         * modules/utimensat-tests (Depends-on): Likewise.
38179
38180 2010-01-31  Bruno Haible  <bruno@clisp.org>
38181
38182         Perform the same test for many <math.h> functions.
38183         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38184         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38185         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38186         of gl_MATHFUNC.
38187         * modules/acos (configure.ac): Likewise.
38188         * modules/asin (configure.ac): Likewise.
38189         * modules/atan (configure.ac): Likewise.
38190         * modules/atan2 (configure.ac): Likewise.
38191         * modules/cbrt (configure.ac): Likewise.
38192         * modules/copysign (configure.ac): Likewise.
38193         * modules/cos (configure.ac): Likewise.
38194         * modules/cosh (configure.ac): Likewise.
38195         * modules/erf (configure.ac): Likewise.
38196         * modules/erfc (configure.ac): Likewise.
38197         * modules/exp (configure.ac): Likewise.
38198         * modules/fmod (configure.ac): Likewise.
38199         * modules/hypot (configure.ac): Likewise.
38200         * modules/j0 (configure.ac): Likewise.
38201         * modules/j1 (configure.ac): Likewise.
38202         * modules/jn (configure.ac): Likewise.
38203         * modules/lgamma (configure.ac): Likewise.
38204         * modules/log (configure.ac): Likewise.
38205         * modules/log10 (configure.ac): Likewise.
38206         * modules/log1p (configure.ac): Likewise.
38207         * modules/pow (configure.ac): Likewise.
38208         * modules/remainder (configure.ac): Likewise.
38209         * modules/sin (configure.ac): Likewise.
38210         * modules/sinh (configure.ac): Likewise.
38211         * modules/tan (configure.ac): Likewise.
38212         * modules/tanh (configure.ac): Likewise.
38213         * modules/y0 (configure.ac): Likewise.
38214         * modules/y1 (configure.ac): Likewise.
38215         * modules/yn (configure.ac): Likewise.
38216         Suggested by Paolo Bonzini.
38217
38218 2010-01-31  Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38221
38222 2010-01-31  Bruno Haible  <bruno@clisp.org>
38223
38224         Work around getdelim() bug on FreeBSD 8.0.
38225         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38226         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38227         not work.
38228         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38229         is 1.
38230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38231         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38232         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38233         a non-zero size.
38234         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38235
38236 2010-01-31  Bruno Haible  <bruno@clisp.org>
38237
38238         Work around getline() bug on FreeBSD 8.0.
38239         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38240         and a non-zero size.
38241         * tests/test-getline.c (main): Likewise.
38242         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38243         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38244
38245 2010-01-28  Eric Blake  <ebb9@byu.net>
38246
38247         regex: fix build failure
38248         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38249         platforms.
38250
38251 2010-01-28  Jim Meyering  <meyering@redhat.com>
38252
38253         regex: do not ignore memory allocation failure
38254         * lib/regex_internal.c (create_cd_newstate): Detect
38255         re_node_set_init_copy failure.   Extracted from glibc commit
38256         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38257
38258         regex: sync more white-space changes from libc
38259         * lib/regex_internal.c: White-space only changes.
38260         * lib/regexec.c: Likewise.
38261
38262         regex: add many uses of __attribute_warn_unused_result__
38263         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38264         * lib/regexec.c: Likewise.
38265         Extracted from a messy glibc commit.
38266
38267         regcomp.c: spelling and merge-artifact from glibc
38268         * lib/regcomp.c: Merge remainder of glibc's
38269         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38270
38271         regcomp.c: sync white-space changes from glibc
38272         * lib/regcomp.c: Merge to accommodate white space
38273         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38274
38275         regcomp.c: do not ignore internal return values
38276         * lib/regcomp.c: Do not ignore internal return values.
38277         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38278         but without its white-space changes and spelling fixes.
38279
38280         regex_internal.h: define __attribute_warn_unused_result__
38281         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38282
38283         maint: add a syntax-check rule to check for vulnerable Makefile.in
38284         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38285
38286 2010-01-27  Jim Meyering  <meyering@redhat.com>
38287
38288         ncftpput-ftp: clean up spaces
38289         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38290         Remove trailing blanks.
38291
38292 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38293
38294         * build-aux/git-version-gen: Fix copyright statement.
38295         * build-aux/gnupload: Likewise.
38296         * tests/test-arcfour.c: Likewise.
38297         * tests/test-arctwo.c: Likewise.
38298         * tests/test-count-one-bits.c: Likewise.
38299         * tests/test-crc.c: Likewise.
38300         * tests/test-des.c: Likewise.
38301         * tests/test-gc-arcfour.c: Likewise.
38302         * tests/test-gc-arctwo.c: Likewise.
38303         * tests/test-gc-des.c: Likewise.
38304         * tests/test-gc-hmac-md5.c: Likewise.
38305         * tests/test-gc-hmac-sha1.c: Likewise.
38306         * tests/test-gc-md2.c: Likewise.
38307         * tests/test-gc-md4.c: Likewise.
38308         * tests/test-gc-md5.c: Likewise.
38309         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38310         * tests/test-gc-rijndael.c: Likewise.
38311         * tests/test-gc-sha1.c: Likewise.
38312         * tests/test-gc.c: Likewise.
38313         * tests/test-gethostname.c: Likewise.
38314         * tests/test-gettimeofday.c: Likewise.
38315         * tests/test-hash.c: Likewise.
38316         * tests/test-hmac-md5.c: Likewise.
38317         * tests/test-hmac-sha1.c: Likewise.
38318         * tests/test-md2.c: Likewise.
38319         * tests/test-md4.c: Likewise.
38320         * tests/test-md5.c: Likewise.
38321         * tests/test-memchr.c: Likewise.
38322         * tests/test-memchr2.c: Likewise.
38323         * tests/test-memcmp.c: Likewise.
38324         * tests/test-memmem.c: Likewise.
38325         * tests/test-memrchr.c: Likewise.
38326         * tests/test-rawmemchr.c: Likewise.
38327         * tests/test-read-file.c: Likewise.
38328         * tests/test-rijndael.c: Likewise.
38329         * tests/test-sockets.c: Likewise.
38330         * tests/test-strchrnul.c: Likewise.
38331         * tests/test-strstr.c: Likewise.
38332         * tests/test-strtod.c: Likewise.
38333         * build-aux/ncftpput-ftp: Likewise.
38334
38335 2010-01-26  Eric Blake  <ebb9@byu.net>
38336
38337         ignore-value: update recommended header name
38338         * modules/ignore-value (Include): Only use <> for headers that
38339         exist in glibc.
38340
38341 2010-01-26  Jim Meyering  <meyering@redhat.com>
38342
38343         test-userspec.c: avoid compiler warnings
38344         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38345         and "initialization discards qualifiers..." warnings.
38346         Put the first "uid" in its own scope, and make char* members "const".
38347
38348 2010-01-25  Bruno Haible  <bruno@clisp.org>
38349
38350         gnulib-tool: Make warning diagnostics consistent.
38351         * gnulib-tool (func_warning): New function.
38352         Use it everywhere where gnulib-tool produces output to stderr and it is
38353         not a fatal error.
38354
38355 2010-01-25  Bruno Haible  <bruno@clisp.org>
38356
38357         Fix test dependencies.
38358         * modules/xstrtol-tests (Depends-on): Add inttypes.
38359         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38360
38361 2010-01-25 Pádraig Brady <P@draigBrady.com>
38362
38363         syntax-check: detect incorrect boolean macro values in config.h
38364         * modules/maintainer-makefile (configure.ac): Parameterize the location
38365         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38366         The logic is from Eric Blake and the location indicated by Jim Meyering.
38367         Note the more natural CONFIG_HEADER name is prohibited by automake
38368         for backwards compatibility reasons.
38369         * top/maint.mk (sc_Wundef_boolean): New rule.
38370
38371 2010-01-25  Jim Meyering  <meyering@redhat.com>
38372
38373         bootstrap: detect MacOS 10.6's shasum, too
38374         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38375         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38376
38377 2010-01-23  Jim Meyering  <meyering@redhat.com>
38378
38379         xstrtoll: new module
38380         * modules/xstrtoll: New file.
38381         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38382         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38383         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38384         ./configure fails if you use this module and lack "long long".
38385         * modules/xstrtoll-tests: New module.
38386         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38387         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38388         new init.sh-based test framework.
38389
38390 2010-01-24  Bruno Haible  <bruno@clisp.org>
38391
38392         Tests for module 'yn'.
38393         * modules/yn-tests: New file.
38394         * tests/test-yn.c: New file.
38395
38396         Tests for module 'y1'.
38397         * modules/y1-tests: New file.
38398         * tests/test-y1.c: New file.
38399
38400         Tests for module 'y0'.
38401         * modules/y0-tests: New file.
38402         * tests/test-y0.c: New file.
38403
38404         Tests for module 'tanh'.
38405         * modules/tanh-tests: New file.
38406         * tests/test-tanh.c: New file.
38407
38408         Tests for module 'tan'.
38409         * modules/tan-tests: New file.
38410         * tests/test-tan.c: New file.
38411
38412         Tests for module 'sqrt'.
38413         * modules/sqrt-tests: New file.
38414         * tests/test-sqrt.c: New file.
38415
38416         Tests for module 'sinh'.
38417         * modules/sinh-tests: New file.
38418         * tests/test-sinh.c: New file.
38419
38420         Tests for module 'sin'.
38421         * modules/sin-tests: New file.
38422         * tests/test-sin.c: New file.
38423
38424         Tests for module 'rint'.
38425         * modules/rint-tests: New file.
38426         * tests/test-rint.c: New file.
38427
38428         Tests for module 'remainder'.
38429         * modules/remainder-tests: New file.
38430         * tests/test-remainder.c: New file.
38431
38432         Tests for module 'pow'.
38433         * modules/pow-tests: New file.
38434         * tests/test-pow.c: New file.
38435
38436         Tests for module 'nextafter'.
38437         * modules/nextafter-tests: New file.
38438         * tests/test-nextafter.c: New file.
38439
38440         Tests for module 'modf'.
38441         * modules/modf-tests: New file.
38442         * tests/test-modf.c: New file.
38443
38444         Tests for module 'logb'.
38445         * modules/logb-tests: New file.
38446         * tests/test-logb.c: New file.
38447
38448         Tests for module 'log1p'.
38449         * modules/log1p-tests: New file.
38450         * tests/test-log1p.c: New file.
38451
38452         Tests for module 'log10'.
38453         * modules/log10-tests: New file.
38454         * tests/test-log10.c: New file.
38455
38456         Tests for module 'log'.
38457         * modules/log-tests: New file.
38458         * tests/test-log.c: New file.
38459
38460         Tests for module 'lgamma'.
38461         * modules/lgamma-tests: New file.
38462         * tests/test-lgamma.c: New file.
38463
38464         Tests for module 'ldexp'.
38465         * modules/ldexp-tests: New file.
38466         * tests/test-ldexp.c: New file.
38467
38468         Tests for module 'jn'.
38469         * modules/jn-tests: New file.
38470         * tests/test-jn.c: New file.
38471
38472         Tests for module 'j1'.
38473         * modules/j1-tests: New file.
38474         * tests/test-j1.c: New file.
38475
38476         Tests for module 'j0'.
38477         * modules/j0-tests: New file.
38478         * tests/test-j0.c: New file.
38479
38480         Tests for module 'hypot'.
38481         * modules/hypot-tests: New file.
38482         * tests/test-hypot.c: New file.
38483
38484         Tests for module 'fmod'.
38485         * modules/fmod-tests: New file.
38486         * tests/test-fmod.c: New file.
38487
38488         Tests for module 'fabs'.
38489         * modules/fabs-tests: New file.
38490         * tests/test-fabs.c: New file.
38491
38492         Tests for module 'exp'.
38493         * modules/exp-tests: New file.
38494         * tests/test-exp.c: New file.
38495
38496         Tests for module 'erfc'.
38497         * modules/erfc-tests: New file.
38498         * tests/test-erfc.c: New file.
38499
38500         Tests for module 'erf'.
38501         * modules/erf-tests: New file.
38502         * tests/test-erf.c: New file.
38503
38504         Tests for module 'cosh'.
38505         * modules/cosh-tests: New file.
38506         * tests/test-cosh.c: New file.
38507
38508         Tests for module 'cos'.
38509         * modules/cos-tests: New file.
38510         * tests/test-cos.c: New file.
38511
38512         Tests for module 'copysign'.
38513         * modules/copysign-tests: New file.
38514         * tests/test-copysign.c: New file.
38515
38516         Tests for module 'cbrt'.
38517         * modules/cbrt-tests: New file.
38518         * tests/test-cbrt.c: New file.
38519
38520         Tests for module 'atan2'.
38521         * modules/atan2-tests: New file.
38522         * tests/test-atan2.c: New file.
38523
38524         Tests for module 'atan'.
38525         * modules/atan-tests: New file.
38526         * tests/test-atan.c: New file.
38527
38528         Tests for module 'asin'.
38529         * modules/asin-tests: New file.
38530         * tests/test-asin.c: New file.
38531
38532         Tests for module 'acos'.
38533         * modules/acos-tests: New file.
38534         * tests/test-acos.c: New file.
38535
38536 2010-01-24  Bruno Haible  <bruno@clisp.org>
38537
38538         Fix tests for common <math.h> functions.
38539         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38540         code snippet that references the function pointer, rather than merely
38541         calling the function. Substitute the FUNC_LIBM variable.
38542         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38543         * modules/acos (configure.ac): Likewise.
38544         * modules/asin (configure.ac): Likewise.
38545         * modules/atan (configure.ac): Likewise.
38546         * modules/atan2 (configure.ac): Likewise.
38547         * modules/cbrt (configure.ac): Likewise.
38548         * modules/copysign (configure.ac): Likewise.
38549         * modules/cos (configure.ac): Likewise.
38550         * modules/cosh (configure.ac): Likewise.
38551         * modules/erf (configure.ac): Likewise.
38552         * modules/erfc (configure.ac): Likewise.
38553         * modules/exp (configure.ac): Likewise.
38554         * modules/fabs (configure.ac): Likewise.
38555         * modules/fmod (configure.ac): Likewise.
38556         * modules/hypot (configure.ac): Likewise.
38557         * modules/j0 (configure.ac): Likewise.
38558         * modules/j1 (configure.ac): Likewise.
38559         * modules/jn (configure.ac): Likewise.
38560         * modules/ldexp (configure.ac): Likewise.
38561         * modules/lgamma (configure.ac): Likewise.
38562         * modules/log (configure.ac): Likewise.
38563         * modules/log10 (configure.ac): Likewise.
38564         * modules/log1p (configure.ac): Likewise.
38565         * modules/logb (configure.ac): Likewise.
38566         * modules/modf (configure.ac): Likewise.
38567         * modules/nextafter (configure.ac): Likewise.
38568         * modules/pow (configure.ac): Likewise.
38569         * modules/remainder (configure.ac): Likewise.
38570         * modules/rint (configure.ac): Likewise.
38571         * modules/sin (configure.ac): Likewise.
38572         * modules/sinh (configure.ac): Likewise.
38573         * modules/tan (configure.ac): Likewise.
38574         * modules/tanh (configure.ac): Likewise.
38575         * modules/y0 (configure.ac): Likewise.
38576         * modules/y1 (configure.ac): Likewise.
38577         * modules/yn (configure.ac): Likewise.
38578
38579 2010-01-24  Bruno Haible  <bruno@clisp.org>
38580
38581         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38582         * tests/test-acosl.c (x): New variable.
38583         (main): Store argument in x and fetch it from x.
38584         * tests/test-asinl.c (x): New variable.
38585         (main): Store argument in x and fetch it from x.
38586         * tests/test-atanl.c (x): New variable.
38587         (main): Store argument in x and fetch it from x.
38588         * tests/test-cosl.c (x): New variable.
38589         (main): Store argument in x and fetch it from x.
38590         * tests/test-expl.c (x): New variable.
38591         (main): Store argument in x and fetch it from x.
38592         * tests/test-logl.c (x): New variable.
38593         (main): Store argument in x and fetch it from x.
38594         * tests/test-sinl.c (x): New variable.
38595         (main): Store argument in x and fetch it from x.
38596         * tests/test-sqrtl.c (x): New variable.
38597         (main): Store argument in x and fetch it from x.
38598         * tests/test-tanl.c (x): New variable.
38599         (main): Store argument in x and fetch it from x.
38600
38601 2010-01-24  Bruno Haible  <bruno@clisp.org>
38602
38603         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38604         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38605         assignments to the initial TESTS_ENVIRONMENT.
38606         * doc/gnulib.texi (Unit test modules): Document it.
38607         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38608         TESTS_ENVIRONMENT.
38609         * modules/btowc-tests (Makefile.am): Likewise.
38610         * modules/c-stack-tests (Makefile.am): Likewise.
38611         * modules/c-strcase-tests (Makefile.am): Likewise.
38612         * modules/copy-file-tests (Makefile.am): Likewise.
38613         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38614         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38615         * modules/mbrtowc-tests (Makefile.am): Likewise.
38616         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38617         * modules/mbscasestr-tests (Makefile.am): Likewise.
38618         * modules/mbschr-tests (Makefile.am): Likewise.
38619         * modules/mbscspn-tests (Makefile.am): Likewise.
38620         * modules/mbsinit-tests (Makefile.am): Likewise.
38621         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38622         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38623         * modules/mbspbrk-tests (Makefile.am): Likewise.
38624         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38625         * modules/mbsrchr-tests (Makefile.am): Likewise.
38626         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38627         * modules/mbsspn-tests (Makefile.am): Likewise.
38628         * modules/mbsstr-tests (Makefile.am): Likewise.
38629         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38630         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38631         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38632         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38633         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38634         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38635         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38636         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38637         * modules/wcrtomb-tests (Makefile.am): Likewise.
38638         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38639         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38640         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38641         assignments from TESTS_ENVIRONMENT.
38642         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38643         augmentation.
38644         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38645         * modules/atexit-tests (Makefile.am): Likewise.
38646         * modules/binary-io-tests (Makefile.am): Likewise.
38647         * modules/closein-tests (Makefile.am): Likewise.
38648         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38649         * modules/exclude-tests (Makefile.am): Likewise.
38650         * modules/fflush-tests (Makefile.am): Likewise.
38651         * modules/fpending-tests (Makefile.am): Likewise.
38652         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38653         * modules/freadahead-tests (Makefile.am): Likewise.
38654         * modules/freadptr-tests (Makefile.am): Likewise.
38655         * modules/freadseek-tests (Makefile.am): Likewise.
38656         * modules/fseek-tests (Makefile.am): Likewise.
38657         * modules/fseeko-tests (Makefile.am): Likewise.
38658         * modules/ftell-tests (Makefile.am): Likewise.
38659         * modules/ftello-tests (Makefile.am): Likewise.
38660         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38661         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38662         * modules/lseek-tests (Makefile.am): Likewise.
38663         * modules/parse-duration-tests (Makefile.am): Likewise.
38664         * modules/perror-tests (Makefile.am): Likewise.
38665         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38666         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38667         * modules/pipe-tests (Makefile.am): Likewise.
38668         * modules/pread-tests (Makefile.am): Likewise.
38669         * modules/printf-posix-tests (Makefile.am): Likewise.
38670         * modules/select-tests (Makefile.am): Likewise.
38671         * modules/sigpipe-tests (Makefile.am): Likewise.
38672         * modules/tsearch-tests (Makefile.am): Likewise.
38673         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38674         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38675         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38676         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38677         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38678         * modules/version-etc-tests (Makefile.am): Likewise.
38679         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38680         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38681         * modules/xalloc-die-tests (Makefile.am): Likewise.
38682         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38683         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38684         * modules/xstrtol-tests (Makefile.am): Likewise.
38685         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38686         * modules/yesno-tests (Makefile.am): Likewise.
38687         Suggested by Jim Meyering.
38688
38689 2010-01-24  Bruno Haible  <bruno@clisp.org>
38690
38691         More documentation.
38692         * doc/gnulib.texi (Writing modules): New chapter.
38693         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38694         the new chapter.
38695
38696 2010-01-24  Jim Meyering  <meyering@redhat.com>
38697
38698         maint.mk: do not prepend "./" after filtering
38699         * top/maint.mk (_prepend_srcdir_prefix): New variable
38700         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38701         "./" when $(srcdir) is ".".
38702
38703         define STREQ(a,b) consistently, removing useless parentheses
38704         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38705         since the only risk is that "a" or "b" contains an unparenthesized
38706         comma, but if either did that, STREQ would have 3 or more arguments.
38707         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38708         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38709         * lib/hash-triple.c (STREQ): Likewise.
38710         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38711         * lib/getugroups.c (STREQ): Likewise.
38712
38713 2010-01-23  Jim Meyering  <meyering@redhat.com>
38714
38715         maint.mk: fix syntax-check in a non-srcdir build directory
38716         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38717         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38718
38719 2010-01-22  Jim Meyering  <meyering@redhat.com>
38720
38721         userspec: add unit tests
38722         * tests/test-userspec.c: New file.
38723         * modules/userspec-tests: Likewise.
38724
38725 2010-01-21  Jim Meyering  <meyering@redhat.com>
38726
38727         maint.mk: handle source file names containing "." robustly
38728         * top/maint.mk (_dot_escaped_srcdir): Define.
38729         (VC_LIST): Use it in LHS of sed substitution.
38730
38731 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38732
38733         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38734         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38735         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38736         from a non-srcdir build.
38737
38738 2010-01-20  Eric Blake  <ebb9@byu.net>
38739
38740         warn-on-use: use instead of link-warning
38741         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38742         * modules/unistd (Depends-on, Makefile.am): Likewise.
38743         * modules/arpa_inet (Depends-on): Replace link-warning with
38744         warn-on-use.
38745         (Makefile.am): Update rules accordingly.
38746         * modules/ctype (Depends-on, Makefile.am): Likewise.
38747         * modules/dirent (Depends-on, Makefile.am): Likewise.
38748         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38749         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38750         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38751         * modules/locale (Depends-on, Makefile.am): Likewise.
38752         * modules/math (Depends-on, Makefile.am): Likewise.
38753         * modules/search (Depends-on, Makefile.am): Likewise.
38754         * modules/signal (Depends-on, Makefile.am): Likewise.
38755         * modules/spawn (Depends-on, Makefile.am): Likewise.
38756         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38757         * modules/string (Depends-on, Makefile.am): Likewise.
38758         * modules/strings (Depends-on, Makefile.am): Likewise.
38759         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38760         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38761         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38762         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38763         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38764         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38765         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38766         * modules/wchar (Depends-on, Makefile.am): Likewise.
38767         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38768         should be poisoned.
38769         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38770         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38771         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38772         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38773         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38774         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38775         * m4/math_h.m4 (gl_MATH_H): Likewise.
38776         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38777         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38778         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38779         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38780         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38781         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38782         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38783         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38784         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38788         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38789         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38790         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38791         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38792         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38793         GL_LINK_WARNING.
38794         * lib/ctype.in.h: Likewise.
38795         * lib/dirent.in.h: Likewise.
38796         * lib/fcntl.in.h: Likewise.
38797         * lib/inttypes.in.h: Likewise.
38798         * lib/langinfo.in.h: Likewise.
38799         * lib/locale.in.h: Likewise.
38800         * lib/math.in.h: Likewise.
38801         * lib/search.in.h: Likewise.
38802         * lib/signal.in.h: Likewise.
38803         * lib/spawn.in.h: Likewise.
38804         * lib/stdio.in.h: Likewise.
38805         * lib/stdlib.in.h: Likewise.
38806         * lib/string.in.h: Likewise.
38807         * lib/strings.in.h: Likewise.
38808         * lib/sys_file.in.h: Likewise.
38809         * lib/sys_ioctl.in.h: Likewise.
38810         * lib/sys_select.in.h: Likewise.
38811         * lib/sys_socket.in.h: Likewise.
38812         * lib/sys_stat.in.h: Likewise.
38813         * lib/sys_times.in.h: Likewise.
38814         * lib/sys_utsname.in.h: Likewise.
38815         * lib/unistd.in.h: Likewise.
38816         * lib/wchar.in.h: Likewise.
38817
38818 2010-01-20  Bruno Haible  <bruno@clisp.org>
38819
38820         Avoid duplicate -lm.
38821         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38822         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38824         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38825         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38826         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38827         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38828         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38829         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38830         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38831         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38832         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38833         Reported by Paolo Bonzini.
38834
38835 2010-01-19  Bruno Haible  <bruno@clisp.org>
38836
38837         langinfo, nl_langinfo: Relicense under LGPLv2+.
38838         * modules/langinfo (License): Change to LGPLv2+.
38839         * modules/nl_langinfo (License): Likewise.
38840         Patch by David Lutterkort <lutter@redhat.com>.
38841
38842 2010-01-19  Bruno Haible  <bruno@clisp.org>
38843
38844         Avoid compilation error with cc on OSF/1 5.1.
38845         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38846         statement, not before.
38847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38848
38849 2010-01-18  Bruno Haible  <bruno@clisp.org>
38850
38851         Avoid a link error due to the __printf__ symbol.
38852         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38853         and 2.6.x.
38854         (__format__, __printf__): Remove definitions.
38855         * lib/argp-fmtstream.h: Likewise.
38856         * lib/argp.h: Likewise.
38857         * lib/error.h: Likewise.
38858         * lib/vasnprintf.h: Likewise.
38859         * lib/xprintf.h: Likewise.
38860         * lib/xvasprintf.h: Likewise.
38861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38862
38863 2010-01-18  Bruno Haible  <bruno@clisp.org>
38864
38865         Tests for module 'tanl'.
38866         * modules/tanl-tests: New file.
38867         * tests/test-tanl.c: New file.
38868
38869         Tests for module 'sqrtl'.
38870         * modules/sqrtl-tests: New file.
38871         * tests/test-sqrtl.c: New file.
38872
38873         Tests for module 'sinl'.
38874         * modules/sinl-tests: New file.
38875         * tests/test-sinl.c: New file.
38876
38877         Tests for module 'logl'.
38878         * modules/logl-tests: New file.
38879         * tests/test-logl.c: New file.
38880
38881         Tests for module 'expl'.
38882         * modules/expl-tests: New file.
38883         * tests/test-expl.c: New file.
38884
38885         Tests for module 'cosl'.
38886         * modules/cosl-tests: New file.
38887         * tests/test-cosl.c: New file.
38888
38889         Tests for module 'atanl'.
38890         * modules/atanl-tests: New file.
38891         * tests/test-atanl.c: New file.
38892
38893         Tests for module 'asinl'.
38894         * modules/asinl-tests: New file.
38895         * tests/test-asinl.c: New file.
38896
38897         Tests for module 'acosl'.
38898         * modules/acosl-tests: New file.
38899         * tests/test-acosl.c: New file.
38900
38901         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38902         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38903         tanl): Use the standard gnulib idiom.
38904         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38905         * lib/sinl.c: Likewise.
38906         * lib/tanl.c: Don't include trigl.c.
38907         (kernel_tanl): Make static.
38908         * lib/sincosl.c: Include trigl.h first.
38909         * lib/trigl.c: Likewise.
38910         * m4/acosl.m4: New file.
38911         * m4/asinl.m4: New file.
38912         * m4/atanl.m4: New file.
38913         * m4/cosl.m4: New file.
38914         * m4/expl.m4: New file.
38915         * m4/logl.m4: New file.
38916         * m4/sinl.m4: New file.
38917         * m4/sqrtl.m4: New file.
38918         * m4/tanl.m4: New file.
38919         * m4/mathl.m4: Remove file.
38920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38921         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38922         Don't initialize GNULIB_MATHL.
38923         * modules/acosl: New file.
38924         * modules/asinl: New file.
38925         * modules/atanl: New file.
38926         * modules/cosl: New file.
38927         * modules/expl: New file.
38928         * modules/logl: New file.
38929         * modules/sinl: New file.
38930         * modules/sqrtl: New file.
38931         * modules/tanl: New file.
38932         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38933         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38934         substitute GNULIB_MATHL.
38935         * modules/mathl: Rewritten.
38936         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38937         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38938         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38939         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38940         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38941         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38942         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38943         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38944         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38945
38946 2010-01-18  Bruno Haible  <bruno@clisp.org>
38947
38948         sqrt: Make gl_FUNC_SQRT requirable.
38949         * m4/sqrt.m4: New file.
38950         * modules/sqrt (Files): Add it.
38951         (configure.ac): Invoke gl_FUNC_SQRT.
38952
38953 2010-01-18  Bruno Haible  <bruno@clisp.org>
38954
38955         New modules for common <math.h> functions.
38956         * m4/mathfunc.m4: New file.
38957         * modules/acos: New file.
38958         * modules/asin: New file.
38959         * modules/atan: New file.
38960         * modules/atan2: New file.
38961         * modules/cbrt: New file.
38962         * modules/copysign: New file.
38963         * modules/cos: New file.
38964         * modules/cosh: New file.
38965         * modules/erf: New file.
38966         * modules/erfc: New file.
38967         * modules/exp: New file.
38968         * modules/fabs: New file.
38969         * modules/fmod: New file.
38970         * modules/hypot: New file.
38971         * modules/j0: New file.
38972         * modules/j1: New file.
38973         * modules/jn: New file.
38974         * modules/ldexp: New file.
38975         * modules/lgamma: New file.
38976         * modules/log: New file.
38977         * modules/log10: New file.
38978         * modules/log1p: New file.
38979         * modules/logb: New file.
38980         * modules/modf: New file.
38981         * modules/nextafter: New file.
38982         * modules/pow: New file.
38983         * modules/remainder: New file.
38984         * modules/rint: New file.
38985         * modules/sin: New file.
38986         * modules/sinh: New file.
38987         * modules/sqrt: New file.
38988         * modules/tan: New file.
38989         * modules/tanh: New file.
38990         * modules/y0: New file.
38991         * modules/y1: New file.
38992         * modules/yn: New file.
38993         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38994         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38995         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38996         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38997         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38998         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38999         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39000         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39001         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39002         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39003         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39004         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39005         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39006         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39007         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39008         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39009         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39010         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39011         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39012         * doc/posix-functions/log.texi: Mention the 'log' module.
39013         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39014         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39015         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39016         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39017         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39018         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39019         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39020         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39021         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39022         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39023         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39024         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39025         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39026         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39027         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39028         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39029
39030 2010-01-18  Jim Meyering  <meyering@redhat.com>
39031
39032         ignore-value: relax license to LGPLv2+
39033         * modules/ignore-value (License): Relax to LGPLv2+.
39034
39035         getdate: don't leak when TZ contains two or more '"'s
39036         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39037         double quote in TZ after the first one.
39038
39039         readtokens: do not leak internal token_lengths buffer
39040         * lib/readtokens.c (readtokens): Free the local, lengths,
39041         when the supplied "token_lengths" parameter is NULL.
39042
39043 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39044
39045         Fix a couple of missing LIBTHREAD link failures on AIX.
39046         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39047         $(LIBTHREAD).
39048         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39049
39050         Link test-poll against INET_PTON_LIB.
39051         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39052         for inet_pton on Solaris 10.
39053
39054 2010-01-17  Bruno Haible  <bruno@clisp.org>
39055
39056         unistdio/*-sprintf: Fix typo in module description.
39057         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39058         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39059         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39060         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39061         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39062         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39063         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39065
39066 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39067
39068         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39069         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39070         variables in shell case patterns, for AIX and HP-UX ksh.
39071
39072         Split large sed scripts, for HP-UX sed.
39073         * modules/stdio: Split sed scripts around 50 sed commands,
39074         to avoid HP-UX limit of 99 commands, in the near future.
39075         * modules/string: Likewise.
39076         * modules/unistd: Likewise.
39077
39078         gnulib-tool: avoid writing in the current directory.
39079         * gnulib-tool (func_emit_lib_Makefile_am)
39080         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39081         not in the current directory, so concurrent gnulib-tool
39082         instances do not interfere.
39083
39084 2010-01-16  Jim Meyering  <meyering@redhat.com>
39085
39086         doc: update users.txt
39087         * users.txt: Add grep.
39088         (diffutils, gzip): Update URLs.
39089
39090 2010-01-12  Bruno Haible  <bruno@clisp.org>
39091
39092         posix_spawn: Avoid test failure on Cygwin.
39093         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39094         characters.
39095         Reported by Simon Josefsson.
39096
39097 2010-01-12  Bruno Haible  <bruno@clisp.org>
39098
39099         * tests/test-cond.c (main): When skipping the test, show the reason.
39100
39101 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39102
39103         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39104
39105 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39106
39107         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39108         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39109
39110 2010-01-12  Eric Blake  <ebb9@byu.net>
39111
39112         build: guarantee AS_VAR_IF
39113         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39114         (gl_AS_VAR_IF): Move...
39115         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39116         Reported by Simon Josefsson.
39117
39118 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39119
39120         * lib/stdio.in.h: Fix typo.
39121
39122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39123
39124         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39125         libgpg-error.
39126
39127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39128
39129         * tests/test-xalloc-die.sh: Use $EXEEXT.
39130
39131 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39132             Bruno Haible  <bruno@clisp.org>
39133
39134         getlogin, getlogin_r: Avoid test failure.
39135         * tests/test-getlogin.c: Include <stdio.h>.
39136         (main): Skip the test when the function fails because stdin is not a
39137         tty.
39138         * tests/test-getlogin_r.c: Include <stdio.h>.
39139         (main): Skip the test when the function fails because stdin is not a
39140         tty.
39141
39142 2010-01-11  Eric Blake  <ebb9@byu.net>
39143
39144         tests: avoid more large file warnings
39145         * tests/test-fflush.c: Avoid warning about ftell use.
39146         * tests/test-fseek.c: Avoid warning about fseek use.
39147
39148 2010-01-10  Bruno Haible  <bruno@clisp.org>
39149
39150         nproc: Work better on Linux when /proc and /sys are not mounted.
39151         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39152         as lower bound when, on glibc/Linux systems,
39153         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39154         Suggested by Pádraig Brady <P@draigbrady.com>.
39155         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39156
39157         nproc: Refactor.
39158         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39159         extracted from num_processors.
39160         (num_processors): Call it.
39161
39162 2010-01-11  Jim Meyering  <meyering@redhat.com>
39163
39164         utimecmp: avoid new warning from upcoming gcc-4.5.0
39165         * lib/utimecmp.c (BILLION): Define using #define rather than an
39166         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39167
39168 2010-01-11  Eric Blake  <ebb9@byu.net>
39169
39170         math: add portability warnings for classification macros
39171         * modules/math (Depends-on): Add warn-on-use.
39172         (Makefile.am): Provide new substitutions.
39173         * m4/math_h.m4 (gl_MATH_H): Require inline.
39174         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39175         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39176         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39177         implement warnings.
39178
39179         unistd: warn on use of environ without module
39180         * modules/unistd (Depends-on): Add warn-on-use.
39181         (Makefile.am): Provide new substitutions.
39182         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39183         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39184
39185         stdio: warn on suspicious uses
39186         * modules/stdio (Depends-on): Add warn-on-use.
39187         (Makefile.am): Provide new substitutions.
39188         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39189         fseeko.
39190         * lib/stdio.in.h (gets): Always warn on use.
39191         (fseek, ftell): Adjust when warnings are issued, and honor
39192         _GL_NO_LARGE_FILES as a way to silence the warning.
39193         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39194         any warning about large file offsets.
39195         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39196         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39197         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39198         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39199         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39200         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39201         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39202         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39203
39204         warn-on-use: new module
39205         * modules/warn-on-use: New file.
39206         * build-aux/warn-on-use.h: Likewise.
39207         * m4/warn-on-use.m4: Likewise.
39208         * MODULES.html.sh (Support for building): Mention it.
39209
39210 2010-01-10  Bruno Haible  <bruno@clisp.org>
39211
39212         Tests for module 'unistr/u32-strdup'.
39213         * modules/unistr/u32-strdup-tests: New file.
39214         * tests/unistr/test-u32-strdup.c: New file.
39215
39216         Tests for module 'unistr/u16-strdup'.
39217         * modules/unistr/u16-strdup-tests: New file.
39218         * tests/unistr/test-u16-strdup.c: New file.
39219
39220         Tests for module 'unistr/u8-strdup'.
39221         * modules/unistr/u8-strdup-tests: New file.
39222         * tests/unistr/test-u8-strdup.c: New file.
39223         * tests/unistr/test-strdup.h: New file.
39224
39225         Tests for module 'unistr/u32-strncmp'.
39226         * modules/unistr/u32-strncmp-tests: New file.
39227         * tests/unistr/test-u32-strncmp.c: New file.
39228
39229         Tests for module 'unistr/u16-strncmp'.
39230         * modules/unistr/u16-strncmp-tests: New file.
39231         * tests/unistr/test-u16-strncmp.c: New file.
39232
39233         Tests for module 'unistr/u8-strncmp'.
39234         * modules/unistr/u8-strncmp-tests: New file.
39235         * tests/unistr/test-u8-strncmp.c: New file.
39236         * tests/unistr/test-strncmp.h: New file.
39237
39238         Tests for module 'unistr/u32-strcoll'.
39239         * modules/unistr/u32-strcoll-tests: New file.
39240         * tests/unistr/test-u32-strcoll.c: New file.
39241
39242         Tests for module 'unistr/u16-strcoll'.
39243         * modules/unistr/u16-strcoll-tests: New file.
39244         * tests/unistr/test-u16-strcoll.c: New file.
39245
39246         Tests for module 'unistr/u8-strcoll'.
39247         * modules/unistr/u8-strcoll-tests: New file.
39248         * tests/unistr/test-u8-strcoll.c: New file.
39249
39250         Tests for module 'unistr/u32-strcmp'.
39251         * modules/unistr/u32-strcmp-tests: New file.
39252         * tests/unistr/test-u32-strcmp.c: New file.
39253         * tests/unistr/test-u32-strcmp.h: New file.
39254
39255         Tests for module 'unistr/u16-strcmp'.
39256         * modules/unistr/u16-strcmp-tests: New file.
39257         * tests/unistr/test-u16-strcmp.c: New file.
39258         * tests/unistr/test-u16-strcmp.h: New file.
39259
39260         Tests for module 'unistr/u8-strcmp'.
39261         * modules/unistr/u8-strcmp-tests: New file.
39262         * tests/unistr/test-u8-strcmp.c: New file.
39263         * tests/unistr/test-u8-strcmp.h: New file.
39264         * tests/unistr/test-strcmp.h: New file.
39265
39266         Tests for module 'unistr/u32-strncat'.
39267         * modules/unistr/u32-strncat-tests: New file.
39268         * tests/unistr/test-u32-strncat.c: New file.
39269
39270         Tests for module 'unistr/u16-strncat'.
39271         * modules/unistr/u16-strncat-tests: New file.
39272         * tests/unistr/test-u16-strncat.c: New file.
39273
39274         Tests for module 'unistr/u8-strncat'.
39275         * modules/unistr/u8-strncat-tests: New file.
39276         * tests/unistr/test-u8-strncat.c: New file.
39277         * tests/unistr/test-strncat.h: New file.
39278
39279         Tests for module 'unistr/u32-strcat'.
39280         * modules/unistr/u32-strcat-tests: New file.
39281         * tests/unistr/test-u32-strcat.c: New file.
39282
39283         Tests for module 'unistr/u16-strcat'.
39284         * modules/unistr/u16-strcat-tests: New file.
39285         * tests/unistr/test-u16-strcat.c: New file.
39286
39287         Tests for module 'unistr/u8-strcat'.
39288         * modules/unistr/u8-strcat-tests: New file.
39289         * tests/unistr/test-u8-strcat.c: New file.
39290         * tests/unistr/test-strcat.h: New file.
39291
39292         Tests for module 'unistr/u32-stpncpy'.
39293         * modules/unistr/u32-stpncpy-tests: New file.
39294         * tests/unistr/test-u32-stpncpy.c: New file.
39295
39296         Tests for module 'unistr/u16-stpncpy'.
39297         * modules/unistr/u16-stpncpy-tests: New file.
39298         * tests/unistr/test-u16-stpncpy.c: New file.
39299
39300         Tests for module 'unistr/u8-stpncpy'.
39301         * modules/unistr/u8-stpncpy-tests: New file.
39302         * tests/unistr/test-u8-stpncpy.c: New file.
39303         * tests/unistr/test-stpncpy.h: New file.
39304
39305         Tests for module 'unistr/u32-strncpy'.
39306         * modules/unistr/u32-strncpy-tests: New file.
39307         * tests/unistr/test-u32-strncpy.c: New file.
39308
39309         Tests for module 'unistr/u16-strncpy'.
39310         * modules/unistr/u16-strncpy-tests: New file.
39311         * tests/unistr/test-u16-strncpy.c: New file.
39312
39313         Tests for module 'unistr/u8-strncpy'.
39314         * modules/unistr/u8-strncpy-tests: New file.
39315         * tests/unistr/test-u8-strncpy.c: New file.
39316         * tests/unistr/test-strncpy.h: New file.
39317
39318         Tests for module 'unistr/u32-stpcpy'.
39319         * modules/unistr/u32-stpcpy-tests: New file.
39320         * tests/unistr/test-u32-stpcpy.c: New file.
39321
39322         Tests for module 'unistr/u16-stpcpy'.
39323         * modules/unistr/u16-stpcpy-tests: New file.
39324         * tests/unistr/test-u16-stpcpy.c: New file.
39325
39326         Tests for module 'unistr/u8-stpcpy'.
39327         * modules/unistr/u8-stpcpy-tests: New file.
39328         * tests/unistr/test-u8-stpcpy.c: New file.
39329         * tests/unistr/test-stpcpy.h: New file.
39330
39331         Tests for module 'unistr/u32-strcpy'.
39332         * modules/unistr/u32-strcpy-tests: New file.
39333         * tests/unistr/test-u32-strcpy.c: New file.
39334
39335         Tests for module 'unistr/u16-strcpy'.
39336         * modules/unistr/u16-strcpy-tests: New file.
39337         * tests/unistr/test-u16-strcpy.c: New file.
39338
39339         Tests for module 'unistr/u8-strcpy'.
39340         * modules/unistr/u8-strcpy-tests: New file.
39341         * tests/unistr/test-u8-strcpy.c: New file.
39342         * tests/unistr/test-strcpy.h: New file.
39343
39344         Tests for module 'unistr/u32-strnlen'.
39345         * modules/unistr/u32-strnlen-tests: New file.
39346         * tests/unistr/test-u32-strnlen.c: New file.
39347
39348         Tests for module 'unistr/u16-strnlen'.
39349         * modules/unistr/u16-strnlen-tests: New file.
39350         * tests/unistr/test-u16-strnlen.c: New file.
39351
39352         Tests for module 'unistr/u8-strnlen'.
39353         * modules/unistr/u8-strnlen-tests: New file.
39354         * tests/unistr/test-u8-strnlen.c: New file.
39355         * tests/unistr/test-strnlen.h: New file.
39356
39357         Tests for module 'unistr/u32-strlen'.
39358         * modules/unistr/u32-strlen-tests: New file.
39359         * tests/unistr/test-u32-strlen.c: New file.
39360
39361         Tests for module 'unistr/u16-strlen'.
39362         * modules/unistr/u16-strlen-tests: New file.
39363         * tests/unistr/test-u16-strlen.c: New file.
39364
39365         Tests for module 'unistr/u8-strlen'.
39366         * modules/unistr/u8-strlen-tests: New file.
39367         * tests/unistr/test-u8-strlen.c: New file.
39368
39369         Tests for module 'unistr/u32-prev'.
39370         * modules/unistr/u32-prev-tests: New file.
39371         * tests/unistr/test-u32-prev.c: New file.
39372
39373         Tests for module 'unistr/u16-prev'.
39374         * modules/unistr/u16-prev-tests: New file.
39375         * tests/unistr/test-u16-prev.c: New file.
39376
39377         Tests for module 'unistr/u8-prev'.
39378         * modules/unistr/u8-prev-tests: New file.
39379         * tests/unistr/test-u8-prev.c: New file.
39380
39381         Tests for module 'unistr/u32-next'.
39382         * modules/unistr/u32-next-tests: New file.
39383         * tests/unistr/test-u32-next.c: New file.
39384
39385         Tests for module 'unistr/u16-next'.
39386         * modules/unistr/u16-next-tests: New file.
39387         * tests/unistr/test-u16-next.c: New file.
39388
39389         Tests for module 'unistr/u8-next'.
39390         * modules/unistr/u8-next-tests: New file.
39391         * tests/unistr/test-u8-next.c: New file.
39392
39393         Tests for module 'unistr/u32-strmbtouc'.
39394         * modules/unistr/u32-strmbtouc-tests: New file.
39395         * tests/unistr/test-u32-strmbtouc.c: New file.
39396
39397         Tests for module 'unistr/u16-strmbtouc'.
39398         * modules/unistr/u16-strmbtouc-tests: New file.
39399         * tests/unistr/test-u16-strmbtouc.c: New file.
39400
39401         Tests for module 'unistr/u8-strmbtouc'.
39402         * modules/unistr/u8-strmbtouc-tests: New file.
39403         * tests/unistr/test-u8-strmbtouc.c: New file.
39404
39405         Tests for module 'unistr/u32-strmblen'.
39406         * modules/unistr/u32-strmblen-tests: New file.
39407         * tests/unistr/test-u32-strmblen.c: New file.
39408
39409         Tests for module 'unistr/u16-strmblen'.
39410         * modules/unistr/u16-strmblen-tests: New file.
39411         * tests/unistr/test-u16-strmblen.c: New file.
39412
39413         Tests for module 'unistr/u8-strmblen'.
39414         * modules/unistr/u8-strmblen-tests: New file.
39415         * tests/unistr/test-u8-strmblen.c: New file.
39416
39417         Tests for module 'unistr/u32-cpy-alloc'.
39418         * modules/unistr/u32-cpy-alloc-tests: New file.
39419         * tests/unistr/test-u32-cpy-alloc.c: New file.
39420
39421         Tests for module 'unistr/u16-cpy-alloc'.
39422         * modules/unistr/u16-cpy-alloc-tests: New file.
39423         * tests/unistr/test-u16-cpy-alloc.c: New file.
39424
39425         Tests for module 'unistr/u8-cpy-alloc'.
39426         * modules/unistr/u8-cpy-alloc-tests: New file.
39427         * tests/unistr/test-u8-cpy-alloc.c: New file.
39428         * tests/unistr/test-cpy-alloc.h: New file.
39429
39430         Tests for module 'unistr/u32-mbsnlen'.
39431         * modules/unistr/u32-mbsnlen-tests: New file.
39432         * tests/unistr/test-u32-mbsnlen.c: New file.
39433
39434         Tests for module 'unistr/u16-mbsnlen'.
39435         * modules/unistr/u16-mbsnlen-tests: New file.
39436         * tests/unistr/test-u16-mbsnlen.c: New file.
39437
39438         Tests for module 'unistr/u8-mbsnlen'.
39439         * modules/unistr/u8-mbsnlen-tests: New file.
39440         * tests/unistr/test-u8-mbsnlen.c: New file.
39441
39442         Tests for module 'unistr/u32-chr'.
39443         * modules/unistr/u32-chr-tests: New file.
39444         * tests/unistr/test-u32-chr.c: New file.
39445
39446         Tests for module 'unistr/u16-chr'.
39447         * modules/unistr/u16-chr-tests: New file.
39448         * tests/unistr/test-u16-chr.c: New file.
39449
39450         Tests for module 'unistr/u8-chr'.
39451         * modules/unistr/u8-chr-tests: New file.
39452         * tests/unistr/test-u8-chr.c: New file.
39453         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39454
39455         Tests for module 'unistr/u32-cmp2'.
39456         * modules/unistr/u32-cmp2-tests: New file.
39457         * tests/unistr/test-u32-cmp2.c: New file.
39458
39459         Tests for module 'unistr/u16-cmp2'.
39460         * modules/unistr/u16-cmp2-tests: New file.
39461         * tests/unistr/test-u16-cmp2.c: New file.
39462
39463         Tests for module 'unistr/u8-cmp2'.
39464         * modules/unistr/u8-cmp2-tests: New file.
39465         * tests/unistr/test-u8-cmp2.c: New file.
39466         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39467
39468         Tests for module 'unistr/u32-cmp'.
39469         * modules/unistr/u32-cmp-tests: New file.
39470         * tests/unistr/test-u32-cmp.c: New file.
39471
39472         Tests for module 'unistr/u16-cmp'.
39473         * modules/unistr/u16-cmp-tests: New file.
39474         * tests/unistr/test-u16-cmp.c: New file.
39475
39476         Tests for module 'unistr/u8-cmp'.
39477         * modules/unistr/u8-cmp-tests: New file.
39478         * tests/unistr/test-u8-cmp.c: New file.
39479         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39480
39481         Tests for module 'unistr/u32-set'.
39482         * modules/unistr/u32-set-tests: New file.
39483         * tests/unistr/test-u32-set.c: New file.
39484
39485         Tests for module 'unistr/u16-set'.
39486         * modules/unistr/u16-set-tests: New file.
39487         * tests/unistr/test-u16-set.c: New file.
39488
39489         Tests for module 'unistr/u8-set'.
39490         * modules/unistr/u8-set-tests: New file.
39491         * tests/unistr/test-u8-set.c: New file.
39492         * tests/unistr/test-set.h: New file.
39493
39494         Tests for module 'unistr/u32-move'.
39495         * modules/unistr/u32-move-tests: New file.
39496         * tests/unistr/test-u32-move.c: New file.
39497
39498         Tests for module 'unistr/u16-move'.
39499         * modules/unistr/u16-move-tests: New file.
39500         * tests/unistr/test-u16-move.c: New file.
39501
39502         Tests for module 'unistr/u8-move'.
39503         * modules/unistr/u8-move-tests: New file.
39504         * tests/unistr/test-u8-move.c: New file.
39505         * tests/unistr/test-move.h: New file.
39506
39507         Tests for module 'unistr/u32-cpy'.
39508         * modules/unistr/u32-cpy-tests: New file.
39509         * tests/unistr/test-u32-cpy.c: New file.
39510
39511         Tests for module 'unistr/u16-cpy'.
39512         * modules/unistr/u16-cpy-tests: New file.
39513         * tests/unistr/test-u16-cpy.c: New file.
39514
39515         Tests for module 'unistr/u8-cpy'.
39516         * modules/unistr/u8-cpy-tests: New file.
39517         * tests/unistr/test-u8-cpy.c: New file.
39518         * tests/unistr/test-cpy.h: New file.
39519
39520 2010-01-09  Bruno Haible  <bruno@clisp.org>
39521
39522         Tests for module 'unistr/u32-uctomb'.
39523         * modules/unistr/u32-uctomb-tests: New file.
39524         * tests/unistr/test-u32-uctomb.c: New file.
39525
39526         Tests for module 'unistr/u16-uctomb'.
39527         * modules/unistr/u16-uctomb-tests: New file.
39528         * tests/unistr/test-u16-uctomb.c: New file.
39529
39530         Tests for module 'unistr/u8-uctomb'.
39531         * modules/unistr/u8-uctomb-tests: New file.
39532         * tests/unistr/test-u8-uctomb.c: New file.
39533
39534         Tests for module 'unistr/u32-mbtoucr'.
39535         * modules/unistr/u32-mbtoucr-tests: New file.
39536         * tests/unistr/test-u32-mbtoucr.c: New file.
39537
39538         Tests for module 'unistr/u16-mbtoucr'.
39539         * modules/unistr/u16-mbtoucr-tests: New file.
39540         * tests/unistr/test-u16-mbtoucr.c: New file.
39541
39542         Tests for module 'unistr/u8-mbtoucr'.
39543         * modules/unistr/u8-mbtoucr-tests: New file.
39544         * tests/unistr/test-u8-mbtoucr.c: New file.
39545
39546         Tests for module 'unistr/u32-mbtouc'.
39547         * modules/unistr/u32-mbtouc-tests: New file.
39548         * tests/unistr/test-u32-mbtouc.c: New file.
39549
39550         Tests for module 'unistr/u16-mbtouc'.
39551         * modules/unistr/u16-mbtouc-tests: New file.
39552         * tests/unistr/test-u16-mbtouc.c: New file.
39553
39554         Tests for module 'unistr/u8-mbtouc'.
39555         * modules/unistr/u8-mbtouc-tests: New file.
39556         * tests/unistr/test-u8-mbtouc.c: New file.
39557
39558         Tests for module 'unistr/u32-mbtouc-unsafe'.
39559         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39560         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39561         * tests/unistr/test-u32-mbtouc.h: New file.
39562
39563         Tests for module 'unistr/u16-mbtouc-unsafe'.
39564         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39565         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39566         * tests/unistr/test-u16-mbtouc.h: New file.
39567
39568         Tests for module 'unistr/u8-mbtouc-unsafe'.
39569         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39570         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39571         * tests/unistr/test-u8-mbtouc.h: New file.
39572
39573         Tests for module 'unistr/u32-mblen'.
39574         * modules/unistr/u32-mblen-tests: New file.
39575         * tests/unistr/test-u32-mblen.c: New file.
39576
39577         Tests for module 'unistr/u16-mblen'.
39578         * modules/unistr/u16-mblen-tests: New file.
39579         * tests/unistr/test-u16-mblen.c: New file.
39580
39581         Tests for module 'unistr/u8-mblen'.
39582         * modules/unistr/u8-mblen-tests: New file.
39583         * tests/unistr/test-u8-mblen.c: New file.
39584
39585         Tests for module 'unistr/u32-to-u16'.
39586         * modules/unistr/u32-to-u16-tests: New file.
39587         * tests/unistr/test-u32-to-u16.c: New file.
39588
39589         Tests for module 'unistr/u32-to-u8'.
39590         * modules/unistr/u32-to-u8-tests: New file.
39591         * tests/unistr/test-u32-to-u8.c: New file.
39592
39593         Tests for module 'unistr/u16-to-u32'.
39594         * modules/unistr/u16-to-u32-tests: New file.
39595         * tests/unistr/test-u16-to-u32.c: New file.
39596
39597         Tests for module 'unistr/u16-to-u8'.
39598         * modules/unistr/u16-to-u8-tests: New file.
39599         * tests/unistr/test-u16-to-u8.c: New file.
39600
39601         Tests for module 'unistr/u8-to-u32'.
39602         * modules/unistr/u8-to-u32-tests: New file.
39603         * tests/unistr/test-u8-to-u32.c: New file.
39604
39605         Tests for module 'unistr/u8-to-u16'.
39606         * modules/unistr/u8-to-u16-tests: New file.
39607         * tests/unistr/test-u8-to-u16.c: New file.
39608
39609         Tests for module 'unistr/u32-check'.
39610         * modules/unistr/u32-check-tests: New file.
39611         * tests/unistr/test-u32-check.c: New file.
39612
39613         Tests for module 'unistr/u16-check'.
39614         * modules/unistr/u16-check-tests: New file.
39615         * tests/unistr/test-u16-check.c: New file.
39616
39617         Tests for module 'unistr/u8-check'.
39618         * modules/unistr/u8-check-tests: New file.
39619         * tests/unistr/test-u8-check.c: New file.
39620
39621         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39622         (category_equals): New function.
39623         (main): Add more tests.
39624         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39625
39626         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39627
39628 2010-01-10  Bruno Haible  <bruno@clisp.org>
39629
39630         unistr/u*-strcoll: Try harder to distinguish different strings.
39631         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39632         compare s1 and s2 to see if they are different.
39633
39634 2010-01-10  Bruno Haible  <bruno@clisp.org>
39635
39636         unistr/u*-stpncpy: Fix the return value.
39637         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39638         description of the return value consistent with stpncpy in glibc.
39639         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39640         written non-NUL unit.
39641
39642 2010-01-10  Bruno Haible  <bruno@clisp.org>
39643
39644         unistr/u*-next: Add missing dependencies.
39645         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39646         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39647         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39648
39649 2010-01-10  Bruno Haible  <bruno@clisp.org>
39650
39651         unistr/u8-mbsnlen: Fix return value for incomplete character.
39652         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39653         u8_mblen.
39654         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39655         Remove unistr/u8-mblen.
39656         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39657         u16_mblen.
39658         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39659         Remove unistr/u16-mblen.
39660
39661 2010-01-10  Bruno Haible  <bruno@clisp.org>
39662
39663         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39664         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39665         Reported by Brian Gough <bjg@gnu.org> and
39666         Chris Clayton <chris2553@googlemail.com> via
39667         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39668
39669 2010-01-09  Bruno Haible  <bruno@clisp.org>
39670
39671         unistr/u16-to-u32: Reject invalid input.
39672         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39673         u16_mbtouc.
39674         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39675         Remove unistr/u16-mbtouc.
39676
39677         unistr/u16-to-u8: Reject invalid input.
39678         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39679         u16_mbtouc.
39680         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39681         Remove unistr/u16-mbtouc.
39682
39683         unistr/u8-to-u32: Reject invalid input.
39684         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39685         u8_mbtouc.
39686         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39687         Remove unistr/u8-mbtouc.
39688
39689         unistr/u8-to-u16: Reject invalid input.
39690         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39691         u8_mbtouc.
39692         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39693         Remove unistr/u8-mbtouc.
39694
39695 2010-01-09  Bruno Haible  <bruno@clisp.org>
39696
39697         Tests for module 'getlogin'.
39698         * modules/getlogin-tests: New file.
39699         * tests/test-getlogin.c: New file.
39700
39701         New module 'getlogin'.
39702         * lib/unistd.in.h (getlogin): New declaration.
39703         * lib/getlogin.c: New file.
39704         * m4/getlogin.m4: New file.
39705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39706         HAVE_GETLOGIN.
39707         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39708         HAVE_GETLOGIN.
39709         * modules/getlogin: New file.
39710         * doc/posix-functions/getlogin.texi: Mention the new module.
39711         Reported by John W. Eaton <jwe@gnu.org>.
39712
39713 2010-01-09  Bruno Haible  <bruno@clisp.org>
39714
39715         getlogin_r: Support for native Windows.
39716         * lib/getlogin_r.c: Include <windows.h>
39717         (getlogin_r): Implement for native Windows.
39718         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39719         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39720         via John W. Eaton <jwe@gnu.org>.
39721
39722 2010-01-09  Bruno Haible  <bruno@clisp.org>
39723
39724         getlogin_r: Small fixes.
39725         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39726         succeeds.
39727         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39728         before testing whether getlogin_r is declared. No need to set
39729         HAVE_DECL_GETLOGIN_R to 1.
39730         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39731
39732 2010-01-09  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/unistd.in.h (getlogin_r): Add comment.
39735
39736 2010-01-09  Bruno Haible  <bruno@clisp.org>
39737
39738         Tests for module 'getlogin_r'.
39739         * modules/getlogin_r-tests: New file.
39740         * tests/test-getlogin_r.c: New file.
39741
39742 2010-01-09  Jim Meyering  <meyering@redhat.com>
39743
39744         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39745         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39746         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39747
39748 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39749
39750         * lib/dup2.c (rpl_dup2): Improve comment.
39751
39752 2010-01-08  Eric Blake  <ebb9@byu.net>
39753
39754         maint.mk: allow packages to add makefile @@ exceptions
39755         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39756         (sc_makefile_check): Rename...
39757         (sc_makefile_at_at_check): ...to this, and use hook.
39758
39759         dup2: work around mingw bug
39760         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39761         Reported by Simon Josefsson.
39762
39763 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39764
39765         glob: Fix C++ compilation.
39766         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39767         C++.
39768
39769 2010-01-07  Bruno Haible  <bruno@clisp.org>
39770
39771         Fix indentation of wctype.in.h, broken since 2007-01-06.
39772         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39773
39774 2010-01-07  Bruno Haible  <bruno@clisp.org>
39775
39776         mbslen: Avoid collision with system function.
39777         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39778         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39779         * m4/mbslen.m4: New file.
39780         * modules/mbslen (Files): Add it.
39781         (configure.ac): Invoke gl_MBSLEN.
39782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39783         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39785         via Ian Beckwith <ianb@erislabs.net>.
39786
39787 2010-01-07  Bruno Haible  <bruno@clisp.org>
39788
39789         dirent: Document the last fix.
39790         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39791
39792 2010-01-07  Bruno Haible  <bruno@clisp.org>
39793
39794         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39795         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39796         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39797         va_list are defined.
39798         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39799         Reported by Eric Blake.
39800
39801 2010-01-07  Bruno Haible  <bruno@clisp.org>
39802
39803         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39804         * modules/xlist (Depends-on): Add 'list',
39805         * modules/xoset (Depends-on): Add 'oset'.
39806         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39807
39808 2010-01-07  Bruno Haible  <bruno@clisp.org>
39809
39810         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39811         * doc/posix-functions/strncasecmp.texi: Likewise.
39812
39813 2010-01-07  Bruno Haible  <bruno@clisp.org>
39814
39815         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39816
39817 2010-01-07  John W. Eaton  <jwe@octave.org>
39818
39819         wctype: allow C++ use
39820         * lib/wctype.in.h: Add extern "C" block for C++.
39821
39822 2010-01-06  Eric Blake  <ebb9@byu.net>
39823
39824         maint.mk: detect incorrect GFDL usage
39825         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39826
39827 2010-01-06  Jim Meyering  <meyering@redhat.com>
39828         and Eric Blake  <ebb9@byu.net>
39829
39830         maint.mk: ignore multi-line copyright in NEWS
39831         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39832
39833 2010-01-06  Eric Blake  <ebb9@byu.net>
39834
39835         select: add missing dependency
39836         * modules/select-tests (Depends-on): Move sockets dependency...
39837         * modules/select (Depends-on): ...here.
39838         Reported by Ian Beckwith.
39839
39840         doc: regenerate INSTALL
39841         * doc/INSTALL: Reflect recent autoconf update.
39842         * doc/INSTALL.ISO: Likewise.
39843         * doc/INSTALL.UTF-8: Likewise.
39844
39845         pread: fix compilation on glibc
39846         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39847         Reported by Ralf Wildenhues.
39848
39849         dirent: fix test failure
39850         * lib/dirent.in.h (includes): Guarantee ino_t.
39851         Reported by Ralf Wildenhues.
39852
39853 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39854
39855         linkat, renameat: avoid bad free
39856         * lib/at-func2.c (at_func2): Fix typo.
39857         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39858
39859 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39860
39861         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39862         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39863         to avoid failure of symlink test later.
39864
39865 2010-01-06  Eric Blake  <ebb9@byu.net>
39866
39867         stdio, unistd: guarantee ssize_t
39868         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39869         2008 are exposed when needed.
39870         * lib/stdio.in.h (includes): Likewise.
39871         Reported by Ralf Wildenhues.
39872
39873 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39874
39875         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39876         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39877         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39878
39879 2010-01-06  Jim Meyering  <meyering@redhat.com>
39880
39881         readtokens: this module *does* require xalloc.h
39882         It uses only functions that were omitted by the old syntax-check rule.
39883         * lib/readtokens.c: Include "xalloc.h" once again.
39884         * modules/readtokens (Depends-on): Add xalloc.
39885         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39886
39887 2010-01-05  Eric Blake  <ebb9@byu.net>
39888
39889         maint: support 'make announcement' from a VPATH build
39890         * top/maint.mk (announcement): Look for correct NEWS file.
39891
39892 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39893
39894         utimens (fdutimens): ignore a negative FD, per contract
39895         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39896         when we have a valid file descriptor.  Otherwise, using a brand
39897         new glibc (with just-patched futimens that now fails with EBADF)
39898         would cause this function to fail with ENOSYS.
39899         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39900         See also http://bugzilla.redhat.com/552320.
39901
39902 2010-01-05  Eric Blake  <ebb9@byu.net>
39903
39904         strcase: document what it provides
39905         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39906         gnulib module.
39907         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39908         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39909
39910 2010-01-05  Jim Meyering  <meyering@redhat.com>
39911
39912         maint: remove useless inclusions of "xalloc.h"
39913         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39914         * lib/readtokens.c: Likewise.
39915         * lib/same.c: Likewise.
39916         * modules/getloadavg (Depends-on): Remove xalloc.
39917         * modules/readtokens: Likewise.
39918         * modules/same: Likewise.
39919
39920         maint.mk: include 4 more function names in alloca.h-checking regexp
39921         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39922         regexp.  Before, we would give a false-positive (saying alloca.h
39923         is included unnecessarily) when the only uses involved omitted symbols.
39924
39925         xalloc.h: use consistent formatting
39926         * lib/xalloc.h: Move declarations to start in the first column.
39927
39928 2010-01-05  Eric Blake  <ebb9@byu.net>
39929
39930         mkdir: avoid xalloc
39931         * lib/mkdir.c (includes): Drop unused header.
39932         Reported by John W. Eaton.
39933
39934 2010-01-04  Jim Meyering  <meyering@redhat.com>
39935
39936         nl_langinfo: avoid configure-time syntax error
39937         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39938         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39939         the empty string.  Don't let that provoke a shell syntax error.
39940
39941         regcomp, regexec, fnmatch: avoid array bounds read error
39942         * lib/regcomp.c (build_equiv_class): From glibc:
39943         Use only the low 24 bits of a findidx return value as an index
39944         into the weights array.  Patch by Ulrich Drepper:
39945         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39946         * lib/regexec.c (check_node_accept_bytes): Likewise.
39947         * lib/fnmatch_loop.c (FCT): Likewise.
39948
39949         regcomp: skip collseq lookup when there are no rules
39950         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39951         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39952
39953         regcomp: recognize ill-formed { } expressions
39954         * lib/regcomp.c (parse_dup_op): From glibc:
39955         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39956
39957         regcomp: fix typo in comment
39958         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39959         s/satisfy/satisfies/.
39960
39961         regcomp: sync from glibc: remove dead store
39962         * lib/regcomp.c (duplicate_node_closure): Remove useless
39963         search_duplicated_node call and dead store.
39964
39965         regcomp: sync from glibc; always use nl_langinfo
39966         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39967         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39968         * modules/regex (Depends-on): Add nl_langinfo.
39969
39970 2010-01-04  Eric Blake  <ebb9@byu.net>
39971
39972         fdopendir: fix configure test
39973         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39974
39975 2010-01-01  Bruno Haible  <bruno@clisp.org>
39976
39977         wchar: Remove unused configure check.
39978         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39979
39980 2010-01-01  Eric Blake  <ebb9@byu.net>
39981
39982         headers: make check of system header explicit
39983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39984         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39985         ourselves.
39986         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39989         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39990         internals.
39991         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39992         missing.
39993         Suggested by Bruno Haible.
39994
39995 2010-01-01  Jim Meyering  <meyering@redhat.com>
39996
39997         ChangeLog: tweak to eliminate unnecessary copyright line
39998         * ChangeLog: Remove a copyright line that was mistakenly updated
39999         by today's update-copyright run.  Reported by Eric Blake.
40000
40001         test-update-copyright: don't let envvar setting cause test failure
40002         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40003
40004 2010-01-01  Bruno Haible  <bruno@clisp.org>
40005
40006         localename: Avoid gcc warning.
40007         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40008         function if it is not used.
40009
40010 2010-01-01  Jim Meyering  <meyering@redhat.com>
40011
40012         update nearly all FSF copyright year lists to include 2010
40013         Use the same procedure as for 2009, outlined in
40014         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40015
40016         version-etc: set COPYRIGHT_YEAR to 2010
40017         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40018
40019 2009-12-31  Eric Blake  <ebb9@byu.net>
40020
40021         doc: correct availability of cygwin 1.5.x getopt
40022         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40023         variables.
40024         * doc/posix-functions/opterr.texi (opterr): Likewise.
40025         * doc/posix-functions/optind.texi (optind): Likewise.
40026         * doc/posix-functions/optopt.texi (optopt): Likewise.
40027         * doc/posix-functions/tzname.texi (tzname): Likewise.
40028
40029         openat: update maintainer
40030         * modules/openat (Maintainer): Add myself.
40031
40032         utimens: avoid shadowing warning
40033         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40034         buffers into one, to avoid shadowing, as well as avoiding a
40035         redundant stat.
40036         Reported by Jim Meyering.
40037
40038         test-dup2: avoid compiler warning
40039         * tests/test-dup2.c (is_inheritable): Only define if used.
40040
40041 2010-01-01  Bruno Haible  <bruno@clisp.org>
40042
40043         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40044         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40045         defined, use wctomb instead of wcrtomb.
40046
40047 2010-01-01  Bruno Haible  <bruno@clisp.org>
40048
40049         iconv: Reject native Solaris iconv.
40050         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40051         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40052
40053 2009-12-31  Bruno Haible  <bruno@clisp.org>
40054
40055         * tests/test-signal.c (main): Remove test of 'SIG'.
40056
40057 2009-12-31  Bruno Haible  <bruno@clisp.org>
40058
40059         spawn: Fix incomplete fix.
40060         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40061         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40062         warnings for GNULIB_POSIXCHECK again.
40063         Reported by Eric Blake.
40064
40065 2009-12-31  Bruno Haible  <bruno@clisp.org>
40066
40067         Avoid namespace pollution on glibc systems.
40068         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40069         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40070         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40071         glibc systems.
40072
40073 2009-12-31  Bruno Haible  <bruno@clisp.org>
40074
40075         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40076         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40077         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40078         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40079         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40080         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40081         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40082
40083 2009-12-31  Bruno Haible  <bruno@clisp.org>
40084
40085         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40086         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40087         afterwards.
40088
40089 2009-12-31  Bruno Haible  <bruno@clisp.org>
40090
40091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40092         SYS_UTSNAME_H.
40093
40094 2009-12-31  Bruno Haible  <bruno@clisp.org>
40095
40096         spawn: Fix misapplied patch.
40097         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40098         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40099         warnings for GNULIB_POSIXCHECK.
40100
40101 2009-12-31  Bruno Haible  <bruno@clisp.org>
40102
40103         times: Update after sys_times changed.
40104         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40105         * modules/times (Files): Add it.
40106         (configure.ac): Invoke gl_FUNC_TIMES.
40107
40108 2009-12-31  Bruno Haible  <bruno@clisp.org>
40109
40110         Use AC_C_INLINE where necessary.
40111         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40112         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40113         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40114         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40115         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40116         * m4/mbiter.m4 (gl_MBITER): Likewise.
40117         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40118         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40119         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40120         * modules/u64 (configure.ac): Likewise.
40121
40122 2009-12-31  Bruno Haible  <bruno@clisp.org>
40123
40124         Use AC_C_INLINE instead of module 'inline' where possible.
40125         * modules/inline (Description): Clarify purpose.
40126         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40127         * modules/count-one-bits (Depends-on): Remove inline.
40128         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40129         * modules/openat (Depends-on): Remove inline.
40130         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40131         instead of depending on module 'inline'.
40132         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40133         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40134         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40135         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40136         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40137         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40138         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40139         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40140         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40141         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40142         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40143         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40144         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40145         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40146         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40147         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40148         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40149         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40150         Likewise.
40151         * modules/unictype/property-ascii-hex-digit (Depends-on,
40152         configure.ac): Likewise.
40153         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40154         configure.ac): Likewise.
40155         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40156         configure.ac): Likewise.
40157         * modules/unictype/property-bidi-block-separator (Depends-on,
40158         configure.ac): Likewise.
40159         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40160         configure.ac): Likewise.
40161         * modules/unictype/property-bidi-common-separator (Depends-on,
40162         configure.ac): Likewise.
40163         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40164         Likewise.
40165         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40166         configure.ac): Likewise.
40167         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40168         configure.ac): Likewise.
40169         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40170         configure.ac): Likewise.
40171         * modules/unictype/property-bidi-european-digit (Depends-on,
40172         configure.ac): Likewise.
40173         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40174         configure.ac): Likewise.
40175         * modules/unictype/property-bidi-left-to-right (Depends-on,
40176         configure.ac): Likewise.
40177         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40178         configure.ac): Likewise.
40179         * modules/unictype/property-bidi-other-neutral (Depends-on,
40180         configure.ac): Likewise.
40181         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40182         Likewise.
40183         * modules/unictype/property-bidi-segment-separator (Depends-on,
40184         configure.ac): Likewise.
40185         * modules/unictype/property-bidi-whitespace (Depends-on,
40186         configure.ac): Likewise.
40187         * modules/unictype/property-combining (Depends-on, configure.ac):
40188         Likewise.
40189         * modules/unictype/property-composite (Depends-on, configure.ac):
40190         Likewise.
40191         * modules/unictype/property-currency-symbol (Depends-on,
40192         configure.ac): Likewise.
40193         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40194         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40195         Likewise.
40196         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40197         configure.ac): Likewise.
40198         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40199         Likewise.
40200         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40201         Likewise.
40202         * modules/unictype/property-extender (Depends-on, configure.ac):
40203         Likewise.
40204         * modules/unictype/property-format-control (Depends-on, configure.ac):
40205         Likewise.
40206         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40207         Likewise.
40208         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40209         Likewise.
40210         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40211         Likewise.
40212         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40213         Likewise.
40214         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40215         Likewise.
40216         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40217         Likewise.
40218         * modules/unictype/property-id-start (Depends-on, configure.ac):
40219         Likewise.
40220         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40221         Likewise.
40222         * modules/unictype/property-ids-binary-operator (Depends-on,
40223         configure.ac): Likewise.
40224         * modules/unictype/property-ids-trinary-operator (Depends-on,
40225         configure.ac): Likewise.
40226         * modules/unictype/property-ignorable-control (Depends-on,
40227         configure.ac): Likewise.
40228         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40229         Likewise.
40230         * modules/unictype/property-join-control (Depends-on, configure.ac):
40231         Likewise.
40232         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40233         Likewise.
40234         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40235         Likewise.
40236         * modules/unictype/property-logical-order-exception (Depends-on,
40237         configure.ac): Likewise.
40238         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40239         Likewise.
40240         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40241         * modules/unictype/property-non-break (Depends-on, configure.ac):
40242         Likewise.
40243         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40244         Likewise.
40245         * modules/unictype/property-numeric (Depends-on, configure.ac):
40246         Likewise.
40247         * modules/unictype/property-other-alphabetic (Depends-on,
40248         configure.ac): Likewise.
40249         * modules/unictype/property-other-default-ignorable-code-point
40250         (Depends-on, configure.ac): Likewise.
40251         * modules/unictype/property-other-grapheme-extend (Depends-on,
40252         configure.ac): Likewise.
40253         * modules/unictype/property-other-id-continue (Depends-on,
40254         configure.ac): Likewise.
40255         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40256         Likewise.
40257         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40258         Likewise.
40259         * modules/unictype/property-other-math (Depends-on, configure.ac):
40260         Likewise.
40261         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40262         Likewise.
40263         * modules/unictype/property-paired-punctuation (Depends-on,
40264         configure.ac): Likewise.
40265         * modules/unictype/property-paragraph-separator (Depends-on,
40266         configure.ac): Likewise.
40267         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40268         Likewise.
40269         * modules/unictype/property-pattern-white-space (Depends-on,
40270         configure.ac): Likewise.
40271         * modules/unictype/property-private-use (Depends-on, configure.ac):
40272         Likewise.
40273         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40274         Likewise.
40275         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40276         Likewise.
40277         * modules/unictype/property-radical (Depends-on, configure.ac):
40278         Likewise.
40279         * modules/unictype/property-sentence-terminal (Depends-on,
40280         configure.ac): Likewise.
40281         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40282         Likewise.
40283         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40284         * modules/unictype/property-terminal-punctuation (Depends-on,
40285         configure.ac): Likewise.
40286         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40287         Likewise.
40288         * modules/unictype/property-unassigned-code-value (Depends-on,
40289         configure.ac): Likewise.
40290         * modules/unictype/property-unified-ideograph (Depends-on,
40291         configure.ac): Likewise.
40292         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40293         Likewise.
40294         * modules/unictype/property-variation-selector (Depends-on,
40295         configure.ac): Likewise.
40296         * modules/unictype/property-white-space (Depends-on, configure.ac):
40297         Likewise.
40298         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40299         Likewise.
40300         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40301         Likewise.
40302         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40303         Likewise.
40304         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40305         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40306         Likewise.
40307
40308 2009-12-31  Bruno Haible  <bruno@clisp.org>
40309
40310         Remove unnecessary AC_C_INLINE invocation.
40311         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40312         since 2009-08-21.
40313
40314 2009-12-31  Jim Meyering  <meyering@redhat.com>
40315
40316         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40317         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40318         With this change, we can all remove the gpg_key_ID = ... definition
40319         from our respective cfg.mk files.
40320
40321         maint.mk: create announcement template in ~/, not in /tmp
40322         * top/maint.mk (emit_upload_commands): Adjust.
40323         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40324         Remove temporary file, .ci-msg.
40325
40326 2009-12-31  Eric Blake  <ebb9@byu.net>
40327
40328         link-warning: always build headers with link warnings
40329         * modules/arpa_inet (Makefile.am): Always build replacement
40330         header.
40331         * modules/ctype (Makefile.am): Likewise.
40332         * modules/dirent (Makefile.am): Likewise.
40333         * modules/inttypes (Makefile.am): Likewise.
40334         * modules/langinfo (Makefile.am): Likewise.
40335         * modules/locale (Makefile.am): Likewise.
40336         * modules/spawn (Makefile.am): Likewise.
40337         * modules/sys_file (Makefile.am): Likewise.
40338         * modules/sys_ioctl (Makefile.am): Likewise.
40339         * modules/sys_select (Makefile.am): Likewise.
40340         * modules/sys_socket (Makefile.am): Likewise.
40341         * modules/sys_times (Makefile.am): Likewise.
40342         * modules/sys_utsname (Makefile.am): Likewise.
40343         * modules/sys_wait (Makefile.am): Likewise.
40344         * modules/wchar (Makefile.am): Likewise.
40345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40346         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40347         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40348         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40349         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40350         Likewise.
40351         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40352         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40353         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40354         Likewise.
40355         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40356         Likewise.
40357         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40358         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40359         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40360         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40361         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40362         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40363         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40364         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40365         (gl_WCHAR_H_DEFAULTS): Likewise.
40366
40367 2009-12-31  Eric Blake  <ebb9@byu.net>
40368
40369         signal, spawn: use link warnings
40370         * lib/signal.in.h (sigset_t): Make unconditional.
40371         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40372         (sigpending, sigprocmask, sigaction): Add link warnings.
40373         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40374         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40375         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40376         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40377         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40378         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40379         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40380         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40381         (posix_spawn_file_actions_destroy)
40382         (posix_spawn_file_actions_addopen)
40383         (posix_spawn_file_actions_addclose)
40384         (posix_spawn_file_actions_adddup2): Likewise.
40385         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40386         * tests/test-signal.c (main): Enhance test.
40387
40388         spawn: improve wrapper support
40389         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40390         (gl_SPAWN_H_DEFAULTS): New defaults.
40391         * modules/spawn (Makefile.am): Substitute them.
40392         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40393         Only declare if missing or broken.
40394
40395         sys_times, sys_utsname: use include_next
40396         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40397         header.
40398         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40399         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40400         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40401         * modules/sys_times (Depends-on): Add include_next.
40402         (Makefile.am): Substitute additional values.
40403         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40404         * lib/sys_times.in.h (includes): Include native header, if
40405         available.
40406         * lib/sys_utsname.in.h (includes): Likewise.
40407         * tests/test-sys_times.c (main): Enhance test.
40408
40409         fdutimensat: revert prior patch
40410         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40411         utimens.h.
40412         Reported by Bruno Haible.
40413
40414 2009-12-30  Eric Blake  <ebb9@byu.net>
40415
40416         sys_wait: drop link-warning dependency
40417         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40418         link-warning efforts.
40419         * lib/sys_wait.in.h: Likewise.
40420
40421         fdutimensat: remove bogus dependency
40422         * modules/fdutimensat (Depends-on): Drop inline.
40423
40424         unistd: fix typo
40425         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40426
40427 2009-12-30  Bruno Haible  <bruno@clisp.org>
40428
40429         Fix compilation error with Solaris cc.
40430         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40431         * lib/unicase/u16-is-invariant.c: Likewise.
40432         * lib/unicase/u32-is-invariant.c: Likewise.
40433         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40434
40435 2009-12-30  Bruno Haible  <bruno@clisp.org>
40436
40437         Fix test crash.
40438         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40439         locales.
40440         Reported by Simon Josefsson <simon@josefsson.org>.
40441
40442 2009-12-30  Bruno Haible  <bruno@clisp.org>
40443
40444         Fix compilation error on most platforms.
40445         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40446         Reported by Simon Josefsson <simon@josefsson.org>
40447         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40448
40449 2009-12-30  Eric Blake  <ebb9@byu.net>
40450
40451         futimens, utimensat: work around ntfs-3g bug
40452         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40453         a ctime bug is present, and expand workaround to cover ntfs-3g.
40454         * lib/utimens.c (fdutimens, lutimens): Likewise.
40455         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40456         (validate_timespec): Adjust return value.
40457         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40458         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40459         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40460
40461 2009-12-29  Eric Blake  <ebb9@byu.net>
40462
40463         link-warning: make usage consistent
40464         * modules/ctype (Depends-on): Add link-warning.
40465         (Makefile.am): Update rules accordingly.
40466         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40467         * modules/locale (Depends-on, Makefile.am): Likewise.
40468         * modules/sys_file (Makefile.am): Likewise.
40469         * modules/getopt-posix (Makefile.am): Delete unused link warning
40470         efforts.
40471         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40472         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40473         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40474         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40475
40476         stdio: remove unused variables
40477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40479         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40480
40481         tests: test more substitute headers
40482         * modules/ctype-tests: New file.
40483         * modules/dirent-tests: Likewise.
40484         * modules/spawn-tests: Likewise.
40485         * modules/sys_file-tests: Likewise.
40486         * modules/sys_ioctl-tests: Likewise.
40487         * modules/sys_wait-tests: Likewise.
40488         * tests/test-ctype.c: Likewise.
40489         * tests/test-dirent.c: Likewise.
40490         * tests/test-spawn.c: Likewise.
40491         * tests/test-sys_file.c: Likewise.
40492         * tests/test-sys_ioctl.c: Likewise.
40493         * tests/test-sys_wait.c: Likewise.
40494         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40495         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40496         whether or not flock is in use.
40497
40498         tests: remove License section from module
40499         * modules/arpa_inet-tests: Remove unneeded section.
40500         * modules/byteswap-tests: Likewise.
40501         * modules/ceilf-tests: Likewise.
40502         * modules/ceill-tests: Likewise.
40503         * modules/crypto/des-tests: Likewise.
40504         * modules/crypto/gc-arcfour-tests: Likewise.
40505         * modules/crypto/gc-arctwo-tests: Likewise.
40506         * modules/crypto/gc-des-tests: Likewise.
40507         * modules/crypto/gc-hmac-md5-tests: Likewise.
40508         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40509         * modules/crypto/gc-md2-tests: Likewise.
40510         * modules/crypto/gc-md4-tests: Likewise.
40511         * modules/crypto/gc-md5-tests: Likewise.
40512         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40513         * modules/crypto/gc-rijndael-tests: Likewise.
40514         * modules/crypto/gc-sha1-tests: Likewise.
40515         * modules/crypto/gc-tests: Likewise.
40516         * modules/crypto/md2-tests: Likewise.
40517         * modules/crypto/md4-tests: Likewise.
40518         * modules/fcntl-h-tests: Likewise.
40519         * modules/floorf-tests: Likewise.
40520         * modules/floorl-tests: Likewise.
40521         * modules/frexp-nolibm-tests: Likewise.
40522         * modules/frexp-tests: Likewise.
40523         * modules/frexpl-nolibm-tests: Likewise.
40524         * modules/frexpl-tests: Likewise.
40525         * modules/getaddrinfo-tests: Likewise.
40526         * modules/inttypes-tests: Likewise.
40527         * modules/isfinite-tests: Likewise.
40528         * modules/isinf-tests: Likewise.
40529         * modules/ldexpl-tests: Likewise.
40530         * modules/locale-tests: Likewise.
40531         * modules/math-tests: Likewise.
40532         * modules/netdb-tests: Likewise.
40533         * modules/netinet_in-tests: Likewise.
40534         * modules/printf-frexp-tests: Likewise.
40535         * modules/printf-frexpl-tests: Likewise.
40536         * modules/priv-set-tests: Likewise.
40537         * modules/random_r-tests: Likewise.
40538         * modules/round-tests: Likewise.
40539         * modules/roundf-tests: Likewise.
40540         * modules/roundl-tests: Likewise.
40541         * modules/search-tests: Likewise.
40542         * modules/select-tests: Likewise.
40543         * modules/signal-tests: Likewise.
40544         * modules/stdbool-tests: Likewise.
40545         * modules/stddef-tests: Likewise.
40546         * modules/stdint-tests: Likewise.
40547         * modules/stdio-tests: Likewise.
40548         * modules/stdlib-tests: Likewise.
40549         * modules/string-tests: Likewise.
40550         * modules/strings-tests: Likewise.
40551         * modules/sys_select-tests: Likewise.
40552         * modules/sys_socket-tests: Likewise.
40553         * modules/sys_stat-tests: Likewise.
40554         * modules/sys_time-tests: Likewise.
40555         * modules/sys_utsname-tests: Likewise.
40556         * modules/sysexits-tests: Likewise.
40557         * modules/time-tests: Likewise.
40558         * modules/trunc-tests: Likewise.
40559         * modules/truncf-tests: Likewise.
40560         * modules/truncl-tests: Likewise.
40561         * modules/tsearch-tests: Likewise.
40562         * modules/unistd-tests: Likewise.
40563         * modules/wchar-tests: Likewise.
40564         * modules/wctype-tests: Likewise.
40565
40566         tests: fix license on several tests
40567         * tests/test-des.c: Update to GPLv3+.
40568         * tests/test-flock.c: Likewise.
40569         * tests/test-fsync.c: Likewise.
40570         * tests/test-futimens.h: Likewise.
40571         * tests/test-gc-arcfour.c: Likewise.
40572         * tests/test-gc-arctwo.c: Likewise.
40573         * tests/test-gc-des.c: Likewise.
40574         * tests/test-gc-hmac-md5.c: Likewise.
40575         * tests/test-gc-hmac-sha1.c: Likewise.
40576         * tests/test-gc-md2.c: Likewise.
40577         * tests/test-gc-md4.c: Likewise.
40578         * tests/test-gc-md5.c: Likewise.
40579         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40580         * tests/test-gc-rijndael.c: Likewise.
40581         * tests/test-gc-sha1.c: Likewise.
40582         * tests/test-gc.c: Likewise.
40583         * tests/test-getcwd.c: Likewise.
40584         * tests/test-link.c: Likewise.
40585         * tests/test-link.h: Likewise.
40586         * tests/test-lutimens.h: Likewise.
40587         * tests/test-md2.c: Likewise.
40588         * tests/test-md4.c: Likewise.
40589         * tests/test-mkdir.h: Likewise.
40590         * tests/test-rename.c: Likewise.
40591         * tests/test-rename.h: Likewise.
40592         * tests/test-safe-alloc.c: Likewise.
40593         * tests/test-utimens-common.h: Likewise.
40594         * tests/test-utimens.h: Likewise.
40595
40596         maint: sync license texts
40597         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40598         * doc/gpl-3.0.texi: Revert copyright year update.
40599         * doc/lgpl-3.0.texi: Likewise.
40600
40601 2009-12-29  Jim Meyering  <meyering@redhat.com>
40602
40603         update nearly all FSF copyright year lists to include 2009
40604         The files named by the following are exempted:
40605             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40606               test -f "$dst" && { echo "$dst"; continue; }
40607               test -d "$dst" || continue
40608               echo "$dst"/$(basename "$src")
40609             done > exempt
40610             git ls-files tests/unictype >> exempt
40611         In the remaining files, convert to all-interval notation if
40612         - there is already at least one year interval like 2000-2003
40613         - the file is maintained by me
40614         - the file is in lib/uni*/, where that style already prevails
40615         Otherwise, use update-copyright's default.
40616
40617 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40618         and Eric Blake  <ebb9@byu.net>
40619
40620         tests: don't require debug system() to pass
40621         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40622         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40623         * tests/test-unlink.h (test_unlink_func): Likewise.
40624         * tests/test-fstatat.c (main): ...into callers.
40625         * tests/test-lstat.c (main): Likewise.
40626         * tests/test-rmdir.c (main): Likewise.
40627         * tests/test-unlink.c (main): Likewise.
40628         * tests/test-unlinkat.c (main): Likewise.
40629         * tests/test-areadlink-with-size.c (main): Don't require a
40630         debug-only system call to pass, aiding cross-testing to mingw.
40631         * tests/test-areadlink.c (main): Likewise.
40632         * tests/test-areadlinkat-with-size.c (main): Likewise.
40633         * tests/test-areadlinkat.c (main): Likewise.
40634         * tests/test-canonicalize-lgpl.c (main): Likewise.
40635         * tests/test-canonicalize.c (main): Likewise.
40636         * tests/test-chown.c (main): Likewise.
40637         * tests/test-fchownat.c (main): Likewise.
40638         * tests/test-lchown.c (main): Likewise.
40639         * tests/test-fdutimensat.c (main): Likewise.
40640         * tests/test-futimens.c (main): Likewise.
40641         * tests/test-link.c (main): Likewise.
40642         * tests/test-linkat.c (main): Likewise.
40643         * tests/test-mkdir.c (main): Likewise.
40644         * tests/test-mkdirat.c (main): Likewise.
40645         * tests/test-mkfifo.c (main): Likewise.
40646         * tests/test-mkfifoat.c (main): Likewise.
40647         * tests/test-mknod.c (main): Likewise.
40648         * tests/test-readlink.c (main): Likewise.
40649         * tests/test-remove.c (main): Likewise.
40650         * tests/test-rename.c (main): Likewise.
40651         * tests/test-renameat.c (main): Likewise.
40652         * tests/test-symlink.c (main): Likewise.
40653         * tests/test-symlinkat.c (main): Likewise.
40654         * tests/test-utimens.c (main): Likewise.
40655         * tests/test-utimensat.c (main): Likewise.
40656
40657 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40658
40659         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40660         on $(UNUSED_PARAMETER_H) to avoid build failure.
40661
40662 2009-12-28  Jim Meyering  <meyering@redhat.com>
40663
40664         update-copyright: you may specify a max. line length other than 72
40665         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40666
40667         maint: use consistent FSF copyright line syntax
40668         * lib/posixtm.c: Add missing comma in FSF copyright line.
40669         * lib/posixtm.h: Likewise.
40670         * lib/getugroups.c: Add missing ", Inc.".
40671
40672         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40673         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40674         FSF copyright line.  Remove trailing blanks.
40675
40676 2009-12-28  Eric Blake  <ebb9@byu.net>
40677
40678         test-dup2: reduce dependencies
40679         * modules/cloexec (Configure.ac): Set witness.
40680         * modules/dup2-tests (Depends-on): Drop cloexec.
40681         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40682         not present.
40683         Suggested by Bruno Haible.
40684
40685 2009-12-26  Bruno Haible  <bruno@clisp.org>
40686
40687         Remove an unneeded dependency.
40688         * modules/fseterr (Depends-on): Remove dup2.
40689
40690 2009-12-26  Eric Blake  <ebb9@byu.net>
40691
40692         tests: use macros.h in more places
40693         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40694         (ASSERT_STREAM): Provide default of stderr.
40695         * tests/test-dirent-safer.c: Include macros.h, using alternate
40696         stream for assertions.
40697         * tests/test-dup-safer.c: Likewise.
40698         * tests/test-freopen-safer.c: Likewise.
40699         * tests/test-getopt.c: Likewise.
40700         * tests/test-openat-safer.c: Likewise.
40701         * tests/test-pipe.c: Likewise.
40702         * tests/test-popen-safer.c: Likewise.
40703         * modules/dirent-safer-tests (Files): Include macros.h.
40704         * modules/unistd-safer-tests (Files): Likewise.
40705         * modules/freopen-safer-tests (Files): Likewise.
40706         * modules/getopt-posix-tests (Files): Likewise.
40707         * modules/openat-safer-tests (Files): Likewise.
40708         * modules/pipe-tests (Files): Likewise.
40709
40710 2009-12-26  Bruno Haible  <bruno@clisp.org>
40711
40712         javacomp: Portability fix.
40713         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40714         that it also works on Solaris.
40715
40716 2009-12-26  Bruno Haible  <bruno@clisp.org>
40717
40718         localename: Fix storage allocation of gl_locale_name_thread's result.
40719         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40720         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40721         all platforms that have 'uselocale'.
40722         (gl_locale_name_thread_unsafe): New function, extracted from
40723         gl_locale_name_thread.
40724         (gl_locale_name_thread): Call struniq on all platforms that have
40725         'uselocale'.
40726         * tests/test-localename.c (test_locale_name_thread): Check that the
40727         resulting strings are permanently allocated.
40728         * modules/localename-tests (Depends-on): Add strdup.
40729
40730 2009-12-26  Bruno Haible  <bruno@clisp.org>
40731
40732         * tests/test-localename.c (categories): Fill in the strings.
40733
40734 2009-12-26  Jim Meyering  <meyering@redhat.com>
40735
40736         isdir: complete the removal of m4/isdir.m4
40737         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40738
40739         isdir: clean up, since at least grep still uses it
40740         * lib/isdir.c: Include "isdir.h".
40741         (S_ISDIR): Remove now-unneeded definition.
40742         * modules/isdir (Files): Add lib/isdir.h.
40743         * lib/isdir.h: New file, with declaration.
40744         * m4/isdir.m4: Remove file -- unneeded.
40745
40746 2009-12-25  Bruno Haible  <bruno@clisp.org>
40747
40748         selinux-h: Make generated .h files standalone.
40749         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40750         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40751         * lib/se-selinux.in.h: Likewise.
40752         * modules/selinux-h (Depends-on): Add unused-parameter.
40753         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40754         selinux/selinux.h and selinux/context.h.
40755         Suggested by Eric Blake.
40756
40757 2009-12-25  Bruno Haible  <bruno@clisp.org>
40758
40759         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40760         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40761         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40762         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40763         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40764
40765 2009-12-24  Bruno Haible  <bruno@clisp.org>
40766
40767         openat: Fix warning.
40768         * lib/openat-proc.c: Include <unistd.h>.
40769
40770 2009-12-24  Bruno Haible  <bruno@clisp.org>
40771
40772         New module 'unused-parameter'.
40773         * build-aux/unused-parameter.h: New file, extracted from earlier
40774         gnulib-common.m4.
40775         * modules/unused-parameter: New file.
40776         * lib/unistr.h: Include unused-parameter.h.
40777         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40778         _GL_UNUSED.
40779         * modules/unistr/base (Depends-on): Add unused-parameter.
40780
40781 2009-12-24  Bruno Haible  <bruno@clisp.org>
40782
40783         Add missing dependencies to 'extensions' module.
40784         * m4/extensions.m4: Add comment.
40785         * modules/accept4 (Depends-on): Add extensions.
40786         * modules/dup3 (Depends-on): Likewise.
40787         * modules/fcntl (Depends-on): Likewise.
40788         * modules/futimens (Depends-on): Likewise.
40789         * modules/mknod (Depends-on): Likewise.
40790         * modules/pipe2 (Depends-on): Likewise.
40791         * modules/stat-time (Depends-on): Likewise.
40792         * modules/strcasestr-simple (Depends-on): Likewise.
40793         * modules/strsignal (Depends-on): Likewise.
40794         * modules/utimensat (Depends-on): Likewise.
40795         * modules/localcharset (Depends-on): Likewise. Needed because of
40796         gl_FCNTL_O_FLAGS.
40797         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40798         AC_TYPE_MBSTATE_T.
40799         * modules/wcsnrtombs (Depends-on): Likewise.
40800         * modules/wcsrtombs (Depends-on): Likewise.
40801
40802 2009-12-24  Bruno Haible  <bruno@clisp.org>
40803
40804         binary-io: Avoid gcc warning due to SET_BINARY.
40805         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40806         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40807
40808 2009-12-24  Bruno Haible  <bruno@clisp.org>
40809
40810         Avoid future namespace pollution on glibc systems.
40811         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40812         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40813         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40814         glibc systems.
40815
40816 2009-12-24  Bruno Haible  <bruno@clisp.org>
40817
40818         Refactor common macros used in tests.
40819         * tests/macros.h: New file.
40820         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40821         and/or <stdlib.h>, if appropriate.
40822         (ASSERT, SIZEOF): Remove macros.
40823         * tests/test-areadlink-with-size.c: Likewise.
40824         * tests/test-areadlinkat.c: Likewise.
40825         * tests/test-areadlinkat-with-size.c: Likewise.
40826         * tests/test-argmatch.c: Likewise.
40827         * tests/test-argv-iter.c: Likewise.
40828         * tests/test-array-mergesort.c: Likewise.
40829         * tests/test-array_list.c: Likewise.
40830         * tests/test-array_oset.c: Likewise.
40831         * tests/test-avltree_list.c: Likewise.
40832         * tests/test-avltree_oset.c: Likewise.
40833         * tests/test-avltreehash_list.c: Likewise.
40834         * tests/test-base64.c: Likewise.
40835         * tests/test-binary-io.c: Likewise.
40836         * tests/test-bitrotate.c: Likewise.
40837         * tests/test-btowc.c: Likewise.
40838         * tests/test-byteswap.c: Likewise.
40839         * tests/test-c-ctype.c: Likewise.
40840         * tests/test-c-stack.c: Likewise.
40841         * tests/test-c-strcasecmp.c: Likewise.
40842         * tests/test-c-strcasestr.c: Likewise.
40843         * tests/test-c-strncasecmp.c: Likewise.
40844         * tests/test-c-strstr.c: Likewise.
40845         * tests/test-canonicalize-lgpl.c: Likewise.
40846         * tests/test-canonicalize.c: Likewise.
40847         * tests/test-carray_list.c: Likewise.
40848         * tests/test-ceilf1.c: Likewise.
40849         * tests/test-ceilf2.c: Likewise.
40850         * tests/test-ceill.c: Likewise.
40851         * tests/test-chown.c: Likewise.
40852         * tests/test-cloexec.c: Likewise.
40853         * tests/test-copy-acl.c: Likewise.
40854         * tests/test-copy-file.c: Likewise.
40855         * tests/test-count-one-bits.c: Likewise.
40856         * tests/test-dprintf-posix.c: Likewise.
40857         * tests/test-dup2.c: Likewise.
40858         * tests/test-dup3.c: Likewise.
40859         * tests/test-duplocale.c: Likewise.
40860         * tests/test-fbufmode.c: Likewise.
40861         * tests/test-fchdir.c: Likewise.
40862         * tests/test-fchownat.c: Likewise.
40863         * tests/test-fcntl-safer.c: Likewise.
40864         * tests/test-fcntl.c: Likewise.
40865         * tests/test-fdopendir.c: Likewise.
40866         * tests/test-fdutimensat.c: Likewise.
40867         * tests/test-fflush2.c: Likewise.
40868         * tests/test-file-has-acl.c: Likewise.
40869         * tests/test-filevercmp.c: Likewise.
40870         * tests/test-flock.c: Likewise.
40871         * tests/test-floorf1.c: Likewise.
40872         * tests/test-floorf2.c: Likewise.
40873         * tests/test-floorl.c: Likewise.
40874         * tests/test-fnmatch.c: Likewise.
40875         * tests/test-fopen.h: Likewise.
40876         * tests/test-fpending.c: Likewise.
40877         * tests/test-fprintf-posix.c: Likewise.
40878         * tests/test-fpurge.c: Likewise.
40879         * tests/test-freadable.c: Likewise.
40880         * tests/test-freadahead.c: Likewise.
40881         * tests/test-freading.c: Likewise.
40882         * tests/test-freadptr.c: Likewise.
40883         * tests/test-freadptr2.c: Likewise.
40884         * tests/test-freadseek.c: Likewise.
40885         * tests/test-freopen.c: Likewise.
40886         * tests/test-frexp.c: Likewise.
40887         * tests/test-frexpl.c: Likewise.
40888         * tests/test-fseek.c: Likewise.
40889         * tests/test-fseeko.c: Likewise.
40890         * tests/test-fstatat.c: Likewise.
40891         * tests/test-fstrcmp.c: Likewise.
40892         * tests/test-fsync.c: Likewise.
40893         * tests/test-ftell.c: Likewise.
40894         * tests/test-ftello.c: Likewise.
40895         * tests/test-func.c: Likewise.
40896         * tests/test-futimens.c: Likewise.
40897         * tests/test-fwritable.c: Likewise.
40898         * tests/test-fwriting.c: Likewise.
40899         * tests/test-getcwd.c: Likewise.
40900         * tests/test-getdate.c: Likewise.
40901         * tests/test-getdelim.c: Likewise.
40902         * tests/test-getdtablesize.c: Likewise.
40903         * tests/test-getgroups.c: Likewise.
40904         * tests/test-getline.c: Likewise.
40905         * tests/test-getndelim2.c: Likewise.
40906         * tests/test-glob.c: Likewise.
40907         * tests/test-hash.c: Likewise.
40908         * tests/test-i-ring.c: Likewise.
40909         * tests/test-iconv-utf.c: Likewise.
40910         * tests/test-iconv.c: Likewise.
40911         * tests/test-idpriv-drop.c: Likewise.
40912         * tests/test-idpriv-droptemp.c: Likewise.
40913         * tests/test-inet_ntop.c: Likewise.
40914         * tests/test-inet_pton.c: Likewise.
40915         * tests/test-isblank.c: Likewise.
40916         * tests/test-isfinite.c: Likewise.
40917         * tests/test-isinf.c: Likewise.
40918         * tests/test-isnan.c: Likewise.
40919         * tests/test-isnand.h: Likewise.
40920         * tests/test-isnanf.h: Likewise.
40921         * tests/test-isnanl.h: Likewise.
40922         * tests/test-lchown.c: Likewise.
40923         * tests/test-ldexpl.c: Likewise.
40924         * tests/test-link.c: Likewise.
40925         * tests/test-linkat.c: Likewise.
40926         * tests/test-linked_list.c: Likewise.
40927         * tests/test-linkedhash_list.c: Likewise.
40928         * tests/test-localename.c: Likewise.
40929         * tests/test-lseek.c: Likewise.
40930         * tests/test-lstat.c: Likewise.
40931         * tests/test-mbmemcasecmp.c: Likewise.
40932         * tests/test-mbmemcasecoll.c: Likewise.
40933         * tests/test-mbrtowc.c: Likewise.
40934         * tests/test-mbscasecmp.c: Likewise.
40935         * tests/test-mbscasestr1.c: Likewise.
40936         * tests/test-mbscasestr2.c: Likewise.
40937         * tests/test-mbscasestr3.c: Likewise.
40938         * tests/test-mbscasestr4.c: Likewise.
40939         * tests/test-mbschr.c: Likewise.
40940         * tests/test-mbscspn.c: Likewise.
40941         * tests/test-mbsinit.c: Likewise.
40942         * tests/test-mbsncasecmp.c: Likewise.
40943         * tests/test-mbsnrtowcs.c: Likewise.
40944         * tests/test-mbspbrk.c: Likewise.
40945         * tests/test-mbspcasecmp.c: Likewise.
40946         * tests/test-mbsrchr.c: Likewise.
40947         * tests/test-mbsrtowcs.c: Likewise.
40948         * tests/test-mbsspn.c: Likewise.
40949         * tests/test-mbsstr1.c: Likewise.
40950         * tests/test-mbsstr2.c: Likewise.
40951         * tests/test-mbsstr3.c: Likewise.
40952         * tests/test-memchr.c: Likewise.
40953         * tests/test-memchr2.c: Likewise.
40954         * tests/test-memcmp.c: Likewise.
40955         * tests/test-memmem.c: Likewise.
40956         * tests/test-memrchr.c: Likewise.
40957         * tests/test-mkdir.c: Likewise.
40958         * tests/test-mkdirat.c: Likewise.
40959         * tests/test-mkfifo.c: Likewise.
40960         * tests/test-mkfifoat.c: Likewise.
40961         * tests/test-mknod.c: Likewise.
40962         * tests/test-nanosleep.c: Likewise.
40963         * tests/test-nl_langinfo.c: Likewise.
40964         * tests/test-obstack-printf.c: Likewise.
40965         * tests/test-open.c: Likewise.
40966         * tests/test-openat.c: Likewise.
40967         * tests/test-pipe-filter-gi1.c: Likewise.
40968         * tests/test-pipe-filter-gi2-main.c: Likewise.
40969         * tests/test-pipe-filter-ii1.c: Likewise.
40970         * tests/test-pipe-filter-ii2-main.c: Likewise.
40971         * tests/test-pipe2.c: Likewise.
40972         * tests/test-popen.h: Likewise.
40973         * tests/test-posixtm.c: Likewise.
40974         * tests/test-pread.c: Likewise.
40975         * tests/test-printf-frexp.c: Likewise.
40976         * tests/test-printf-frexpl.c: Likewise.
40977         * tests/test-printf-posix.c: Likewise.
40978         * tests/test-priv-set.c: Likewise.
40979         * tests/test-quotearg.c: Likewise.
40980         * tests/test-random_r.c: Likewise.
40981         * tests/test-rawmemchr.c: Likewise.
40982         * tests/test-rbtree_list.c: Likewise.
40983         * tests/test-rbtree_oset.c: Likewise.
40984         * tests/test-rbtreehash_list.c: Likewise.
40985         * tests/test-readlink.c: Likewise.
40986         * tests/test-remove.c: Likewise.
40987         * tests/test-rename.c: Likewise.
40988         * tests/test-renameat.c: Likewise.
40989         * tests/test-rmdir.c: Likewise.
40990         * tests/test-round1.c: Likewise.
40991         * tests/test-roundf1.c: Likewise.
40992         * tests/test-roundl.c: Likewise.
40993         * tests/test-safe-alloc.c: Likewise.
40994         * tests/test-sameacls.c: Likewise.
40995         * tests/test-set-mode-acl.c: Likewise.
40996         * tests/test-setenv.c: Likewise.
40997         * tests/test-sigaction.c: Likewise.
40998         * tests/test-signbit.c: Likewise.
40999         * tests/test-sleep.c: Likewise.
41000         * tests/test-snprintf-posix.c: Likewise.
41001         * tests/test-snprintf.c: Likewise.
41002         * tests/test-sprintf-posix.c: Likewise.
41003         * tests/test-stat-time.c: Likewise.
41004         * tests/test-stat.c: Likewise.
41005         * tests/test-strcasestr.c: Likewise.
41006         * tests/test-strchrnul.c: Likewise.
41007         * tests/test-strerror.c: Likewise.
41008         * tests/test-striconv.c: Likewise.
41009         * tests/test-striconveh.c: Likewise.
41010         * tests/test-striconveha.c: Likewise.
41011         * tests/test-strsignal.c: Likewise.
41012         * tests/test-strstr.c: Likewise.
41013         * tests/test-strtod.c: Likewise.
41014         * tests/test-strverscmp.c: Likewise.
41015         * tests/test-symlink.c: Likewise.
41016         * tests/test-symlinkat.c: Likewise.
41017         * tests/test-trunc1.c: Likewise.
41018         * tests/test-trunc2.c: Likewise.
41019         * tests/test-truncf1.c: Likewise.
41020         * tests/test-truncf2.c: Likewise.
41021         * tests/test-truncl.c: Likewise.
41022         * tests/test-uname.c: Likewise.
41023         * tests/test-unlink.c: Likewise.
41024         * tests/test-unlinkat.c: Likewise.
41025         * tests/test-unsetenv.c: Likewise.
41026         * tests/test-usleep.c: Likewise.
41027         * tests/test-utimens.c: Likewise.
41028         * tests/test-utimensat.c: Likewise.
41029         * tests/test-vasnprintf-posix.c: Likewise.
41030         * tests/test-vasnprintf-posix2.c: Likewise.
41031         * tests/test-vasnprintf.c: Likewise.
41032         * tests/test-vasprintf-posix.c: Likewise.
41033         * tests/test-vasprintf.c: Likewise.
41034         * tests/test-vdprintf-posix.c: Likewise.
41035         * tests/test-vfprintf-posix.c: Likewise.
41036         * tests/test-vprintf-posix.c: Likewise.
41037         * tests/test-vsnprintf-posix.c: Likewise.
41038         * tests/test-vsnprintf.c: Likewise.
41039         * tests/test-vsprintf-posix.c: Likewise.
41040         * tests/test-wcrtomb.c: Likewise.
41041         * tests/test-wcsnrtombs.c: Likewise.
41042         * tests/test-wcsrtombs.c: Likewise.
41043         * tests/test-wctype.c: Likewise.
41044         * tests/test-wcwidth.c: Likewise.
41045         * tests/test-xfprintf-posix.c: Likewise.
41046         * tests/test-xmemdup0.c: Likewise.
41047         * tests/test-xprintf-posix.c: Likewise.
41048         * tests/test-xvasprintf.c: Likewise.
41049         * tests/unicase/test-locale-language.c: Likewise.
41050         * tests/unicase/test-mapping-part1.h: Likewise.
41051         * tests/unicase/test-predicate-part1.h: Likewise.
41052         * tests/unicase/test-u8-casecmp.c: Likewise.
41053         * tests/unicase/test-u8-casecoll.c: Likewise.
41054         * tests/unicase/test-u8-casefold.c: Likewise.
41055         * tests/unicase/test-u8-is-cased.c: Likewise.
41056         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41057         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41058         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41059         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41060         * tests/unicase/test-u8-tolower.c: Likewise.
41061         * tests/unicase/test-u8-totitle.c: Likewise.
41062         * tests/unicase/test-u8-toupper.c: Likewise.
41063         * tests/unicase/test-u16-casecmp.c: Likewise.
41064         * tests/unicase/test-u16-casecoll.c: Likewise.
41065         * tests/unicase/test-u16-casefold.c: Likewise.
41066         * tests/unicase/test-u16-is-cased.c: Likewise.
41067         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41068         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41069         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41070         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41071         * tests/unicase/test-u16-tolower.c: Likewise.
41072         * tests/unicase/test-u16-totitle.c: Likewise.
41073         * tests/unicase/test-u16-toupper.c: Likewise.
41074         * tests/unicase/test-u32-casecmp.c: Likewise.
41075         * tests/unicase/test-u32-casecoll.c: Likewise.
41076         * tests/unicase/test-u32-casefold.c: Likewise.
41077         * tests/unicase/test-u32-is-cased.c: Likewise.
41078         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41079         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41080         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41081         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41082         * tests/unicase/test-u32-tolower.c: Likewise.
41083         * tests/unicase/test-u32-totitle.c: Likewise.
41084         * tests/unicase/test-u32-toupper.c: Likewise.
41085         * tests/unicase/test-ulc-casecmp.c: Likewise.
41086         * tests/unicase/test-ulc-casecoll.c: Likewise.
41087         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41088         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41089         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41090         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41091         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41092         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41093         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41094         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41095         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41096         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41097         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41098         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41099         * tests/unictype/test-bidi_byname.c: Likewise.
41100         * tests/unictype/test-bidi_name.c: Likewise.
41101         * tests/unictype/test-bidi_of.c: Likewise.
41102         * tests/unictype/test-bidi_test.c: Likewise.
41103         * tests/unictype/test-block_list.c: Likewise.
41104         * tests/unictype/test-block_of.c: Likewise.
41105         * tests/unictype/test-block_test.c: Likewise.
41106         * tests/unictype/test-categ_and.c: Likewise.
41107         * tests/unictype/test-categ_and_not.c: Likewise.
41108         * tests/unictype/test-categ_byname.c: Likewise.
41109         * tests/unictype/test-categ_name.c: Likewise.
41110         * tests/unictype/test-categ_none.c: Likewise.
41111         * tests/unictype/test-categ_of.c: Likewise.
41112         * tests/unictype/test-categ_or.c: Likewise.
41113         * tests/unictype/test-categ_test_withtable.c: Likewise.
41114         * tests/unictype/test-combining.c: Likewise.
41115         * tests/unictype/test-decdigit.c: Likewise.
41116         * tests/unictype/test-digit.c: Likewise.
41117         * tests/unictype/test-mirror.c: Likewise.
41118         * tests/unictype/test-numeric.c: Likewise.
41119         * tests/unictype/test-pr_byname.c: Likewise.
41120         * tests/unictype/test-pr_test.c: Likewise.
41121         * tests/unictype/test-predicate-part1.h: Likewise.
41122         * tests/unictype/test-scripts.c: Likewise.
41123         * tests/unictype/test-sy_c_ident.c: Likewise.
41124         * tests/unictype/test-sy_java_ident.c: Likewise.
41125         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41126         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41127         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41128         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41129         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41130         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41131         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41132         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41133         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41134         * tests/uninorm/test-compat-decomposition.c: Likewise.
41135         * tests/uninorm/test-composition.c: Likewise.
41136         * tests/uninorm/test-decomposing-form.c: Likewise.
41137         * tests/uninorm/test-decomposition.c: Likewise.
41138         * tests/uninorm/test-u8-nfc.c: Likewise.
41139         * tests/uninorm/test-u8-nfd.c: Likewise.
41140         * tests/uninorm/test-u8-nfkc.c: Likewise.
41141         * tests/uninorm/test-u8-nfkd.c: Likewise.
41142         * tests/uninorm/test-u8-normcmp.c: Likewise.
41143         * tests/uninorm/test-u8-normcoll.c: Likewise.
41144         * tests/uninorm/test-u16-nfc.c: Likewise.
41145         * tests/uninorm/test-u16-nfd.c: Likewise.
41146         * tests/uninorm/test-u16-nfkc.c: Likewise.
41147         * tests/uninorm/test-u16-nfkd.c: Likewise.
41148         * tests/uninorm/test-u16-normcmp.c: Likewise.
41149         * tests/uninorm/test-u16-normcoll.c: Likewise.
41150         * tests/uninorm/test-u32-nfc.c: Likewise.
41151         * tests/uninorm/test-u32-nfd.c: Likewise.
41152         * tests/uninorm/test-u32-nfkc.c: Likewise.
41153         * tests/uninorm/test-u32-nfkd.c: Likewise.
41154         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41155         * tests/uninorm/test-u32-normcmp.c: Likewise.
41156         * tests/uninorm/test-u32-normcoll.c: Likewise.
41157         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41158         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41159         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41160         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41161         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41162         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41163         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41164         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41165         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41166         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41167         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41168         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41169         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41170         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41171         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41172         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41173         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41174         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41175         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41176         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41177         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41178         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41179         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41180         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41181         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41182         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41183         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41184         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41185         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41186         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41187         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41188         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41189         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41190         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41191         * tests/uniwidth/test-u8-width.c: Likewise.
41192         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41193         * tests/uniwidth/test-u16-width.c: Likewise.
41194         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41195         * tests/uniwidth/test-u32-width.c: Likewise.
41196         * tests/uniwidth/test-uc_width.c: Likewise.
41197         * tests/uniwidth/test-uc_width2.c: Likewise.
41198         * modules/acl-tests (Files): Add tests/macros.h.
41199         * modules/areadlink-tests (Files): Likewise.
41200         * modules/areadlink-with-size-tests (Files): Likewise.
41201         * modules/areadlinkat-tests (Files): Likewise.
41202         * modules/areadlinkat-with-size-tests (Files): Likewise.
41203         * modules/argmatch-tests (Files): Likewise.
41204         * modules/argv-iter-tests (Files): Likewise.
41205         * modules/array-list-tests (Files): Likewise.
41206         * modules/array-mergesort-tests (Files): Likewise.
41207         * modules/array-oset-tests (Files): Likewise.
41208         * modules/avltree-list-tests (Files): Likewise.
41209         * modules/avltree-oset-tests (Files): Likewise.
41210         * modules/avltreehash-list-tests (Files): Likewise.
41211         * modules/base64-tests (Files): Likewise.
41212         * modules/binary-io-tests (Files): Likewise.
41213         * modules/bitrotate-tests (Files): Likewise.
41214         * modules/btowc-tests (Files): Likewise.
41215         * modules/byteswap-tests (Files): Likewise.
41216         * modules/c-ctype-tests (Files): Likewise.
41217         * modules/c-stack-tests (Files): Likewise.
41218         * modules/c-strcase-tests (Files): Likewise.
41219         * modules/c-strcasestr-tests (Files): Likewise.
41220         * modules/c-strstr-tests (Files): Likewise.
41221         * modules/canonicalize-lgpl-tests (Files): Likewise.
41222         * modules/canonicalize-tests (Files): Likewise.
41223         * modules/carray-list-tests (Files): Likewise.
41224         * modules/ceilf-tests (Files): Likewise.
41225         * modules/ceill-tests (Files): Likewise.
41226         * modules/chown-tests (Files): Likewise.
41227         * modules/cloexec-tests (Files): Likewise.
41228         * modules/copy-file-tests (Files): Likewise.
41229         * modules/count-one-bits-tests (Files): Likewise.
41230         * modules/dprintf-posix-tests (Files): Likewise.
41231         * modules/dup2-tests (Files): Likewise.
41232         * modules/dup3-tests (Files): Likewise.
41233         * modules/duplocale-tests (Files): Likewise.
41234         * modules/fbufmode-tests (Files): Likewise.
41235         * modules/fchdir-tests (Files): Likewise.
41236         * modules/fcntl-safer-tests (Files): Likewise.
41237         * modules/fcntl-tests (Files): Likewise.
41238         * modules/fdopendir-tests (Files): Likewise.
41239         * modules/fdutimensat-tests (Files): Likewise.
41240         * modules/fflush-tests (Files): Likewise.
41241         * modules/filevercmp-tests (Files): Likewise.
41242         * modules/flock-tests (Files): Likewise.
41243         * modules/floorf-tests (Files): Likewise.
41244         * modules/floorl-tests (Files): Likewise.
41245         * modules/fnmatch-tests (Files): Likewise.
41246         * modules/fopen-safer-tests (Files): Likewise.
41247         * modules/fopen-tests (Files): Likewise.
41248         * modules/fpending-tests (Files): Likewise.
41249         * modules/fprintf-posix-tests (Files): Likewise.
41250         * modules/fpurge-tests (Files): Likewise.
41251         * modules/freadable-tests (Files): Likewise.
41252         * modules/freadahead-tests (Files): Likewise.
41253         * modules/freading-tests (Files): Likewise.
41254         * modules/freadptr-tests (Files): Likewise.
41255         * modules/freadseek-tests (Files): Likewise.
41256         * modules/freopen-tests (Files): Likewise.
41257         * modules/frexp-nolibm-tests (Files): Likewise.
41258         * modules/frexp-tests (Files): Likewise.
41259         * modules/frexpl-nolibm-tests (Files): Likewise.
41260         * modules/frexpl-tests (Files): Likewise.
41261         * modules/fseek-tests (Files): Likewise.
41262         * modules/fseeko-tests (Files): Likewise.
41263         * modules/fstrcmp-tests (Files): Likewise.
41264         * modules/fsync-tests (Files): Likewise.
41265         * modules/ftell-tests (Files): Likewise.
41266         * modules/ftello-tests (Files): Likewise.
41267         * modules/func-tests (Files): Likewise.
41268         * modules/futimens-tests (Files): Likewise.
41269         * modules/fwritable-tests (Files): Likewise.
41270         * modules/fwriting-tests (Files): Likewise.
41271         * modules/getcwd-tests (Files): Likewise.
41272         * modules/getdate-tests (Files): Likewise.
41273         * modules/getdelim-tests (Files): Likewise.
41274         * modules/getdtablesize-tests (Files): Likewise.
41275         * modules/getgroups-tests (Files): Likewise.
41276         * modules/getline-tests (Files): Likewise.
41277         * modules/getndelim2-tests (Files): Likewise.
41278         * modules/glob-tests (Files): Likewise.
41279         * modules/hash-tests (Files): Likewise.
41280         * modules/i-ring-tests (Files): Likewise.
41281         * modules/iconv-tests (Files): Likewise.
41282         * modules/iconv_open-utf-tests (Files): Likewise.
41283         * modules/idpriv-drop-tests (Files): Likewise.
41284         * modules/idpriv-droptemp-tests (Files): Likewise.
41285         * modules/inet_ntop-tests (Files): Likewise.
41286         * modules/inet_pton-tests (Files): Likewise.
41287         * modules/isblank-tests (Files): Likewise.
41288         * modules/isfinite-tests (Files): Likewise.
41289         * modules/isinf-tests (Files): Likewise.
41290         * modules/isnan-tests (Files): Likewise.
41291         * modules/isnand-nolibm-tests (Files): Likewise.
41292         * modules/isnand-tests (Files): Likewise.
41293         * modules/isnanf-nolibm-tests (Files): Likewise.
41294         * modules/isnanf-tests (Files): Likewise.
41295         * modules/isnanl-nolibm-tests (Files): Likewise.
41296         * modules/isnanl-tests (Files): Likewise.
41297         * modules/lchown-tests (Files): Likewise.
41298         * modules/ldexpl-tests (Files): Likewise.
41299         * modules/link-tests (Files): Likewise.
41300         * modules/linkat-tests (Files): Likewise.
41301         * modules/linked-list-tests (Files): Likewise.
41302         * modules/linkedhash-list-tests (Files): Likewise.
41303         * modules/localename-tests (Files): Likewise.
41304         * modules/lseek-tests (Files): Likewise.
41305         * modules/lstat-tests (Files): Likewise.
41306         * modules/mbmemcasecmp-tests (Files): Likewise.
41307         * modules/mbmemcasecoll-tests (Files): Likewise.
41308         * modules/mbrtowc-tests (Files): Likewise.
41309         * modules/mbscasecmp-tests (Files): Likewise.
41310         * modules/mbscasestr-tests (Files): Likewise.
41311         * modules/mbschr-tests (Files): Likewise.
41312         * modules/mbscspn-tests (Files): Likewise.
41313         * modules/mbsinit-tests (Files): Likewise.
41314         * modules/mbsncasecmp-tests (Files): Likewise.
41315         * modules/mbsnrtowcs-tests (Files): Likewise.
41316         * modules/mbspbrk-tests (Files): Likewise.
41317         * modules/mbspcasecmp-tests (Files): Likewise.
41318         * modules/mbsrchr-tests (Files): Likewise.
41319         * modules/mbsrtowcs-tests (Files): Likewise.
41320         * modules/mbsspn-tests (Files): Likewise.
41321         * modules/mbsstr-tests (Files): Likewise.
41322         * modules/memchr-tests (Files): Likewise.
41323         * modules/memchr2-tests (Files): Likewise.
41324         * modules/memcmp-tests (Files): Likewise.
41325         * modules/memmem-tests (Files): Likewise.
41326         * modules/memrchr-tests (Files): Likewise.
41327         * modules/mkdir-tests (Files): Likewise.
41328         * modules/mkfifo-tests (Files): Likewise.
41329         * modules/mkfifoat-tests (Files): Likewise.
41330         * modules/mknod-tests (Files): Likewise.
41331         * modules/nanosleep-tests (Files): Likewise.
41332         * modules/nl_langinfo-tests (Files): Likewise.
41333         * modules/obstack-printf-tests (Files): Likewise.
41334         * modules/open-tests (Files): Likewise.
41335         * modules/openat-tests (Files): Likewise.
41336         * modules/pipe-filter-gi-tests (Files): Likewise.
41337         * modules/pipe-filter-ii-tests (Files): Likewise.
41338         * modules/pipe2-tests (Files): Likewise.
41339         * modules/popen-safer-tests (Files): Likewise.
41340         * modules/popen-tests (Files): Likewise.
41341         * modules/posixtm-tests (Files): Likewise.
41342         * modules/pread-tests (Files): Likewise.
41343         * modules/printf-frexp-tests (Files): Likewise.
41344         * modules/printf-frexpl-tests (Files): Likewise.
41345         * modules/printf-posix-tests (Files): Likewise.
41346         * modules/priv-set-tests (Files): Likewise.
41347         * modules/quotearg-tests (Files): Likewise.
41348         * modules/random_r-tests (Files): Likewise.
41349         * modules/rawmemchr-tests (Files): Likewise.
41350         * modules/rbtree-list-tests (Files): Likewise.
41351         * modules/rbtree-oset-tests (Files): Likewise.
41352         * modules/rbtreehash-list-tests (Files): Likewise.
41353         * modules/readlink-tests (Files): Likewise.
41354         * modules/remove-tests (Files): Likewise.
41355         * modules/rename-tests (Files): Likewise.
41356         * modules/renameat-tests (Files): Likewise.
41357         * modules/rmdir-tests (Files): Likewise.
41358         * modules/round-tests (Files): Likewise.
41359         * modules/roundf-tests (Files): Likewise.
41360         * modules/roundl-tests (Files): Likewise.
41361         * modules/safe-alloc-tests (Files): Likewise.
41362         * modules/setenv-tests (Files): Likewise.
41363         * modules/sigaction-tests (Files): Likewise.
41364         * modules/signbit-tests (Files): Likewise.
41365         * modules/sleep-tests (Files): Likewise.
41366         * modules/snprintf-posix-tests (Files): Likewise.
41367         * modules/snprintf-tests (Files): Likewise.
41368         * modules/sprintf-posix-tests (Files): Likewise.
41369         * modules/stat-tests (Files): Likewise.
41370         * modules/stat-time-tests (Files): Likewise.
41371         * modules/strcasestr-tests (Files): Likewise.
41372         * modules/strchrnul-tests (Files): Likewise.
41373         * modules/strerror-tests (Files): Likewise.
41374         * modules/striconv-tests (Files): Likewise.
41375         * modules/striconveh-tests (Files): Likewise.
41376         * modules/striconveha-tests (Files): Likewise.
41377         * modules/strsignal-tests (Files): Likewise.
41378         * modules/strstr-tests (Files): Likewise.
41379         * modules/strtod-tests (Files): Likewise.
41380         * modules/strverscmp-tests (Files): Likewise.
41381         * modules/symlink-tests (Files): Likewise.
41382         * modules/symlinkat-tests (Files): Likewise.
41383         * modules/trunc-tests (Files): Likewise.
41384         * modules/truncf-tests (Files): Likewise.
41385         * modules/truncl-tests (Files): Likewise.
41386         * modules/uname-tests (Files): Likewise.
41387         * modules/unicase/cased-tests (Files): Likewise.
41388         * modules/unicase/ignorable-tests (Files): Likewise.
41389         * modules/unicase/locale-language-tests (Files): Likewise.
41390         * modules/unicase/tolower-tests (Files): Likewise.
41391         * modules/unicase/totitle-tests (Files): Likewise.
41392         * modules/unicase/toupper-tests (Files): Likewise.
41393         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41394         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41395         * modules/unicase/u8-casefold-tests (Files): Likewise.
41396         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41397         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41398         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41399         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41400         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41401         * modules/unicase/u8-tolower-tests (Files): Likewise.
41402         * modules/unicase/u8-totitle-tests (Files): Likewise.
41403         * modules/unicase/u8-toupper-tests (Files): Likewise.
41404         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41405         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41406         * modules/unicase/u16-casefold-tests (Files): Likewise.
41407         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41408         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41409         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41410         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41411         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41412         * modules/unicase/u16-tolower-tests (Files): Likewise.
41413         * modules/unicase/u16-totitle-tests (Files): Likewise.
41414         * modules/unicase/u16-toupper-tests (Files): Likewise.
41415         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41416         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41417         * modules/unicase/u32-casefold-tests (Files): Likewise.
41418         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41419         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41420         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41421         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41422         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41423         * modules/unicase/u32-tolower-tests (Files): Likewise.
41424         * modules/unicase/u32-totitle-tests (Files): Likewise.
41425         * modules/unicase/u32-toupper-tests (Files): Likewise.
41426         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41427         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41428         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41429         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41430         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41431         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41432         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41433         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41434         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41435         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41436         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41437         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41438         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41439         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41440         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41441         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41442         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41443         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41444         * modules/unictype/block-list-tests (Files): Likewise.
41445         * modules/unictype/block-of-tests (Files): Likewise.
41446         * modules/unictype/block-test-tests (Files): Likewise.
41447         * modules/unictype/category-C-tests (Files): Likewise.
41448         * modules/unictype/category-Cc-tests (Files): Likewise.
41449         * modules/unictype/category-Cf-tests (Files): Likewise.
41450         * modules/unictype/category-Cn-tests (Files): Likewise.
41451         * modules/unictype/category-Co-tests (Files): Likewise.
41452         * modules/unictype/category-Cs-tests (Files): Likewise.
41453         * modules/unictype/category-L-tests (Files): Likewise.
41454         * modules/unictype/category-Ll-tests (Files): Likewise.
41455         * modules/unictype/category-Lm-tests (Files): Likewise.
41456         * modules/unictype/category-Lo-tests (Files): Likewise.
41457         * modules/unictype/category-Lt-tests (Files): Likewise.
41458         * modules/unictype/category-Lu-tests (Files): Likewise.
41459         * modules/unictype/category-M-tests (Files): Likewise.
41460         * modules/unictype/category-Mc-tests (Files): Likewise.
41461         * modules/unictype/category-Me-tests (Files): Likewise.
41462         * modules/unictype/category-Mn-tests (Files): Likewise.
41463         * modules/unictype/category-N-tests (Files): Likewise.
41464         * modules/unictype/category-Nd-tests (Files): Likewise.
41465         * modules/unictype/category-Nl-tests (Files): Likewise.
41466         * modules/unictype/category-No-tests (Files): Likewise.
41467         * modules/unictype/category-P-tests (Files): Likewise.
41468         * modules/unictype/category-Pc-tests (Files): Likewise.
41469         * modules/unictype/category-Pd-tests (Files): Likewise.
41470         * modules/unictype/category-Pe-tests (Files): Likewise.
41471         * modules/unictype/category-Pf-tests (Files): Likewise.
41472         * modules/unictype/category-Pi-tests (Files): Likewise.
41473         * modules/unictype/category-Po-tests (Files): Likewise.
41474         * modules/unictype/category-Ps-tests (Files): Likewise.
41475         * modules/unictype/category-S-tests (Files): Likewise.
41476         * modules/unictype/category-Sc-tests (Files): Likewise.
41477         * modules/unictype/category-Sk-tests (Files): Likewise.
41478         * modules/unictype/category-Sm-tests (Files): Likewise.
41479         * modules/unictype/category-So-tests (Files): Likewise.
41480         * modules/unictype/category-Z-tests (Files): Likewise.
41481         * modules/unictype/category-Zl-tests (Files): Likewise.
41482         * modules/unictype/category-Zp-tests (Files): Likewise.
41483         * modules/unictype/category-Zs-tests (Files): Likewise.
41484         * modules/unictype/category-and-not-tests (Files): Likewise.
41485         * modules/unictype/category-and-tests (Files): Likewise.
41486         * modules/unictype/category-byname-tests (Files): Likewise.
41487         * modules/unictype/category-name-tests (Files): Likewise.
41488         * modules/unictype/category-none-tests (Files): Likewise.
41489         * modules/unictype/category-of-tests (Files): Likewise.
41490         * modules/unictype/category-or-tests (Files): Likewise.
41491         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41492         * modules/unictype/combining-class-tests (Files): Likewise.
41493         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41494         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41495         * modules/unictype/ctype-blank-tests (Files): Likewise.
41496         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41497         * modules/unictype/ctype-digit-tests (Files): Likewise.
41498         * modules/unictype/ctype-graph-tests (Files): Likewise.
41499         * modules/unictype/ctype-lower-tests (Files): Likewise.
41500         * modules/unictype/ctype-print-tests (Files): Likewise.
41501         * modules/unictype/ctype-punct-tests (Files): Likewise.
41502         * modules/unictype/ctype-space-tests (Files): Likewise.
41503         * modules/unictype/ctype-upper-tests (Files): Likewise.
41504         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41505         * modules/unictype/decimal-digit-tests (Files): Likewise.
41506         * modules/unictype/digit-tests (Files): Likewise.
41507         * modules/unictype/mirror-tests (Files): Likewise.
41508         * modules/unictype/numeric-tests (Files): Likewise.
41509         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41510         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41511         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41512         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41513         Likewise.
41514         * modules/unictype/property-bidi-block-separator-tests (Files):
41515         Likewise.
41516         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41517         Likewise.
41518         * modules/unictype/property-bidi-common-separator-tests (Files):
41519         Likewise.
41520         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41521         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41522         Likewise.
41523         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41524         Likewise.
41525         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41526         Likewise.
41527         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41528         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41529         Likewise.
41530         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41531         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41532         Likewise.
41533         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41534         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41535         * modules/unictype/property-bidi-segment-separator-tests (Files):
41536         Likewise.
41537         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41538         * modules/unictype/property-byname-tests (Files): Likewise.
41539         * modules/unictype/property-combining-tests (Files): Likewise.
41540         * modules/unictype/property-composite-tests (Files): Likewise.
41541         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41542         * modules/unictype/property-dash-tests (Files): Likewise.
41543         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41544         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41545         Likewise.
41546         * modules/unictype/property-deprecated-tests (Files): Likewise.
41547         * modules/unictype/property-diacritic-tests (Files): Likewise.
41548         * modules/unictype/property-extender-tests (Files): Likewise.
41549         * modules/unictype/property-format-control-tests (Files): Likewise.
41550         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41551         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41552         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41553         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41554         * modules/unictype/property-hyphen-tests (Files): Likewise.
41555         * modules/unictype/property-id-continue-tests (Files): Likewise.
41556         * modules/unictype/property-id-start-tests (Files): Likewise.
41557         * modules/unictype/property-ideographic-tests (Files): Likewise.
41558         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41559         * modules/unictype/property-ids-trinary-operator-tests (Files):
41560         Likewise.
41561         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41562         * modules/unictype/property-iso-control-tests (Files): Likewise.
41563         * modules/unictype/property-join-control-tests (Files): Likewise.
41564         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41565         * modules/unictype/property-line-separator-tests (Files): Likewise.
41566         * modules/unictype/property-logical-order-exception-tests (Files):
41567         Likewise.
41568         * modules/unictype/property-lowercase-tests (Files): Likewise.
41569         * modules/unictype/property-math-tests (Files): Likewise.
41570         * modules/unictype/property-non-break-tests (Files): Likewise.
41571         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41572         * modules/unictype/property-numeric-tests (Files): Likewise.
41573         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41574         * modules/unictype/property-other-default-ignorable-code-point-tests
41575         (Files): Likewise.
41576         * modules/unictype/property-other-grapheme-extend-tests (Files):
41577         Likewise.
41578         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41579         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41580         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41581         * modules/unictype/property-other-math-tests (Files): Likewise.
41582         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41583         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41584         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41585         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41586         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41587         * modules/unictype/property-private-use-tests (Files): Likewise.
41588         * modules/unictype/property-punctuation-tests (Files): Likewise.
41589         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41590         * modules/unictype/property-radical-tests (Files): Likewise.
41591         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41592         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41593         * modules/unictype/property-space-tests (Files): Likewise.
41594         * modules/unictype/property-terminal-punctuation-tests (Files):
41595         Likewise.
41596         * modules/unictype/property-test-tests (Files): Likewise.
41597         * modules/unictype/property-titlecase-tests (Files): Likewise.
41598         * modules/unictype/property-unassigned-code-value-tests (Files):
41599         Likewise.
41600         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41601         * modules/unictype/property-uppercase-tests (Files): Likewise.
41602         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41603         * modules/unictype/property-white-space-tests (Files): Likewise.
41604         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41605         * modules/unictype/property-xid-start-tests (Files): Likewise.
41606         * modules/unictype/property-zero-width-tests (Files): Likewise.
41607         * modules/unictype/scripts-tests (Files): Likewise.
41608         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41609         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41610         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41611         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41612         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41613         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41614         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41615         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41616         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41617         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41618         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41619         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41620         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41621         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41622         * modules/uninorm/composition-tests (Files): Likewise.
41623         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41624         * modules/uninorm/decomposition-tests (Files): Likewise.
41625         * modules/uninorm/filter-tests (Files): Likewise.
41626         * modules/uninorm/nfc-tests (Files): Likewise.
41627         * modules/uninorm/nfd-tests (Files): Likewise.
41628         * modules/uninorm/nfkc-tests (Files): Likewise.
41629         * modules/uninorm/nfkd-tests (Files): Likewise.
41630         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41631         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41632         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41633         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41634         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41635         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41636         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41637         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41638         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41639         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41640         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41641         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41642         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41643         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41644         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41645         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41646         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41647         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41648         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41649         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41650         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41651         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41652         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41653         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41654         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41655         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41656         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41657         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41658         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41659         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41660         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41661         * modules/uniwidth/u8-width-tests (Files): Likewise.
41662         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41663         * modules/uniwidth/u16-width-tests (Files): Likewise.
41664         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41665         * modules/uniwidth/u32-width-tests (Files): Likewise.
41666         * modules/uniwidth/width-tests (Files): Likewise.
41667         * modules/unlink-tests (Files): Likewise.
41668         * modules/unsetenv-tests (Files): Likewise.
41669         * modules/usleep-tests (Files): Likewise.
41670         * modules/utimens-tests (Files): Likewise.
41671         * modules/utimensat-tests (Files): Likewise.
41672         * modules/vasnprintf-posix-tests (Files): Likewise.
41673         * modules/vasnprintf-tests (Files): Likewise.
41674         * modules/vasprintf-posix-tests (Files): Likewise.
41675         * modules/vasprintf-tests (Files): Likewise.
41676         * modules/vdprintf-posix-tests (Files): Likewise.
41677         * modules/vfprintf-posix-tests (Files): Likewise.
41678         * modules/vprintf-posix-tests (Files): Likewise.
41679         * modules/vsnprintf-posix-tests (Files): Likewise.
41680         * modules/vsnprintf-tests (Files): Likewise.
41681         * modules/vsprintf-posix-tests (Files): Likewise.
41682         * modules/wcrtomb-tests (Files): Likewise.
41683         * modules/wcsnrtombs-tests (Files): Likewise.
41684         * modules/wcsrtombs-tests (Files): Likewise.
41685         * modules/wctype-tests (Files): Likewise.
41686         * modules/wcwidth-tests (Files): Likewise.
41687         * modules/xmemdup0-tests (Files): Likewise.
41688         * modules/xprintf-posix-tests (Files): Likewise.
41689         * modules/xvasprintf-tests (Files): Likewise.
41690
41691 2009-12-24  Eric Blake  <ebb9@byu.net>
41692
41693         test-nanosleep: fix typo
41694         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41695         patch.
41696         Reported by Bruno Haible.
41697
41698 2009-12-24  Bruno Haible  <bruno@clisp.org>
41699
41700         Reduce namespace pollution on glibc systems.
41701         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41702         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41703         systems.
41704         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41705         <getopt.h> on glibc systems.
41706         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41707         systems.
41708         * lib/fcntl.c: Include <unistd.h> here instead.
41709
41710 2009-12-24  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41713
41714 2009-12-24  Eric Blake  <ebb9@byu.net>
41715
41716         tests: add signature checks
41717         * tests/signature.h (SIGNATURE_CHECK): New file.
41718         * modules/atexit-tests (Files): Use it.
41719         * modules/btowc-tests (Files): Likewise.
41720         * modules/canonicalize-lgpl-tests (Files): Likewise.
41721         * modules/ceilf-tests (Files): Likewise.
41722         * modules/ceill-tests (Files): Likewise.
41723         * modules/chown-tests (Files): Likewise.
41724         * modules/dprintf-posix-tests (Files): Likewise.
41725         * modules/dup2-tests (Files): Likewise.
41726         * modules/dup3-tests (Files): Likewise.
41727         * modules/duplocale-tests (Files): Likewise.
41728         * modules/fchdir-tests (Files): Likewise.
41729         * modules/fcntl-tests (Files): Likewise.
41730         * modules/fdopendir-tests (Files): Likewise.
41731         * modules/fflush-tests (Files): Likewise.
41732         * modules/flock-tests (Files): Likewise.
41733         * modules/floorf-tests (Files): Likewise.
41734         * modules/floorl-tests (Files): Likewise.
41735         * modules/fnmatch-tests (Files): Likewise.
41736         * modules/fopen-tests (Files): Likewise.
41737         * modules/fprintf-posix-tests (Files): Likewise.
41738         * modules/freopen-tests (Files): Likewise.
41739         * modules/frexp-nolibm-tests (Files): Likewise.
41740         * modules/frexp-tests (Files): Likewise.
41741         * modules/frexpl-nolibm-tests (Files): Likewise.
41742         * modules/frexpl-tests (Files): Likewise.
41743         * modules/fseek-tests (Files): Likewise.
41744         * modules/fseeko-tests (Files): Likewise.
41745         * modules/fsync-tests (Files): Likewise.
41746         * modules/ftell-tests (Files): Likewise.
41747         * modules/ftello-tests (Files): Likewise.
41748         * modules/futimens-tests (Files): Likewise.
41749         * modules/getaddrinfo-tests (Files): Likewise.
41750         * modules/getcwd-tests (Files): Likewise.
41751         * modules/getdelim-tests (Files): Likewise.
41752         * modules/getdtablesize-tests (Files): Likewise.
41753         * modules/getgroups-tests (Files): Likewise.
41754         * modules/gethostname-tests (Files): Likewise.
41755         * modules/getline-tests (Files): Likewise.
41756         * modules/getopt-posix-tests (Files): Likewise.
41757         * modules/gettimeofday-tests (Files): Likewise.
41758         * modules/glob-tests (Files): Likewise.
41759         * modules/iconv-tests (Files): Likewise.
41760         * modules/inet_ntop-tests (Files): Likewise.
41761         * modules/inet_pton-tests (Files): Likewise.
41762         * modules/isblank-tests (Files): Likewise.
41763         * modules/lchown-tests (Files): Likewise.
41764         * modules/ldexpl-tests (Files): Likewise.
41765         * modules/link-tests (Files): Likewise.
41766         * modules/linkat-tests (Files): Likewise.
41767         * modules/lseek-tests (Files): Likewise.
41768         * modules/lstat-tests (Files): Likewise.
41769         * modules/mbrtowc-tests (Files): Likewise.
41770         * modules/mbsinit-tests (Files): Likewise.
41771         * modules/mbsnrtowcs-tests (Files): Likewise.
41772         * modules/mbsrtowcs-tests (Files): Likewise.
41773         * modules/memchr-tests (Files): Likewise.
41774         * modules/memcmp-tests (Files): Likewise.
41775         * modules/memmem-tests (Files): Likewise.
41776         * modules/memrchr-tests (Files): Likewise.
41777         * modules/mkdir-tests (Files): Likewise.
41778         * modules/mkfifo-tests (Files): Likewise.
41779         * modules/mkfifoat-tests (Files): Likewise.
41780         * modules/mknod-tests (Files): Likewise.
41781         * modules/nanosleep-tests (Files): Likewise.
41782         * modules/nl_langinfo-tests (Files): Likewise.
41783         * modules/obstack-printf-tests (Files): Likewise.
41784         * modules/open-tests (Files): Likewise.
41785         * modules/openat-tests (Files): Likewise.
41786         * modules/perror-tests (Files): Likewise.
41787         * modules/pipe2-tests (Files): Likewise.
41788         * modules/poll-tests (Files): Likewise.
41789         * modules/popen-tests (Files): Likewise.
41790         * modules/posix_spawn-tests (Files): Likewise.
41791         * modules/posix_spawnp-tests (Files): Likewise.
41792         * modules/pread-tests (Files): Likewise.
41793         * modules/printf-posix-tests (Files): Likewise.
41794         * modules/pty-tests (Files): Likewise.
41795         * modules/random_r-tests (Files): Likewise.
41796         * modules/rawmemchr-tests (Files): Likewise.
41797         * modules/readlink-tests (Files): Likewise.
41798         * modules/remove-tests (Files): Likewise.
41799         * modules/rename-tests (Files): Likewise.
41800         * modules/renameat-tests (Files): Likewise.
41801         * modules/rmdir-tests (Files): Likewise.
41802         * modules/round-tests (Files): Likewise.
41803         * modules/roundf-tests (Files): Likewise.
41804         * modules/roundl-tests (Files): Likewise.
41805         * modules/select-tests (Files): Likewise.
41806         * modules/setenv-tests (Files): Likewise.
41807         * modules/sigaction-tests (Files): Likewise.
41808         * modules/sleep-tests (Files): Likewise.
41809         * modules/snprintf-posix-tests (Files): Likewise.
41810         * modules/snprintf-tests (Files): Likewise.
41811         * modules/sprintf-posix-tests (Files): Likewise.
41812         * modules/stat-tests (Files): Likewise.
41813         * modules/strcasestr-tests (Files): Likewise.
41814         * modules/strchrnul-tests (Files): Likewise.
41815         * modules/strerror-tests (Files): Likewise.
41816         * modules/strsignal-tests (Files): Likewise.
41817         * modules/strstr-tests (Files): Likewise.
41818         * modules/strtod-tests (Files): Likewise.
41819         * modules/strverscmp-tests (Files): Likewise.
41820         * modules/symlink-tests (Files): Likewise.
41821         * modules/symlinkat-tests (Files): Likewise.
41822         * modules/times-tests (Files): Likewise.
41823         * modules/trunc-tests (Files): Likewise.
41824         * modules/truncf-tests (Files): Likewise.
41825         * modules/truncl-tests (Files): Likewise.
41826         * modules/tsearch-tests (Files): Likewise.
41827         * modules/uname-tests (Files): Likewise.
41828         * modules/unlink-tests (Files): Likewise.
41829         * modules/unsetenv-tests (Files): Likewise.
41830         * modules/usleep-tests (Files): Likewise.
41831         * modules/utimensat-tests (Files): Likewise.
41832         * modules/vasprintf-tests (Files): Likewise.
41833         * modules/vdprintf-posix-tests (Files): Likewise.
41834         * modules/vfprintf-posix-tests (Files): Likewise.
41835         * modules/vprintf-posix-tests (Files): Likewise.
41836         * modules/vsnprintf-posix-tests (Files): Likewise.
41837         * modules/vsnprintf-tests (Files): Likewise.
41838         * modules/vsprintf-posix-tests (Files): Likewise.
41839         * modules/wcrtomb-tests (Files): Likewise.
41840         * modules/wcsnrtombs-tests (Files): Likewise.
41841         * modules/wcsrtombs-tests (Files): Likewise.
41842         * modules/wcwidth-tests (Files): Likewise.
41843         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41844         * tests/test-isinf.c (isinf): Likewise.
41845         * tests/test-isnan.c (isnan): Likewise.
41846         * tests/test-signbit.c (signbit): Likewise.
41847         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41848         declaration, either as macro or with correct signature.
41849         (select): Ensure function under test is declared with correct
41850         signature in correct header.
41851         * tests/test-atexit.c (atexit): Likewise.
41852         * tests/test-btowc.c (btowc): Likewise.
41853         * tests/test-canonicalize-lgpl.c (realpath)
41854         (canonicalize_file_name): Likewise.
41855         * tests/test-ceilf1.c (ceilf): Likewise.
41856         * tests/test-ceill.c (ceill): Likewise.
41857         * tests/test-chown.c (chown): Likewise.
41858         * tests/test-dprintf-posix.c (dprintf): Likewise.
41859         * tests/test-dup2.c (dup2): Likewise.
41860         * tests/test-dup3.c (dup3): Likewise.
41861         * tests/test-duplocale.c (duplocale): Likewise.
41862         * tests/test-fchdir.c (fchdir): Likewise.
41863         * tests/test-fchownat.c (fchownat): Likewise.
41864         * tests/test-fcntl.c (fcntl): Likewise.
41865         * tests/test-fdopendir.c (fdopendir): Likewise.
41866         * tests/test-fflush.c (fflush): Likewise.
41867         * tests/test-flock.c (flock): Likewise.
41868         * tests/test-floorf1.c (floorf): Likewise.
41869         * tests/test-floorl.c (floorl): Likewise.
41870         * tests/test-fnmatch.c (fnmatch): Likewise.
41871         * tests/test-fopen.c (fopen): Likewise.
41872         * tests/test-fprintf-posix.c (fprintf): Likewise.
41873         * tests/test-freopen.c (freopen): Likewise.
41874         * tests/test-frexp.c (frexp): Likewise.
41875         * tests/test-frexpl.c (frexpl): Likewise.
41876         * tests/test-fseek.c (fseek): Likewise.
41877         * tests/test-fseeko.c (fseeko): Likewise.
41878         * tests/test-fstatat.c (fstatat): Likewise.
41879         * tests/test-fsync.c (fsync): Likewise.
41880         * tests/test-ftell.c (ftell): Likewise.
41881         * tests/test-ftello.c (ftello): Likewise.
41882         * tests/test-futimens.c (futimens): Likewise.
41883         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41884         (gai_strerror): Likewise.
41885         * tests/test-getcwd.c (getcwd): Likewise.
41886         * tests/test-getdelim.c (getdelim): Likewise.
41887         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41888         * tests/test-getgroups.c (getgroups): Likewise.
41889         * tests/test-gethostname.c (gethostname): Likewise.
41890         * tests/test-getline.c (getline): Likewise.
41891         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41892         Likewise.
41893         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41894         * tests/test-glob.c (glob, globfree): Likewise.
41895         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41896         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41897         * tests/test-inet_pton.c (inet_pton): Likewise.
41898         * tests/test-isblank.c (isblank): Likewise.
41899         * tests/test-lchown.c (lchown): Likewise.
41900         * tests/test-ldexpl.c (ldexpl): Likewise.
41901         * tests/test-link.c (link): Likewise.
41902         * tests/test-linkat.c (linkat): Likewise.
41903         * tests/test-lseek.c (lseek): Likewise.
41904         * tests/test-lstat.c (lstat): Likewise.
41905         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41906         * tests/test-mbsinit.c (mbsinit): Likewise.
41907         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41908         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41909         * tests/test-memchr.c (memchr): Likewise.
41910         * tests/test-memcmp.c (memcmp): Likewise.
41911         * tests/test-memmem.c (memmem): Likewise.
41912         * tests/test-memrchr.c (memrchr): Likewise.
41913         * tests/test-mkdir.c (mkdir): Likewise.
41914         * tests/test-mkdirat.c (mkdirat): Likewise.
41915         * tests/test-mkfifo.c (mkfifo): Likewise.
41916         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41917         * tests/test-mknod.c (mknod): Likewise.
41918         * tests/test-nanosleep.c (nanosleep): Likewise.
41919         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41920         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41921         Likewise.
41922         * tests/test-open.c (open): Likewise.
41923         * tests/test-openat.c (openat): Likewise.
41924         * tests/test-perror.c (perror): Likewise.
41925         * tests/test-pipe2.c (pipe2): Likewise.
41926         * tests/test-poll.c (poll): Likewise.
41927         * tests/test-popen.c (popen, pclose): Likewise.
41928         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41929         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41930         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41931         (posix_spawn_file_actions_destroy)
41932         (posix_spawn_file_actions_addclose)
41933         (posix_spawn_file_actions_addopen)
41934         (posix_spawn_file_actions_adddup2): Likewise.
41935         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41936         * tests/test-pread.c (pread): Likewise.
41937         * tests/test-printf-posix.c (printf): Likewise.
41938         * tests/test-pty.c (openpty, forkpty): Likewise.
41939         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41940         (random_r): Likewise.
41941         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41942         * tests/test-readlink.c (readlink): Likewise.
41943         * tests/test-remove.c (remove): Likewise.
41944         * tests/test-rename.c (rename): Likewise.
41945         * tests/test-renameat.c (renameat): Likewise.
41946         * tests/test-rmdir.c (rmdir): Likewise.
41947         * tests/test-round1.c (round): Likewise.
41948         * tests/test-roundf1.c (roundf): Likewise.
41949         * tests/test-roundl.c (roundl): Likewise.
41950         * tests/test-setenv.c (setenv): Likewise.
41951         * tests/test-sigaction.c (sigaction): Likewise.
41952         * tests/test-sleep.c (sleep): Likewise.
41953         * tests/test-snprintf.c (snprintf): Likewise.
41954         * tests/test-sprintf-posix.c (sprintf): Likewise.
41955         * tests/test-stat.c (stat): Likewise.
41956         * tests/test-stpncpy.c (stpncpy): Likewise.
41957         * tests/test-strcasestr.c (strcasestr): Likewise.
41958         * tests/test-strchrnul.c (strchrnul): Likewise.
41959         * tests/test-strerror.c (strerror): Likewise.
41960         * tests/test-strsignal.c (strsignal): Likewise.
41961         * tests/test-strstr.c (strstr): Likewise.
41962         * tests/test-strtod.c (strtod): Likewise.
41963         * tests/test-strverscmp.c (strverscmp): Likewise.
41964         * tests/test-symlink.c (symlink): Likewise.
41965         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41966         * tests/test-times.c (times): Likewise.
41967         * tests/test-trunc1.c (trunc): Likewise.
41968         * tests/test-truncf1.c (truncf): Likewise.
41969         * tests/test-truncl.c (truncl): Likewise.
41970         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41971         Likewise.
41972         * tests/test-uname.c (uname): Likewise.
41973         * tests/test-unlink.c (unlink): Likewise.
41974         * tests/test-unlinkat.c (unlinkat): Likewise.
41975         * tests/test-unsetenv.c (unsetenv): Likewise.
41976         * tests/test-usleep.c (usleep): Likewise.
41977         * tests/test-utimensat.c (utimensat): Likewise.
41978         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41979         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41980         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41981         * tests/test-vprintf-posix.c (vprintf): Likewise.
41982         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41983         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41984         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41985         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41986         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41987         * tests/test-wcwidth.c (wcwidth): Likewise.
41988
41989         build: pull in conditional headers during GNULIB_POSIXCHECK
41990         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41991         definitions from any conditionally-included headers.
41992         * lib/stdlib.in.h (includes): Likewise.
41993         * lib/unistd.in.h (includes): Likewise.
41994
41995 2009-12-24  Bruno Haible  <bruno@clisp.org>
41996
41997         * tests/test-argv-iter.c: Include header file being tested immediately
41998         after config.h.
41999         * tests/test-base64.c: Likewise.
42000         * tests/test-flock.c: Likewise.
42001         * tests/test-fsync.c: Likewise.
42002         * tests/test-getdate.c: Likewise.
42003         * tests/test-getndelim2.c: Likewise.
42004         * tests/test-isfinite.c: Likewise.
42005         * tests/test-isinf.c: Likewise.
42006         * tests/test-strerror.c: Likewise.
42007         * tests/test-strsignal.c: Likewise.
42008
42009 2009-12-23  Eric Blake  <ebb9@byu.net>
42010
42011         unistd: work around cygwin bug
42012         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42013         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42014         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42015
42016 2009-12-23  Bruno Haible  <bruno@clisp.org>
42017
42018         localename: More tests.
42019         * tests/test-localename.c (SIZEOF): New macro.
42020         (categories): New variable.
42021         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42022         test_locale_name_default): Add test w.r.t. thread locale.
42023         (test_locale_name_thread): New function.
42024         (main): Invoke it.
42025
42026         localename: Make aware of thread locale.
42027         * lib/localename.h (gl_locale_name_thread): New declaration.
42028         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42029         behaviour with respect to thread locale.
42030         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42031         <langinfo.h>, glthread/lock.h.
42032         (SIZE_BITS): New macro.
42033         (string_hash): New function.
42034         (struct hash_node): New type.
42035         (HASH_TABLE_SIZE): New macro.
42036         (struniq_hash_table, struniq_lock): New variables.
42037         (struniq): New function.
42038         (gl_locale_name_thread): New function.
42039         (gl_locale_name): Invoke it.
42040         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42041         * modules/localename (Depends-on): Add lock.
42042         Reported by Mike Gran <spk121@yahoo.com>.
42043
42044 2009-12-23  Eric Blake  <ebb9@byu.net>
42045
42046         va-args: new module
42047         * modules/va-args: New file.
42048         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42049         * MODULES.html.sh (Core language properties): Mention it.
42050
42051         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42052         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42053         named alias for __attribute__((__unused__)).
42054         * lib/chown.c: Update client.
42055         * lib/fchmodat.c: Likewise.
42056         * lib/fts.c: Likewise.
42057         * lib/getdate.y: Likewise.
42058         * lib/getgroups.c: Likewise.
42059         * lib/getopt.c: Likewise.
42060         * lib/getugroups.c: Likewise.
42061         * lib/mkdir.c: Likewise.
42062         * lib/mkfifo.c: Likewise.
42063         * lib/mkfifoat.c: Likewise.
42064         * lib/mknod.c: Likewise.
42065         * lib/mknodat.c: Likewise.
42066         * lib/readlink.c: Likewise.
42067         * lib/se-context.in.h: Likewise.
42068         * lib/se-selinux.in.h: Likewise.
42069         * lib/sockets.c: Likewise.
42070         * lib/symlink.c: Likewise.
42071         * lib/symlinkat.c: Likewise.
42072         * lib/unicodeio.c: Likewise.
42073         * lib/unistr.h: Likewise.
42074         * tests/test-areadlink.c: Likewise.
42075         * tests/test-areadlinkat.c: Likewise.
42076         * tests/test-filenamecat.c: Likewise.
42077         * tests/test-fseeko.c: Likewise.
42078         * tests/test-ftello.c: Likewise.
42079         * tests/test-getdate.c: Likewise.
42080         * tests/test-getgroups.c: Likewise.
42081         * tests/test-gethostname.c: Likewise.
42082         * tests/test-quotearg.c: Likewise.
42083         * tests/test-version-etc.c: Likewise.
42084         * tests/test-xalloc-die.c: Likewise.
42085         * tests/test-xfprintf-posix.c: Likewise.
42086         * tests/test-xprintf-posix.c: Likewise.
42087         * tests/test-xvasprintf.c: Likewise.
42088
42089         tests: avoid compiler warnings
42090         * tests/test-fcntl.c (main): Delete unused parameters.
42091         * tests/test-freopen-safer.c (main): Likewise.
42092         * tests/test-xalloc-die.c (main): Mark unused parameters.
42093         * tests/test-fseeko.c (main): Likewise.
42094         * tests/test-ftello.c (main): Likewise.
42095         * tests/test-nanosleep.c (main): Avoid declaration warning.
42096         * tests/test-sleep.c (main): Likewise.
42097         * tests/test-unsetenv.c (main): Silence warning about string
42098         literal.
42099         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42100
42101 2009-12-23  Bruno Haible  <bruno@clisp.org>
42102
42103         * tests/test-localename.c (test_locale_name): New function, extracted
42104         from main. Also test mixed situations.
42105         (test_locale_name_posix, test_locale_name_environ,
42106         test_locale_name_default): New functions.
42107         (main): Invoke them all.
42108         * modules/localename-tests (configure.ac): Test for newlocale.
42109
42110 2009-12-23  Bruno Haible  <bruno@clisp.org>
42111
42112         unistd: Ensure getcwd gets declared before being overridden.
42113         * lib/unistd.in.h: Conditionally include <io.h>.
42114
42115 2009-12-22  Bruno Haible  <bruno@clisp.org>
42116
42117         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42118         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42119         (gl_WCHAR_H): Invoke it.
42120         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42121         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42122         Reported by Karl Berry <karl@freefriends.org>.
42123
42124 2009-12-22  Eric Blake  <ebb9@byu.net>
42125
42126         math, unistd: avoid redundant includes
42127         * lib/math.in.h (isnan): No need to re-include <math.h>.
42128         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42129
42130         getsubopt: work around cygwin bug
42131         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42132         avoid conflicting with system getsubopt.
42133         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42134         bug.
42135
42136         getopt: synchronize from glibc
42137         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42138         parameter order.  Adjust all callers.
42139         (_getopt_internal_r, main): Adjust quoting in error messages.
42140         Drop considerations for outdated POSIX 1003.2 error message.
42141         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42142         callers.
42143         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42144
42145         test-getopt: test stderr behavior
42146         * modules/getopt-posix-tests (Depends-on): Add dup2.
42147         * tests/test-getopt.c (ASSERT): Avoid stderr.
42148         (main): Move stderr to a temporary file.
42149         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42150         Instead, add parameter to inform caller if output occurred.
42151         (test_getopt): Adjust all existing tests to expect silence, and
42152         add new tests of leading ":".
42153         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42154         glibc shortcomings with leading "-:" or "+:" in optstring.
42155         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42156         Likewise.
42157         * doc/posix-functions/getopt.texi (getopt): Likewise.
42158
42159         test-getopt: enhance test
42160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42161         supports optind=0.
42162         * tests/test-getopt.c (OPTIND_MIN): Move...
42163         * tests/test-getopt.h (OPTIND_MIN): ...here.
42164         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42165         Require that optind=0 works, since modern BSD supports it in
42166         addition to optreset, and since coreutils expects it.
42167         (test_getopt_long_only): New test.
42168         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42169         glibc shortcomings with 'W;', and enforcement of optind=0.
42170         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42171         Likewise.
42172
42173 2009-12-21  Bruno Haible  <bruno@clisp.org>
42174
42175         localename: Improvements for MacOS X and Cygwin.
42176         * lib/localename.h (gl_locale_name_environ): New declaration.
42177         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42178         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42179         (gl_locale_name_posix): Invoke it.
42180         (gl_locale_name_default): Add comments. Use Windows native API also on
42181         Cygwin.
42182
42183 2009-12-21  Bruno Haible  <bruno@clisp.org>
42184
42185         Update list of Win32 locale ids.
42186         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42187         (LANG_SAMI): Renamed from LANG_SAAMI.
42188         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42189         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42190         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42191         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42192         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42193         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42194         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42195         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42196         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42197         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42198         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42199         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42200         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42201         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42202         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42203         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42204         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42205         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42206         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42207         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42208         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42209         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42210         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42211         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42212         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42213         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42214         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42215         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42216         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42217         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42218         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42219         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42220         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42221         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42222         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42223         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42224         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42225         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42226         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42227         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42228         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42229         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42230         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42231         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42232         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42233         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42234         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42235         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42236         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42237         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42238         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42239         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42240         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42241         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42242         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42243         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42244         Add more languages and countries for Sami, Sorbian. Add more countries
42245         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42246         for Pashto. Change country for Syriac, Tswana.
42247
42248 2009-12-21  Eric Blake  <ebb9@byu.net>
42249
42250         test-utimens: avoid spurious failure
42251         * tests/test-chown.h (nap): Factor...
42252         * tests/nap.h: ...into new file.
42253         * tests/test-lchown.h (nap): Avoid duplication.
42254         * tests/test-utimens-common.h (nap): Use shared implementation,
42255         necessary on file systems with 1-second resolution.
42256         * modules/chown-tests (Files): Include new file.
42257         * modules/fdutimensat-tests (Files): Likewise.
42258         * modules/futimens-tests (Files): Likewise.
42259         * modules/lchown-tests (Files): Likewise.
42260         * modules/openat-tests (Files): Likewise.
42261         * modules/utimens-tests (Files): Likewise.
42262         * modules/utimensat-tests (Files): Likewise.
42263
42264 2009-12-19  Eric Blake  <ebb9@byu.net>
42265
42266         futimens, utimensat: work around Linux bug
42267         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42268         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42269         * lib/utimensat.c (rpl_utimensat): Work around it.
42270         * lib/futimens.c (rpl_futimens): Adjust comment.
42271
42272         utimens: work around Linux ctime bug
42273         * lib/utimens.c (detect_ctime_bug): New helper function.
42274         (update_timespec): Differentiate between workaround needed for
42275         this bug vs. what is needed for systems that lack utimensat.
42276         (fdutimens, lutimens): Work around bug.
42277
42278         utimens: check for ctime update
42279         * tests/test-utimens-common.h (check_ctime): Define.
42280         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42281         * tests/test-futimens.h (test_futimens): Likewise.
42282         * tests/test-lutimens.h (test_lutimens): Likewise.
42283         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42284         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42285
42286 2009-12-19  Bruno Haible  <bruno@clisp.org>
42287
42288         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42289         * tests/test-dprintf-posix2.sh: New file.
42290         * tests/test-dprintf-posix2.c: New file.
42291         * modules/dprintf-posix-tests (Files): Add them.
42292         (configure.ac): Check for getrlimit and setrlimit.
42293         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42294
42295 2009-12-19  Bruno Haible  <bruno@clisp.org>
42296
42297         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42298         * tests/test-fprintf-posix3.sh: New file.
42299         * tests/test-fprintf-posix3.c: New file.
42300         * modules/fprintf-posix-tests (Files): Add them.
42301         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42302
42303 2009-12-19  Eric Blake  <ebb9@byu.net>
42304
42305         dirfd: fix prototype
42306         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42307         * lib/dirfd.c (dirfd): Likewise.
42308
42309         canonicalize: reduce memory usage
42310         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42311         allocation to size.
42312         Reported by Solar Designer <solar@openwall.com>.
42313
42314 2009-12-19  Bruno Haible  <bruno@clisp.org>
42315
42316         New module attribute 'Applicability'.
42317         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42318         * gnulib-tool: New option --extract-applicability.
42319         (func_usage): Document it.
42320         (sed_extract_prog): Recognize it.
42321         (func_get_applicability): New function.
42322         (func_import): Generalize handling of 'link-warning' module.
42323         * modules/link-warning (Applicability): New section.
42324         * modules/arg-nonnull (Applicability): New section.
42325         Repoted by Simon Josefsson <simon@josefsson.org>.
42326
42327 2009-12-19  Bruno Haible  <bruno@clisp.org>
42328
42329         fflush: tweak
42330         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42331         * lib/fseeko.c (rpl_fseeko): Likewise.
42332
42333 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42334
42335         * lib/gl_list.h: Fix typo in comment.
42336
42337 2009-12-16  Eric Blake  <ebb9@byu.net>
42338
42339         fcntl: use to simplify other modules
42340         * modules/cloexec (Depends-on): Add fcntl.
42341         * modules/fchdir (Depends-on): Likewise.
42342         * modules/fd-safer-flag (Depends-on): Likewise.
42343         * modules/unistd-safer (Depends-on): Likewise.
42344         * modules/dup3 (configure.ac): Set module indicator.
42345         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42346         missing.
42347         * lib/fchdir.c (_gl_register_dup): Fix comment.
42348         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42349         * lib/dup-safer.c (dup_safer): Likewise.
42350         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42351         * lib/dup3.c (dup3): Likewise.
42352         * tests/test-fchdir.c (main): Enhance test.
42353         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42354
42355         fcntl: port portions of fcntl to mingw
42356         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42357         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42358         replacement for mingw.
42359         * modules/fcntl (Description): Update.
42360         (Depends-on): Add dup2.
42361         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42362         * modules/fcntl-h (Makefile.am): Substitute it.
42363         * lib/fcntl.in.h (fcntl): Update declaration.
42364         (F_DUPFD, F_GETFD): New macros, when needed.
42365         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42366         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42367         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42368         we now guarantee.
42369
42370         fcntl: work around cygwin bug in F_DUPFD
42371         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42372         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42373         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42374         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42375         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42376
42377         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42378         * modules/fcntl (Files): List new files.
42379         (configure.ac): Run a test.
42380         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42381         * lib/fcntl.c (rpl_fcntl): Likewise.
42382         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42383         (gl_FCNTL_H): Always replace fcntl.h.
42384         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42385         * lib/fcntl.in.h (fcntl): Declare replacement.
42386         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42387         needed, plus a witness.
42388         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42389         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42390         * tests/test-fcntl.c: New file.
42391         * modules/fcntl-tests: Likewise.
42392
42393         binary-io: avoid potential compilation warning
42394         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42395         directives.
42396
42397         fflush: avoid compilation error on NetBSD
42398         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42399         between off_t and fpos_t, since the latter is sometimes a struct.
42400         * lib/fseeko.c (rpl_fseeko): Likewise.
42401         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42402
42403 2009-12-15  Eric Blake  <ebb9@byu.net>
42404
42405         fcntl-h, stdio, sys_ioctl: fix declarations
42406         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42407         function must not take arguments.
42408         * lib/sys_ioctl.in.h (ioctl): Likewise.
42409         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42410         (open): Add a link warning.
42411
42412 2009-12-15  Jim Meyering  <meyering@redhat.com>
42413
42414         areadlink, areadlink-with-size: relax license to LGPLv2+
42415         * modules/areadlink (License): Relax to LGPLv2+.
42416         * modules/areadlink-with-size (License): Likewise.
42417
42418 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42419             Bruno Haible  <bruno@clisp.org>
42420
42421         *printf: Fix memory leak.
42422         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42423         * lib/vfprintf.c (vfprintf): Likewise.
42424         * lib/dprintf.c (dprintf): Likewise.
42425         * lib/vdprintf.c (vdprintf): Likewise.
42426
42427 2009-12-14  Eric Blake  <ebb9@byu.net>
42428
42429         accept4: adjust module dependencies
42430         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42431
42432         utimens: one more try at avoiding compiler warning
42433         * lib/utimens.c (lutimens): Lower scope of result.
42434
42435 2009-12-13  Bruno Haible  <bruno@clisp.org>
42436
42437         Move the malloc checking from module 'list' to new module 'xlist'.
42438         * modules/xlist: New file.
42439         * lib/gl_xlist.h: New file.
42440         * lib/gl_xlist.c: New file.
42441         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42442         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42443         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42444         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42445         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42446         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42447         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42448         gl_sortedlist_nx_add): New declarations.
42449         (struct gl_list_implementation): Rename and change methods accordingly.
42450         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42451         (gl_list_nx_create): Renamed from gl_list_create.
42452         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42453         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42454         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42455         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42456         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42457         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42458         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42459         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42460         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42461         gl_list_create_empty.
42462         (gl_list_nx_create): Renamed from gl_list_create.
42463         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42464         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42465         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42466         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42467         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42468         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42469         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42470         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42471         * lib/gl_array_list.c: Don't include xalloc.h.
42472         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42473         NULL upon out-of-memory.
42474         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42475         out-of-memory.
42476         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42477         Change return type to 'int'.
42478         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42479         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42480         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42481         upon out-of-memory.
42482         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42483         upon out-of-memory.
42484         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42485         upon out-of-memory.
42486         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42487         upon out-of-memory.
42488         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42489         out-of-memory.
42490         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42491         Update.
42492         (gl_array_list_implementation): Update.
42493         * lib/gl_carray_list.c: Don't include xalloc.h.
42494         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42495         Return NULL upon out-of-memory.
42496         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42497         out-of-memory.
42498         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42499         Change return type to 'int'.
42500         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42501         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42502         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42503         upon out-of-memory.
42504         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42505         upon out-of-memory.
42506         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42507         out-of-memory.
42508         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42509         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42510         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42511         Update.
42512         (gl_carray_list_implementation): Update.
42513         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42514         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42515         gl_linked_create_empty. Return NULL upon out-of-memory.
42516         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42517         out-of-memory.
42518         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42519         Change return type to 'int'. Return -1 upon out-of-memory.
42520         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42521         out-of-memory.
42522         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42523         upon out-of-memory.
42524         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42525         upon out-of-memory.
42526         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42527         NULL upon out-of-memory.
42528         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42529         upon out-of-memory.
42530         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42531         out-of-memory.
42532         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42533         Update.
42534         * lib/gl_linked_list.c: Don't include xalloc.h.
42535         (gl_linked_list_implementation): Update.
42536         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42537         (add_to_bucket): Change return type to 'int'.
42538         (gl_linkedhash_list_implementation): Update.
42539         * lib/gl_anytree_list1.h (free_subtree): New function.
42540         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42541         gl_tree_create_empty. Return NULL upon out-of-memory.
42542         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42543         Change return type to 'int'. Return -1 upon out-of-memory.
42544         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42545         out-of-memory.
42546         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42547         (gl_tree_remove_node): New function, moved here from
42548         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42549         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42550         Update.
42551         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42552         malloc, not xmalloc. Return NULL upon out-of-memory.
42553         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42554         out-of-memory.
42555         (gl_tree_remove_node_from_tree): New function, extracted from
42556         gl_tree_remove_node.
42557         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42558         upon out-of-memory.
42559         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42560         out-of-memory.
42561         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42562         upon out-of-memory.
42563         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42564         upon out-of-memory.
42565         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42566         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42567         not xmalloc. Return NULL upon out-of-memory.
42568         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42569         out-of-memory.
42570         (gl_tree_remove_node_from_tree): New function, extracted from
42571         gl_tree_remove_node.
42572         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42573         upon out-of-memory.
42574         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42575         out-of-memory.
42576         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42577         upon out-of-memory.
42578         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42579         upon out-of-memory.
42580         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42581         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42582         gl_anytree_list1.h before gl_anyavltree_list2.h.
42583         (gl_avltree_list_implementation): Update.
42584         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42585         gl_anytree_list1.h before gl_anyavltree_list2.h.
42586         (gl_rbtree_list_implementation): Update.
42587         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42588         Change return type to 'int'. Return -1 upon out-of-memory. Use
42589         __builtin_expect.
42590         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42591         (gl_avltreehash_list_implementation): Update.
42592         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42593         (gl_rbtreehash_list_implementation): Update.
42594         * modules/array-list (Depends-on): Remove xalloc.
42595         * modules/carray-list (Depends-on): Likewise.
42596         * modules/linked-list (Depends-on): Likewise.
42597         * modules/linkedhash-list (Depends-on): Likewise.
42598         * modules/avltree-list (Depends-on): Likewise.
42599         * modules/rbtree-list (Depends-on): Likewise.
42600         * modules/avltreehash-list (Depends-on): Likewise.
42601         * modules/rbtreehash-list (Depends-on): Likewise.
42602
42603         * modules/xsublist: New file.
42604         * lib/gl_xsublist.h: New file.
42605         * lib/gl_xsublist.c: New file.
42606         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42607         (gl_sublist_nx_create): New declaration.
42608         * lib/gl_sublist.c: Don't include xalloc.h.
42609         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42610         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42611         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42612         Change return type to 'int'. Return -1 upon out-of-memory.
42613         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42614         upon out-of-memory.
42615         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42616         NULL upon out-of-memory.
42617         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42618         upon out-of-memory.
42619         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42620         NULL upon out-of-memory.
42621         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42622         NULL upon out-of-memory.
42623         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42624         upon out-of-memory.
42625         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42626         (gl_sublist_list_implementation): Update.
42627         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42628         upon out-of-memory.
42629         * modules/sublist (Depends-on): Remove xalloc.
42630
42631         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42632         * tests/test-carray_list.c: Likewise.
42633         * tests/test-linked_list.c: Likewise.
42634         * tests/test-linkedhash_list.c: Likewise.
42635         * tests/test-avltree_list.c: Likewise.
42636         * tests/test-rbtree_list.c: Likewise.
42637         * tests/test-avltreehash_list.c: Likewise.
42638         * tests/test-rbtreehash_list.c: Likewise.
42639         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42640         * modules/carray-list-tests (Makefile.am): Likewise.
42641         * modules/linked-list-tests (Makefile.am): Likewise.
42642         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42643         * modules/avltree-list-tests (Makefile.am): Likewise.
42644         * modules/rbtree-list-tests (Makefile.am): Likewise.
42645         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42646         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42647
42648         * NEWS: Mention the changes.
42649
42650         * lib/clean-temp.c: Include gl_xlist.h.
42651         * modules/clean-temp (Depends-on): Add xlist.
42652
42653         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42654         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42655
42656         * tests/test-array_oset.c: Include gl_xlist.h.
42657         * modules/array-oset-tests (Depends-on): Add xlist.
42658
42659         Reported by José E. Marchesi <jemarch@gnu.org>.
42660
42661 2009-12-13  Bruno Haible  <bruno@clisp.org>
42662
42663         Move the malloc checking from module 'oset' to new module 'xoset'.
42664         * modules/xoset: New file.
42665         * lib/gl_xoset.h: New file.
42666         * lib/gl_xoset.c: New file.
42667         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42668         declarations.
42669         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42670         (struct gl_oset_implementation): Rename and change methods accordingly.
42671         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42672         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42673         'int'. Mark as __warn_unused_result__.
42674         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42675         gl_oset_create_empty.
42676         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42677         'int'.
42678         * lib/gl_array_oset.c: Don't include xalloc.h.
42679         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42680         malloc, not xmalloc.
42681         (grow): Change return type to 'int'. Don't call xalloc_die.
42682         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42683         to 'int'.
42684         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42685         'int'.
42686         (gl_array_oset_implementation): Update.
42687         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42688         gl_tree_create_empty.
42689         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42690         'int'.
42691         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42692         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42693         xmalloc.
42694         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42695         not xmalloc.
42696         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42697         xmalloc.
42698         (gl_avltree_oset_implementation): Update.
42699         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42700         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42701         xmalloc.
42702         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42703         not xmalloc.
42704         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42705         xmalloc.
42706         (gl_rbtree_oset_implementation): Update.
42707         * modules/array-oset (Depends-on): Remove xalloc.
42708         * modules/avltree-oset (Depends-on): Likewise.
42709         * modules/rbtree-oset (Depends-on): Likewise.
42710         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42711         * tests/test-avltree_oset.c: Likewise.
42712         * tests/test-rbtree_oset.c: Likewise.
42713         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42714         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42715         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42716         * NEWS: Mention the change.
42717
42718 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42719
42720         maint.mk: allow a project to override release-prep commands
42721         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42722         commands into a new rule.
42723         (release-prep): New rule.
42724         (release-prep-hook): New overridable variable.
42725
42726 2009-12-13  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42729
42730 2009-12-13  Jim Meyering  <meyering@redhat.com>
42731
42732         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42733         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42734
42735 2009-12-12  Bruno Haible  <bruno@clisp.org>
42736
42737         duplocale: Tweak.
42738         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42739
42740 2009-12-12  Karl Berry  <karl@gnu.org>
42741
42742         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42743
42744 2009-12-12  Bruno Haible  <bruno@clisp.org>
42745
42746         * m4/po.m4: Undo incorrect untabification.
42747
42748 2009-12-12  Bruno Haible  <bruno@clisp.org>
42749
42750         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42751         * modules/c-strtod (Depends-on): Add locale.
42752         * modules/c-strtold (Depends-on): Likewise.
42753
42754 2009-12-12  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42757
42758 2009-12-11  Eric Blake  <ebb9@byu.net>
42759
42760         setenv: relax requirement in light of POSIX ruling
42761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42762         not NULL.
42763         * tests/test-setenv.c (main): Relax test.
42764         * tests/test-unsetenv.c (main): Likewise.
42765         * doc/posix-functions/setenv.texi (setenv): Document this.
42766         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42767
42768 2009-12-11  Bruno Haible  <bruno@clisp.org>
42769
42770         New module 'fd-safer-flag'.
42771         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42772         * lib/dup-safer.c (dup_safer_flag): Remove function.
42773         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42774         * lib/fd-safer.c (fd_safer_flag): Remove function.
42775         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42776         * modules/cloexec (configure.ac): Drop indicator macro.
42777         * modules/fd-safer-flag: New file.
42778         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42779         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42780         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42781
42782 2009-12-11  Bruno Haible  <bruno@clisp.org>
42783
42784         Tests for module 'nl_langinfo'.
42785         * modules/nl_langinfo-tests: New file.
42786         * tests/test-nl_langinfo.sh: New file.
42787         * tests/test-nl_langinfo.c: New file.
42788
42789         New module 'nl_langinfo'.
42790         * lib/nl_langinfo.c: New file.
42791         * m4/nl_langinfo.m4: New file.
42792         * modules/nl_langinfo: New file.
42793         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42794
42795 2009-12-11  Bruno Haible  <bruno@clisp.org>
42796
42797         Tests for module 'langinfo'.
42798         * modules/langinfo-tests: New file.
42799         * tests/test-langinfo.c: New file.
42800
42801         New module 'langinfo'.
42802         * lib/langinfo.in.h: New file.
42803         * m4/langinfo_h.m4: New file.
42804         * modules/langinfo: New file.
42805         * doc/posix-headers/langinfo.texi: Mention the new module.
42806
42807 2009-12-11  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/config.charset: Untabify.
42810
42811 2009-12-11  Bruno Haible  <bruno@clisp.org>
42812
42813         * modules/unistd-safer (configure.ac): Drop indicator macro.
42814
42815 2009-12-11  Bruno Haible  <bruno@clisp.org>
42816
42817         Move pipe2-safer code to its own file.
42818         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42819         * lib/pipe-safer.c (pipe2_safer): Remove function.
42820         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42821         (Makefile.am): Add it to lib_SOURCES.
42822
42823 2009-12-10  Bruno Haible  <bruno@clisp.org>
42824
42825         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42826
42827 2009-12-10  Bruno Haible  <bruno@clisp.org>
42828
42829         Declare which arguments expect non-NULL values, for GCC and clang.
42830         * build-aux/arg-nonnull.h: New file.
42831         * modules/arg-nonnull: New file.
42832         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42833         (inet_ntop, inet_pton): Use it.
42834         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42835         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42836         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42837         (open, openat): Use it.
42838         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42839         (fnmatch): Use it.
42840         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42841         (getopt, getopt_long, getopt_long_only): Use it.
42842         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42843         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42844         Use it.
42845         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42846         (iconv_open): Use it.
42847         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42848         (strtoimax, strtoumax): Use it.
42849         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42850         (duplocale): Use it.
42851         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42852         (frexp, frexpl): Use it.
42853         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42854         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42855         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42856         (tsearch, tfind, tdelete, twalk): Use it.
42857         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42858         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42859         sigpending): Use it.
42860         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42861         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42862         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42863         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42864         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42865         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42866         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42867         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42868         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42869         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42870         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42871         Use it.
42872         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42873         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42874         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42875         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42876         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42877         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42878         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42879         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42880         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42881         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42882         strtoull, unsetenv): Use it.
42883         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42884         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42885         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42886         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42887         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42888         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42889         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42890         (strcasecmp, strncasecmp): Use it.
42891         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42892         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42893         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42894         rpl_setsockopt): Use it.
42895         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42896         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42897         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42898         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42899         (gettimeofday): Use it.
42900         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42901         (times): Use it.
42902         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42903         (uname): Use it.
42904         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42905         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42906         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42907         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42908         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42909         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42910         unlinkat, write): Use it.
42911         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42912         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42913         * lib/argv-iter.h: Include arg-nonnull.h.
42914         (_ATTRIBUTE_NONNULL_): Remove macro.
42915         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42916         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42917         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42918         optimization.
42919         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42920         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42921         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42922         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42923         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42924         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42925         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42926         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42927         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42928         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42929         * modules/dirent (Depends-on): Add arg-nonnull.
42930         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42931         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42932         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42933         * modules/fnmatch (Depends-on): Add arg-nonnull.
42934         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42935         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42936         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42937         * modules/glob (Depends-on): Add arg-nonnull.
42938         (Makefile.am): Insert arg-nonnull.h into glob.h.
42939         * modules/iconv_open (Depends-on): Add arg-nonnull.
42940         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42941         * modules/inttypes (Depends-on): Add arg-nonnull.
42942         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42943         * modules/locale (Depends-on): Add arg-nonnull.
42944         (Makefile.am): Insert arg-nonnull.h into locale.h.
42945         * modules/math (Depends-on): Add arg-nonnull.
42946         (Makefile.am): Insert arg-nonnull.h into math.h.
42947         * modules/netdb (Depends-on): Add arg-nonnull.
42948         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42949         * modules/search (Depends-on): Add arg-nonnull.
42950         (Makefile.am): Insert arg-nonnull.h into search.h.
42951         * modules/signal (Depends-on): Add arg-nonnull.
42952         (Makefile.am): Insert arg-nonnull.h into signal.h.
42953         * modules/spawn (Depends-on): Add arg-nonnull.
42954         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42955         * modules/stdio (Depends-on): Add arg-nonnull.
42956         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42957         * modules/stdlib (Depends-on): Add arg-nonnull.
42958         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42959         * modules/string (Depends-on): Add arg-nonnull.
42960         (Makefile.am): Insert arg-nonnull.h into string.h.
42961         * modules/strings (Depends-on): Add arg-nonnull.
42962         (Makefile.am): Insert arg-nonnull.h into strings.h.
42963         * modules/sys_socket (Depends-on): Add arg-nonnull.
42964         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42965         * modules/sys_stat (Depends-on): Add arg-nonnull.
42966         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42967         * modules/sys_time (Depends-on): Add arg-nonnull.
42968         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42969         * modules/sys_times (Depends-on): Add arg-nonnull.
42970         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42971         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42972         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42973         * modules/time (Depends-on): Add arg-nonnull.
42974         (Makefile.am): Insert arg-nonnull.h into time.h.
42975         * modules/unistd (Depends-on): Add arg-nonnull.
42976         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42977         * modules/wchar (Depends-on): Add arg-nonnull.
42978         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42979         * modules/argv-iter (Depends-on): Add arg-nonnull.
42980         * tests/test-canonicalize.c (null_ptr): New function.
42981         (main): Use it.
42982         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42983         (main): Use it.
42984         * tests/test-memmem.c (null_ptr): New function.
42985         (main): Use it.
42986         Reported by Jim Meyering.
42987
42988 2009-12-10  Bruno Haible  <bruno@clisp.org>
42989
42990         Use spaces for indentation, not tabs.
42991         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42992         * m4/*.m4: Untabify.
42993         * build-aux/*.h: Untabify.
42994         * tests/**/*.[hc]: Untabify.
42995         * README: New section "Indent with spaces, not TABs", based on
42996         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42997         * NEWS: Mention the change.
42998
42999 2009-12-10  Bruno Haible  <bruno@clisp.org>
43000
43001         pty test: Fix link error.
43002         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43003         test_pty_LDADD.
43004
43005 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43006
43007         * modules/pty: New file.
43008         * modules/pty-tests: New file.
43009         * m4/pty.m4: New file.
43010         * tests/test-pty.c: New file.
43011         * doc/glibc-headers/pty.texi: Modified.
43012         * doc/glibc-functions/forkpty.texi: Modified.
43013         * doc/glibc-functions/openpty.texi: Modified.
43014
43015 2009-12-10  Bruno Haible  <bruno@clisp.org>
43016
43017         Avoid syntax error in C++ mode.
43018         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43019
43020 2009-12-10  Bruno Haible  <bruno@clisp.org>
43021
43022         Use sed with option -e.
43023         * gnulib-tool (func_version, func_emit_copyright_notice,
43024         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43025         option -e to sed.
43026         * modules/link-warning (Makefile.am): Likewise.
43027
43028 2009-12-10  Jim Meyering  <meyering@redhat.com>
43029
43030         mgetgroups: do not write bytes beyond end of malloc'd buffer
43031         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43032         username, we call getgroups with a one-element-shorter buffer,
43033         but still told it the length was original, max_n_groups.
43034
43035 2009-12-09  Eric Blake  <ebb9@byu.net>
43036
43037         cloexec: relax license
43038         * modules/cloexec (Maintainer): Add myself.
43039         (License): Use LGPL, not GPL.
43040
43041         link-warning: optimize generation
43042         * modules/link-warning (Makefile.am): Reduce process usage.
43043
43044 2009-12-09  Bruno Haible  <bruno@clisp.org>
43045
43046         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43047         workaround was added on 2009-11-17.
43048
43049 2009-12-09  Jim Meyering  <meyering@redhat.com>
43050             Bruno Haible  <bruno@clisp.org>
43051
43052         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43053         * modules/link-warning (Makefile.am): Make the comment-removing sed
43054         command more robust in the face of bootstrap-prepended comment lines.
43055
43056 2009-12-09  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43059         most one group.
43060
43061 2009-12-09  Simon Josefsson <simon@josefsson.org>
43062             Bruno Haible  <bruno@clisp.org>
43063
43064         * build-aux/link-warning.h: Add copyright notice.
43065         * modules/link-warning (Makefile.am): Generate link-warning.h from
43066         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43067         * NEWS: Mention change in link-warning module.
43068         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43069         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43070         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43071         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43072         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43073         * modules/math (Makefile.am): Add dependency to math.h.
43074         * modules/search (Makefile.am): Add dependency to search.h.
43075         * modules/signal (Makefile.am): Add dependency to signal.h.
43076         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43077         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43078         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43079         * modules/string (Makefile.am): Add dependency to string.h.
43080         * modules/strings (Makefile.am): Add dependency to strings.h.
43081         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43082         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43083         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43084         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43085         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43086         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43087         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43088         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43089         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43090
43091 2009-12-09  Bruno Haible  <bruno@clisp.org>
43092
43093         fchdir: Optimize away rpl_fstat when possible.
43094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43095         REPLACE_OPEN_DIRECTORY.
43096         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43097
43098 2009-12-09  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/fchdir.c: Update comment.
43101
43102 2009-12-09  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43105
43106 2009-12-08  Eric Blake  <ebb9@byu.net>
43107
43108         fchdir: avoid memory leak on re-registration.
43109         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43110
43111 2009-12-08  Jim Meyering  <meyering@redhat.com>
43112
43113         init.sh: avoid Solaris 10 /bin/sh portability problem
43114         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43115         sourced script:
43116           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43117           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43118           bar
43119         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43120         and two tests used that idiom.
43121         * tests/init.sh: Update suggested usage comments.
43122         (path_prepend_): New function, to be used in place
43123         of the --src-path=DIR option.
43124         (setup_): Move PATH-prepending code into path_prepend_.
43125         * tests/test-pread.sh: Adapt to new usage.
43126         * tests/test-xalloc-die.sh: Likewise.
43127
43128 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43129
43130         * doc/gnulib.texi (Glibc pty.h): Add.
43131         * doc/glibc-functions/forkpty.texi: Add.
43132         * doc/glibc-functions/openpty.texi: Add.
43133         Suggested by Bruno Haible.
43134
43135 2009-12-08  Eric Blake  <ebb9@byu.net>
43136
43137         fchdir: fix logic bugs
43138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43139         * tests/test-fchdir.c (main): Enhance test.
43140         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43141         is in use.
43142
43143         dup2: fix logic bugs
43144         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43145         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43146         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43147         exists.
43148         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43149
43150 2009-12-07  Eric Blake  <ebb9@byu.net>
43151
43152         unlink: fix m4 detection
43153         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43154
43155         unistd-safer: add unit test
43156         * modules/unistd-safer-tests: New file.
43157         * tests/test-dup-safer.c: Likewise.
43158         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43159         * tests/test-dup2.c (setmode): Likewise.
43160         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43161
43162         cloexec: preserve text vs. binary across dup_cloexec
43163         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43164         mode.
43165         * modules/dup2-tests (Depends-on): Add binary-io.
43166         * modules/cloexec-tests (Depends-on): Likewise.
43167         * tests/test-dup2.c (setmode, is_mode): New helpers.
43168         (main): Add tests that translation mode is preserved.
43169         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43170         Reported by Bruno Haible.
43171
43172         mgetgroups: reduce duplicate listings
43173         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43174         resulting array.
43175         * tests/test-chown.h (test_chown): Simplify client.
43176         * tests/test-lchown.h (test_lchown): Likewise.
43177
43178 2009-12-06  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43181         value.
43182
43183 2009-12-06  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/progname.c: Include stdio.h, stdlib.h.
43186         (set_program_name): Reject a NULL argument.
43187
43188 2009-12-05  Eric Blake  <ebb9@byu.net>
43189
43190         pipe2-safer: new module
43191         * modules/pipe2-safer: New file.
43192         * lib/unistd-safer.h (pipe2_safer): New prototype.
43193         * lib/unistd--.h (pipe2): New wrapper.
43194         * lib/pipe-safer.c (pipe2_safer): New function.
43195         * modules/pipe (Depends-on): Add pipe2-safer.
43196         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43197
43198         stdlib-safer: preserve cloexec flag for mkostemp[s]
43199         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43200         fd_safer_flag.
43201
43202         unistd-safer: allow preservation of cloexec status via flag
43203         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43204         prototypes.
43205         * lib/dup-safer.c (dup_safer_flag): New function.
43206         * lib/fd-safer.c (fd_safer_flag): Likewise.
43207         * modules/cloexec (configure.ac): Set witness.
43208
43209         test-dup2: enhance test
43210         * modules/dup2-tests (Depends-on): Add cloexec.
43211         * tests/test-dup2.c (main): Enhance test.
43212
43213         cloexec: add dup_cloexec
43214         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43215         header and comments.
43216         * lib/cloexec.c (set_cloexec_flag): Add comments.
43217         (dup_cloexec): New function, with mingw implementation borrowed
43218         from...
43219         * lib/w32spawn.h (dup_noinherit): ...here.
43220         * modules/execute (Depends-on): Add cloexec.
43221         * modules/pipe (Depends-on): Likewise.
43222         * modules/cloexec (Depends-on): Add dup2.
43223         * modules/cloexec-tests (Files): New file.
43224         * tests/test-cloexec.c: Likewise.
43225
43226         test-xalloc-die: fix test for mingw
43227         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43228         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43229         directory and .exe suffix off argv[0] output.
43230
43231         test-fseeko: fix test for mingw
43232         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43233         than undefining fseek, so test will pass on mingw.
43234
43235 2009-12-05  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/progname.h (set_program_name): Clarify specification.
43238         * lib/progname.c (set_program_name): Likewise.
43239         Reported by Jim Meyering.
43240
43241 2009-12-05  Jim Meyering  <meyering@redhat.com>
43242
43243         maint.mk: backslash-escape parens in default regexp
43244         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43245         backslash-escape the literal parentheses.
43246
43247         maint.mk: news-date-check: use grep -E
43248         * top/maint.mk (today): Define a Make variable, not a...
43249         (news-date-check): ...shell variable.
43250         (news-date-regexp): Use the Make variable.
43251         Use grep's -E option.  Change the failing diagnostic to mention
43252         the variable, $(news-date-regexp).
43253
43254 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43255
43256         maintainer-makefile: allow customization of NEWS entry format
43257         * top/maint.mk (news-date-regexp): New overridable variable.
43258         (news-date-check): Use it.
43259
43260 2009-12-04  Eric Blake  <ebb9@byu.net>
43261
43262         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43263         * lib/mgetgroups.h (xgetgroups): New prototype.
43264         * lib/mgetgroups.c (xgetgroups): New wrapper.
43265         (mgetgroups): Handle ENOSYS.
43266         * modules/mgetgroups (Depends-on): Add realloc.
43267         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43268
43269         mgetgroups: avoid argument promotion issues with -1
43270         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43271         for invalid gid_t.
43272         * tests/test-chown.h (getegid, test_chown): Likewise.
43273         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43274
43275 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43276
43277         exclude: Fix header file problems.
43278         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43279
43280 2009-12-01  Jim Meyering  <meyering@redhat.com>
43281
43282         fts: fts_open: do not let an empty string cause immediate failure
43283         This is required in support of GNU rm, for which the command
43284         "rm A '' B" must process and remove both A and B, in spite of
43285         the empty string argument.
43286         * lib/fts.c (fts_open): Do not let the presence of an empty string
43287         cause fts_open to fail immediately.  Most fts-using tools must be
43288         able to process all arguments, in order, and can be expected to
43289         diagnose such arguments themselves.
43290
43291 2009-11-30  Eric Blake  <ebb9@byu.net>
43292
43293         utimens: fix compilation error
43294         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43295         Declare variable at right scope.
43296
43297 2009-11-29  Jim Meyering  <meyering@redhat.com>
43298
43299         bootstrap: handle perl-5.11's changed --version output
43300         * build-aux/bootstrap (get_version): Handle perl separately,
43301         since perl-5.11's --version output is different.
43302
43303 2009-11-28  Jim Meyering  <meyering@redhat.com>
43304
43305         userspec: depend on the inttostr module, too
43306         * modules/userspec (Depends-on): Add inttostr.
43307
43308         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43309         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43310         number of MAXUID when it evaluates to (uid_t) -1.
43311         Likewise for group ID.  Reported by Matt McCutchen in
43312         <http://savannah.gnu.org/bugs/?28113>
43313
43314         userspec: reformat to use spaces, not TABs
43315         * lib/userspec.c: Expand TABs to spaces.
43316         Add Emacs' "indent-tabs-mode: nil" hint.
43317
43318 2009-11-27  Eric Blake  <ebb9@byu.net>
43319
43320         getopt-gnu: flush out another BSD bug
43321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43322         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43323         flush out BSD bug.
43324         * tests/test-getopt.h (test_getopt): End lists with NULL.
43325         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43326         (test_getopt_long_posix): Enhance test.
43327         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43328         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43329         getopt-gnu.
43330         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43331         Likewise.
43332
43333 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43334
43335         * modules/idpriv-droptemp-tests (Notice): Fix text.
43336
43337 2009-11-27  Jim Meyering  <meyering@redhat.com>
43338
43339         test-xalloc-die: avoid spurious failure due to libtool argv difference
43340         In a libtool-enabled project, this test would fail due to a difference
43341         in the emitted program name, e.g.,
43342         -test-xalloc-die: memory exhausted
43343         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43344         Use program to avoid that.
43345         * modules/xalloc-die-tests (Depends-on): Add progname.
43346         * tests/test-xalloc-die.c: Include progname.h".
43347         (program_name): Remove decl.
43348         (main): Call set_program_name.
43349         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43350
43351 2009-11-26  Richard Jones  <rjones@redhat.com>
43352
43353         w32sock: leave win32 error in place.
43354         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43355
43356 2009-11-26  Eric Blake  <ebb9@byu.net>
43357
43358         init.sh: suggest to use skip_ and fail_ functions in comments
43359         * tests/init.sh: Add a sentence.
43360
43361 2009-11-25  Bruno Haible  <bruno@clisp.org>
43362
43363         init.sh: add documentation in comments
43364         * tests/init.sh: Add some developer and user documentation.
43365
43366 2009-11-26  Jim Meyering  <meyering@redhat.com>
43367
43368         init.sh: accommodate even those who specify bogus srcdir manually
43369         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43370         configure-time tests to be sanitized, so that there is no need to
43371         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43372         (with no double quotes) suffices.  However, since tests may be
43373         invoked manually, and since you may explicitly set srcdir to the
43374         name of a directory containing spaces, do quote its uses here.
43375         * tests/test-pread.sh: Likewise.
43376         Suggested by Bruno Haible.
43377
43378         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43379         * tests/test-pread.sh: Write no data into the pipe, because
43380         test-pread actually reads none.  This avoids a diagnostic,
43381         "bash: echo: write error: Broken pipe", that arises in the unusual
43382         event something is ignoring SIGPIPE, and might be interpreted
43383         as some sort of failure.  Reported by Bruno Haible.
43384
43385 2009-11-25  Jim Meyering  <meyering@redhat.com>
43386
43387         test-pread: cover failure with ESPIPE and EINVAL
43388         * tests/test-pread.c (main): Test for failure, too.
43389         * tests/test-pread.sh: Invoke with stdin on a pipe.
43390         Suggested by Eric Blake.
43391
43392         pread: improvement and fix
43393         * modules/pread (Depends-on): Depend on lseek, for portability to
43394         e.g., mingw.  Suggested by Eric Blake.
43395         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43396
43397         unistd.in.h: correct declaration of pread
43398         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43399         Reported by Richard W.M. Jones.
43400
43401         test-pread.sh: distribute the test script
43402         * modules/pread-tests (Files): Include test-pread.sh.
43403
43404         test-pread.sh: clean up
43405         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43406         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43407         That is unnecessary, since it's always ".".
43408         Suggestion from Eric Blake.
43409
43410         test-pread.sh: make executable
43411         * tests/test-pread.sh: Set executable bit.
43412         Reported by Eric Blake.
43413
43414         correct typo in test-pread.sh
43415         * tests/test-pread.sh: Add #! line.
43416
43417         test pread
43418         * tests/test-pread.c: New file.
43419         * tests/test-pread.sh: Likewise.
43420         * modules/pread-tests: Likewise.
43421
43422         pread: new module
43423         * modules/pread: New file.
43424         * lib/unistd.in.h (pread): Define/declare.
43425         * lib/pread.c (pread): New file.
43426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43427         * modules/unistd (Makefile.am): Substitute witnesses.
43428         * doc/posix-functions/pread.texi (pread): Update.
43429         * MODULES.html.sh: Add pread.
43430
43431 2009-11-25  Jim Meyering  <meyering@redhat.com>
43432
43433         tests/init.sh: new file to be used via most *.sh tests
43434         * tests/init.sh: New file.
43435
43436 2009-11-25  Eric Blake  <ebb9@byu.net>
43437
43438         utimens: work around older Linux failure with symlinks
43439         * lib/utimens.c (lutimensat_works_really): New variable.
43440         (fdutimens, lutimens): Use it to manage kernels that support
43441         nanosecond times on files, but not on symlinks.
43442         Reported by Ondřej Vašík.
43443
43444         utimes: fix configure grammar
43445         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43446
43447 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43448
43449         regex: Fix fastmap for multibyte character ranges.
43450         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43451         characters when a multibyte character range is included.
43452
43453 2009-11-22  Andy Wingo  <wingo@pobox.com>
43454
43455         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43456         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43457
43458 2009-11-24  Bruno Haible  <bruno@clisp.org>
43459
43460         doc: Most *_l functions exist in MacOS X 10.5.
43461         * doc/posix-functions/duplocale.texi: Update platforms list.
43462         * doc/posix-functions/freelocale.texi: Likewise.
43463         * doc/posix-functions/newlocale.texi: Likewise.
43464         * doc/posix-functions/uselocale.texi: Likewise.
43465         * doc/posix-functions/isalnum_l.texi: Likewise.
43466         * doc/posix-functions/isalpha_l.texi: Likewise.
43467         * doc/posix-functions/isblank_l.texi: Likewise.
43468         * doc/posix-functions/iscntrl_l.texi: Likewise.
43469         * doc/posix-functions/isdigit_l.texi: Likewise.
43470         * doc/posix-functions/isgraph_l.texi: Likewise.
43471         * doc/posix-functions/islower_l.texi: Likewise.
43472         * doc/posix-functions/isprint_l.texi: Likewise.
43473         * doc/posix-functions/ispunct_l.texi: Likewise.
43474         * doc/posix-functions/isspace_l.texi: Likewise.
43475         * doc/posix-functions/isupper_l.texi: Likewise.
43476         * doc/posix-functions/iswalnum_l.texi: Likewise.
43477         * doc/posix-functions/iswalpha_l.texi: Likewise.
43478         * doc/posix-functions/iswblank_l.texi: Likewise.
43479         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43480         * doc/posix-functions/iswctype_l.texi: Likewise.
43481         * doc/posix-functions/iswdigit_l.texi: Likewise.
43482         * doc/posix-functions/iswgraph_l.texi: Likewise.
43483         * doc/posix-functions/iswlower_l.texi: Likewise.
43484         * doc/posix-functions/iswprint_l.texi: Likewise.
43485         * doc/posix-functions/iswpunct_l.texi: Likewise.
43486         * doc/posix-functions/iswspace_l.texi: Likewise.
43487         * doc/posix-functions/iswupper_l.texi: Likewise.
43488         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43489         * doc/posix-functions/isxdigit_l.texi: Likewise.
43490         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43491         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43492         * doc/posix-functions/strcoll_l.texi: Likewise.
43493         * doc/posix-functions/strfmon_l.texi: Likewise.
43494         * doc/posix-functions/strftime_l.texi: Likewise.
43495         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43496         * doc/posix-functions/strxfrm_l.texi: Likewise.
43497         * doc/posix-functions/tolower_l.texi: Likewise.
43498         * doc/posix-functions/toupper_l.texi: Likewise.
43499         * doc/posix-functions/towctrans_l.texi: Likewise.
43500         * doc/posix-functions/towlower_l.texi: Likewise.
43501         * doc/posix-functions/towupper_l.texi: Likewise.
43502         * doc/posix-functions/wcscoll_l.texi: Likewise.
43503         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43504         * doc/posix-functions/wctrans_l.texi: Likewise.
43505         * doc/posix-functions/wctype_l.texi: Likewise.
43506         * doc/glibc-functions/strptime_l.texi: Likewise.
43507         * doc/glibc-functions/strtod_l.texi: Likewise.
43508         * doc/glibc-functions/strtof_l.texi: Likewise.
43509         * doc/glibc-functions/strtol_l.texi: Likewise.
43510         * doc/glibc-functions/strtold_l.texi: Likewise.
43511         * doc/glibc-functions/strtoll_l.texi: Likewise.
43512         * doc/glibc-functions/strtoul_l.texi: Likewise.
43513         * doc/glibc-functions/strtoull_l.texi: Likewise.
43514         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43515         * doc/glibc-functions/wcstod_l.texi: Likewise.
43516         * doc/glibc-functions/wcstof_l.texi: Likewise.
43517         * doc/glibc-functions/wcstol_l.texi: Likewise.
43518         * doc/glibc-functions/wcstold_l.texi: Likewise.
43519         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43520         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43521         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43522
43523 2009-11-24  Bruno Haible  <bruno@clisp.org>
43524
43525         duplocale: Fix logic bug.
43526         * lib/duplocale.c: Don't include <langinfo.h>.
43527         (_NL_LOCALE_NAME): Remove macro.
43528         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43529         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43530
43531 2009-11-23  Jim Meyering  <meyering@redhat.com>
43532
43533         test-update-copyright: don't hard-code /usr/bin/perl
43534         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43535         perl to print the current year.  Gilles Espinasse reported that
43536         the replaced use of perl was hard-coded as /usr/bin/perl.
43537
43538 2009-11-23  Bruno Haible  <bruno@clisp.org>
43539
43540         duplocale: Add support for glibc 2.3.x.
43541         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43542
43543 2009-11-22  Bruno Haible  <bruno@clisp.org>
43544
43545         vasnprintf: Tiny optimization.
43546         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43547         MacOS X.
43548
43549 2009-11-22  Bruno Haible  <bruno@clisp.org>
43550
43551         Tests for module 'duplocale'.
43552         * modules/duplocale-tests: New file.
43553         * tests/test-duplocale.c: New file.
43554
43555         New module 'duplocale'.
43556         * m4/duplocale.m4: New file.
43557         * lib/locale.in.h (duplocale): New declaration.
43558         * lib/duplocale.c: New file.
43559         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43560         gl_LOCALE_H_DEFAULTS): New macros.
43561         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43562         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43563         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43564         REPLACE_DUPLOCALE.
43565         * modules/duplocale: New file.
43566         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43567
43568 2009-11-22  Bruno Haible  <bruno@clisp.org>
43569
43570         * modules/locale-tests (configure.ac): Test for newlocale function.
43571         * tests/test-locale.c: When the system has extended locale functions,
43572         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43573
43574         locale: Make locale_t available when possible.
43575         * lib/locale.in.h: Include <xlocale.h> when it exists.
43576         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43577         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43578         * modules/locale (Depends-on): Add extensions.
43579         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43580         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43581
43582 2009-11-22  Bruno Haible  <bruno@clisp.org>
43583
43584         Add comments.
43585         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43586         invocation.
43587         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43588         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43589         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43590
43591 2009-11-22  Bruno Haible  <bruno@clisp.org>
43592
43593         error: account for the possibility of freopen (stdout).
43594         * lib/error.c: Include <unistd.h>.
43595         (flush_stdout): New function, extracted from error and error_at_line.
43596         Determine stdout's fd dynamically.
43597         (error, error_at_line): Invoke flush_stdout.
43598         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43599         * modules/error (Depends-on): Add unistd.
43600
43601 2009-11-22  Bruno Haible  <bruno@clisp.org>
43602
43603         diffseq: Add comment.
43604         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43605
43606 2009-11-22  Jim Meyering  <meyering@redhat.com>
43607
43608         c-stack: avoid defining an unused static function
43609         * lib/c-stack.c (find_stack_direction): Do not define this function
43610         when it will not be used.
43611
43612         diffseq: avoid spurious gcc warnings
43613         * lib/diffseq.h (IF_LINT2): Define.
43614         (compareseq): Use it to initialize two members of "part".
43615         This avoids two used-uninitialized warnings.
43616
43617 2009-11-21  Jim Meyering  <meyering@redhat.com>
43618
43619         c-stack: avoid "ignoring return value of `write'" warning
43620         * lib/c-stack.c: Include "ignore-value.h".
43621         (die): Explicitly ignore each write return value.
43622         * modules/c-stack (Depends-on): Add ignore-value.
43623
43624 2009-11-21  Bruno Haible  <bruno@clisp.org>
43625
43626         diffseq: reduce scope of variable 'best'.
43627         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43628         variable, earlier used for two different purposes.
43629
43630 2009-11-21  Jim Meyering  <meyering@redhat.com>
43631
43632         diffseq: remove useless assignment to "best"
43633         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43634         assignment.  At that point "best" is already guaranteed to be zero.
43635
43636 2009-11-20  Eric Blake  <ebb9@byu.net>
43637
43638         build: mention ftp redirector in release announcements
43639         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43640         values that used to come from cfg.mk; mention FTP redirect URL.
43641         * build-aux/announce-gen: Mention the mirror list.
43642         Suggested by Karl Berry.
43643
43644         nanosleep: improve port to mingw
43645         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43647         LIB_NANOSLEEP, but only when needed.
43648         * modules/select (Link): Document LIBSOCKET.
43649         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43650         enough.
43651
43652         nanosleep: work around cygwin bug
43653         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43654         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43655         bug.
43656         (getnow): Delete, not needed.
43657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43658         LIB_CLOCK_GETTIME.
43659         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43660         clock-time, gettime.
43661         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43662         bug.
43663         * modules/nanosleep-tests: New test.
43664         * tests/test-nanosleep.c: New file.
43665
43666         sleep: work around cygwin bug
43667         * lib/sleep.c (rpl_sleep): Work around the bug.
43668         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43669         (gl_PREREQ_SLEEP): Delete unused macro.
43670         * modules/sleep (Depends-on): Add verify.
43671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43672         * modules/unistd (Makefile.am): Substitute witness.
43673         * lib/unistd.in.h (sleep): Update prototype.
43674         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43675         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43676         * modules/sleep-tests (Depends-on): Check for alarm.
43677
43678 2009-11-20  Jim Meyering  <meyering@redhat.com>
43679
43680         maint.mk: improve sc_prohibit_magic_number_exit
43681         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43682         so it does not match uses like System.exit(1).
43683         Add comments showing how to correct all offenders.
43684
43685 2009-11-19  Eric Blake  <ebb9@byu.net>
43686
43687         xalloc-die-tests: add missing library
43688         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43689
43690         test-xvasprintf: silence compiler warnings
43691         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43692         empty string from gcc.
43693
43694 2009-11-19  Jim Meyering  <meyering@redhat.com>
43695
43696         xfreopen: new module, from coreutils
43697         * modules/xfreopen: New module.
43698         * lib/xfreopen.c: New file.
43699         * lib/xfreopen.h: New file.
43700         * MODULES.html.sh (File stream based Input/Output"): Add it.
43701
43702 2009-11-19  Eric Blake  <ebb9@byu.net>
43703
43704         manywarnings: depend on warnings
43705         * modules/manywarnings (Depends-on): Add warnings.
43706
43707         build: avoid compiler warnings
43708         * lib/select.c (rpl_select): Delete unused variable.
43709         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43710
43711 2009-11-18  Eric Blake  <ebb9@byu.net>
43712
43713         tests: avoid false negative with --with-packager
43714         * tests/test-version-etc.sh: Discard packager information.
43715         * tests/test-argp-version-etc-1.sh: Likewise.
43716         Reported by Mike Frysinger.
43717
43718         utimens: fix regression on Solaris
43719         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43720         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43721         can only change fd timestamps via futimesat.  Instead, use an
43722         additional witness macro to avoid BSD bug.
43723         Reported by Jim Meyering.
43724
43725 2009-11-17  Eric Blake  <ebb9@byu.net>
43726
43727         usleep: use it to simplify tests
43728         * modules/stat-time-tests (Depends-on): Add usleep.
43729         (configure.ac): Drop usleep check.
43730         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43731         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43732         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43733         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43734         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43735         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43736         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43737         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43738         Likewise.
43739         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43740         * tests/test-lchown.h (nap): Likewise.
43741         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43742         * tests/test-stat-time.c (nap): Likewise.
43743         * tests/test-utimens-common.h (nap): Update comments.
43744
43745         usleep: new module
43746         * modules/usleep: New file.
43747         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43748         * lib/usleep.c (usleep): Likewise.
43749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43750         * modules/unistd (Makefile.am): Substitute witnesses.
43751         * lib/unistd.in.h (usleep): Add declaration.
43752         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43753         * MODULES.html.sh (Date and time): Likewise.
43754         * modules/usleep-tests (Depends-on): New test.
43755         * tests/test-usleep.c: New file.
43756
43757         chown: work around OpenBSD bug
43758         * lib/chown.c (rpl_chown): Work around the bug.
43759         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43760         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43761         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43762         * modules/chown (Depends-on): Add stdbool.
43763         * modules/lchown (Depends-on): Likewise.
43764         * doc/posix-functions/chown.texi (chown): Document the bug.
43765         * doc/posix-functions/lchown.texi (lchown): Likewise.
43766         * tests/test-lchown.h (test_chown): Relax test.
43767
43768         mkstemp: avoid conflict with C++ keyword template
43769         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43770         * lib/mkostemp.c (mkostemp): Likewise.
43771         * lib/mkostemps.c (mkostemps): Likewise.
43772         * lib/mkstemp.c (mkstemp): Likewise.
43773         * lib/mkstemps.c (mkstemps): Likewise.
43774
43775         xalloc-die-tests: optimize
43776         * tests/test-xalloc-die.sh: Reduce number of processes.
43777
43778 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43779
43780         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43781         patch from ludo@gnu.org (Ludovic Courtès).
43782
43783 2009-11-17  Jim Meyering  <meyering@redhat.com>
43784
43785         version-etc: use proper license string
43786         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43787         * modules/version-etc-fsf: Likewise.
43788
43789 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43790
43791         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43792         printed to stdout.  Deal with EOL differences.
43793
43794 2009-11-17  Eric Blake  <ebb9@byu.net>
43795
43796         unsetenv: work around Solaris bug
43797         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43798         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43799         Reported by Jim Meyering.
43800
43801         vasnprintf: avoid compiler warnings
43802         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43803         variables.
43804         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43805
43806 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43807
43808         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43809         settings since xalloc-die is no longer the self test,
43810         xalloc-die.sh is.
43811
43812 2009-11-17  Jim Meyering  <meyering@redhat.com>
43813
43814         test-xalloc-die.sh: make the code agree with the commit log
43815         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43816         at the end, just in case you happen to have a test-xalloc-die
43817         program in some other PATH directory.
43818
43819         test-xalloc-die.sh: fix a portability bug
43820         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43821         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43822         Otherwise, argv[0] (as often seen in diagnostics) would be too
43823         system-dependent, sometimes with, and sometimes without the leading "./".
43824
43825         version-etc-fsf: relax license to LGPLv3+
43826         * modules/version-etc-fsf (License): Relax license.
43827
43828 2009-11-16  Eric Blake  <ebb9@byu.net>
43829
43830         xalloc-die-tests: avoid printing null pointer
43831         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43832         shell script.
43833         * tests/test-xalloc-die.c (program_name): Declare.
43834         * tests/test-xalloc-die.sh (tmpfiles): New file.
43835
43836         setenv, unsetenv: work around various bugs
43837         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43838         (setenv) [HAVE_SETENV]: Work around bugs.
43839         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43840         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43841         for bugs.
43842         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43843         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43845         * modules/stdlib (Makefile.am): Update substitutions.
43846         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43847         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43848         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43849         * modules/setenv-tests: New test.
43850         * modules/unsetenv-tests: Likewise.
43851         * tests/test-setenv.c: New file.
43852         * tests/test-unsetenv.c: Likewise.
43853
43854 2009-11-16  Jim Meyering  <meyering@redhat.com>
43855
43856         version-etc: relax license to LGPLv3+
43857         * modules/version-etc (License): Relax license.
43858
43859         better AC_REQUIRE expanded-before-required-warning avoidance
43860         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43861         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43862         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43863         which is no longer needed.
43864
43865 2009-11-16  Eric Blake  <ebb9@byu.net>
43866
43867         test-freading: clean up temporary file
43868         * tests/test-freading.c (main): Remove file on success, and use
43869         ASSERT more liberally.
43870         Reported by Jim Meyering.
43871
43872 2009-11-16  Jim Meyering  <meyering@redhat.com>
43873
43874         avoid new AC_REQUIRE expanded-before-required warnings
43875         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43876         merely using it.
43877         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43878         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43879
43880 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43881
43882         * tests/test-xalloc-die.c: New file.
43883         * modules/xalloc-die-tests: New file.
43884         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43885         XFAIL_TESTS so it can be appended by modules.
43886
43887 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43888
43889         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43890         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43891
43892 2009-11-14  Eric Blake  <ebb9@byu.net>
43893
43894         fnmatch: avoid compiler warning
43895         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43896         to silence compiler warning about mismatch signedness in ?:.
43897         Reported by Robert Millan.
43898
43899         intprops: add double-inclusion guard
43900         * lib/intprops.h: Allow idempotent includes.
43901         Suggested by Bruce Korb.
43902
43903         openat: detect Solaris fchownat bug
43904         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43905         penalizing glibc chownat when only lchownat is broken.
43906         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43907         trailing slash bugs.
43908         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43909         * modules/openat-tests (Files): Include more files.
43910         (Depends-on): Add mgetgroups, sleep, stat-time.
43911         (configure.ac): Add additional checks.
43912         (Makefile.am): Build new test.
43913         * tests/test-fchownat.c: New file.
43914
43915         lchown: detect Solaris and FreeBSD bug
43916         * lib/lchown.c (rpl_lchown): Work around bug.
43917         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43919         * modules/unistd (Makefile.am): Populate it.
43920         * lib/unistd.in.h (lchown): Update declaration.
43921         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43922         * modules/lchown-tests: New file.
43923         * tests/test-lchown.h (test_lchown): Likewise.
43924         * tests/test-lchown.c (main): Likewise.
43925
43926         chown: detect Solaris and FreeBSD bug
43927         * lib/chown.c (rpl_chown): Work around bug.
43928         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43929         (gl_PREREQ_CHOWN): Delete.
43930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43931         * modules/unistd (Makefile.am): Populate it.
43932         * lib/unistd.in.h (chown): Update declaration.
43933         * lib/lchown.c (chown): Update client.
43934         * modules/lchown (Depends-on): Add lstat.
43935         * doc/posix-functions/chown.texi (chown): Document the bug.
43936         * doc/posix-functions/getgroups.texi (getgroups): Document
43937         getgroups pitfall.
43938         * modules/chown-tests: New file.
43939         * tests/test-chown.h (test_chown): Likewise.
43940         * tests/test-chown.c (main): Likewise.
43941
43942 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43943
43944         gnulib-tool: correctly detect absence of m4 directories
43945         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43946
43947 2009-11-14  Jim Meyering  <meyering@redhat.com>
43948
43949         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43950         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43951
43952 2009-11-14  John W. Eaton  <jwe@gnu.org>
43953
43954         strftime.h: wrap function declaration in extern "C" block
43955         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43956
43957 2009-11-13  Eric Blake  <ebb9@byu.net>
43958
43959         getgroups: avoid compiler warning
43960         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43961
43962         getgroups: work around FreeBSD bug
43963         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43964         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43965         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43966         * tests/test-getgroups.c (main): Fix buffer overrun.
43967
43968         getgroups: avoid compilation failure
43969         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43970         * modules/getgroups (Depends-on): Add stdint.
43971
43972 2009-11-13  Jim Meyering  <meyering@redhat.com>
43973
43974         test-getgroups: avoid compilation failure
43975         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43976
43977 2009-11-13  Eric Blake  <ebb9@byu.net>
43978
43979         mgetgroups: new module, taken from coreutils
43980         * modules/mgetgroups: New file.
43981         * lib/mgetgroups.h: Likewise.
43982         * lib/mgetgroups.c (mgetgroups): Likewise.
43983         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43984         * MODULES.html.sh (Users and groups): Mention it.
43985
43986         getgroups: don't expose GETGROUPS_T to user
43987         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43988         an element at a time if GETGROUPS_T is wrong size.
43989         * lib/getugroups.h (getugroups): Change signature.
43990         * lib/unistd.in.h (getgroups): Likewise.
43991         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43992         signature needs fixing.
43993         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43994         AC_TYPE_GETGROUPS.
43995         * modules/group-member (Depends-on): Add getgroups.
43996         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43997         (group_member): Rely on getgroups replacement.
43998         * lib/getugroups.c (getugroups): Use gid_t.
43999         * tests/test-getgroups.c (main): Likewise.
44000         * NEWS: Mention the signature change.
44001         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44002         problem with signature.
44003         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44004         GETGROUPS_T is still useful for setgroups.
44005
44006         getgroups, getugroups: provide stubs for mingw
44007         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44008         * lib/getugroups.c (getugroups): Likewise.
44009         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44010         function.  Modernize replacement scheme.
44011         (gl_PREREQ_GETGROUPS): Delete.
44012         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44013         * modules/getgroups (configure.ac): Declare witness.
44014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44015         * modules/unistd (Depends-on): Substitute witness.
44016         * lib/unistd.in.h (getgroups): Declare replacement.
44017
44018         getgroups: avoid calling exit
44019         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44020         drop xalloc.
44021         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44022         dependencies.
44023         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44024         exiting, in the rare case of malloc failure.
44025
44026         getgroups: fix logic error
44027         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44028         has more than 20 groups.
44029         * modules/getgroups-tests: New test.
44030         * tests/test-getgroups.c: New file.
44031
44032 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44033
44034         * tests/test-base64.c: Improve.
44035
44036 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44037
44038         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44039         Blake <ebb9@byu.net>.
44040
44041 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44042
44043         * tests/test-xvasprintf.c: Add %s%s related checks.
44044
44045 2009-11-12  Eric Blake  <ebb9@byu.net>
44046
44047         version-etc: match standards.texi style
44048         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44049         and use <> only for URLs.
44050
44051 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44052
44053         fts: do not fail on a submount during traversal
44054         * lib/fts.c (fts_build): Read the stat info again after opening
44055         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44056         Original report at http://bugzilla.redhat.com/501848.
44057
44058 2009-11-12  Jim Meyering  <meyering@redhat.com>
44059
44060         bootstrap: sync from coreutils
44061         * build-aux/bootstrap (bootstrap_epilogue): New function.
44062         Use git_modules_config in one more place.  This make bootstrap's
44063         --gnulib-srcdir option more useful for testing.
44064
44065         bootstrap: generalize autoheader check
44066         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44067         AC_CONFIG_HEADERS.
44068
44069 2009-11-11  Eric Blake  <ebb9@byu.net>
44070
44071         mkfifoat: use new modules for Solaris and BSD bugs
44072         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44073         * lib/mkfifoat.c (mknodat): Split...
44074         * lib/mknodat.c (mknodat): ...into new file.
44075         * modules/mkfifoat (Files): Ship new file.
44076         (Depends-on): Add mkfifo, mknod.
44077         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44078         (Depends-on): Add symlink.
44079         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44080         redundant with test_mkfifo.h.
44081         (do_mkfifoat, do_mknodat): New helpers.
44082
44083         mknod: new module
44084         * modules/mknod: New file.
44085         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44086         * lib/mknod.c (mknod): Likewise.
44087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44088         defaults.
44089         * modules/sys_stat (Makefile.am): Substitute them.
44090         * lib/sys_stat.in.h (mknod): Declare replacement.
44091         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44092         Document it.
44093         * doc/posix-functions/mknod.texi (mknod): Likewise.
44094         * modules/mknod-tests: New test.
44095         * tests/test-mknod.c: Likewise.
44096
44097         mkfifo: new module
44098         * modules/mkfifo: New file.
44099         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44100         * lib/mkfifo.c (mkfifo): Likewise.
44101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44102         defaults.
44103         * modules/sys_stat (Makefile.am): Substitute them.
44104         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44105         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44106         Document it.
44107         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44108         * modules/mkfifo-tests: New test.
44109         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44110         from test-mkfifoat.c.
44111         * tests/test-mkfifo.c: New file.
44112
44113         readlink: detect FreeBSD bug
44114         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44115         slash on symlink.
44116         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44117         * tests/test-readlink.h (test_readlink): Enhance test.
44118
44119         symlink: detect FreeBSD bug
44120         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44121         slash on symlink.
44122         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44123         * tests/test-symlink.h (test_symlink): Enhance test.
44124
44125 2009-11-10  Eric Blake  <ebb9@byu.net>
44126
44127         link: detect FreeBSD bug
44128         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44129         symlink.
44130         * doc/posix-functions/link.texi (link): Document the bug.
44131         * tests/test-link.h (test_link): Enhance test.
44132         * tests/test-linkat.c (main): Update caller.
44133
44134         unlink, remove: detect FreeBSD bug
44135         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44136         slash on symlink.
44137         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44138         * doc/posix-functions/remove.texi (remove): Likewise.
44139         * tests/test-unlink.h (test_unlink): Enhance test.
44140         * tests/test-remove.c (main): Likewise.
44141
44142 2009-11-09  Eric Blake  <ebb9@byu.net>
44143
44144         rename: detect FreeBSD bug
44145         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44146         slash on symlink.
44147         * modules/renameat-tests (Depends-on): Add filenamecat.
44148         * tests/test-rename.h (test_rename): Allow one more errno.
44149         * tests/test-renameat.c (main): Likewise.
44150         * doc/posix-functions/rename.texi (rename): Document the bug.
44151
44152         open: detect FreeBSD bug
44153         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44154         symlink.
44155         * doc/posix-functions/open.texi (open): Document the bug.
44156         * doc/posix-functions/utimes.texi (utimes): Likewise.
44157         * tests/test-open.h (test_open): Add parameters, and test symlink
44158         handling.
44159         * tests/test-open.c (main): Adjust caller.
44160         * tests/test-fcntl-safer.c (main): Likewise.
44161         * modules/open-tests (Depends-on): Add stdbool, symlink.
44162         * modules/fcntl-safer-tests (Depends-on): Likewise.
44163         * tests/test-openat.c (main): Add test-open tests.
44164
44165         stat: detect FreeBSD bug
44166         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44167         symlink.
44168         * doc/posix-functions/stat.texi (stat): Document the bug.
44169         * tests/test-stat.h (test_stat_func): Add argument.
44170         * tests/test-stat.c (main): Adjust caller.
44171         * tests/test-fstatat.c (main): Likewise.
44172         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44173         Reported by Jim Meyering.
44174
44175 2009-11-09  James Youngman  <jay@gnu.org>
44176
44177         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44178         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44179
44180 2009-11-08  Jim Meyering  <meyering@redhat.com>
44181
44182         utimens: remove invalid futimesat call
44183         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44184         It used the file descriptor of the target file as the DIR_FD
44185         parameter and NULL as the file name.  That caused failure with
44186         errno == EFAULT on FreeBSD-8.0-rc2
44187
44188 2009-11-07  Eric Blake  <ebb9@byu.net>
44189
44190         fflush, freadseek: use fseeko, not fseek
44191         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44192         (clear_ungetc_buffer): Avoid potential problems on large files.
44193         * lib/freadseek.c (freadseek): Likewise.
44194         * modules/freadseek (Depends-on): Add fseeko.
44195         * modules/fseek (configure.ac): Set a witness.
44196         * tests/test-fflush.c (main): Use fseeko.
44197         * tests/test-fpurge.c (fseek): Disable link warning.
44198         * tests/test-freadable.c (fseek): Likewise.
44199         * tests/test-freading.c (fseek): Likewise.
44200         * tests/test-fseeko.c (fseek): Likewise.
44201         * tests/test-ftell.c (fseek): Likewise.
44202         * tests/test-ftello.c (fseek): Likewise.
44203         * tests/test-fwritable.c (fseek): Likewise.
44204         * tests/test-fwriting.c (fseek): Likewise.
44205
44206 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44207
44208         * modules/memchr (Depends-on): Drop getpagesize dependency.
44209
44210 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44211
44212         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44213         Reported by Ludovic Courtès.
44214         * build-aux/pmccabe2html: Improve example usage.
44215         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44216
44217 2009-11-06  Jim Meyering  <meyering@redhat.com>
44218
44219         do-release-commit-and-tag: New module.
44220         Automate the release-commit and tag process.
44221         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44222         * modules/do-release-commit-and-tag: New file.
44223         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44224
44225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44226
44227         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44228         because test-select.c uses inet_pton.
44229
44230 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44231
44232         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44233         GETADDRINFO_LIB.  Bump serial number.
44234         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44235         Suggested by Eric Blake <ebb9@byu.net>.
44236
44237 2009-11-05  Eric Blake  <ebb9@byu.net>
44238
44239         strtod: detect darwin bug
44240         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44241         Reported by Leo Davis.
44242
44243         freopen-safer: new module
44244         * modules/freopen-safer: New module.
44245         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44246         * lib/freopen-safer.c (freopen_safer): New file.
44247         * lib/stdio-safer.h (freopen_safer): New declaration.
44248         * lib/stdio--.h (freopen): New override.
44249         * MODULES.html.sh (File stream based Input/Output): Mention it.
44250         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44251         freopen-safer module.
44252         * doc/posix-functions/stderr.texi (stderr): Likewise.
44253         * doc/posix-functions/stdin.texi (stdin): Likewise.
44254         * doc/posix-functions/stdout.texi (stdout): Likewise.
44255         * modules/freopen-safer-tests: New test.
44256         * tests/test-reopen-safer.c: New file.
44257
44258 2009-11-05  Jim Meyering  <meyering@redhat.com>
44259
44260         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44261         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44262
44263 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44264
44265         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44266
44267 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44268
44269         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44270
44271 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44272
44273         Fix link error.
44274         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44275         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44276
44277 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44278
44279         * tests/test-func.c: Also test value of __func__.
44280
44281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44282
44283         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44284         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44285
44286 2009-11-05  Bruno Haible  <bruno@clisp.org>
44287
44288         Fix link error.
44289         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44290         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44291         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44292
44293 2009-11-05  Bruno Haible  <bruno@clisp.org>
44294
44295         Tests for module 'inet_pton'.
44296         * modules/inet_pton-tests: New file.
44297         * tests/test-inet_pton.c: New file.
44298
44299 2009-11-05  Bruno Haible  <bruno@clisp.org>
44300
44301         Tests for module 'inet_ntop'.
44302         * modules/inet_ntop-tests: New file.
44303         * tests/test-inet_ntop.c: New file.
44304
44305 2009-11-04  Eric Blake  <ebb9@byu.net>
44306
44307         stdlib-safer: wrap all mkstemp variants
44308         * modules/mkostemp (configure.ac): Set witness.
44309         * modules/mkostemps (configure.ac): Likewise.
44310         * modules/mkstemps (configure.ac): Likewise.
44311         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44312         (mkstemps_safer): Wrap more functions.
44313         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44314         wrapping.
44315         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44316         (mkstemps_safer): Implement the wrappers.
44317
44318         mkstemps, mkostemps: new modules
44319         * modules/mkostemps: New module.
44320         * modules/mkstemps: Likewise.
44321         * lib/mkostemps.c (mkostemps): New file.
44322         * lib/mkstemps.c (mkstemps): Likewise.
44323         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44324         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44326         * modules/stdlib (Makefile.am): Substitute them.
44327         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44328         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44329         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44330         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44331         * MODULES.html.sh (File system functions): Mention them.
44332
44333         tempname: resync from glibc
44334         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44335         same values for __GT_FILE as glibc.  Abort even when assertions
44336         are disabled.
44337         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44338         match its value otherwise.  Allow idempotent inclusion.
44339         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44340         * lib/mkostemp.c (mkostemp): Likewise.
44341         * lib/mkstemp.c (mkstemp): Likewise.
44342         * lib/tmpfile.c (tmpfile): Likewise.
44343         * NEWS: Document this.
44344
44345         utimens: fix use of futimens on older Linux
44346         * lib/utimens.c (fdutimens): Use updated, rather than original,
44347         timespec to avoid bug in older Linux kernel.
44348         Reported by Simon Josefsson.
44349
44350 2009-11-04  Bruno Haible  <bruno@clisp.org>
44351
44352         Make num_processors more flexible and consistent.
44353         * lib/nproc.h (enum nproc_query): New type.
44354         (num_processors): Add a 'query' argument.
44355         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44356         (num_processors): Add a 'query' argument. Test the value of the
44357         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44358         mingw, count the number of CPUs available for the current process.
44359         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44360         Check for sched_getaffinity and sched_getaffinity_np.
44361         * modules/nproc (Depends-on): Add c-ctype, extensions.
44362         * NEWS: Mention the change.
44363
44364 2009-11-03  Bruno Haible  <bruno@clisp.org>
44365
44366         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44367
44368 2009-11-03  Jim Meyering  <meyering@redhat.com>
44369
44370         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44371         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44372         if it is defined.
44373
44374 2009-11-02  Eric Blake  <ebb9@byu.net>
44375
44376         mktime, timegm: share common declaration
44377         * lib/mktime-internal.h: New file.
44378         * lib/mktime.c: Use it rather than open-coding a declaration.
44379         * lib/timegm.c: Likewise.
44380         * modules/mktime (Files): Ship it.
44381         * modules/timegm (Files): Likewise.
44382         Suggested by Bruno Haible.
44383
44384         test-update-copyright: update test to match script changes
44385         * tests/test-update-copyright.sh: Avoid hard-coding perl
44386         location.  Don't update *.bak created by earlier runs.
44387
44388 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44389             Simon Josefsson  <simon@josefsson.org>
44390             Bruno Haible  <bruno@clisp.org>
44391
44392         Fix link error on Solaris 8.
44393         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44394         also in libnsl. Define also INET_PTON_LIB.
44395         * modules/inet_pton (Link): New section.
44396
44397 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44398             Bruno Haible  <bruno@clisp.org>
44399
44400         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44401         * modules/inet_ntop (Link): New section.
44402         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44403
44404 2009-11-02  Eric Blake  <ebb9@byu.net>
44405
44406         maint: avoid compiler warnings in m4 macros
44407         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44408         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44409
44410 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44411
44412         * m4/pmccabe2html.m4: Remove file.
44413         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44414         function.  Change maintainer.
44415         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44416         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44417         Courtès).
44418
44419 2009-10-31  Eric Blake  <ebb9@byu.net>
44420
44421         fseeko: fix m4 regression
44422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44423         regression from 2009-10-27.
44424         Reported by Ralf Wildenhues.
44425
44426 2009-10-31  Jim Meyering  <meyering@redhat.com>
44427
44428         inttostr: aesthetics and improved (compile-time) safety
44429         Define inttype_is_signed rather than inttype_is_unsigned,
44430         since the sole use is via "#if inttype_is_signed".
44431         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44432         inttype_is_unsigned.
44433         * lib/offtostr.c (inttype_is_signed): Likewise.
44434         * lib/uinttostr.c (inttype_is_signed): Likewise.
44435         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44436         * lib/inttostr.c (inttostr): Use verify to cross-check the
44437         inttype_is_signed value and the signedness of the actual type.
44438         * modules/inttostr (Depends-on): Add verify.
44439
44440 2009-10-30  Eric Blake  <ebb9@byu.net>
44441
44442         build: avoid compiler warnings
44443         * lib/fchmodat.c (lchmod): Mark unused variables.
44444         * lib/getopt.c (_getopt_initialize): Likewise.
44445         * lib/mktime.c (__mktime_internal): Provide prototype.
44446         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44447         older gcc that do not understand #pragma GCC diagnostic.
44448         * lib/uinttostr.c (inttype_is_unsigned): Define.
44449         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44450
44451 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44452
44453         stat: fix compilation on AIX
44454         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44455         only see struct stat64.
44456
44457 2009-10-30  Eric Blake  <ebb9@byu.net>
44458
44459         exclude: make more robust
44460         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44461         rather than masking a coding bug.
44462         Suggested by Bruno Haible.
44463
44464 2009-10-30  Jim Meyering  <meyering@redhat.com>
44465
44466         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44467         Rather than putting #!/usr/bin/perl on the first line,
44468         start with a variant of what's recommended by "man perlrun" that
44469         invokes the first "perl" program from your shell's search path.
44470         * build-aux/gitlog-to-changelog: Replace #!... as above.
44471         Add a "Local Variables" perl mode setting.
44472         Prompted by a patch from Ludovic Courtès.
44473         Improved by Eric Blake.
44474         * build-aux/useless-if-before-free: Likewise.
44475         * build-aux/announce-gen: Likewise.
44476         * build-aux/update-copyright: Likewise.
44477
44478 2009-10-29  Eric Blake  <ebb9@byu.net>
44479
44480         filenamecat-lgpl: adjust clients
44481         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44482         filenamecat.
44483         * modules/renameat (Depends-on): Likewise.
44484
44485         filenamecat: split into filenamecat-lgpl
44486         * modules/filenamecat-lgpl: New module.
44487         * modules/filenamecat (Files): Move library-safe files into
44488         filenamecat-lgpl.
44489         (Depends-on): Add filenamecat-lgpl.
44490         (configure.ac): Declare witness.
44491         * lib/filenamecat.h (file_name_concat): Only declare when using
44492         GPL module.
44493         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44494         Move...
44495         * lib/filenamecat-lgpl.c: ...into new file.
44496         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44497         (gl_FILE_NAME_CONCAT): Use it.
44498         * MODULES.html.sh (File system functions): Mention new module.
44499
44500         argp: avoid memory leak
44501         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44502         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44503         base_name, since the latter malloc()s and can call exit().
44504         Leak introduced 2006-07-03.
44505
44506         dirname-lgpl: adjust clients that don't need full dirname
44507         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44508         * modules/filenamecat (Depends-on): Likewise.
44509         * modules/linkat (Depends-on): Likewise.
44510         * modules/mkancesdirs (Depends-on): Likewise.
44511         * modules/mkdir (Depends-on): Likewise.
44512         * modules/openat (Depends-on): Likewise.
44513         * modules/savewd (Depends-on): Likewise.
44514         * modules/rename (Depends-on): Likewise.
44515         (License): Relax license.
44516         * modules/mkdir-tests (Depends-on): Drop progname.
44517         (Makefile.am): Delete unneeded LDADD.
44518         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44519
44520         dirname: split into dirname-lgpl
44521         * modules/dirname-lgpl: New module.
44522         * modules/dirname (Files): Move library-safe files into
44523         dirname-lgpl.
44524         (Depends-on): Add dirname-lgpl.
44525         (configure.ac): Declare witness.
44526         * modules/double-slash-root (License): Relax license.
44527         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44528         module.
44529         * lib/dirname.c (dir_len, mdir_name): Move...
44530         * lib/dirname-lgpl.c: ...into new file.
44531         * lib/basename.c (last_component, base_len): Move...
44532         * lib/basename-lgpl.c: ...into new file.
44533         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44534         (gl_DIRNAME): Use it.
44535         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44536         Mention new module.
44537         * modules/dirname-tests (Depends-on): Add progname.
44538         * tests/test-dirname.c (program_name): Delete.
44539
44540         mkdir: make safe for libraries
44541         * modules/mkdir (Depends-on): Drop xalloc.
44542         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44543         exit.
44544
44545         tests: avoid some compiler warnings
44546         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44547         literals.
44548         * tests/test-memchr.c (main): Avoid type mismatch.
44549         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44550         * tests/test-base64.c (main): Likewise.
44551         * tests/test-getdelim.c (main): Likewise.
44552         * tests/test-gethostname.c (main): Likewise.
44553         * tests/test-getline.c (main): Likewise.
44554         * tests/test-netinet_in.c (main): Likewise.
44555         * tests/test-select.c (open_server_socket, main): Likewise.
44556         * tests/test-select-stdin.c (main): Likewise.
44557         * tests/test-sockets.c (main): Likewise.
44558         * tests/test-strsignal.c (main): Likewise.
44559         * tests/test-sys_select.c (main): Likewise.
44560         * tests/test-sys_socket.c (main): Likewise.
44561         * tests/test-u64.c (main): Likewise.
44562         * tests/test-xfprintf-posix.c (main): Likewise.
44563         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44564
44565         sockets: avoid compiler warning
44566         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44567
44568         maint: detect usage(1) and other suspicious exits
44569         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44570
44571 2009-10-29  Jim Meyering  <meyering@redhat.com>
44572
44573         timespec: long-to-int truncation could make timespec_cmp malfunction
44574         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44575         a multiple of 2^32 nanoseconds as no difference.
44576
44577 2009-10-28  Jim Meyering  <meyering@redhat.com>
44578
44579         fprintftime: wrap macro code argument in "do {...} while(0)"
44580         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44581         cpy macro must be a statement that can be followed by a semicolon.
44582         Now that the else clause contains a comment and is hence longer
44583         than one line, I require curly braces.  That in turn requires
44584         that we wrap this code block in the standard do...while(0).
44585
44586         fprintftime: remove stray semicolon from previous change
44587         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44588
44589         fprintftime: avoid a warning about ignored fwrite return value
44590         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44591         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44592         that is unsafe.
44593         * modules/fprintftime (Depends-on): Add ignore-value.
44594
44595         exclude: avoid an unwarranted warning
44596         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44597
44598 2009-10-27  Eric Blake  <ebb9@byu.net>
44599
44600         fseek: avoid compilation failure when fflush is replaced
44601         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44602         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44603         module is in use.
44604         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44605         module is not in use; since REPLACE_FSEEK worked otherwise.
44606         (GNULIB_FTELLO): Likewise for ftell.
44607         Reported by Ian Beckwith and others.
44608
44609 2009-10-27  Bruno Haible  <bruno@clisp.org>
44610
44611         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44612         Reported by Jim Meyering.
44613
44614 2009-10-27  Jim Meyering  <jim@meyering.net>
44615             Bruno Haible  <bruno@clisp.org>
44616
44617         Avoid warning despite dropping the return value of fwrite.
44618         * lib/unicodeio.c: Include ignore-value.h.
44619         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44620         * modules/unicodeio (Depends-on): Add ignore-value.
44621
44622 2009-10-26  Eric Blake  <ebb9@byu.net>
44623
44624         areadlinkat: fix fallback path
44625         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44626         pointer and zero.
44627
44628 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44629
44630         Use a better IO block size for modern systems
44631         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44632         * lib/md2.c: Likewise.
44633         * lib/md4.c: Likewise.
44634         * lib/md5.c: Likewise.
44635         * lib/sha1.c: Likewise.
44636         * lib/sha256.c: Likewise.
44637         * lib/sha512.c: Likewise.
44638
44639 2009-10-22  Eric Blake  <ebb9@byu.net>
44640
44641         tests: avoid several compiler warnings
44642         * tests/test-getcwd.c (main): Avoid buffer underflow.
44643         * tests/test-getdate.c (main): String literals are not safe with
44644         putenv, so use setenv.  Declare unused argument.
44645         * modules/getdate-tests (Depends-on): Add setenv.
44646         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44647         problems with string literals in char *.
44648         * tests/test-hash.c (main): Avoid shadowing declaration.
44649         (insert_new): Treat string literals as char const *.
44650         * tests/test-getopt.h (test_getopt): Likewise.
44651         (getopt_loop): Alter types to minimize casting elsewhere.
44652         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44653         (test_getopt_long_posix): Likewise.
44654         (do_getopt_long): Add wrapper to minimize casting.
44655         * tests/test-atexit.c (clear_temp_file): Use void.
44656         * tests/test-areadlink-with-size.c (main): Declare unused
44657         arguments.
44658         * tests/test-areadlink.c (main): Likewise.
44659         * tests/test-areadlinkat-with-size.c (main): Likewise.
44660         * tests/test-areadlinkat.c (main): Likewise.
44661         * tests/test-canonicalize-lgpl.c (main): Likewise.
44662         * tests/test-canonicalize.c (main): Likewise.
44663         * tests/test-dirent-safer.c (main): Likewise.
44664         * tests/test-dirname.c (main): Likewise.
44665         * tests/test-dup2.c (main): Likewise.
44666         * tests/test-fchdir.c (main): Likewise.
44667         * tests/test-fcntl-h.c (main): Likewise.
44668         * tests/test-fcntl-safer.c (main): Likewise.
44669         * tests/test-fdopendir.c (main): Likewise.
44670         * tests/test-fdutimensat.c (main): Likewise.
44671         * tests/test-fflush.c (main): Likewise.
44672         * tests/test-filenamecat.c (main): Likewise.
44673         * tests/test-filevercmp.c (main): Likewise.
44674         * tests/test-fopen-safer.c (main): Likewise.
44675         * tests/test-fopen.c (main): Likewise.
44676         * tests/test-fpending.c (main): Likewise.
44677         * tests/test-fpurge.c (main): Likewise.
44678         * tests/test-freading.c (main): Likewise.
44679         * tests/test-fstatat.c (main): Likewise.
44680         * tests/test-fsync.c (main): Likewise.
44681         * tests/test-futimens.c (main): Likewise.
44682         * tests/test-getndelim2.c (main): Likewise.
44683         * tests/test-gettimeofday.c (main): Likewise.
44684         * tests/test-getopt.c (main): Likewise.
44685         * tests/test-i-ring.c (main): Likewise.
44686         * tests/test-inttypes.c (main): Likewise.
44687         * tests/test-link.c (main): Likewise.
44688         * tests/test-lstat.c (main): Likewise.
44689         * tests/test-math.c (main): Likewise.
44690         * tests/test-md5.c (main): Likewise.
44691         * tests/test-memchr2.c (main): Likewise.
44692         * tests/test-memrchr.c (main): Likewise.
44693         * tests/test-mkdir.c (main): Likewise.
44694         * tests/test-mkdirat.c (main): Likewise.
44695         * tests/test-mkfifoat.c (main): Likewise.
44696         * tests/test-open.c (main): Likewise.
44697         * tests/test-openat-safer.c (main): Likewise.
44698         * tests/test-openat.c (main): Likewise.
44699         * tests/test-quotearg.c (main): Likewise.
44700         * tests/test-rawmemchr.c (main): Likewise.
44701         * tests/test-readlink.c (main): Likewise.
44702         * tests/test-remove.c (main): Likewise.
44703         * tests/test-rename.c (main): Likewise.
44704         * tests/test-renameat.c (main): Likewise.
44705         * tests/test-rmdir.c (main): Likewise.
44706         * tests/test-sha1.c (main): Likewise.
44707         * tests/test-signal.c (main): Likewise.
44708         * tests/test-sigaction.c (main): Likewise.
44709         * tests/test-stat.c (main): Likewise.
44710         * tests/test-stat-time.c (main): Likewise.
44711         * tests/test-stddef.c (main): Likewise.
44712         * tests/test-stdint.c (main): Likewise.
44713         * tests/test-stdio.c (main): Likewise.
44714         * tests/test-stdlib.c (main): Likewise.
44715         * tests/test-strchrnul.c (main): Likewise.
44716         * tests/test-strerror.c (main): Likewise.
44717         * tests/test-string.c (main): Likewise.
44718         * tests/test-strtod.c (main): Likewise.
44719         * tests/test-strverscmp.c (main): Likewise.
44720         * tests/test-symlink.c (main): Likewise.
44721         * tests/test-symlinkat.c (main): Likewise.
44722         * tests/test-sys_stat.c (main): Likewise.
44723         * tests/test-sys_time.c (main): Likewise.
44724         * tests/test-time.c (main): Likewise.
44725         * tests/test-unistd.c (main): Likewise.
44726         * tests/test-unlink.c (main): Likewise.
44727         * tests/test-unlinkat.c (main): Likewise.
44728         * tests/test-utimens.c (main): Likewise.
44729         * tests/test-utimensat.c (main): Likewise.
44730         * tests/test-version-etc.c (main): Likewise.
44731         * tests/test-wchar.c (main): Likewise.
44732         * tests/test-wctype.c (main): Likewise.
44733         * tests/test-xprintf-posix.c (main): Likewise.
44734         * tests/test-posixtm.c (main): Likewise.
44735         (STREQ): Delete unused macro.
44736         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44737         shadowed variables.
44738         * tests/test-memchr.c (main): Likewise.
44739
44740 2009-10-21  Eric Blake  <ebb9@byu.net>
44741
44742         areadlinkat: avoid failure on older glibc
44743         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44744         rather than mis-comparing 0 against FUNC_RESULT of char*.
44745
44746 2009-10-21  Bruno Haible  <bruno@clisp.org>
44747
44748         * modules/stpncpy (License): Relicense under LGPLv2+.
44749         Reported by David Lutterkort <lutter@redhat.com>.
44750
44751 2009-10-20  Eric Blake  <ebb9@byu.net>
44752
44753         utimensat: work around Solaris 9 bug
44754         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44755         has trailing slash bugs.
44756         * tests/test-lutimens.h (test_lutimens): Enhance test.
44757         * tests/test-utimens.h (test_utimens): Likewise.
44758         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44759         * doc/posix-functions/utimes.texi (utimes): Likewise.
44760         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44761         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44762         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44763         * doc/posix-functions/futimens.texi (futimens): Likewise.
44764
44765         fdutimensat: new module
44766         * modules/fdutimensat: New file.
44767         * lib/fdutimensat.c (fdutimensat): Likewise.
44768         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44769         * MODULES.html.sh (File system functions): Mention module.
44770         * modules/fdutimensat-tests: New test.
44771         * tests/test-fdutimensat.c: Likewise.
44772
44773         doc: regenerate INSTALL
44774         * doc/INSTALL: Reflect recent autoconf update.
44775         * doc/INSTALL.ISO: Likewise.
44776         * doc/INSTALL.UTF-8: Likewise.
44777
44778 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44779
44780         acl: warn if ACL support is not detected
44781         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44782
44783 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44784
44785         * lib/nproc.h: Add extern "C" block for C++.
44786
44787 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44788             Bruno Haible  <bruno@clisp.org>
44789
44790         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44791         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44792         * doc/posix-functions/isalpha.texi: Likewise.
44793         * doc/posix-functions/isblank.texi: Likewise.
44794         * doc/posix-functions/iscntrl.texi: Likewise.
44795         * doc/posix-functions/isdigit.texi: Likewise.
44796         * doc/posix-functions/isgraph.texi: Likewise.
44797         * doc/posix-functions/islower.texi: Likewise.
44798         * doc/posix-functions/isprint.texi: Likewise.
44799         * doc/posix-functions/ispunct.texi: Likewise.
44800         * doc/posix-functions/isspace.texi: Likewise.
44801         * doc/posix-functions/isupper.texi: Likewise.
44802         * doc/posix-functions/isxdigit.texi: Likewise.
44803
44804 2009-10-18  Bruno Haible  <bruno@clisp.org>
44805
44806         Tests for module 'isblank'.
44807         * modules/isblank-tests: New file.
44808         * tests/test-isblank.c: New file.
44809
44810         New module 'isblank'.
44811         * lib/isblank.c: New file.
44812         * m4/isblank.m4: New file.
44813         * modules/isblank: New file.
44814         * doc/posix-functions/isblank.texi: Mention the new module.
44815
44816 2009-10-18  Bruno Haible  <bruno@clisp.org>
44817
44818         New module 'ctype'.
44819         * lib/ctype.in.h: New file.
44820         * m4/ctype.m4: New file.
44821         * modules/ctype: New file.
44822         * doc/posix-headers/ctype.texi: Mention the new module.
44823
44824 2009-10-18  Jim Meyering  <meyering@redhat.com>
44825
44826         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44827         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44828         right after its initialization, rather than farther down.
44829         Keeping these in close proximity makes it easier to ensure
44830         that each such variable is initialized.  E.g.,
44831
44832             LIB_CLOCK_GETTIME=
44833             AC_SUBST([LIB_CLOCK_GETTIME])
44834
44835         This change also increments these serial numbers.
44836         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44837         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44839
44840 2009-10-18  Bruno Haible  <bruno@clisp.org>
44841
44842         Don't let environment variables perturb build.
44843         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44844         (gl_PREREQ_GETHRXTIME): ... not here.
44845
44846 2009-10-18  Bruno Haible  <bruno@clisp.org>
44847
44848         Avoid symlink attack in localcharset module.
44849         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44850         (O_NOFOLLOW): Define fallback.
44851         (get_charset_aliases): Don't open the file if it is a symbolic link.
44852         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44853         gl_FCNTL_H.
44854         (gl_FCNTL_H): Require it.
44855         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44856         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44857         Reported by Fergal Glynn <fglynn@veracode.com>.
44858
44859 2009-10-18  Bruno Haible  <bruno@clisp.org>
44860
44861         Implement nproc for mingw.
44862         * lib/nproc.c: Include <windows.h>
44863         (num_processors): On native Windows platforms, try GetSystemInfo.
44864
44865 2009-10-18  Bruno Haible  <bruno@clisp.org>
44866
44867         Implement nproc for IRIX.
44868         * lib/nproc.c: Include <sys/sysmp.h>.
44869         (num_processors): On IRIX systems, try sysmp.
44870         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44871
44872 2009-10-18  Bruno Haible  <bruno@clisp.org>
44873
44874         Implement nproc for HP-UX.
44875         * lib/nproc.c: Include <sys/pstat.h>
44876         (num_processors): On HP-UX systems, try pstat_getdynamic.
44877         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44878         pstat_getdynamic.
44879
44880 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44881             Bruno Haible  <bruno@clisp.org>
44882
44883         Implement nproc for NetBSD, OpenBSD.
44884         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44885         (ARRAY_SIZE): New macro.
44886         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44887         * m4/nproc.m4: New file.
44888         * modules/nproc (Files): Add m4/nproc.m4.
44889         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44890         (Makefile.am): Instead, augment lib_SOURCES.
44891
44892 2009-10-18  Bruno Haible  <bruno@clisp.org>
44893
44894         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44895         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44896         sys/param.h.
44897
44898 2009-10-16  Eric Blake  <ebb9@byu.net>
44899
44900         utimensat: new module
44901         * modules/utimensat: New file.
44902         * lib/utimensat.c (utimensat): Likewise.
44903         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44904         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44905         so we can work around Linux bugs.
44906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44907         * modules/sys_stat (Makefile.am): Substitute them.
44908         * lib/sys_stat.in.h (utimensat): Declare it.
44909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44910         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44911         * modules/utimensat-tests: New test.
44912         * tests/test-utimensat.c: Likewise.
44913
44914         utimens: let lutimens work on non-symlinks
44915         * lib/utimens.c (lutimens): Fall back to utimens rather than
44916         failing with ENOSYS, when file is not a symlink.
44917         (utimens): Reduce redirection.
44918         * tests/test-lutimens.h (test_lutimens): Update test to cover
44919         non-symlinks.
44920         * tests/test-utimens.h (test_utimens): Update test to cover
44921         symlinks.
44922         * tests/test-utimens.c (main): Update caller.
44923
44924         utimens: cache whether utimensat syscall works
44925         * lib/utimens.c (utimensat_works_really): New cache variable.
44926         (fdutimens, lutimens): Use it to avoid failing syscall.
44927
44928         test-stat-time, test-utimens: improve portability
44929         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44930         ext4 on alpha, and for cygwin.
44931         * tests/test-utimens-common.h: New file.
44932         (nap): Factor delays into single function.
44933         * tests/test-lutimens.h (test_lutimens): Use new header.
44934         * tests/test-futimens.h (test_futimens): Likewise.
44935         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44936         timestamps to occur from same machine, as was done previously for
44937         test_utimens.
44938         * modules/utimens-tests (Files): Ship new file.
44939         * modules/futimens-tests (Files): Likewise.
44940         Reported in part by Jim Meyering.
44941
44942         sys_stat: sort replacement declarations
44943         * lib/sys_stat.in.h: Sort declarations.
44944         * lib/futimens.c (futimens): Fix typo.
44945
44946 2009-10-15  Jim Meyering  <meyering@redhat.com>
44947
44948         don't let environment settings perturb build
44949         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44950         could cause a configure-time and/or build-time malfunction.
44951         Typically, a configure-time function-in-library test is performed
44952         via code like this:
44953
44954           LIB_VAR=
44955           AC_SUBST([LIB_VAR])
44956           prefix_saved_LIBS=$LIBS
44957             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44958                        [test "$ac_cv_search_FUNC" = "none required" ||
44959                         LIB_VAR=$ac_cv_search_FUNC])
44960           LIBS=$prefix_saved_LIBS
44961
44962         However, in each of the files affected by this change, the LIB_VAR=
44963         initialization was omitted.  Thus, when set in the environment, its
44964         value would propagate into generated Makefiles when FUNC is not found
44965         in LIB_NAME.
44966         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44967         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44969
44970 2009-10-14  Eric Blake  <ebb9@byu.net>
44971
44972         fchdir: avoid infinite recursion in mingw
44973         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44974         recursing.
44975
44976         test-stat-time: port to mingw
44977         * tests/test-stat-time.c (force_unlink): Return a value.
44978         (test_ctime) [W32]: Fix compilation error.
44979         (nap): Don't call usleep with too large an argument.  Use
44980         force_unlink.
44981         * doc/pastposix-functions/usleep.texi (usleep): Document the
44982         portability issue.
44983
44984 2009-10-13  Jim Meyering  <meyering@redhat.com>
44985
44986         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44987         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44988         * modules/pipe-filter-ii: Likewise.
44989         * modules/sys_socket-tests: Likewise.
44990         * modules/tsearch-tests: Likewise.
44991         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44992         (check): Depend on it.
44993
44994 2009-10-12  Eric Blake  <ebb9@byu.net>
44995
44996         utimens-tests: port to NFS file systems
44997         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44998         comparisons to avoid spurious failures from timestamp drift
44999         between NFS machines.
45000
45001 2009-10-12  Eric Blake  <ebb9@byu.net>
45002
45003         stat-time-tests: minor cleanups
45004         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45005         * tests/test-stat-time.c (nap): Separate assignment from call.
45006         Suggested by Paolo Bonzini and Bruno Haible.
45007
45008         sys_stat: guarantee struct timespec
45009         * lib/sys_stat.in.h (includes): Always include <time.h>
45010         * modules/sys_stat (Depends-on): Add time.
45011         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45012         mode_t permission values.
45013         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45014         get at subsecond timestamps.
45015
45016 2009-10-10  Eric Blake  <ebb9@byu.net>
45017
45018         futimens: new module
45019         * modules/futimens: New file.
45020         * lib/futimens.c (futimens): Likewise.
45021         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45022         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45023         we can work around Linux bugs.
45024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45025         * modules/sys_stat (Makefile.am): Substitute them.
45026         * lib/sys_stat.in.h (futimens): Declare it.
45027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45028         * doc/posix-functions/futimens.texi (futimens): Likewise.
45029         * modules/futimens-tests: New test.
45030         * tests/test-futimens.c: Likewise.
45031
45032         utimens: introduce fdutimens
45033         * lib/utimens.h (fdutimens): New prototype.
45034         * lib/utimens.c (gl_futimens): Move guts...
45035         (fdutimens): ...to new interface.
45036         * tests/test-utimens.c (do_fdutimens): Use it.
45037
45038         utimens: add UTIME_NOW and UTIME_OMIT support
45039         * lib/utimens.c (validate_timespec, update_timespec): New helper
45040         functions.
45041         (gl_futimens, lutimens): Use them.
45042         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45043         stdbool, sys_stat.
45044         (Link): Mention resulting library dependency.
45045         * modules/utimecmp (Link): Likewise.
45046         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45047         (Makefile.am): Pick up library dependency.
45048         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45049         definition.
45050         * tests/test-sys_stat.c: Test the definitions.
45051         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45052         * NEWS: Document library dependency.
45053
45054         utimecmp: support symlink timestamps
45055         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45056         hashing when possible.  Use pathconf when available.
45057         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45058         * modules/utimecmp (Depends-on): Add lstat.
45059
45060         utimens: add lutimens interface
45061         * lib/utimens.c (lutimens): New function.
45062         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45063         * lib/utimens.h (lutimens): Declare new interface.
45064         * tests/test-utimens.c (main): Enhance test.
45065         * tests/test-lutimens.h (test_lutimens): New file.
45066         * modules/utimens-tests (Files): Distribute it.
45067         (Depends-on): Add symlink.
45068         (configure.ac): Check for usleep.
45069
45070         utimens: validate futimens usage
45071         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45072         fewer syscalls on failure later on.  Avoid compiler warning on
45073         mingw.
45074         * modules/utimens (Depends-on): Add dup2.
45075
45076         utimens: add test
45077         * modules/utimens-tests: New test.
45078         * tests/test-utimens.h: New file.
45079         * tests/test-futimens.h: Likewise.
45080         * tests/test-utimens.c: Likewise.
45081
45082         doc: mention timestamp portability issues
45083         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45084         instead.
45085         * doc/posix-functions/utime.texi (utime): Likewise.
45086         * doc/posix-functions/utimes.texi (utimes): Likewise.
45087         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45088         instead.
45089         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45090         module.
45091         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45092         Mention weakness with symlink timestamps.
45093         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45094         to utimensat/futimens instead.
45095         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45096
45097         test-dup2: enhance test
45098         * tests/test-dup2.c (main): Also check AT_FDCWD.
45099
45100         test-stat-time: avoid more spurious failures
45101         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45102         xfs; and avoid race if the two timestamps cross quantization edge.
45103
45104         relocatable: prefer 'file system' over 'filesystem'
45105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45106         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45107         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45108         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45109         * lib/relocatable.c (compute_curr_prefix): Likewise.
45110
45111 2009-10-10  Jim Meyering  <meyering@redhat.com>
45112
45113         stat-time-tests: check for the usleep function
45114         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45115
45116 2009-10-10  Bruno Haible  <bruno@clisp.org>
45117
45118         * modules/xnanosleep: Put the Link section after the Include section.
45119
45120 2009-10-09  Eric Blake  <ebb9@byu.net>
45121
45122         dup2: work around FreeBSD 6.1 bug
45123         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45124         * doc/posix-functions/dup2.texi (dup2): Document it.
45125         Reported by Nelson H. F. Beebe and Jim Meyering.
45126
45127         test-stat-time: port to buggy NFS clients
45128         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45129         (test_ctime): Also skip test if mtime and ctime are skewed.
45130
45131         maint: prefer 'file system' over 'filesystem'
45132         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45133         * doc/posix-functions/lstat.texi (lstat): Likewise.
45134         * lib/file-has-acl.c (file_has_acl): Likewise.
45135         * lib/fwriteerror.c [TEST]: Likewise.
45136         * tests/test-areadlink.h (test_areadlink): Likewise.
45137         * tests/test-areadlinkat-with-size.c (main): Likewise.
45138         * tests/test-areadlinkat.c (main): Likewise.
45139         * tests/test-canonicalize-lgpl.c (main): Likewise.
45140         * tests/test-canonicalize.c (main): Likewise.
45141         * tests/test-fstatat.c (main): Likewise.
45142         * tests/test-linkat.c (main): Likewise.
45143         * tests/test-lstat.h (test_lstat_func): Likewise.
45144         * tests/test-mkdir.h (test_mkdir): Likewise.
45145         * tests/test-readlink.h (test_readlink): Likewise.
45146         * tests/test-remove.c (main): Likewise.
45147         * tests/test-rename.h (test_rename): Likewise.
45148         * tests/test-renameat.c (main): Likewise.
45149         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45150         * tests/test-symlink.h (test_symlink): Likewise.
45151         * tests/test-symlinkat.c (main): Likewise.
45152         * tests/test-unlink.h (test_unlink_func): Likewise.
45153         * tests/test-unlinkat.c (main): Likewise.
45154
45155         maint: make realtime library usage explicit
45156         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45157         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45158         * modules/settime (Link): Likewise.
45159         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45160
45161         test-stat-time: speed up execution
45162         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45163         warning on mingw.
45164         (nap): New helper function.
45165         (prepare_test): Use it to reduce sleep time.
45166         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45167         execution.
45168         * modules/stat-time-tests (configure.ac): Check for usleep.
45169
45170 2009-10-09  Jim Meyering  <meyering@redhat.com>
45171
45172         selinux-h: always use getfilecon wrappers
45173         * lib/getfilecon.c: New file.
45174         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45175         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45176         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45177         (fgetfilecon): Provide a stub.
45178         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45179         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45180         file unconditionally.
45181         When <selinux/selinux.h> is found, arrange to use wrappers.
45182         * modules/selinux-h (Files): Add getfilecon.c.
45183         (Makefile.am): Substitute include-next-related bits
45184         into the now-always-generated selinux/selinux.h file.
45185         * doc/glibc-functions/lgetfilecon.texi: New file.
45186         * doc/glibc-functions/fgetfilecon.texi: New file.
45187         * doc/glibc-functions/getfilecon.texi: New file.
45188         * doc/glibc-functions/getfilecon-desc.texi: New file.
45189         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45190         which to pull in the new files.
45191         * MODULES.html.sh (Misc): Add selinux-h.
45192
45193 2009-10-08  Jim Meyering  <meyering@redhat.com>
45194
45195         unistd: fix comment typo
45196         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45197
45198 2009-10-08  Eric Blake  <ebb9@byu.net>
45199
45200         areadlink: use SIZE_MAX consistently
45201         * modules/areadlink (Depends-on): Add stdint.
45202         * modules/areadlink-with-size (Depends-on): Likewise.
45203         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45204         gives NULL; drop sys/types, since unistd gives size_t; and add
45205         stdint for SIZE_MAX.
45206         (SIZE_MAX): Rely on headers.
45207         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45208         and add stdint.
45209         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45210         (SIZE_MAX): Likewise.
45211         (INITIAL_BUF_SIZE): Turn into enum.
45212         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45213
45214 2009-10-08  Jim Meyering  <meyering@redhat.com>
45215
45216         areadlinkat: avoid compilation failure
45217         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45218         Fix typo in comment.
45219
45220 2009-10-07  Eric Blake  <ebb9@byu.net>
45221
45222         areadlinkat-with-size: new module
45223         * modules/areadlinkat-with-size: New module.
45224         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45225         * lib/areadlink.h (areadlinkat): Declare it.
45226         * MODULES.html.sh (File system functions): Mention it.
45227         * modules/areadlinkat-with-size-tests: New test.
45228         * tests/test-areadlinkat-with-size.c: New file.
45229
45230         xreadlinkat: new module
45231         * modules/xreadlinkat: New module.
45232         * lib/xreadlinkat.c (xreadlinkat): New file.
45233         * lib/xreadlink.h (xreadlinkat): Declare it.
45234         * MODULES.html.sh (File system functions): Mention it.
45235
45236         areadlinkat: new module
45237         * lib/at-func.c (FUNC_FAIL): New define.
45238         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45239         * modules/areadlinkat: New module.
45240         * lib/linkat.c (areadlinkat): Move...
45241         * lib/areadlinkat.c (areadlinkat): ...to new file.
45242         * lib/areadlink.h (areadlinkat): Declare it.
45243         * modules/linkat (Depends-on): Add areadlinkat.
45244         * MODULES.html.sh (File system functions): Mention it.
45245         * modules/areadlinkat-tests: New test.
45246         * tests/test-areadlinkat.c: New file.
45247
45248         areadlink, areadlink-with-size: add tests
45249         * modules/areadlink-tests: New test.
45250         * modules/areadlink-with-size-tests: Likewise.
45251         * tests/test-areadlink.h: New file.
45252         * tests/test-areadlink.c: Likewise.
45253         * tests/test-areadlink-with-size.c: Likewise.
45254
45255         maint: minor cleanups
45256         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45257         _UNUSED_PARAMETER_ instead.
45258         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45259         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45260         * modules/linkat-tests (Files): Distribute test-link.h.
45261
45262         openat, utimens: whitespace cleanup
45263         * lib/openat.c: Prefer space throughout, rather than mix of 8
45264         spaces vs. tabs.
45265         * lib/at-func.c: Likewise.
45266         * lib/utimens.c: Likewise.
45267
45268         openat: avoid using wrong fd
45269         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45270         working directory chooses same fd.
45271         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45272
45273         mkdir, mkdirat: fix cygwin 1.5.x bug
45274         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45275         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45276         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45277         bug.
45278         (gl_PREREQ_MKDIR): Delete unused macro.
45279         * modules/mkdir (Files): Track file rename.
45280         (configure.ac): Update macro name.
45281         * modules/openat (Depends-on): Add mkdir.
45282         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45283
45284         mkdir, mkdirat: add tests
45285         * modules/mkdir-tests: New test.
45286         * tests/test-mkdir.h: New file.
45287         * tests/test-mkdir.c: Likewise.
45288         * tests/test-mkdirat.c: Likewise.
45289         * modules/openat-tests (Files): Add new files.
45290         (Makefile.am): Run new test.
45291
45292 2009-10-06  Eric Blake  <ebb9@byu.net>
45293
45294         doc: tweak *at function documentation
45295         * doc/posix-functions/faccessat.texi (faccessat): Mention
45296         known issue with replacement.
45297         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45298         * doc/posix-functions/linkat.texi (linkat): Likewise.
45299         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45300         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45301         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45302         * doc/posix-functions/renameat.texi (renameat): Likewise.
45303         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45304
45305         openat: fix GNU/Hurd bug in unlinkat
45306         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45307         broken.
45308         * doc/posix-functions/unlink.texi (unlink): Document this.
45309         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45310
45311         fdopendir: fix GNU/Hurd bug
45312         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45313         allowing non-directory fds.
45314         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45316         * modules/dirent (Makefile.am): Substitute it.
45317         * lib/dirent.in.h (fdopendir): Declare replacement.
45318         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45319         * tests/test-fdopendir.c (main): Test something other than
45320         /dev/null, since on Hurd that behaves like a directory.
45321
45322         test-symlink: port to GNU/Hurd
45323         * tests/test-symlink.h (test_symlink): Relax expected errno.
45324
45325         doc: tweak more cygwin information
45326         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45327         now compatible with glibc.
45328         * doc/posix-functions/getopt.texi (getopt): Likewise.
45329
45330         getopt-gnu: add another test
45331         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45332         guarantee behavior relied on by m4.
45333         * tests/test-getopt.c (main): Use it.
45334         * modules/getopt-posix-tests (Depends-on): Add setenv.
45335         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45336
45337         getopt: fix compilation on darwin
45338         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45339         include.
45340         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45341         Reported by Ludovic Courtès.
45342
45343 2009-10-06  Bruno Haible  <bruno@clisp.org>
45344
45345         * modules/size_max (Description): Discourage its use.
45346         Reported by Simon Josefsson.
45347
45348 2009-10-06  Jim Meyering  <meyering@redhat.com>
45349
45350         linkat: avoid compilation failure
45351         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45352
45353 2009-10-05  Eric Blake  <ebb9@byu.net>
45354
45355         linkat: support Linux 2.6.17
45356         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45357         linkat on Linux, but allow cache variable override.
45358         * lib/linkat.c (rpl_linkat): Define override.
45359         * modules/linkat (Depends-on): Add symlinkat.
45360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45361         * modules/unistd (Makefile.am): Substitute it.
45362         * lib/unistd.in.h (linkat): Declare replacement.
45363         Reported by Pádraig Brady.
45364
45365         quotearg: port test to systems with C.UTF-8 locale
45366         * tests/test-quotearg.c (struct result_strings): Add another
45367         member, differentiating between C.ASCII and C.UTF-8 handling.
45368         (compare_strings): Add parameter.
45369         (main): Adjust all callers.
45370
45371         getopt: avoid clash with FreeBSD _getopt_internal
45372         * lib/getopt.in.h (_getopt_internal): Override the name.
45373         * lib/getopt_int.h (includes): Pick up any overrides.
45374         Reported by Reuben Thomas.
45375
45376         hash: allow C89 compilation
45377         * lib/hash.c (check_tuning): Move declaration before statement.
45378         Reported by Reuben Thomas.
45379
45380 2009-10-05  Karl Berry  <karl@gnu.org>
45381
45382         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45383
45384 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45385             Bruno Haible  <bruno@clisp.org>
45386
45387         * lib/uname.c (uname): Use a table-driven algorithm to compute
45388         Windows NT versions.
45389
45390 2009-10-04  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45393         program_invocation_short_name.
45394         * modules/progname (configure.ac): Test for presence of
45395         program_invocation_short_name.
45396         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45397
45398 2009-10-04  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/progname.c (set_program_name): Fix comment.
45401         Reported by Jim Meyering.
45402
45403 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45404             Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/uname.c: Include <string.h>.
45407         (uname): Do only one call to GetVersionEx in the common case.
45408
45409 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45410             Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45413         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45414         (uname): Add support for Windows CE and various non-x86 CPU types.
45415
45416 2009-10-03  Bruno Haible  <bruno@clisp.org>
45417
45418         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45419         invocation to tests/configure.ac.
45420         Reported by Ian Beckwith <ianb@erislabs.net>.
45421
45422 2009-10-02  Eric Blake  <ebb9@byu.net>
45423
45424         fchdir: avoid compiler warning
45425         * lib/fchdir.c (canonicalize_file_name)
45426         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45427
45428         test-open: support mingw errno values
45429         * tests/test-open.h (test_open): Relax test.
45430         * tests/test-fopen.h (test_fopen): Likewise.
45431         * tests/test-openat-safer.c (main): Likewise.
45432
45433         open: fix opening directory on mingw
45434         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45435
45436         test-open: on GNU/Hurd, /dev/null is a directory
45437         * tests/test-fopen.h (main): Rename...
45438         (test_fopen): ...to this.  Use a guaranteed non-directory when
45439         confirming open behavior on trailing slash.
45440         * tests/test-openat-safer.c (main): Likewise.
45441         * tests/test-open.h (main): Likewise....
45442         (test_open): ...to this.
45443         * tests/test-fopen.c (main): Adjust caller.
45444         * tests/test-fopen-safer.c (main): Likewise.
45445         * tests/test-open.c (main): Likewise.
45446         * tests/test-fcntl-safer.c (main): Likewise.
45447         Reported by Samuel Thibault.
45448
45449         rename, fchdir: don't ignore chdir failure
45450         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45451         * lib/rename.c (rpl_rename) [W32]: Likewise.
45452         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45453         an empty destination directory if source cannot be renamed,
45454         although there is still possibility for failure.
45455         * doc/posix-functions/rename.texi (rename): Document the race.
45456         Reported by Jim Meyering.
45457
45458         maint: cleanup whitespace in recent commits
45459         * lib/rename.c (rpl_rename): Remove tabs.
45460         * tests/test-link.h (test_link): Likewise.
45461         * lib/fchdir.c (get_name): Likewise.
45462         Reported by Jim Meyering.
45463
45464 2009-10-02  Ben Pfaff  <blp@gnu.org>
45465
45466         relocatable-prog-wrapper: Add missing dependency on
45467         double-slash-root.
45468         * modules/relocatable-prog-wrapper: Add dependency.
45469         Reported by Ian Beckwith <ianb@erislabs.net>.
45470
45471 2009-10-02  Eric Blake  <ebb9@byu.net>
45472
45473         renameat: fix Solaris bugs
45474         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45475         needed fixing.
45476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45477         * modules/stdio (Makefile.am): Substitute it.
45478         * lib/stdio.in.h (renameat): Declare replacement.
45479         * lib/renameat.c (rpl_renameat): Implement fix.
45480
45481         renameat: new module
45482         * modules/renameat: New file.
45483         * lib/renameat.c (renameat): Likewise.
45484         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45486         * modules/stdio (Makefile.am): Substitute them.
45487         * lib/stdio.in.h (renameat): Declare it.
45488         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45489         * doc/posix-functions/renameat.texi (renameat): Likewise.
45490         * modules/renameat-tests: New test.
45491         * tests/test-renameat.c: Likewise.
45492
45493         rename: fix mingw bugs
45494         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45495         directory overwrite bugs.
45496
45497         rename: fix another cygwin 1.5 bug
45498         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45499         checks.
45500         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45501         unnecessary cygwin workarounds.  Also work around bug with moving
45502         full directory onto an empty one.
45503         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45504
45505         rename-dest-slash: merge into rename module
45506         * modules/rename-dest-slash (Status): Mark obsolete.
45507         (Depends-on): Add rename.
45508         (Files): Let rename do it all.
45509         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45510         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45511         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45512         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45513         * lib/rename.c (rpl_rename): Update comments.
45514
45515         rename: fix cygwin 1.5.x bugs
45516         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45517         * lib/rename.c (rpl_rename): Work around them.
45518         * modules/rename (Depends-on): Add same-inode.
45519
45520         rename: fix Solaris 10 bug
45521         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45522         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45523         was the only bug.
45524
45525         rename: fix Solaris 9 bug
45526         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45527         on non-directory.  Avoid calling exit.
45528         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45529         strdup.
45530         * modules/rename-tests (Depends-on): Drop lstat.
45531         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45532         (gl_PREREQ_RENAME): Delete unused macro.
45533
45534         rename-dest-slash: fix NetBSD bug
45535         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45536         links.
45537         * modules/rename-dest-slash (Depends-on): Add same-inode.
45538
45539         rename-tests: new test, exposes several platform bugs
45540         * modules/rename-tests: New file.
45541         * tests/test-rename.h: Likewise.
45542         * tests/test-rename.c: Likewise.
45543         * doc/posix-functions/rename.texi (rename): Improve documentation,
45544         including bugs that will eventually be fixed in gnulib.
45545
45546 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45547
45548         * lib/uname.c: Include <stdlib.h>
45549         (uname): Assume version info is available.
45550
45551 2009-10-02  Jim Meyering  <meyering@redhat.com>
45552
45553         gnu-web-doc-update: correct --help output
45554         * build-aux/gnu-web-doc-update: Make --help output relevant.
45555
45556         gnu-web-doc-update: add standard options
45557         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45558
45559         gnu-web-doc-update: New module.
45560         Use this script to automatically update the on-line web documentation
45561         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45562         * modules/gnu-web-doc-update: New file, from coreutils.
45563         * build-aux/gnu-web-doc-update: New script.
45564
45565 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45566
45567         link: LoadLibrary is not needed.
45568         * lib/link.c: Use GetModuleHandle.
45569
45570 2009-10-01  Eric Blake  <ebb9@byu.net>
45571
45572         getopt: bump serial number
45573         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45574         change.
45575
45576         tests: tighten link, rmdir, and remove tests
45577         * tests/test-link.h (includes): No need to use <config.h> here.
45578         Clean up if directory hard link was created, otherwise test for
45579         trailing '.'.
45580         * tests/test-linkat.c (main): Simplify.
45581         * tests/test-remove.c (main): Enhance test for trailing '.'.
45582         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45583
45584 2009-10-01  Jim Meyering  <meyering@redhat.com>
45585
45586         maint.mk: requiring "make major" was annoying, for a "minor" release.
45587         What is intended is "stable", to contrast with alpha and beta,
45588         so require "make stable", not "make major".
45589         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45590         (get_tool_versions): Likewise.
45591         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45592
45593 2009-09-30  Ben Pfaff  <blp@gnu.org>
45594
45595         Fix broken build of replacement for Windows tmpfile().
45596         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45597         flags argument added along with the 'mkostemp' module.
45598
45599 2009-09-28  Bruno Haible  <bruno@clisp.org>
45600
45601         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45602         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45603         to 'remove_elt'.
45604         (gl_list_remove): Update.
45605         * lib/gl_list.c (gl_list_remove): Update.
45606         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45607         to 'remove_elt'.
45608         (gl_oset_remove): Update.
45609         * lib/gl_list.c (gl_oset_remove): Update.
45610         Reported by Eric Blake.
45611
45612 2009-09-28  Eric Blake  <ebb9@byu.net>
45613
45614         doc: mention yet more cygwin 1.7 status
45615         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45616         cygwin.
45617         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45618         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45619
45620         argp: fix test failure
45621         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45622         that are not upper-case.  Pass correct range to tolower.
45623
45624 2009-09-27  Jim Meyering  <meyering@redhat.com>
45625
45626         test-yesno: work around sparc-dash here-document infelicity
45627         Without this change, the literal \177 byte in a here document
45628         would make dash 0.5.5.1-3 access uninitialized memory.
45629         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45630         Instead, use a marker, "@", and filter through tr to create the desired
45631         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45632
45633 2009-09-27  Bruno Haible  <bruno@clisp.org>
45634
45635         Disable untested support for new flavours of ACLs on AIX.
45636         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45637         progress.
45638         * lib/set-mode-acl.c (qset_acl): Likewise.
45639
45640 2008-12-07  Bruno Haible  <bruno@clisp.org>
45641
45642         Add support for new flavours of ACLs on AIX. (Untested.)
45643         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45644         (file_has_acl): Add support for newer AIX.
45645         * lib/set-mode-acl.c (qset_acl): Likewise.
45646         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45647         Rainer Tammer <tammer@tammer.net>.
45648
45649 2009-09-26  Eric Blake  <ebb9@byu.net>
45650
45651         argp: fix compilation of getopt
45652         * lib/getopt.in.h (includes): Use different guard than glibc.
45653         Reported by Sergey Poznyakoff.
45654
45655         doc: mention more cygwin 1.7 status
45656         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45657         bug.
45658         * doc/posix-functions/execl.texi (execl): Likewise.
45659         * doc/posix-functions/execle.texi (execle): Likewise.
45660         * doc/posix-functions/execlp.texi (execlp): Likewise.
45661         * doc/posix-functions/execv.texi (execv): Likewise.
45662         * doc/posix-functions/execve.texi (execve): Likewise.
45663         * doc/posix-functions/execvp.texi (execvp): Likewise.
45664         * doc/glibc-functions/canonicalize_file_name.texi
45665         (canonicalize_file_name): Cygwin 1.7 now provides this.
45666         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45667         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45668         on AT_SYMLINK_NOFOLLOW.
45669
45670 2009-09-24  Eric Blake  <ebb9@byu.net>
45671
45672         test-linkat: make test more robust
45673         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45674
45675         getopt: fix inclusion guards for cygwin
45676         * modules/getopt-posix (Depends-on): Add include-next.
45677         (Makefile.am): Substitute more items in replacement header.
45678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45679         <getopt.h>.
45680         * lib/getopt.in.h (includes): Use split inclusion guard, and
45681         prefer <getopt.h> over include <unistd.h> when one is present.
45682         (option): Also override name of 'struct option'.
45683
45684         same-inode: revert prior change; it is not yet ready
45685         * NEWS: Undo mention of this change.
45686         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45687         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45688         * lib/cycle-check.c (cycle_check): Likewise.
45689         * lib/same.c (same_name): Likewise.
45690         * lib/at-func2.c (at_func2): Likewise.
45691
45692 2009-09-23  Eric Blake  <ebb9@byu.net>
45693
45694         linkat: new module
45695         * modules/linkat: New file.
45696         * lib/at-func2.c (at_func2): Likewise.
45697         * lib/linkat.c (linkat): Likewise.
45698         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45699         * lib/openat-priv.h (at_func2): Add declaration.
45700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45701         * modules/unistd (Makefile.am): Substitute them.
45702         * lib/unistd.in.h (linkat): Declare it.
45703         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45704         * doc/posix-functions/linkat.texi (linkat): Likewise.
45705         * doc/posix-functions/link.texi (link): Tweak wording.
45706         * tests/test-link.c (main): Move guts...
45707         * tests/test-link.h (test_link): ...into new file.
45708         * modules/linkat-tests: New test.
45709         * tests/test-linkat.c: Likewise.
45710         * modules/link-tests (Files): Ship new file.
45711         (Depends-on): Add stdbool.
45712
45713         dirname: add library-safe mdir_name
45714         * lib/dirname.h (mdir_name): New prototype.
45715         * lib/dirname.c (dir_name): Move guts...
45716         (mdir_name): ...to new function that avoids xalloc_die.
45717
45718         fchdir: another mingw fix
45719         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45720         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45721         on mingw (where it has not yet been ported), and make it optional
45722         elsewhere.
45723         (_gl_register_fd): Use it.
45724
45725         same-inode: make SAME_INODE tri-state, to port to mingw
45726         * NEWS: Mention this change.
45727         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45728         st_ino always being 0.
45729         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45730         * lib/cycle-check.c (cycle_check): Likewise.
45731         * lib/same.c (same_name): Likewise.
45732
45733         lstat: avoid mingw compilation error
45734         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45735         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45736         lstat ourselves.
45737         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45738         was adequate.
45739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45740         the checks for lstat.
45741         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45742
45743         link: fix test failure on Solaris 9
45744         * lib/link.c (rpl_link): Don't assume link will catch bogus
45745         trailing slash on source.
45746
45747         test-symlinkat: enhance test
45748         * tests/test-readlink.c (main): Move guts...
45749         * tests/test-readlink.h (test_readlink): ...into new file.
45750         * tests/test-symlink.c (main): Move guts...
45751         * tests/test-symlink.h (test_symlink): ...into new file.
45752         * tests/test-symlinkat.c (main): Use new files for further
45753         coverage.
45754         (do_symlink, do_readlink): New helper functions.
45755         * modules/symlink-tests (Files): Ship new file.
45756         (Depends-on): Add stdbool.
45757         * modules/readlink-tests (Files): Ship new file.
45758         (Depends-on): Add stdbool.
45759         * modules/symlinkat-tests (Files): Use new files.
45760
45761 2009-09-23  Eric Blake  <ebb9@byu.net>
45762
45763         readlink: document portability issue with symlink length
45764         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45765         systems have bogus st_size on symlinks, and mention the
45766         areadlink-with-size module.
45767         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45768         * doc/posix-functions/readlink.texi (readlink): Mention the
45769         areadlink module, and ERANGE failure.
45770         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45771         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45772
45773         readlink: fix Solaris 9 bug with trailing slash
45774         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45775         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45776         * doc/posix-functions/readlink.texi (readlink): Document this.
45777         * modules/readlink-tests: New test.
45778         * tests/test-readlink.c: Likewise.
45779
45780         readlink: fix cygwin 1.5.x bug with return type
45781         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45782         * lib/unistd.in.h (readlink): Use ssize_t.
45783         * lib/readlink.c (readlink): Likewise.
45784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45785         * modules/unistd (Makefile.am): Substitute it.
45786         * lib/unistd.in.h (readlink): Declare replacement.
45787         * doc/posix-functions/readlink.texi (readlink): Document this.
45788
45789         symlink: use throughout gnulib
45790         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45791         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45792         symlink is not used.
45793         * modules/symlinkat (Depends-on): Add symlink.
45794         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45795         * modules/canonicalize-tests (Depends-on): Likewise.
45796         * modules/lstat-tests (Depends-on): Likewise.
45797         * modules/openat-tests (Depends-on): Likewise.
45798         * modules/remove-tests (Depends-on): Likewise.
45799         * modules/rmdir-tests (Depends-on): Likewise.
45800         * modules/unlink-tests (Depends-on): Likewise.
45801         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45802         * tests/test-canonicalize.c (symlink): Likewise.
45803         * tests/test-fstatat.c (symlink): Likewise.
45804         * tests/test-lstat.c (symlink): Likewise.
45805         * tests/test-remove.c (symlink): Likewise.
45806         * tests/test-rmdir.c (symlink): Likewise.
45807         * tests/test-unlink.c (symlink): Likewise.
45808         * tests/test-unlinkat.c (symlink): Likewise.
45809
45810         symlink: new module, for Solaris 9 bug
45811         * modules/symlink: New file.
45812         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45813         * lib/symlink.c: Likewise.
45814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45815         * modules/unistd (Makefile.am): Substitute them.
45816         * lib/unistd.in.h (symlink): Declare replacement.
45817         * MODULES.html.sh (File system functions): Mention it.
45818         * doc/posix-functions/symlink.texi (symlink): Likewise.
45819         * modules/symlink-tests: New test.
45820         * tests/test-symlink.c: Likewise.
45821
45822 2009-09-23  Bruno Haible  <bruno@clisp.org>
45823
45824         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45825         when needed.
45826         Test case: gnulib-tool --import --with-tests atexit inttypes.
45827         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45828
45829 2009-09-23  Bruno Haible  <bruno@clisp.org>
45830
45831         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45832         subcommand, not in a subshell.
45833
45834 2009-09-22  Eric Blake  <ebb9@byu.net>
45835
45836         unistd: sort replacement declarations
45837         * lib/unistd.in.h: Sort declarations.
45838
45839         open, openat: minor optimization
45840         * lib/open.c (open): If open succeeded, len is non-zero.
45841         * lib/openat.c (rpl_openat): Likewise.
45842
45843         link-follow: ensure correct result
45844         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45845         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45846         distinguish between possible failures.
45847
45848 2009-09-21  Eric Blake  <ebb9@byu.net>
45849
45850         fts: avoid compiler warning
45851         * lib/fts.c (dirent_inode_sort_may_be_useful)
45852         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45853
45854 2009-09-19  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/progreloc.c (canonicalize_file_name): New declaration.
45857
45858 2009-09-19  Eric Blake  <ebb9@byu.net>
45859
45860         link: fix quoting
45861         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45862
45863         openat: fix openat bugs on Solaris 9
45864         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45865         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45866         * modules/openat (Depends-on): Add open.
45867         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45868         * modules/fcntl-h (Makefile.am): Substitute it.
45869         * lib/fcntl.in.h (openat): Declare replacement.
45870         * doc/posix-functions/openat.texi (openat): Document this.
45871
45872         openat: move fstatat and unlinkat into correct files
45873         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45874         compiled.
45875         * lib/openat.c (fstatat, unlinkat): Move...
45876         * lib/fstatat.c (fstatat): ...into correct files.
45877         * lib/unlinkat.c (unlinkat): Likewise.
45878
45879         openat: fix unlinkat bugs on Solaris 9
45880         * lib/unlinkat.c (unlinkat): New file.
45881         * modules/openat (Depends-on): Add unlink.
45882         (Files): Distribute it.
45883         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45884         trailing slash behavior is broken.
45885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45886         * modules/unistd (Makefile.am): Substitute it.
45887         * lib/unistd.in.h (unlinkat): Declare replacement.
45888         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45889
45890         openat: fix fstatat bugs on Solaris 9
45891         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45892         stat.
45893         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45894
45895         test-unlinkat: enhance test, to expose Solaris 9 bug
45896         * tests/test-unlink.c (main): Factor guts...
45897         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45898         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45899         * tests/test-rmdir.c (main): Adjust caller.
45900         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45901         (unlinker): New helper function.
45902         (rmdirat): Enhance check.
45903         * modules/rmdir-tests (Depends-on): Add stdbool.
45904         * modules/unlink-tests (Depends-on): Likewise.
45905         (Files): Add test-unlink.h.
45906         * modules/openat-tests (Files): Likewise.
45907         (Depends-on): Add unlinkdir.
45908
45909         test-fstatat: new test, to expose Solaris 9 bugs
45910         * tests/test-stat.c (main): Factor guts...
45911         * tests/test-stat.h (test_stat_func): ...into new file.
45912         * tests/test-lstat.c (main): Factor guts...
45913         * tests/test-lstat.h (test_lstat_func): ...into new file.
45914         * tests/test-fstatat.c: New file.
45915         * modules/stat-tests (Files): Add test-stat.h.
45916         * modules/lstat-tests (Files): Add test-lstat.h.
45917         (Depends-on): Add stdbool.
45918         * modules/openat-tests (Depends-on): Add pathmax.
45919         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45920         (Makefile.am): Run new test.
45921
45922         remove: new module, for mingw and Solaris 9 bugs
45923         * modules/remove: New file.
45924         * lib/remove.c: Likewise.
45925         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45927         * modules/stdio (Makefile.am): Use them.
45928         * lib/stdio.in.h (remove): Declare replacement.
45929         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45930         * doc/posix-functions/remove.texi (remove): Likewise.
45931         * modules/remove-tests: New test.
45932         * tests/test-remove.c: Likewise.
45933
45934         unlink: new module, for Solaris 9 bug
45935         * modules/unlink: New file.
45936         * lib/unlink.c: Likewise.
45937         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45939         * modules/unistd (Makefile.am): Use them.
45940         * lib/unistd.in.h (stat): Declare replacement.
45941         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45942         * doc/posix-functions/unlink.texi (unlink): Likewise.
45943         * modules/unlink-tests: New test.
45944         * tests/test-unlink.c: Likewise.
45945
45946         lstat: fix Solaris 9 bug
45947         * lib/lstat.c (lstat): Also check for trailing slash on
45948         non-symlink, non-directories.  Use stat module to simplify logic.
45949         * doc/posix-functions/lstat.texi (lstat): Document it.
45950         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45951         (configure.ac): Check for symlink.
45952         * tests/test-lstat.c (main): Add more tests.
45953
45954         stat: add as dependency to other modules
45955         * modules/chown (Depends-on): Add stat.
45956         * modules/euidaccess (Depends-on): Likewise.
45957         * modules/fchdir (Depends-on): Likewise.
45958         * modules/isdir (Depends-on): Likewise.
45959         * modules/link (Depends-on): Likewise.
45960         * modules/lstat (Depends-on): Likewise.
45961         * modules/mkdir-p (Depends-on): Likewise.
45962         * modules/modechange (Depends-on): Likewise.
45963         * modules/open (Depends-on): Likewise.
45964         * modules/readlink (Depends-on): Likewise.
45965         * modules/same (Depends-on): Likewise.
45966
45967         stat: fix Solaris 9 bug
45968         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45969         slash.
45970         * lib/stat.c (rpl_stat): Work around it.
45971         * doc/posix-functions/stat.texi (stat): Update documentation.
45972
45973         stat: new module, for mingw bug
45974         * modules/stat: New file.
45975         * lib/stat.c: Likewise.
45976         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45978         * modules/sys_stat (Makefile.am): Use them.
45979         * lib/sys_stat.in.h (stat): Declare replacement.
45980         * lib/openat.c (fstatat): Deal with lstat and stat being function
45981         macros.
45982         * modules/openat (Depends-on): Add inline.
45983         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45984         * doc/posix-functions/stat.texi (stat): Likewise.
45985         * modules/stat-tests: New test.
45986         * tests/test-stat.c: Likewise.
45987
45988 2009-09-19  Jim Meyering  <meyering@redhat.com>
45989
45990         syntax-check: detect unnecessary inclusion of canonicalize.h
45991         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45992
45993 2009-09-19  Eric Blake  <ebb9@byu.net>
45994
45995         canonicalize-lgpl: adjust clients to use correct header
45996         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45997         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45998         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45999         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46000         * lib/progreloc.c (includes): Likewise.
46001
46002 2009-09-19  Jim Meyering  <meyering@redhat.com>
46003
46004         test-posixtm.c: correct a comment
46005         * tests/test-posixtm.c: Correct first-line comment.
46006         Spotted by Eric Blake.
46007
46008 2009-09-16  Jim Meyering  <meyering@redhat.com>
46009
46010         posixtm-tests: make T const-correct; add a test case
46011         * tests/test-posixtm.c (T): Declare const.
46012         Add a test for -(2^31+1).
46013         Remove useless can-succeed-only-in-2002 test.
46014
46015         posixtm-tests: adjust the sole failing test
46016         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46017         expected output matches what mktime now produces.  Cross-checked via
46018         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46019
46020         posixtm: move #ifdef'd tests into a new module
46021         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46022         * tests/test-posixtm.c: ... this new file.
46023         * modules/posixtm-tests: New module.
46024
46025 2009-09-19  Eric Blake  <ebb9@byu.net>
46026
46027         openat: simplify use of at-func.c
46028         * lib/at-func.c (includes): Include prerequisites here, to
46029         simplify requirements on client files.
46030         * lib/openat-priv.h: Add double-inclusion guard.
46031         * lib/faccessat.c (includes): Simplify.
46032         * lib/fchmodat.c (includes): Likewise.
46033         * lib/fchownat.c (includes): Likewise.
46034         * lib/mkdirat.c (includes): Likewise.
46035         * lib/mkfifoat.c (includes): Likewise.
46036         * lib/symlinkat.c (includes): Likewise.
46037
46038         openat: allow return of fd 0
46039         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46040         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46041         unistd-safer.
46042         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46043         <fcntl.h>; this module does not leak fds.
46044         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46045         must be allowed to return 0, leaving openat_safer to add the
46046         safety.
46047         (openat_permissive): Avoid writing to just-opened fd 2 if
46048         restoring the current directory fails.
46049         * lib/openat-die.c (openat_restore_fail): Add comment.
46050         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46051         (save_cwd): Guarantee safe fd, but without use of open_safer.
46052         * tests/test-openat.c: New test.
46053         * modules/openat-tests (Files, Makefile.am): Distribute and build
46054         new file.
46055
46056         relocatable-prog-wrapper: fix build
46057         * modules/relocatable-prog-wrapper (Files): Update name of
46058         canonicalize m4 file, broken on 2009-09-17.
46059         Reported by emad hajjar <aleppos@hotmail.com>.
46060
46061 2009-09-19  Bruno Haible  <bruno@clisp.org>
46062
46063         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46064         * lib/safe-alloc.c: Likewise.
46065         Reported by Ian Beckwith <ianb@erislabs.net>.
46066
46067 2009-09-18  Bruno Haible  <bruno@clisp.org>
46068
46069         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46070         Reported by <erobles@sensacd.com.mx>.
46071
46072 2009-09-17  Eric Blake  <ebb9@byu.net>
46073
46074         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46075         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46076         slashes when checking if last component is missing.
46077         * tests/test-canonicalize.c (main): Test this.
46078
46079         canonicalize, canonicalize-lgpl: honor // if distinct from /
46080         * modules/canonicalize (Files): Add double-slash-root.m4.
46081         * modules/canonicalize-lgpl (Files): Likewise.
46082         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46083         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46084         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46085         fallback definition.
46086         (canonicalize_filename_mode): Use it to protect //.
46087         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46088         (__realpath): Likewise.
46089         * tests/test-canonicalize.c (main): Test this.
46090         * tests/test-canonicalize-lgpl.c (main): Likewise.
46091         * modules/canonicalize-tests (Depends-on): Add same-inode.
46092         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46093
46094         canonicalize-lgpl: fix glibc bug with trailing slash
46095         * m4/canonicalize-lgpl.m4: Move contents...
46096         * m4/canonicalize.m4: ...here.
46097         (gl_CANONICALIZE_LGPL): Factor realpath check...
46098         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46099         glibc 2.3.5 bug, fixed 2005-04-27.
46100         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46101         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46102         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46103         * modules/canonicalize-lgpl (Files): Manage file rename.
46104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46105         * modules/stdlib (Makefile.am): Substitute witness.
46106         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46107         is needed.
46108         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46109         replacement is required.
46110         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46111         * doc/glibc-functions/canonicalize_file_name.texi
46112         (canonicalize_file_name): Document this.
46113         * doc/posix-functions/realpath.texi (realpath): Likewise.
46114
46115         canonicalize-lgpl: reject non-directory with trailing slash
46116         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46117         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46118         catches failures in glibc 2.3.5.
46119         * tests/test-canonicalize.c (main): Likewise.
46120
46121         canonicalize-lgpl: use native realpath if it works
46122         * lib/canonicalize-lgpl.c (realpath): Guard with
46123         FUNC_REALPATH_WORKS.
46124         * lib/stdlib.in.h (realpath): Make declaration optional based on
46125         HAVE_REALPATH.
46126         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46127         native realpath works.
46128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46129         * modules/stdlib (Makefile.am): Substitute witness.
46130
46131         canonicalize, canonicalize-lgpl: use <stdlib.h>
46132         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46133         (Include): Mention <stdlib.h>.
46134         (configure.ac): Mention functions we provide.
46135         * modules/canonicalize (configure.ac): Likewise.
46136         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46137         realpath if canonicalize_file_name is missing.
46138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46139         * modules/stdlib (Makefile.am): Substitute witnesses.
46140         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46141         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46142         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46143         * NEWS: Document this.
46144         * doc/glibc-functions/canonicalize_file_name.texi
46145         (canonicalize_file_name): Likewise.
46146         * doc/posix-functions/realpath.texi (realpath): Likewise.
46147         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46148
46149         test-canonicalize: consolidate into single C program
46150         * tests/test-canonicalize.sh: Delete; move setup into...
46151         * tests/test-canonicalize.c (main): ...the program, making it
46152         easier to run in debugger.  Add some tests.
46153         * modules/canonicalize-tests (Files): Remove unused file.
46154         (Depends-on): Add progname.
46155         (configure.ac, Makefile.am): Simplify.
46156
46157         test-canonicalize-lgpl: consolidate into single C program
46158         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46159         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46160         easier to run in debugger.  Add some tests.
46161         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46162         (configure.ac, Makefile.am): Simplify.
46163
46164         canonicalize: avoid resolvepath
46165         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46166         unnecessary checks.
46167         * lib/canonicalize.c (includes): Simplify.
46168         (canonicalize_file_name): Drop resolvepath implementation.
46169         * modules/canonicalize (Depends-on): Drop filenamecat.
46170
46171         canonicalize: don't lose errno
46172         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46173         over calls to free.
46174
46175         canonicalize: simplify errno handling
46176         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46177         assignment.
46178
46179         canonicalize, canonicalize-lgpl: update module dependencies
46180         * modules/canonicalize (Depends-on): Add extensions, lstat,
46181         pathmax, stdlib.
46182         (Files): Drop pathmax.h.
46183         (configure.ac): Adjust macro name.
46184         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46185         lstat, stdlib, sys_stat.
46186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46187         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46188         extensions.
46189         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46190         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46191         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46192         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46193         declaration, if available.
46194         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46195         we can rely on the readlink module.
46196         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46197         (includes): Use <unistd.h> unconditionally.
46198
46199 2009-09-17  Eric Blake  <ebb9@byu.net>
46200
46201         maint: make Include sections of modules consistent
46202         * modules/alloca: Use only header name; no need to list #include.
46203         * modules/alloca-opt: Likewise.
46204         * modules/arpa_inet: Likewise.
46205         * modules/canon-host: Likewise.
46206         * modules/configmake: Likewise.
46207         * modules/dirent: Likewise.
46208         * modules/eealloc: Likewise.
46209         * modules/environ: Likewise.
46210         * modules/fchdir: Likewise.
46211         * modules/fcntl: Likewise.
46212         * modules/fcntl-h: Likewise.
46213         * modules/gethrxtime: Likewise.
46214         * modules/gettime: Likewise.
46215         * modules/ignore-value: Likewise.
46216         * modules/inet_ntop: Likewise.
46217         * modules/inet_pton: Likewise.
46218         * modules/inttypes: Likewise.
46219         * modules/isnand-nolibm: Likewise.
46220         * modules/isnanf-nolibm: Likewise.
46221         * modules/mbchar: Likewise.
46222         * modules/mbfile: Likewise.
46223         * modules/mbiter: Likewise.
46224         * modules/mbuiter: Likewise.
46225         * modules/netdb: Likewise.
46226         * modules/netinet_in: Likewise.
46227         * modules/nproc: Likewise.
46228         * modules/pagealign_alloc: Likewise.
46229         * modules/poll: Likewise.
46230         * modules/printf-frexp: Likewise.
46231         * modules/pthread: Likewise.
46232         * modules/putenv: Likewise.
46233         * modules/random_r: Likewise.
46234         * modules/relocatable-prog: Likewise.
46235         * modules/search: Likewise.
46236         * modules/select: Likewise.
46237         * modules/selinux-h: Likewise.
46238         * modules/settime: Likewise.
46239         * modules/signal: Likewise.
46240         * modules/size_max: Likewise.
46241         * modules/socklen: Likewise.
46242         * modules/ssize_t: Likewise.
46243         * modules/stdarg: Likewise.
46244         * modules/stdbool: Likewise.
46245         * modules/stddef: Likewise.
46246         * modules/stdint: Likewise.
46247         * modules/stdio: Likewise.
46248         * modules/stdlib: Likewise.
46249         * modules/string: Likewise.
46250         * modules/strings: Likewise.
46251         * modules/sys_file: Likewise.
46252         * modules/sys_ioctl: Likewise.
46253         * modules/sys_select: Likewise.
46254         * modules/sys_socket: Likewise.
46255         * modules/sys_stat: Likewise.
46256         * modules/sys_time: Likewise.
46257         * modules/sys_times: Likewise.
46258         * modules/sys_utsname: Likewise.
46259         * modules/sys_wait: Likewise.
46260         * modules/sysexits: Likewise.
46261         * modules/time: Likewise.
46262         * modules/times: Likewise.
46263         * modules/tmpfile: Likewise.
46264         * modules/trim: Likewise.
46265         * modules/unistd: Likewise.
46266         * modules/wchar: Likewise.
46267         * modules/wctype: Likewise.
46268
46269 2009-09-17  Bruno Haible  <bruno@clisp.org>
46270
46271         Make getdate.y compile on QNX and NetBSD 5 / i386.
46272         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46273         TIME_T_FITS_IN_LONG_INT.
46274         * lib/getdate.y (long_time_t): New type.
46275         (relative_time): Change type of 'seconds' field to long_time_t.
46276         (get_date): Update types of local variables. Check against overflow
46277         during conversion from long_time_t to time_t.
46278         Reported by Matt Kraai <kraai@ftbfs.org>
46279         and Hasso Tepper <hasso@netbsd.org>.
46280
46281 2009-09-17  Bruno Haible  <bruno@clisp.org>
46282
46283         * modules/COPYING: Update copyright years.
46284         * modules/README: Likeiwse.
46285         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46286         Reported by Ian Beckwith <ianb@erislabs.net>.
46287
46288 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46289
46290         * users.txt: Update references for gnuit package.
46291
46292 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46293
46294         * m4/getdelim.m4: Fix typo in copyright line.
46295
46296 2009-09-17  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/atoll.c: Use the standard header with GPL copyright.
46299         * lib/argz.in.h: Likewise.
46300         * lib/glob.c: Likewise.
46301         * lib/glob-libc.h: Likewise.
46302         * lib/random_r.c: Likewise.
46303         * lib/siglist.h: Likewise.
46304         * lib/strsignal.c: Likewise.
46305         Reported by Ian Beckwith <ianb@erislabs.net>.
46306
46307 2009-09-17  Eric Blake  <ebb9@byu.net>
46308
46309         rmdir: ensure correct dependency order
46310         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46311
46312 2009-09-17  Bruno Haible  <bruno@clisp.org>
46313
46314         Disable assertion that fails on NetBSD 5 / i386.
46315         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46316         Reported by Sam Steingold <sds@gnu.org>
46317         and Hasso Tepper <hasso@netbsd.org>.
46318
46319 2009-09-16  Eric Blake  <ebb9@byu.net>
46320
46321         unlinkdir: port to mingw
46322         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46323         on which no one can unlink a directory.
46324
46325         stdlib: sort witness names
46326         * modules/stdlib (Makefile.am): Sort replacements.
46327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46328         * lib/stdlib.in.h: Likewise.
46329
46330         parse-duration-tests: avoid link failure
46331         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46332         LIBINTL.
46333         Reported by Tom G. Christensen.
46334
46335         openat-tests: ensure unlinkat behaves like rmdir
46336         * tests/test-rmdir.c (main): Factor guts...
46337         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46338         * modules/rmdir-tests (Files): Ship new file.
46339         * modules/openat-tests: New test.
46340         * tests/test-unlinkat.c: Likewise.
46341
46342         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46343         * modules/rmdir-errno (Status, Notice): Now obsolete.
46344
46345         rmdir: work around cygwin 1.5.x and mingw bugs
46346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46347         * lib/rmdir.c (rmdir): Work around it.
46348         * modules/rmdir (Status, Notice): No longer obsolete.
46349         (Files): Add dos.m4.
46350         (Depends-on): Add unistd.
46351         (configure.ac): Set witnesses.
46352         (License): Relax to LGPLv2+.
46353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46354         * modules/unistd (Makefile.am): Substitute witnesses.
46355         * lib/unistd.in.h (rmdir): Declare replacement.
46356         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46357         * modules/rmdir-tests: New tests.
46358         * tests/test-rmdir.c: Likewise.
46359
46360 2009-09-15  Eric Blake  <ebb9@byu.net>
46361
46362         fchdir: improve use of replacement functions
46363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46364         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46365         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46366         REPLACE_CLOSEDIR.
46367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46368         * modules/sys_stat (Makefile.am): Substitute correct witness.
46369         * modules/dirent (Makefile.am): Likewise.
46370         * modules/unistd (Makefile.am): Likewise.
46371         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46372         * lib/unistd.in.h (dup): Likewise.
46373         * lib/sys_stat.in.h (fstat): Likewise.
46374
46375         maint: ignore gnulib-tool temp files
46376         * .gitignore: Ignore files created during gnulib-tool --test.
46377
46378 2009-09-13  Jim Meyering  <meyering@redhat.com>
46379
46380         posixtm: don't reject a time that specify "60" as the number of seconds
46381         * lib/posixtm.c (posixtime): The code to reject invalid dates
46382         would also reject a time specified with the .60 suffix.
46383         But POSIX allows that, in order to accommodate leap seconds.
46384         So don't reject it.
46385         (main): Adjust tests accordingly.
46386         * modules/posixtm (Depends-on): Add stpcpy.
46387
46388 2009-09-11  Jim Meyering  <meyering@redhat.com>
46389
46390         announce-gen: include [$release_type] in emitted Subject:
46391         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46392         e.g., [stable] in the emitted Subject: line.
46393
46394 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46395
46396         Remove obsolete macros from several modules.
46397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46398         obsolete Autoconf macros with their modern counterparts.
46399         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46400         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46403         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46404         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46406         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46407         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46408         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46409         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46411         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46412         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46413         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46414         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46415         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46416         * m4/time_r.m4 (gl_TIME_R): Likewise.
46417         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46418         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46419         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46420
46421         Fix copyright header in build-aux scripts.
46422         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46423         recommendation.
46424         * build-aux/ncftpput-ftp: Likewise.
46425         * build-aux/update-copyright: Likewise.
46426
46427 2009-09-09  Eric Blake  <ebb9@byu.net>
46428
46429         test-link: allow Linux choice of errno
46430         * tests/test-link.c (main): Relax test for alternate error.
46431
46432         strndup: fix improper m4 caching
46433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46434         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46435         (gl_PREREQ_STRNDUP): Delete.
46436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46437         * modules/string (Makefile.am): Substitute it.
46438         * lib/string.in.h (strndup): Modernize prototype.
46439
46440         getcwd: port to mingw
46441         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46442         different from the POSIX assumptions made throughout the getcwd
46443         module; fortunately, the mingw getcwd does not need replacement.
46444         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46445         * modules/getcwd-tests: New test.
46446         * tests/test-getcwd.c: Likewise.
46447
46448         link: fix platform bugs
46449         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46450         * lib/link.c (link): Work around them.  Fix related mingw bug.
46451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46452         * modules/unistd (Makefile.am): Substitute it.
46453         * lib/unistd.in.h (link): Declare replacement.
46454         * doc/posix-functions/link.texi (link): Document this.
46455         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46456
46457         test-link: consolidate into single C program, test more cases
46458         * tests/test-link.sh: Delete.
46459         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46460         at least Cygwin and Solaris.
46461         * modules/link-tests (Files): Remove unused file.
46462         (Depends-on): Add errno, sys_stat.
46463         (Makefile.am): Simplify.
46464
46465 2009-09-08  Bruno Haible  <bruno@clisp.org>
46466
46467         Work around towlower, towupper bug on mingw.
46468         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46469         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46470         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46471         * doc/posix-functions/towupper.texi: Likewise.
46472         Reported by Eric Blake.
46473
46474 2009-09-08  Jim Meyering  <meyering@redhat.com>
46475
46476         build: don't try to run autoheader if we don't use it
46477         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46478         is not used in configure.ac.
46479
46480 2009-09-08  Eric Blake  <ebb9@byu.net>
46481
46482         euidaccess: fix compilation error
46483         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46484
46485         rawmemchr: relax license
46486         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46487         okay.
46488         Reported by Jim Meyering.
46489
46490         mkfifoat: new module
46491         * modules/mkfifoat: New file.
46492         * lib/mkfifoat.c: Likewise.
46493         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46494         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46495         * modules/sys_stat (Makefile.am): Use them.
46496         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46497         * MODULES.html.sh (File system functions): Mention module.
46498         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46499         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46500         * modules/mkfifoat-tests: New test.
46501         * tests/test-mkfifoat.c: Likewise.
46502
46503         strchrnul: relax license
46504         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46505         okay.
46506         Reported by Jim Meyering.
46507
46508 2009-09-08  Eric Blake  <ebb9@byu.net>
46509
46510         fstatat: fix compilation on Solaris
46511         * lib/fstatat.c (includes): Add fcntl.h.
46512         Reported by Pádraig Brady.
46513
46514 2009-09-07  Eric Blake  <ebb9@byu.net>
46515
46516         rename: modernize replacement
46517         * modules/rename (Depends-on): Add stdio.
46518         (configure.ac): Declare witness.
46519         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46520         stdio take care of replacement.
46521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46522         * modules/stdio (Makefile.am): Substitute them.
46523         * lib/stdio.in.h (rename): Declare replacement.
46524         * lib/rename.c (includes): Allow cross-compilation to non-windows
46525         machines.
46526         * doc/posix-functions/rename.texi (rename): Improve
46527         documentation.
46528
46529         stdio: sort witness names
46530         * modules/stdio (Makefile.am): Sort replacements.
46531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46532         * lib/stdio.in.h: Likewise.
46533
46534         getcwd: minor cleanups
46535         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46536         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46537
46538         openat: provide more convenience names
46539         * modules/faccessat (configure.ac): Add C witness.
46540         * lib/unistd.in.h (readlinkat): Fix typo.
46541         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46542         convenience wrappers.
46543         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46544         wrappers in syntax checks.
46545
46546 2009-09-06  Eric Blake  <ebb9@byu.net>
46547
46548         doc: fix comments in recent patches
46549         * lib/faccessat.c: Mention correct function.
46550         * lib/fchmodat.c: Likewise.
46551         * lib/fchownat.c: Likewise.
46552         * lib/symlinkat.c: Likewise.
46553         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46554         constants.
46555
46556         faccessat, symlinkat: continue cleanup of previous patch
46557         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46558         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46559         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46561         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46562         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46563         set.
46564
46565 2009-09-06  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46568         (fstatat): Declare if GNULIB_FSTATAT is set.
46569         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46570         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46571         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46572         * modules/fcntl-h (Files): Remove m4/openat.m4.
46573         * modules/sys_stat (Files): Remove m4/openat.m4.
46574         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46575         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46576         * modules/unistd (Files): Remove m4/openat.m4.
46577         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46578         GNULIB_OPENAT.
46579         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46580         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46582         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46583         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46584         gl_OPENAT_DEFAULTS.
46585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46586         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46587         Don't require gl_OPENAT_DEFAULTS.
46588         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46589         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46590         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46591         (gl_OPENAT_DEFAULTS): Remove macro.
46592
46593 2009-09-06  Bruno Haible  <bruno@clisp.org>
46594
46595         * modules/openat (configure.ac): Remove unneeded witness.
46596
46597 2009-09-06  Bruno Haible  <bruno@clisp.org>
46598
46599         Set errno to ENOSYS when a function is entirely unsupported.
46600         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46601         EOPNOTSUPP.
46602         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46603         * modules/chown (Depends-on): Remove errno.
46604
46605 2009-09-06  Bruno Haible  <bruno@clisp.org>
46606
46607         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46608
46609 2009-09-06  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46612
46613 2009-09-06  Ben Pfaff  <blp@gnu.org>
46614             Bruno Haible  <bruno@clisp.org>
46615
46616         Work around a glibc bug in strtok_r.
46617         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46618         Undefine if UNDEFINE_STRTOK_R is set.
46619         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46621         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46622         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46623         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46624         UNDEFINE_STRTOK_R.
46625         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46626
46627 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46628
46629         exclude: minor fix
46630         * lib/exclude.c: Include wctype.h
46631
46632 2009-09-06  Akim Demaille  <demaille@gostai.com>
46633
46634         bootstrap: improve error message
46635         * build-aux/bootstrap (find_tool): Upon failure, report the list
46636         of candidates.
46637         Honor the initial value of the envvar.
46638
46639 2009-09-05  Eric Blake  <ebb9@byu.net>
46640
46641         symlinkat: new module
46642         * modules/symlinkat: New file.
46643         * lib/symlinkat.c: Likewise.
46644         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46646         * modules/unistd (Makefile.am): Use them.
46647         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46648         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46649         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46650         * MODULES.html.sh (File system functions): Mention module.
46651         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46652         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46653         * modules/symlinkat-tests: New test.
46654         * tests/test-symlinkat.c: Likewise.
46655
46656         test-openat-safer: add more checks
46657         * tests/test-openat-safer.c (main): Check more code paths.
46658
46659 2009-09-05  Jim Meyering  <meyering@redhat.com>
46660
46661         syntax-check: detect unnecessary inclusion of openat.h
46662         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46663
46664 2009-09-05  Bruno Haible  <bruno@clisp.org>
46665
46666         Support towlower, towupper.
46667         * doc/posix-functions/towlower.texi: Mention module wctype.
46668         * doc/posix-functions/towupper.texi: Likewise.
46669         * lib/wctype.in.h (towlower, towupper): New functions.
46670         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46671         (ASSERT): New macro.
46672         (e): New variable.
46673         (main): Test also towlower, towupper. Test WEOF argument.
46674         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46675
46676 2009-09-05  Bruno Haible  <bruno@clisp.org>
46677
46678         Fix conversion behaviour when the input is invalid.
46679         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46680         mark occurring in first pass of indirect conversion.
46681         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46682         input.
46683         Found by clang's static analyzer.
46684
46685 2009-09-05  Bruno Haible  <bruno@clisp.org>
46686
46687         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46688         where direct conversion is possible.
46689
46690 2009-09-04  Eric Blake  <ebb9@byu.net>
46691
46692         openat: fail with ENOENT on empty name
46693         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46694         buffer.
46695
46696         link-follow: fix logic bug in prior patch
46697         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46698         reversed sense of yes and no in prior patch.  Avoid confusing
46699         compilation failure with desired semantics.
46700
46701         link-follow: accommodate mingw and cross-compilation
46702         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46703         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46704         cross-compilation results to -1, to make linkat easier to
46705         implement when cross-compiling.  Trivially support mingw.
46706         * modules/link-follow (configure.ac): Call new name.
46707         * NEWS: Mention this.
46708
46709 2009-09-03  Eric Blake  <ebb9@byu.net>
46710
46711         faccessat: compile replacement
46712         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46713         needed.
46714
46715         fts: fix compilation error
46716         * lib/fts.c (includes): Re-add "openat.h", for
46717         openat_needs_fchdir.
46718
46719         faccessat: new module
46720         * modules/faccessat: New file.
46721         * lib/faccessat.c: Likewise.
46722         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46724         * modules/unistd (Makefile.am): Use it.
46725         * lib/unistd.in.h (faccessat): Declare it.
46726         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46727         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46728         * MODULES.html.sh (File system functions): Mention it.
46729         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46730         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46731
46732         euidaccess: prefer POSIX over non-standard implementation
46733         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46734         * lib/euidaccess.c (euidaccess): Use it if available.
46735
46736         openat: make template easier to use
46737         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46738         AT_FUNC_F2 to be undefined.
46739         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46740         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46741         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46742         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46743         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46744         Likewise.
46745         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46746         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46747         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46748         Likewise.
46749
46750         openat: declare in POSIX headers
46751         * NEWS: Mention this.
46752         * modules/openat (configure.ac): Declare witnesses.
46753         (Depends-on): Add fcntl-h, sys_stat, unistd.
46754         (Include): Mention correct headers.
46755         * modules/fcntl-h (Depends-on): Add link-warning.
46756         (Files): Add openat.m4.
46757         (Makefile.am): Substitute witnesses.
46758         * modules/sys_stat (Files, Makefile.am): Likewise.
46759         * modules/unistd (Files, Makefile.am): Likewise.
46760         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46761         (gl_OPENAT_DEFAULTS): New macro.
46762         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46765         (SYS_STAT_H): Remove unused variable.
46766         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46767         * lib/fcntl--.h (includes): Remove unneeded header.
46768         * lib/openat-safer.c (includes): Likewise.
46769         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46770         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46771         appropriate headers.
46772         (__OPENAT_PREFIX): Delete.
46773         * lib/fcntl.in.h (openat): Provide declaration.
46774         (AT_FDCWD): Fix Solaris bug.
46775         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46776         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46777         * lib/fchmodat.c (includes):  Adjust to find declaration.
46778         * lib/fchownat.c (includes): Likewise.
46779         * lib/mkdirat.c (includes): Likewise.
46780         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46781         still visible.
46782
46783 2009-09-02  Eric Blake  <ebb9@byu.net>
46784
46785         errno: use consistently
46786         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46787         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46788         * lib/canonicalize.c (ELOOP): Likewise.
46789         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46790         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46791         * lib/lchown.c (EOPNOTSUPP): Likewise.
46792         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46793         * lib/savewd.c (ESTALE): Likewise.
46794         * lib/settime.c (ENOSYS): Likewise.
46795         * lib/utimens.c (ENOSYS): Likewise.
46796         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46797         * lib/chdir-safer.c (ELOOP): Likewise.
46798         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46799         * modules/c-stack (Depends-on): Add errno.
46800         * modules/canonicalize (Depends-on): Likewise.
46801         * modules/chdir-safer (Depends-on): Likewise.
46802         * modules/fdopendir (Depends-on): Likewise.
46803         * modules/inet_ntop (Depends-on): Likewise.
46804         * modules/inet_pton (Depends-on): Likewise.
46805         * modules/lchown (Depends-on): Likewise.
46806         * modules/openat (Depends-on): Likewise.
46807         * modules/savewd (Depends-on): Likewise.
46808         * modules/settime (Depends-on): Likewise.
46809         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46810
46811         fts: avoid leaking fds
46812         * modules/fts (Depends-on): Add cloexec.
46813         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46814         flag.
46815
46816         fts: make directory fds more robust
46817         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46818         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46819
46820         backupfile, chdir-long, fts, savedir: make safer
46821         * lib/backupfile.c (includes): Use "dirent--.h", since
46822         numbered_backup can write to stderr during readdir.
46823         * lib/savedir.c (includes): Likewise.
46824         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46825         emulation can write to stderr on failure.
46826         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46827         * lib/getcwd.c: Document why opendir_safer is unused.
46828         * lib/glob.c: Likewise.
46829         * lib/scandir.c: Likewise.
46830         * lib/openat-proc.c: Likewise, for open_safer.
46831         * modules/backupfile (Depends-on): Add dirent-safer.
46832         * modules/savedir (Depends-on): Likewise.
46833         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46834         * modules/chdir-long (Depends-on): Add openat-safer.
46835
46836         openat-safer: new module
46837         * modules/openat-safer: New file.
46838         * lib/openat-safer.c: Likewise.
46839         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46840         * lib/fcntl-safer.h (openat_safer): Declare.
46841         * lib/fcntl--.h (openat): Override.
46842         * MODULES.html.sh (File descriptor based I/O): Mention it.
46843         * lib/openat.h: Add double-inclusion guards.
46844         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46845         "fcntl--.h", so we can implement openat.
46846         * modules/openat-safer-tests: New test.
46847         * tests/test-openat-safer.c: New file.
46848
46849         dirent-safer: new module
46850         * modules/dirent-safer: New file.
46851         * lib/dirent--.h: Likewise.
46852         * lib/dirent-safer.h: Likewise.
46853         * lib/opendir-safer.c: Likewise.
46854         * m4/dirent-safer.m4: Likewise.
46855         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46856         * modules/dirent-safer-tests: New test.
46857         * tests/test-dirent-safer.c: New file.
46858         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46859
46860         fdopendir: optimize on mingw
46861         * lib/unistd.in.h (_gl_directory_name): New prototype.
46862         * lib/fchdir.c (_gl_directory_name): Implement it.
46863         (fchdir): Use it to simplify implementation.
46864         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46865         fchdir, when available, to avoid calling [f]chdir().
46866
46867         fdopendir: split into its own module
46868         * lib/openat.c (fdopendir): Move...
46869         * lib/fdopendir.c: ...into new file.
46870         * modules/fdopendir: New module.
46871         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46872         * modules/openat (Depends-on): Add fdopendir.
46873         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46874         fdopendir here.
46875         * modules/savedir (Depends-on): Only need fdopendir, not full
46876         openat.
46877         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46878         * lib/openat.h (fdopendir): Drop prototype.
46879         * lib/dirent.in.h (fdopendir): Provide prototype.
46880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46881         * modules/dirent (Makefile.am): Substitute them.
46882         * MODULES.html.sh (File system functions): Mention it.
46883         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46884         * modules/fdopendir-tests: New file.
46885         * tests/test-fdopendir.c: Likewise.
46886
46887         fchdir: use more consistent macro convention
46888         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46889         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46890         REPLACE_FCHDIR, rather than relying on config.h macros.
46891         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46892         inside a single make-time REPLACE_FCHDIR block, rather than using
46893         the config.h FCHDIR_REPLACEMENT.
46894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46895         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46896         Manage fstat replacement.
46897         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46898         REPLACE_FCHDIR.
46899         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46900         (Makefile.am): Substitute REPLACE_FCHDIR.
46901         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46902         FCHDIR_REPLACEMENT.
46903         * lib/dup-safer.c (dup_safer): Likewise.
46904         * lib/dup2.c (rpl_dup2): Likewise.
46905         * lib/dup3.c (rpl_dup3): Likewise.
46906         * lib/open.c (rpl_open): Likewise.
46907
46908         fchdir: simplify error handling, and support dup3
46909         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46910         stdbool, malloc-posix, realloc-posix.
46911         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46912         (ensure_dirs_slot): Return false on allocation failure.
46913         (rpl_dup2): Delete.
46914         (_gl_register_dup): New function.
46915         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46916         (_gl_register_fd): Close fd on allocation failure.
46917         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46918         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46919         prototype.
46920         (rpl_dup2_fchdir): Delete prototype.
46921         * lib/open.c (open): Update caller.
46922         * lib/dup2.c (dup2): Track fchdir metadata.
46923         * lib/dup3.c (dup3): Likewise.
46924         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46926
46927 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46928
46929         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46930         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46931         don't pass arguments to AC_OUTPUT.
46932
46933 2009-09-02  Bruno Haible  <bruno@clisp.org>
46934
46935         * modules/mkdtemp (License): Relicense under LGPLv2+.
46936         Reported by Paolo Bonzini.
46937
46938 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46939
46940         Replace uses of obsolete autoconf macros in Jim's modules.
46941         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46942         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46943         can evoke a warning from autoconf when run with -Wobsolete
46944         enabled.  They were declared obsolete for good reasons (see
46945         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46946         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46947         should not continue using the deprecated macros.
46948         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46949         obsolete Autoconf macros with modern counterparts.
46950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46951         * m4/dos.m4 (gl_AC_DOS): Likewise.
46952         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46954         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46955         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46956         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46958         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46959         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46960         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46961         Likewise.
46962         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46963         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46964         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46965         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46966         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46967         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46968
46969 2009-09-01  Eric Blake  <ebb9@byu.net>
46970
46971         fchdir: fix off-by-one bug in previous patch
46972         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46973         (_gl_unregister_fd): Delete useless if.
46974
46975 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46976
46977         maint.mk: sort the list of syntax-check rules
46978         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46979         easier to get a sense of progress when the rules are run sequentially
46980         and take a long time.
46981
46982 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46983
46984         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46985         * modules/netinet_in: Likewise.
46986         * modules/sys_file: Likewise.
46987         * modules/sys_ioctl: Likewise.
46988         * modules/sys_select: Likewise.
46989         * modules/sys_socket: Likewise.
46990         * modules/sys_stat: Likewise.
46991         * modules/sys_time: Likewise.
46992         * modules/sys_times: Likewise.
46993         * modules/sys_utsname: Likewise.
46994         * modules/sys_wait: Likewise.
46995
46996 2009-09-01  Jim Meyering  <meyering@redhat.com>
46997
46998         fts: help ensure that return values are not ignored
46999         * lib/fts_.h (__GNUC_PREREQ): Define.
47000         (__attribute_warn_unused_result__): Define.
47001         (fts_children, fts_close, fts_open, fts_read): Declare with
47002         __attribute_warn_unused_result__.
47003
47004         fts: fts_close now fails also when closing a dir file descriptor fails
47005         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47006         and propagate to caller, along with errno.
47007
47008         announce-gen: correct formatting in --help output
47009         * build-aux/announce-gen (usage): Move the one-line description in
47010         --help output "up", to where it belongs, just after Usage:.
47011
47012 2009-08-31  Eric Blake  <ebb9@byu.net>
47013
47014         fchdir: port to mingw
47015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47016         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47017         opened, then use a substitute.
47018         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47019         replacement.
47020         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47021         (_gl_register_fd): No need to check stat if open already filters
47022         all directories.
47023         (fchdir): Fix error condition to match POSIX.
47024         * modules/fchdir (Depends-on): Add sys_stat.
47025         * doc/posix-functions/open.texi (open): Document the limitation.
47026         * modules/fchdir-tests: New file.
47027         * tests/test-fchdir.c: Likewise.
47028
47029         canonicalize: allow cross-testing from cygwin to mingw
47030         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47031         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47032         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47033         Likewise.
47034         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47035         target does not support symlinks.
47036         * tests/test-canonicalize-lgpl.sh: Likewise.
47037
47038         chown: avoid compilation warning on mingw
47039         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47040         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47041         mingw.
47042         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47043         * modules/chown (Depends-on): Add errno.
47044
47045 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47046
47047         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47048         command.
47049
47050 2009-08-31  Jim Meyering  <meyering@redhat.com>
47051
47052         canonicalize: remove useless initialization
47053         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47054         initialization of local, "end".
47055
47056 2009-08-30  Bruno Haible  <bruno@clisp.org>
47057
47058         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47059         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47060         ENOSYS.
47061
47062 2009-08-30  Bruno Haible  <bruno@clisp.org>
47063
47064         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47065         /usr/xpg4/bin/tr when it exists.
47066         * tests/test-pipe-filter-gi1.sh: Likewise.
47067
47068 2009-08-30  Bruno Haible  <bruno@clisp.org>
47069
47070         Work around deficient /usr/bin/id program on Solaris.
47071         * tests/test-file-has-acl.sh (ID): New variable.
47072         * tests/test-set-mode-acl.sh (ID): Likewise.
47073         * tests/test-copy-acl.sh (ID): Likewise.
47074         * tests/test-copy-file.sh (ID): Likewise.
47075
47076 2009-08-30  Bruno Haible  <bruno@clisp.org>
47077
47078         New module 'xstriconveh'.
47079         * lib/xstriconveh.h: New file.
47080         * lib/xstriconveh.c: New file.
47081         * modules/xstriconveh: New file.
47082
47083 2009-08-30  Bruno Haible  <bruno@clisp.org>
47084
47085         Make it easier to use mem_cd_iconveh.
47086         * lib/striconveh.h (iconveh_t): New type.
47087         (iconveh_open, iconveh_close): New declarations.
47088         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47089         with a single 'const iconveh_t *' argument.
47090         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47091         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47092         with a single 'const iconveh_t *' argument.
47093         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47094         * tests/test-striconveh.c (main): Update.
47095         * NEWS: Mention the change.
47096
47097 2009-08-30  Bruno Haible  <bruno@clisp.org>
47098
47099         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47100         problem.
47101
47102 2009-08-30  Bruno Haible  <bruno@clisp.org>
47103
47104         Work around iconv_open problem on Solaris.
47105         * lib/iconv_open-solaris.gperf: New file.
47106         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47107         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47108         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47109         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47110         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47111         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47112
47113 2009-08-29  Jim Meyering  <meyering@redhat.com>
47114
47115         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47116         * top/maint.mk (cvs-check): Remove target; it was just an alias
47117         to the better-named vc-diff-check.
47118         (maintainer-distcheck): Remove rule.  It was used only from
47119         the (alpha/beta/major) target, and all of its commands but one
47120         were coreutils-specific.
47121         (vc-dist): Remove rule.
47122         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47123         Run vc-diff-check, not vc-dist.
47124         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47125
47126 2009-08-27  Bruno Haible  <bruno@clisp.org>
47127
47128         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47129         of 0.
47130
47131 2009-08-27  Bruno Haible  <bruno@clisp.org>
47132
47133         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47134         compilers.
47135         * doc/func.texi: Document the SunPRO C bug.
47136
47137 2009-08-27  Bruno Haible  <bruno@clisp.org>
47138
47139         Fix link error on Solaris.
47140         * tests/test-parse-duration.c (xstrdup): Remove function.
47141
47142 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47143
47144         ignore-value: handle pointer types, too
47145         * lib/ignore-value.h (__attribute__): Remove definition.
47146         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47147         of a more concise and more-often effective "(void) i" statement.
47148         (ignore_ptr): New function to suppress warnings from functions that
47149         return pointers, and to make it explicit that one function doesn't
47150         handle all cases.
47151
47152 2009-08-25  Bruno Haible  <bruno@clisp.org>
47153
47154         dup2: work around a Linux bug.
47155         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47156         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47157         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47158         Reported by Simon Josefsson.
47159
47160 2009-08-25  Jim Meyering  <meyering@redhat.com>
47161
47162         libguestfs uses gnulib
47163         * users.txt: Add libguestfs.
47164
47165 2009-08-24  Eric Blake  <ebb9@byu.net>
47166
47167         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47168         * lib/pipe2.c (includes): Add binary-io.h.
47169         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47170
47171 2009-08-24  Bruno Haible  <bruno@clisp.org>
47172
47173         Tolerate declared but missing accept4 syscall.
47174         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47175         available.
47176         * lib/sys_socket.in.h (accept4): If the function is already present,
47177         override it.
47178         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47179         * modules/accept4 (Makefile.am): Compile accept4.c always.
47180         Reported by Paolo Bonzini and Eric Blake.
47181
47182 2009-08-23  Bruno Haible  <bruno@clisp.org>
47183
47184         New module 'accept4'.
47185         * lib/sys_socket.in.h (accept4): New declaration.
47186         * lib/accept4.c: New file.
47187         * m4/accept4.m4: New file.
47188         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47189         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47190         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47191         HAVE_ACCEPT4.
47192         * modules/accept4: New file.
47193         * doc/glibc-functions/accept4.texi: Mention the new module.
47194
47195 2009-08-24  Jim Meyering  <meyering@redhat.com>
47196
47197         progname: also set global program_invocation_name, when possible
47198         Before this change, a libtool-enabled program that calls glibc's
47199         error function would report the program name as
47200         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47201         * modules/progname (configure.ac): Check for a declaration of
47202         program_invocation_name.
47203         * lib/progname.c:  Include <errno.h>.
47204         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47205         Set program_invocation_name.
47206
47207 2009-08-23  Bruno Haible  <bruno@clisp.org>
47208
47209         * lib/dup3.c: Include <string.h>.
47210
47211 2009-08-23  Bruno Haible  <bruno@clisp.org>
47212
47213         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47214         * lib/pipe2.c (pipe2): Likewise.
47215         Suggested by Eric Blake.
47216
47217 2009-08-23  Bruno Haible  <bruno@clisp.org>
47218
47219         Tolerate declared but missing dup3 syscall.
47220         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47221         * lib/unistd.in.h (dup3): If the function is already present,
47222         override it.
47223         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47224         * modules/dup3 (Makefile.am): Compile dup3.c always.
47225         Reported by Paolo Bonzini.
47226
47227 2009-08-23  Bruno Haible  <bruno@clisp.org>
47228
47229         Tolerate declared but missing pipe2 syscall.
47230         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47231         available.
47232         * lib/unistd.in.h (pipe2): If the function is already present,
47233         override it.
47234         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47235         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47236         Reported by Paolo Bonzini.
47237
47238 2009-08-23  Bruno Haible  <bruno@clisp.org>
47239
47240         * lib/pipe2.c (pipe2): Move #ifs inside function.
47241
47242 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47243
47244         quotearg: document limitations of quote_these_too
47245         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47246         those limitations are created.
47247         * lib/quotearg.h (set_char_quoting): Document that digits and
47248         letters that are special after backslash are not permitted.
47249         (quotearg_char): Cross-reference set_char_quoting documentation.
47250
47251 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47252
47253         quotearg: implement custom_quoting_style
47254         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47255         right_quote fields.
47256         (set_custom_quoting): New public function.
47257         (quotearg_buffer_restyled): Add left_quote and right_quote
47258         arguments, handle them very much like locale quoting, and update
47259         all uses.
47260         (quotearg_n_custom): New public function.
47261         (quotearg_n_custom_mem): New public function.
47262         (quotearg_custom): New public function.
47263         (quotearg_custom_mem): New public function.
47264         * lib/quotearg.h: Prototype and document new public functions.
47265         (enum quoting_style): For escape_quoting_style and
47266         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47267         ignored even though they're otherwise like c_quoting_style.
47268         Add custom_quoting_style member and document with comparison to
47269         clocale_quoting_style.
47270         * tests/test-quotearg.c (custom_quotes): New array.
47271         (custom_results): New array.
47272         (main): Extend to test custom quoting.
47273
47274 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47275
47276         quotearg: fix right quote escaping when it's in quote_these_too
47277         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47278         quote, be sure to prepend only one backslash.
47279         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47280         (main): Test it.
47281
47282 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47283
47284         quotearg-tests: test escaping of embedded locale quotes
47285         * tests/test-quotearg.c (struct result_strings): Add member for
47286         new input.
47287         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47288         (inputs): Add new input.
47289         (results_g): Add expected results.
47290         (flag_results): Likewise.
47291         (locale_results): Likewise.
47292         (compare_strings): Check those.
47293
47294 2009-08-23  Bruno Haible  <bruno@clisp.org>
47295
47296         Tests for module 'dup3'.
47297         * modules/dup3-tests: New file.
47298         * tests/test-dup3.c: New file.
47299
47300         New module 'dup3'.
47301         * lib/unistd.in.h (dup3): New declaration.
47302         * lib/dup3.c: New file.
47303         * m4/dup3.m4: New file.
47304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47305         HAVE_DUP3.
47306         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47307         * modules/dup3: New file.
47308         * doc/glibc-functions/dup3.texi: Mention the new module.
47309
47310 2009-08-23  Bruno Haible  <bruno@clisp.org>
47311
47312         Tweak the dup2 test.
47313         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47314         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47315         the test file is still empty. Fix argument order of lseek.
47316
47317 2009-08-23  Bruno Haible  <bruno@clisp.org>
47318
47319         Avoid test link errors when the modules getopt-gnu, gettext are used.
47320         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47322
47323 2009-08-23  Bruno Haible  <bruno@clisp.org>
47324
47325         Fix getdtablesize() on mingw.
47326         * lib/getdtablesize.c (getdtablesize): Implement differently.
47327         * lib/unistd.in.h (getdtablesize): Improve comment.
47328
47329 2009-08-23  Bruno Haible  <bruno@clisp.org>
47330
47331         New module 'mkostemp'.
47332         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47333         * lib/stdlib.in.h (mksotemp): New declaration.
47334         * lib/mkostemp.c: New file, from glibc with modifications.
47335         * lib/tempname.h (GT_FILE): Remove outdated comment.
47336         (gen_tempname): Add flags argument.
47337         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47338         (__GT_FILE): Map to 1.
47339         (small_open, large_open): Remove macros.
47340         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47341         * lib/mkstemp.c (mkstemp): Update.
47342         * lib/mkdtemp.c (mkdtemp): Likewise.
47343         * m4/mkostemp.m4: New file.
47344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47345         HAVE_MKOSTEMP.
47346         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47347         HAVE_MKOSTEMP.
47348         * modules/mkostemp: New file, based on modules/mkstemp.
47349         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47350         * NEWS: Mention the change.
47351
47352 2009-08-23  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47355         Reported by Eric Blake.
47356
47357 2009-08-23  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47360         Reported by Eric Blake.
47361
47362 2009-08-23  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47365         * modules/pipe2 (Depends-on): Likewise.
47366
47367 2009-08-23  Eric Blake  <ebb9@byu.net>
47368
47369         fcntl-h: add O_TTY_INIT support
47370         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47371         * tests/test-fcntl-h.c (o): Test it.
47372         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47373
47374         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47375         * modules/fcntl: Move <fcntl.h> header replacement...
47376         * modules/fcntl-h: ...to new name, so as not to collide with
47377         like-named function.
47378         * tests/test-fcntl.c: Rename...
47379         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47380         * modules/fcntl-tests: Rename...
47381         * modules/fcntl-h-tests: ...to this.  Update test file name.
47382         * modules/chdir-long (Depends-on): Update clients.
47383         * modules/chdir-safer (Depends-on): Likewise.
47384         * modules/fcntl-safer (Depends-on): Likewise.
47385         * modules/fts (Depends-on): Likewise.
47386         * modules/mkancesdirs (Depends-on): Likewise.
47387         * modules/mkdir-p (Depends-on): Likewise.
47388         * modules/open (Depends-on): Likewise.
47389         * modules/savewd (Depends-on): Likewise.
47390         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47391         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47392
47393 2009-08-22  Bruno Haible  <bruno@clisp.org>
47394
47395         * modules/binary-io (License): Relicense under LGPL.
47396         * modules/pipe2 (License): Likewise.
47397
47398 2009-08-22  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47401         return value.
47402         * lib/pipe-filter-gi.c (filter_init): Likewise.
47403         Reported by Eric Blake.
47404
47405 2009-08-22  Bruno Haible  <bruno@clisp.org>
47406
47407         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47408         * modules/pipe (Depends-on): Add pipe2.
47409
47410 2009-08-22  Bruno Haible  <bruno@clisp.org>
47411
47412         Tests for module 'pipe2'.
47413         * modules/pipe2-tests: New file.
47414         * tests/test-pipe2.c: New file.
47415
47416         New module 'pipe2'.
47417         * lib/unistd.in.h (pipe2): New declaration.
47418         * lib/pipe2.c: New file.
47419         * m4/pipe2.m4: New file.
47420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47421         HAVE_PIPE2.
47422         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47423         * modules/pipe2: New file.
47424         * doc/glibc-functions/pipe2.texi: Mention the new module.
47425
47426 2009-08-22  Bruno Haible  <bruno@clisp.org>
47427
47428         Reference some new glibc functions.
47429         * doc/glibc-functions/accept4.texi: New file.
47430         * doc/glibc-functions/dup3.texi: New file.
47431         * doc/glibc-functions/mkostemp.texi: New file.
47432         * doc/glibc-functions/pipe2.texi: New file.
47433         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47434         (Glibc sys/socket.h): Refer to accept4.
47435         (Glibc unistd.h): Refer to dup3, pipe2.
47436         Reported by Eric Blake.
47437
47438 2009-08-22  Jim Meyering  <meyering@redhat.com>
47439             Bruno Haible  <bruno@clisp.org>
47440
47441         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47442         This makes it so packages using automake-1.11's silent-rules option
47443         can print e.g., a single "GEN    configmake.h" line, rather than
47444         the 30+ statements that perform the job.  If you want to see the
47445         actual commands, you can still run "make V=1".
47446         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47447         so that make output is abbreviated when those variables are defined
47448         appropriately.
47449         * modules/argz: Likewise.
47450         * modules/arpa_inet: Likewise.
47451         * modules/byteswap: Likewise.
47452         * modules/configmake: Likewise.
47453         * modules/dirent: Likewise.
47454         * modules/errno: Likewise.
47455         * modules/fcntl: Likewise.
47456         * modules/float: Likewise.
47457         * modules/fnmatch: Likewise.
47458         * modules/getopt-posix: Likewise.
47459         * modules/glob: Likewise.
47460         * modules/iconv_open: Likewise.
47461         * modules/inttypes: Likewise.
47462         * modules/localcharset: Likewise.
47463         * modules/locale: Likewise.
47464         * modules/math: Likewise.
47465         * modules/netdb: Likewise.
47466         * modules/netinet_in: Likewise.
47467         * modules/poll: Likewise.
47468         * modules/posix_spawnp-tests: Likewise.
47469         * modules/sched: Likewise.
47470         * modules/search: Likewise.
47471         * modules/selinux-h: Likewise.
47472         * modules/signal: Likewise.
47473         * modules/spawn: Likewise.
47474         * modules/stdarg: Likewise.
47475         * modules/stdbool: Likewise.
47476         * modules/stddef: Likewise.
47477         * modules/stdint: Likewise.
47478         * modules/stdio: Likewise.
47479         * modules/stdlib: Likewise.
47480         * modules/string: Likewise.
47481         * modules/strings: Likewise.
47482         * modules/sys_file: Likewise.
47483         * modules/sys_ioctl: Likewise.
47484         * modules/sys_select: Likewise.
47485         * modules/sys_socket: Likewise.
47486         * modules/sys_stat: Likewise.
47487         * modules/sys_time: Likewise.
47488         * modules/sys_times: Likewise.
47489         * modules/sys_utsname: Likewise.
47490         * modules/sys_wait: Likewise.
47491         * modules/sysexits: Likewise.
47492         * modules/time: Likewise.
47493         * modules/unistd: Likewise.
47494         * modules/wchar: Likewise.
47495         * modules/wctype: Likewise.
47496
47497 2009-08-22  Jim Meyering  <meyering@redhat.com>
47498
47499         announce-gen: detect write failure
47500         * build-aux/announce-gen: Add Coda at end.
47501         Remove equivalent-but-more-verbose block at top.
47502
47503 2009-08-19  Akim Demaille  <demaille@gostai.com>
47504
47505         bootstrap: --help to stdout.
47506         * bootstrap (usage): Don't send --help to stderr.
47507         Use a here doc instead of a long string.
47508
47509 2009-08-21  Eric Blake  <ebb9@byu.net>
47510
47511         test-popen-safer: split from test-popen
47512         * tests/test-popen.c (main): Move...
47513         * tests/test-popen.h: ...into new file.
47514         * tests/test-popen-safer2.c: New file.
47515         * modules/popen-tests (Files): Add test-popen.h.
47516         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47517         Suggested by Bruno Haible.
47518
47519         test-fcntl-safer: split from test-open
47520         * tests/test-open.c (main): Move...
47521         * tests/test-open.h: ...into new file.
47522         * tests/test-fcntl-safer.c: New file.
47523         * modules/open-tests (Files): Add test-open.h.
47524         * modules/fcntl-safer-tests: New file.
47525         Suggested by Bruno Haible.
47526
47527         test-fopen-safer: split from test-fopen
47528         * tests/test-fopen.c (main): Move...
47529         * tests/test-fopen.h: ...into new file.
47530         * tests/test-fopen-safer.c: New file.
47531         * modules/fopen-tests (Files): Add test-fopen.h.
47532         * modules/fopen-safer-tests: New file.
47533         Suggested by Bruno Haible.
47534
47535 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47536
47537         popen-safer: test O_CLOEXEC at run-time.
47538         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47539
47540 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47541
47542         fcntl: move more flags to the header
47543         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47544         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47545         * lib/fcntl.in.h: Do both things here.
47546
47547 2009-08-21  Jim Meyering  <meyering@redhat.com>
47548
47549         consistently remove $@-t before redirecting to it
47550         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47551         * modules/alloca-opt: Likewise.
47552         * modules/byteswap: Likewise.
47553         * modules/fnmatch: Likewise.
47554         * modules/getopt-posix: Likewise.
47555         * modules/glob: Likewise.
47556         * modules/poll: Likewise.
47557         * modules/posix_spawnp-tests: Likewise.
47558         * modules/sys_socket: Likewise.
47559         * modules/sysexits: Likewise.
47560
47561 2009-08-21  Eric Blake  <ebb9@byu.net>
47562
47563         popen: simplify access to original popen
47564         * lib/popen.c (rpl_popen): No need to worry about popen being a
47565         macro.
47566         Reported by Bruno Haible.
47567
47568 2009-08-20  Eric Blake  <ebb9@byu.net>
47569
47570         build: avoid some compiler warnings
47571         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47572         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47573         type.
47574         (new_exclude_segment, excluded_file_pattern_p)
47575         (excluded_file_name_p): Reduce scope.
47576         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47577         old-style declaration.
47578
47579 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47580
47581         * tests/test-exclude1.sh: Handle Windows EOL.
47582         * tests/test-exclude2.sh: Likewise.
47583         * tests/test-exclude3.sh: Likewise.
47584         * tests/test-exclude4.sh: Likewise.
47585         * tests/test-exclude5.sh: Likewise.
47586         * tests/test-exclude6.sh: Likewise.
47587         * tests/test-exclude7.sh: Likewise.
47588
47589 2009-08-19  Akim Demaille  <demaille@gostai.com>
47590
47591         bootstrap: find sha1sum when named gsha1sum.
47592         * bootstrap (find_tool): New.
47593         ($SHA1SUM): New.
47594         Use it.
47595
47596 2009-08-20  Jim Meyering  <meyering@redhat.com>
47597
47598         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47599         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47600         expression that converts "." in a file name to "\." in the resulting
47601         regexp.  Start with a dummy statement, so that prior shell variable
47602         definitions are expanded portably.  Reported by Simon Josefsson.
47603
47604 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47605
47606         Fix polling for writeability of a screen buffer.
47607         * lib/poll.c: Distinguish input and screen buffers for the
47608         Win32 implementation.
47609         * lib/select.c: Likewise.
47610
47611 2009-08-19  Eric Blake  <ebb9@byu.net>
47612
47613         popen-safer: prevent popen from clobbering std descriptors
47614         * modules/popen-safer: New file.
47615         * lib/popen-safer.c: Likewise.
47616         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47617         * lib/stdio--.h (popen): Provide override.
47618         * lib/stdio-safer.h (popen_safer): Provide declaration.
47619         * tests/test-popen.c (includes): Partially test this.
47620         * modules/popen-safer-tests: New file, for more tests.
47621         * tests/test-popen-safer.c: Likewise.
47622         * MODULES.html.sh (file stream based Input/Output): Mention it.
47623
47624         tests: test some of the *-safer modules
47625         * modules/fopen-safer (Depends-on): Add fopen.
47626         * modules/fcntl-safer (Depends-on): Add fcntl.
47627         * modules/stdlib-safer (Depends-on): Add stdlib.
47628         (configure.ac): Set indicator.
47629         * modules/unistd-safer (configure.ac): Likewise.
47630         * modules/tmpfile-safer (configure.ac): Likewise.
47631         (Depends-on): Add tmpfile.
47632         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47633         active.
47634         * tests/test-fopen.c (includes): Test safer versions when they are
47635         in use.
47636         * tests/test-open.c (includes): Likewise.
47637
47638         popen: fix cygwin 1.5 bug when stdin closed
47639         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47640         * modules/popen: New file.
47641         * modules/popen-tests: Likewise.
47642         * tests/test-popen.c: Likewise.
47643         * m4/popen.m4: Likewise.
47644         * lib/popen.c: Likewise.
47645         * lib/stdio.in.h (popen): New declaration.
47646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47647         * modules/stdio (Makefile.am): Likewise.
47648         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47649
47650 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47651
47652         maint.mk: give full control over update-copyright exclusions
47653         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47654         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47655         (update-copyright): Don't force inclusion of top-level
47656         ChangeLog.  Don't force exclusion of all COPYING files, but make
47657         them the default exclusion instead.
47658
47659 2009-08-16  Bruno Haible  <bruno@clisp.org>
47660
47661         Fix test failures on Solaris 10.
47662         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47663         tests when Solaris iconv() is used.
47664         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47665         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47666         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47667         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47668         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47669
47670 2009-08-16  Bruno Haible  <bruno@clisp.org>
47671
47672         Fix test failures on Solaris 10.
47673         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47674         'tr' program and pass it as first argument.
47675         * tests/test-pipe-filter-gi1.sh: Likewise.
47676         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47677         program as first argument.
47678         * tests/test-pipe-filter-gi1.c (main): Likewise.
47679
47680 2009-08-16  Eric Blake  <ebb9@byu.net>
47681
47682         fpurge: fix previous commits
47683         * modules/fpurge (Makefile.am): Make replacement conditional,
47684         partially reverting 2007-04-29 change; missed in previous
47685         attempt.
47686         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47687         is missing.
47688
47689 2009-08-16  Bruno Haible  <bruno@clisp.org>
47690
47691         Clarify fpurge's effect on the file position.
47692         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47693         * tests/test-fpurge.c (main): Make a second pass for checking the file
47694         position.
47695
47696 2009-08-16  Bruno Haible  <bruno@clisp.org>
47697
47698         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47699         declaration of fpurge is missing.
47700         * tests/test-fpurge.c (main): Check that the file has not more contents
47701         than expected. Close the file before removing it.
47702
47703 2009-08-15  Eric Blake  <ebb9@byu.net>
47704
47705         fpurge: don't wrap working cygwin implementation
47706         * lib/fpurge.c (fpurge): Fix comment typo.
47707         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47708         1.7 to avoid replacement.
47709         * tests/test-fpurge.c (main): Enhance test.
47710
47711 2009-08-15  Eric Blake  <ebb9@byu.net>
47712         and Jim Meyering  <meyering@redhat.com>
47713
47714         test-update-copyright: skip if perl is insufficient
47715         * tests/test-update-copyright.sh: Failure to run maintainer tool
47716         should not cause testsuite failure on cygwin 1.5.
47717
47718 2009-08-14  Eric Blake  <ebb9@byu.net>
47719
47720         doc: mention more functions added in cygwin 1.7.0
47721         * doc/posix-headers/limits.texi (limits.h): Update for recent
47722         cygwin additions.
47723         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47724         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47725         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47726         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47727         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47728
47729 2009-08-14  Eric Blake  <ebb9@byu.net>
47730
47731         maint.mk: simplify update-copyright rule
47732         * top/maint.mk (update-copyright-local): Delete, and document how
47733         to do it in cfg.mk instead.
47734         (update-copyright-exclude-regexp): Delete, and document how to do
47735         it in .x-update-copyright instead.
47736         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47737         exclude ChangeLog.
47738
47739 2009-08-14  Bruno Haible  <bruno@clisp.org>
47740
47741         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47742
47743 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47744
47745         maint.mk: support update-copyright-env
47746         * top/maint.mk (update-copyright-env): Define place-holder.
47747         (update-copyright): Expand $(update-copyright-env) before
47748         invoking update-copyright.
47749
47750 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47751
47752         update-copyright: implement forced reformatting
47753         * build-aux/update-copyright: Implement and document
47754         UPDATE_COPYRIGHT_FORCE.
47755         * tests/test-update-copyright.sh: Test it.
47756
47757 2009-08-14  Eric Blake  <ebb9@byu.net>
47758         and Bruno Haible  <bruno@clisp.org>
47759
47760         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47761         * tests/test-locale.c: Revert previous patch related to NULL.
47762         * tests/test-stdio.c: Likewise.
47763         * tests/test-stdlib.c: Likewise.
47764         * tests/test-string.c: Likewise.
47765         * tests/test-unistd.c: Likewise.
47766         * modules/time-tests (Depends-on): Add verify.
47767         * modules/wchar-tests (Depends-on): Likewise.
47768         * tests/test-time.c: Test for NULL compliance.
47769         * tests/test-wchar.c: Likewise.
47770         * modules/locale (Depends-on): Add stddef.
47771         * modules/stdio (Depends-on): Likewise.
47772         * modules/stdlib (Depends-on): Likewise.
47773         * modules/string (Depends-on): Likewise.
47774         * modules/time (Depends-on): Likewise.
47775         * modules/unistd (Depends-on): Likewise.
47776         * modules/wchar (Depends-on): Likewise.
47777         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47778         * lib/stdlib.in.h (includes): Likewise.
47779         * lib/string.in.h (includes): Likewise.
47780         * lib/time.in.h (includes): Likewise.
47781         * lib/unistd.in.h (includes): Likewise.
47782         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47783         replaced.
47784         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47785         * m4/stddef_h.m4: New file.
47786         * modules/stddef: Likewise.
47787         * lib/stddef.in.h: Likewise.
47788         * modules/stddef-tests: Likewise.
47789         * tests/test-stddef.c: Likewise.
47790         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47791         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47792         * doc/posix-headers/locale.texi (locale.h): Likewise.
47793         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47794         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47795         * doc/posix-headers/string.texi (string.h): Likewise.
47796         * doc/posix-headers/time.texi (time.h): Likewise.
47797         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47798         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47799
47800 2009-08-14  Eric Blake  <ebb9@byu.net>
47801
47802         doc: improve git diff of texinfo files
47803         * .gitattributes: Add rule for *.texi files, with hint on how to
47804         use it.
47805         Copied from m4, and based on a report by Bruno Haible.
47806
47807 2009-08-14  Bruno Haible  <bruno@clisp.org>
47808
47809         Disable multithread support by default on Cygwin 1.5.x for real.
47810         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47811
47812 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47813
47814         update-copyright: much ado about intervals
47815         * build-aux/update-copyright: Implement and document
47816         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47817         of copyright year intervals.
47818         Also, document UPDATE_COPYRIGHT_YEAR.
47819         * tests/test-update-copyright.sh: Test it.
47820
47821         update-copyright: convert 2-digit to 4-digit years
47822         * build-aux/update-copyright: Implement and document.
47823         * tests/test-update-copyright.sh: Update.
47824
47825 2009-08-14  Jim Meyering  <meyering@redhat.com>
47826
47827         test-exclude: avoid coreutils "make check" failure
47828         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47829         just as in test-argmatch.c.
47830
47831 2009-08-13  Eric Blake  <ebb9@byu.net>
47832
47833         test-dup2: fix bad assumption
47834         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47835         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47836
47837         test-version-etc: fix CRLF portability issue
47838         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47839         recognize \r.
47840         * tests/test-argp-version-etc-1.sh: Likewise.
47841
47842         getopt: update client modules
47843         * modules/argp (Depends-on): Use getopt-gnu.
47844         * modules/git-merge-changelog (Depends-on): Likewise.
47845         * modules/long-options (Depends-on): Likewise.
47846         * modules/xstrtol (Depends-on): Likewise.
47847
47848 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47849
47850         * tests/test-version-etc.sh: Don't fail on different
47851         project/version.  Don't fail on CRLF differences.  Rewrite to use
47852         multiple -e instead of multiple sed forks, suggested by Eric Blake
47853         <ebb9@byu.net>.
47854         * tests/test-argp-version-etc-1.sh: Likewise.
47855
47856 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47857
47858         * tests/test-version-etc.sh: Don't fail on different
47859         project/version.
47860
47861 2009-08-12  Bruno Haible  <bruno@clisp.org>
47862
47863         Tests for modules 'getopt-posix', 'getopt-gnu'.
47864         * modules/getopt-posix-tests: New file.
47865         * tests/test-getopt.c: New file.
47866         * tests/test-getopt.h: New file.
47867         * tests/test-getopt_long.h: New file.
47868
47869         New modules 'getopt-posix', 'getopt-gnu'.
47870         * modules/getopt-gnu: New file, renamed from modules/getopt.
47871         * modules/getopt-posix: New file.
47872         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47873         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47874         (gl_GETOPT): Remove macro.
47875         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47876         Disable the test against BSD systems that declare optreset. Test
47877         against mingw bug. Test against lack of support of optional arguments
47878         on many platforms.
47879         * doc/glibc-headers/getopt.texi: Update module name and list of
47880         relevant platforms.
47881         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47882         'getopt-gnu' and more portability problems.
47883         * NEWS: Mention the changes.
47884
47885 2009-08-12  Bruno Haible  <bruno@clisp.org>
47886
47887         Ensure that optarg etc. get declared by <unistd.h>.
47888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47889         AC_USE_SYSTEM_EXTENSIONS.
47890         * modules/getopt (Depends-on): Add 'extensions'.
47891
47892 2009-08-12  Bruno Haible  <bruno@clisp.org>
47893
47894         Avoid test link errors.
47895         * modules/pipe-filter-ii-tests (Makefile.am): Define
47896         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47897         * modules/pipe-filter-gi-tests (Makefile.am): Define
47898         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47900
47901 2009-08-12  Bruno Haible  <bruno@clisp.org>
47902
47903         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47904         gl_GETOPT_SUBSTITUTE before.
47905         (gl_GETOPT): Use it.
47906         * m4/argp.m4 (gl_ARGP): Update.
47907         Reported by Sergey Poznyakoff.
47908
47909         * m4/getopt.m4: Reorder macros.
47910         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47911         (gl_GETOPT_SUBSTITUTE): Remove macro.
47912
47913 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47914
47915         Minor improvement in gitlog-to-changelog
47916
47917         * build-aux/gitlog-to-changelog: New option `--format' makes
47918         output format string configurable.
47919
47920 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47921
47922         Optimize exclude: use hash tables for non-wildcard patterns.
47923
47924         * lib/exclude.c: Include hash.h and mbuiter.h
47925         (struct exclude_pattern, exclude_segment): New data types.
47926         (struct exclude): Rewrite.
47927         (fnmatch_pattern_has_wildcards): New function.
47928         (new_exclude_segment, free_exclude_segment): New functions.
47929         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47930         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47931         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47932         * modules/exclude: Depend on hash and mbuiter.
47933
47934         * modules/exclude-tests: New file.
47935         * tests/test-exclude.c: New file.
47936         * tests/test-exclude1.sh: New file.
47937         * tests/test-exclude2.sh: New file.
47938         * tests/test-exclude3.sh: New file.
47939         * tests/test-exclude4.sh: New file.
47940         * tests/test-exclude5.sh: New file.
47941         * tests/test-exclude6.sh: New file.
47942         * tests/test-exclude7.sh: New file.
47943
47944 2009-08-12  Bruno Haible  <bruno@clisp.org>
47945
47946         Ensure that getopt() gets declared by <unistd.h>.
47947         * lib/unistd.in.h: Conditionally include getopt.h.
47948         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47949         Set GNULIB_UNISTD_H_GETOPT.
47950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47951         GNULIB_UNISTD_H_GETOPT.
47952         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47953
47954 2009-08-12  Bruno Haible  <bruno@clisp.org>
47955
47956         Clarify logic.
47957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47958         gl_replace_getopt instead of GETOPT_H.
47959
47960 2009-08-12  Bruno Haible  <bruno@clisp.org>
47961
47962         * m4/getopt.m4: Add comments.
47963
47964 2009-08-12  Bruno Haible  <bruno@clisp.org>
47965
47966         Disable multithread support by default on Cygwin 1.5.x.
47967         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47968         set gl_use_threads=no if not specified otherwise.
47969
47970 2009-08-11  Bruno Haible  <bruno@clisp.org>
47971
47972         Avoid compilation error on NetBSD 5.0.
47973         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47974         * tests/test-stdio.c: Likewise.
47975         * tests/test-stdlib.c: Likewise.
47976         * tests/test-string.c: Likewise.
47977         * tests/test-unistd.c: Likewise.
47978         Reported by Greg Troxel <gdt@ir.bbn.com>
47979         at <https://savannah.gnu.org/support/?106973>.
47980
47981 2009-08-11  Bruno Haible  <bruno@clisp.org>
47982
47983         * modules/dup2-tests (Depends-on): Remove close.
47984
47985         Undo 2009-07-19 commit.
47986         * modules/acl-tests (Depends-on): Remove close.
47987         * modules/binary-io-tests (Depends-on): Likewise.
47988         * modules/closein-tests (Depends-on): Likewise.
47989         * modules/flock-tests (Depends-on): Likewise.
47990         * modules/fsync-tests (Depends-on): Likewise.
47991         * modules/lseek-tests (Depends-on): Likewise.
47992         * modules/pipe-tests (Depends-on): Likewise.
47993         * modules/posix_spawn-tests (Depends-on): Likewise.
47994         * modules/posix_spawnp-tests (Depends-on): Likewise.
47995         * modules/stat-time-tests (Depends-on): Likewise.
47996         * modules/yesno-tests (Depends-on): Likewise.
47997
47998 2009-08-10  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48001
48002 2009-08-10  Bruno Haible  <bruno@clisp.org>
48003
48004         Fix a gcc warning.
48005         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48006
48007 2009-08-10  Bruno Haible  <bruno@clisp.org>
48008
48009         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48010         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48011         not only the first time.
48012         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48013         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48014         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48015         is 1, not only the the first time.
48016
48017 2009-08-10  Bruno Haible  <bruno@clisp.org>
48018
48019         Make it possible to use module 'gethostname' without module 'close'.
48020         * lib/unistd.in.h (close): Evoke a link error only if
48021         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48023         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48024         * modules/unistd (Makefile.am): Substitute
48025         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48026         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48027         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48028         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48029         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48030         * modules/sys_ioctl (Makefile.am): Substitute
48031         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48032         * modules/socket (configure.ac): On native Windows, set
48033         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48035         Reported by Sam Steingold <sds@gnu.org>.
48036
48037 2009-08-10  Bruno Haible  <bruno@clisp.org>
48038
48039         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48040         * modules/ioctl (configure.ac): Likewise.
48041
48042 2009-08-10  Bruno Haible  <bruno@clisp.org>
48043
48044         Avoid collision between gnulib wrapper and libintl wrapper.
48045         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48046         already defined in intl/printf.c.
48047         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48048         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48049
48050 2009-08-09  Bruno Haible  <bruno@clisp.org>
48051
48052         Make <sys/select.h> really self-contained, also on Solaris 10.
48053         * lib/sys_select.in.h: Include <string.h>.
48054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48055         Solaris 10 problem.
48056         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48057         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48058         Reported by Jim Meyering.
48059
48060 2009-08-09  Bruno Haible  <bruno@clisp.org>
48061
48062         Avoid warnings from 'aclocal' that are due to a use of macro name
48063         AM_XGETTEXT_OPTION that is not defined in automake.
48064         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48065         automake.
48066         * modules/error (configure.ac): Likewise.
48067         * modules/propername (configure.ac): Likewise.
48068         * modules/vasprintf (configure.ac): Likewise.
48069         * modules/verror (configure.ac): Likewise.
48070         * modules/xprintf (configure.ac): Likewise.
48071         * modules/xvasprintf (configure.ac): Likewise.
48072
48073 2009-08-08  Bruno Haible  <bruno@clisp.org>
48074
48075         Avoid compilation error in C++ mode.
48076         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48077         Reported by Sam Steingold <sds@gnu.org>.
48078
48079 2009-08-08  Bruno Haible  <bruno@clisp.org>
48080
48081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48082         for the various Unix platforms.
48083         * doc/posix-headers/limits.texi: Update platforms list regarding
48084         HOST_NAME_MAX.
48085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48086
48087 2009-08-07  Jim Meyering  <meyering@redhat.com>
48088
48089         selinux-at: fix typo in a comment
48090         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48091         Spotted by Paolo Bonzini.
48092
48093         selinux-at: remove redundant m4 code, add documentation
48094         * modules/selinux-at (configure.ac): Remove redundant code.
48095         LIB_SELINUX is already set via the dependent module, selinux-h.
48096         (Include): Add quotes around selinux-at.h.
48097         * lib/selinux-at.h: Add documentation.
48098         Reported by Bruno Haible in
48099         http://marc.info/?l=gnulib-bug&m=124958988300749
48100
48101 2009-08-07  Bruno Haible  <bruno@clisp.org>
48102
48103         Avoid link error on MacOS X 10.3 and 10.4.
48104         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48105         on non-ELF systems.
48106         * lib/argp-pv.c (argp_program_version): Likewise.
48107         Reported by Simon Josefsson.
48108
48109 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48110
48111         * tests/test-version-etc.sh: Use $EXEEXT.
48112
48113 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48114
48115         update-copyright: update documentation to point to maint.mk
48116         * build-aux/update-copyright: Here.
48117
48118 2009-08-06  Jim Meyering  <meyering@redhat.com>
48119
48120         maint.mk: support update-copyright-local
48121         * top/maint.mk (update-copyright-local): Define place-holder.
48122         (update-copyright): Depend on $(update-copyright-local).
48123
48124 2009-08-06  Jim Meyering  <meyering@redhat.com>
48125
48126         selinux-at: new module
48127         Initially written for coreutils, this module will soon be
48128         used by findutils, too.
48129         * MODULES.html.sh [Misc]: Add selinux-at.
48130         * lib/selinux-at.h: New file, from coreutils.
48131         * lib/selinux-at.c: Likewise.
48132         * modules/selinux-at: Likewise.
48133         (License): Change from LGPL to GPL, since it depends
48134         on the GPL'd openat module.
48135
48136         doc: update README
48137         * README: Remove references to cogito.
48138         Remove cvs-repo-updating instructions from 2007.
48139         Don't imply that CVS is better if you have limited disk space.
48140
48141 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48142
48143         update-copyright: support C-style comments
48144         * build-aux/update-copyright: Implement and document.
48145         * tests/test-update-copyright.sh: Test.
48146
48147 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48148
48149         update-copyright: support omitted "(C)"
48150         * build-aux/update-copyright: Implement and document.  Also,
48151         allow variable whitespace before "(C)".
48152         * tests/test-update-copyright.sh: Test.
48153
48154 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48155
48156         update-copyright: don't trip on non-FSF copyright statements
48157         * build-aux/update-copyright: Fix so that the first correctly
48158         formatted FSF copyright statement is recognized no matter what
48159         appears before it.  Update documentation.
48160         * tests/test-update-copyright.sh: Test that.
48161
48162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48163
48164         update-copyright: clean up code a little
48165         * build-aux/update-copyright: Append "_re" to the name of any
48166         variable holding a regular expression.
48167         Replace "old" and "new" with "stmt" in variable names.
48168         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48169         handled correctly.
48170         Format code more consistently.
48171
48172 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48173
48174         update-copyright-tests: improve portability
48175         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48176         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48177
48178 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48179
48180         update-copyright: support @copyright{} and &copy;
48181         * build-aux/update-copyright: Implement and document.
48182         * tests/test-update-copyright.sh: Test.
48183
48184 2009-08-04  Jim Meyering  <meyering@redhat.com>
48185
48186         update-copyright-tests: correctly test EOL=\r\n handling
48187         * tests/test-update-copyright.sh: Put \r at the end of some lines
48188         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48189
48190         maint.mk: make update-copyright exclusion list more configurable
48191         * top/maint.mk (update-copyright): Default to excluding COPYING,
48192         but allow an override, in case someone does want to update that file.
48193
48194         maint.mk: don't update copyright date in COPYING
48195         * top/maint.mk (update-copyright): Exclude COPYING.
48196
48197         maint.mk: add a copyright-updating rule
48198         * top/maint.mk (update-copyright): New rule.
48199         Derived from coreutils/Makefile.am.
48200
48201         update-copyright: rename some variables
48202         * build-aux/update-copyright: Rename a few variables for clarity.
48203         Tweak syntax.  List Joel E. Denny as coauthor.
48204
48205 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48206
48207         update-copyright: fix bug for 2-digit last year and add tests
48208         * build-aux/update-copyright: Fix bug.
48209         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48210         specified.
48211         * modules/update-copyright-tests: New
48212         * tests/test-update-copyright.sh: New.
48213
48214 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48215
48216         update-copyright: handle leading tabs in line prefix
48217         * build-aux/update-copyright: Count leading tabs as 8 spaces
48218         when computing margin.  This helps with the formatting of
48219         ChangeLogs, for example.
48220         Fix documentation a little.
48221
48222 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48223
48224         update-copyright: support EOL=\r\n
48225         * build-aux/update-copyright: Implement that.
48226
48227 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48228
48229         update-copyright: automatically format copyright statements
48230         * build-aux/update-copyright: Implement that.
48231         Also, be a little more predictable and safer by always failing
48232         when the full copyright format is not perfectly recognized as an
48233         unbroken whole.  Discussed at
48234         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48235         Rewrite documentation.
48236
48237 2009-08-03  Bruno Haible  <bruno@clisp.org>
48238
48239         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48240
48241 2009-08-02  Bruno Haible  <bruno@clisp.org>
48242
48243         Tests for module 'uname'.
48244         * modules/uname-tests: New file.
48245         * tests/test-uname.c: New file.
48246
48247         New module 'uname'.
48248         * lib/uname.c: New file.
48249         * m4/uname.m4: New file.
48250         * modules/uname: New file.
48251         * doc/posix-functions/uname.texi: Mention the new module.
48252
48253 2009-08-02  Bruno Haible  <bruno@clisp.org>
48254
48255         Tests for module 'sys_utsname'.
48256         * modules/sys_utsname-tests: New file.
48257         * tests/test-sys_utsname.c: New file.
48258
48259         New module 'sys_utsname'.
48260         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48261         * m4/sys_utsname_h.m4: New file.
48262         * modules/sys_utsname: New file.
48263         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48264
48265 2009-08-02  Bruno Haible  <bruno@clisp.org>
48266
48267         Implicitly initialize the sockets library.
48268         * lib/gethostname.c: Include sockets.h.
48269         (rpl_gethostname): Invoke gl_sockets_startup.
48270         * lib/socket.c: Include sockets.h.
48271         (rpl_socket): Invoke gl_sockets_startup.
48272         * modules/gethostname (Depends-on): Add sockets.
48273         * modules/socket (Depends-on): Likewise.
48274         * tests/test-poll.c: Don't include sockets.h.
48275         (main): Don't invoke gl_sockets_startup.
48276         * tests/test-select.c: Don't include sockets.h.
48277         (main): Don't invoke gl_sockets_startup.
48278
48279 2009-08-02  Bruno Haible  <bruno@clisp.org>
48280
48281         Allow multiple calls to gl_sockets_startup.
48282         * lib/sockets.c (initialized_sockets_version): New variable.
48283         (gl_sockets_startup): Do nothing if already called for this or a higher
48284         version.
48285         (gl_sockets_cleanup): Reset initialized_sockets_version.
48286
48287 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48288
48289         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48290         different project/version.
48291
48292 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48293             Bruno Haible  <bruno@clisp.org>
48294
48295         Tests for module 'pipe-filter-gi'.
48296         * modules/pipe-filter-gi-tests: New file.
48297         * tests/test-pipe-filter-gi1.sh: New file.
48298         * tests/test-pipe-filter-gi1.c: New file.
48299         * tests/test-pipe-filter-gi2.sh: New file.
48300         * tests/test-pipe-filter-gi2-main.c: New file.
48301         * tests/test-pipe-filter-gi2-child.c: New file.
48302
48303         New module 'pipe-filter-gi'.
48304         * lib/pipe-filter-gi.c: New file.
48305         * modules/pipe-filter-gi: New file.
48306
48307 2009-08-02  Bruno Haible  <bruno@clisp.org>
48308             Paolo Bonzini  <bonzini@gnu.org>
48309
48310         Tests for module 'pipe-filter-ii'.
48311         * modules/pipe-filter-ii-tests: New file.
48312         * tests/test-pipe-filter-ii1.sh: New file.
48313         * tests/test-pipe-filter-ii1.c: New file.
48314         * tests/test-pipe-filter-ii2.sh: New file.
48315         * tests/test-pipe-filter-ii2-main.c: New file.
48316         * tests/test-pipe-filter-ii2-child.c: New file.
48317
48318         New module 'pipe-filter-ii'.
48319         * lib/pipe-filter.h: New file.
48320         * lib/pipe-filter-ii.c: New file.
48321         * lib/pipe-filter-aux.h: New file.
48322         * modules/pipe-filter-ii: New file.
48323
48324 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48325
48326         * lib/gc-libgcrypt.c: Change copyright to FSF.
48327         * lib/gc-gnulib.c: Likewise.
48328
48329 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48330
48331         * lib/gethostname.c: Include limits.h.
48332
48333 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48334             Bruno Haible  <bruno@clisp.org>
48335
48336         Ensure HOST_NAME_MAX as part of the gethostname module.
48337         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48338         define also HOST_NAME_MAX.
48339         * tests/test-gethostname.c: Include <limits.h>.
48340         (main): Check also HOST_NAME_MAX.
48341         * doc/posix-headers/limits.texi: Document the mingw problem.
48342
48343 2009-08-02  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48346         Add comments.
48347
48348 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48349
48350         * lib/gethostname.c: Add Windows wrapper.
48351         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48352         * modules/gethostname: Depend on sys_socket & errno, for also
48353         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48354         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48355
48356 2009-07-31  Jim Meyering  <meyering@redhat.com>
48357
48358         getloadavg: fix symbol name in comment
48359         * lib/getloadavg.c: Correct a typo I introduced when adding
48360         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48361         Matt Kraai spotted the problem.
48362
48363 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48364
48365         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48366         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48367         code also if ! defined N_NAME_POINTER.
48368         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48369         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48370         but the n_name member is a 12-byte array.
48371
48372 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48373
48374         update-copyright: generalize comment handling
48375         * build-aux/update-copyright: Handle copyright statements
48376         within more comment styles.
48377         Document usage.
48378         Report any file with an external copyright holder or parse failure.
48379
48380 2009-07-29  Jim Meyering  <meyering@redhat.com>
48381
48382         mktime: correct setting of REPLACE_MKTIME
48383         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48384
48385         update-copyright: new module
48386         * modules/update-copyright: New file.
48387         * build-aux/update-copyright: New file.
48388         * MODULES.html.sh (maint+release support): Add update-copyright.
48389
48390 2009-07-27  Bruno Haible  <bruno@clisp.org>
48391
48392         Fix compilation error when <ctime> is used and mktime is replaced.
48393         * lib/time.in.h (mktime): New declaration.
48394         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48395         REPLACE_MKTIME instead of defining mktime in config.h.
48396         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48397         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48398         Reported by Ross McFarland <rwmcfa1@neces.com>.
48399
48400 2009-07-27  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48403         Reported by Matt Kraai <mkraai@beckman.com>.
48404
48405 2009-07-25  Jim Meyering  <meyering@redhat.com>
48406
48407         maint.mk: avoid warnings about missing files
48408         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48409         diagnostic when .prev-version does not exist.
48410         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48411         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48412         nonexistent cfg.mk.
48413         Suggestions from Simon Josefsson.
48414
48415 2009-07-25  Bruno Haible  <bruno@clisp.org>
48416
48417         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48418         defined as macros. Needed on QNX 6.4.1.
48419         Reported by Matt Kraai <mkraai@beckman.com>.
48420
48421 2009-07-23  Jim Meyering  <meyering@redhat.com>
48422
48423         maint.mk: invoke "make dist" with a working value of XZ_OPT
48424         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48425
48426 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48427
48428         Make fseeko.c compile on QNX.
48429         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48430
48431 2009-07-22  Peter Simons  <simons@cryp.to>
48432
48433         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48434         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48435         * lib/md4.h: Likewise.
48436         * lib/md5.h: Likewise.
48437         * lib/sha1.h: Likewise.
48438         * lib/sha256.h: Likewise.
48439         * lib/sha512.h: Likewise.
48440
48441         tests-sha1: don't assign literal string to 'char *' variable
48442         * tests/test-sha1.c (main): Declare locals with "const" to match
48443         attributes of the right hand side.
48444
48445 2009-07-21  Eric Blake  <ebb9@byu.net>
48446
48447         dup2: fix more mingw problems
48448         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48449         fd to itself.
48450         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48451         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48452         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48453         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48454         care of mingw bugs.
48455
48456 2009-07-21  Jim Meyering  <meyering@redhat.com>
48457
48458         vc-list-files: avoid failure when /bin/sh is dash
48459         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48460         On some Debian based systems, /bin/sh is a symlink to dash, and running
48461         this command would omit the "/" following each 'tests' prefix:
48462           dash -x build-aux/vc-list-files -C . tests
48463         That is because bash and dash work differently:
48464           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48465           bash ok
48466           dash odd
48467
48468 2009-07-21  Eric Blake  <ebb9@byu.net>
48469
48470         dup2-tests: test previous patch
48471         * modules/dup2-tests: New file.
48472         * tests/test-dup2.c: Likewise.
48473         * tests/test-open.c (main): Avoid unspecified behavior.
48474         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48475         test.
48476
48477         dup2: work around mingw and cygwin 1.5 bug
48478         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48480         * modules/unistd (Makefile.am): Substitute it.
48481         * lib/unistd.in.h (dup2): Declare the replacement.
48482         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48483         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48484         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48485         * modules/execute (Depends-on): Add dup2.
48486         * modules/fseterr (Depends-on): Likewise.
48487         * modules/pipe (Depends-on): Likewise.
48488         * modules/posix_spawn-internal (Depends-on): Likewise.
48489
48490 2009-07-21  Bruno Haible  <bruno@clisp.org>
48491
48492         * modules/.gitattributes: New file.
48493
48494 2009-07-20  Bruno Haible  <bruno@clisp.org>
48495
48496         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48497         (main): Use it.
48498
48499 2009-07-20  Eric Blake  <ebb9@byu.net>
48500
48501         test-pipe: make a bit more robust.
48502         * tests/test-pipe.c (myerr): Allow error messages regardless of
48503         what we do to stderr.
48504         (test_pipe): Rearrange to avoid deadlock.
48505         (child_main): Try a larger read, to ensure we avoided deadlock.
48506         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48507         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48508         if misused.
48509
48510 2009-07-19  Jim Meyering  <meyering@redhat.com>
48511
48512         fts: avoid false-positive cycle-detection
48513         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48514         for each new command line argument.
48515
48516 2009-07-19  Bruno Haible  <bruno@clisp.org>
48517
48518         Fix build error on mingw with the modules sys_select and unistd.
48519         * modules/acl-tests (Depends-on): Add close.
48520         * modules/binary-io-tests (Depends-on): Likewise.
48521         * modules/closein-tests (Depends-on): Likewise.
48522         * modules/flock-tests (Depends-on): Likewise.
48523         * modules/fsync-tests (Depends-on): Likewise.
48524         * modules/lseek-tests (Depends-on): Likewise.
48525         * modules/pipe-tests (Depends-on): Likewise.
48526         * modules/posix_spawn-tests (Depends-on): Likewise.
48527         * modules/posix_spawnp-tests (Depends-on): Likewise.
48528         * modules/stat-time-tests (Depends-on): Likewise.
48529         * modules/yesno-tests (Depends-on): Likewise.
48530
48531 2009-07-19  Bruno Haible  <bruno@clisp.org>
48532
48533         Unify conditionals.
48534         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48535         macros, not at the compiler macros.
48536         * lib/pipe.c: Likewise.
48537         * lib/execute.c: Likewise.
48538         * lib/spawni.c: Likewise.
48539
48540 2009-07-19  Bruno Haible  <bruno@clisp.org>
48541
48542         Fix handling of closed stdin/stdout/stderr on mingw.
48543         * lib/w32spawn.h: Include unistd.h.
48544         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48545         file descriptor with O_NOINHERIT flag.
48546         (fd_safer_noinherit): New function, based on fd-safer.c.
48547         (dup_safer_noinherit): New function, based on dup-safer.c.
48548         (undup_safer_noinherit): New function.
48549         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48550         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48551         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48552         instead of fd_safer.
48553         * tests/test-pipe.c: Include <windows.h>.
48554         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48555         result.
48556
48557         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48558         from main.
48559         (test_pipe): Pass an extra argument for disambiguation.
48560         (main): Invoke parent_main or child_main.
48561
48562         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48563         consistently.
48564
48565 2009-07-18  Eric Blake  <ebb9@byu.net>
48566
48567         test-pipe: fix mingw build
48568         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48569
48570 2009-07-18  Bruno Haible  <bruno@clisp.org>
48571
48572         * modules/pipe-tests (Makefile.am): Fix typo.
48573
48574 2009-07-18  Eric Blake  <ebb9@byu.net>
48575
48576         error: fix mingw build
48577         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48578         Reported by Bruno Haible.
48579
48580         error: avoid undefined use of stdout
48581         * lib/error.c (error, error_at_line): Check that fd 1 is open
48582         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48583         is handling faults and the close_stdout module wants to report the
48584         detection of closed stdout as an error.
48585
48586 2009-07-17  Eric Blake  <ebb9@byu.net>
48587
48588         pipe: be robust in face of closed fds
48589         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48590         should cause child to misbehave.
48591         * modules/pipe-tests: New module.
48592         * tests/test-pipe.c: New file.
48593         * tests/test-pipe.sh: New file.
48594         Reported by Akim Demaille.
48595
48596 2009-07-14  Bruno Haible  <bruno@clisp.org>
48597
48598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48599         Reported by anonymous kc.
48600
48601 2009-07-07  Jim Meyering  <meyering@redhat.com>
48602
48603         maint.mk: don't look for translatable strings in *.m4 or *.mk
48604         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48605         when searching for translatable strings.
48606
48607 2009-07-05  Jim Meyering  <meyering@redhat.com>
48608
48609         remove superfluous parentheses in STREQ definition
48610         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48611         * lib/getugroups.c (STREQ): Likewise.
48612         * lib/fnmatch.c (STREQ): Likewise.
48613         Spotted by Bruno Haible.
48614
48615 2009-07-04  Jim Meyering  <meyering@redhat.com>
48616
48617         argv-iter: new module
48618         * MODULES.html.sh: Add argv-iter.
48619         * lib/argv-iter.c, lib/argv-iter.h: New files.
48620         * modules/argv-iter: New file.
48621         * modules/argv-iter-tests: New file.
48622         * tests/test-argv-iter.c: Test it.
48623
48624 2009-07-04  Bruno Haible  <bruno@clisp.org>
48625
48626         Fix assertion.
48627         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48628         contains more exact copies of a given entry than file2, leave the extra
48629         copies unpaired rather than aborting.
48630         Reported by Eric Blake.
48631
48632 2009-07-02  Bruno Haible  <bruno@clisp.org>
48633
48634         Speedup git-merge-changelog for git cherry-pick.
48635         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48636         (entries_mapping_get): New function, extracted from compute_mapping.
48637         (entries_mapping_reverse_get): New function.
48638         (compute_mapping): Add a 'full' argument. Return the result in a
48639         'struct entries_mapping'.
48640         (main): Update. Access the mappings through entries_mapping_get.
48641         Reported by Eric Blake.
48642
48643 2009-07-02  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48646         best_i.
48647
48648 2009-07-02  Bruno Haible  <bruno@clisp.org>
48649
48650         Speed up approximate search for matching ChangeLog entries.
48651         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48652         argument. Call fstrcmp_bounded instead of fstrcmp.
48653         (compute_mapping, try_split_merged_entry, main): Update callers.
48654
48655 2009-07-02  Bruno Haible  <bruno@clisp.org>
48656
48657         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48658
48659 2009-06-30  Bruno Haible  <bruno@clisp.org>
48660
48661         Reduce the number of uc_is_cased calls.
48662         * lib/unicase.h (casing_suffix_context_t): Add
48663         'first_char_except_ignorable' field.
48664         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48665         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48666         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48667         Update initializer.
48668         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48669         case-ignorable characters.
48670         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48671         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48672         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48673         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48674         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48675
48676 2009-06-30  Bruno Haible  <bruno@clisp.org>
48677
48678         Tests for module 'unicase/ignorable'.
48679         * modules/unicase/ignorable-tests: New file.
48680         * tests/unicase/test-ignorable.c: New file, generated by
48681         gen-uni-tables.
48682
48683         Tests for module 'unicase/cased'.
48684         * modules/unicase/cased-tests: New file.
48685         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48686         * tests/unicase/test-predicate-part1.h: New file, derived from
48687         tests/unictype/test-predicate-part1.h.
48688         * tests/unicase/test-predicate-part2.h: New file, same as
48689         tests/unictype/test-predicate-part2.h.
48690
48691         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48692         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48693         (output_casing_properties): New function.
48694         (main): Call it.
48695         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48696         * lib/unicase/cased.c: Include unictype/bitmap.h.
48697         (uc_is_cased): Define through a bitmap lookup.
48698         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48699         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48700         (uc_is_case_ignorable): Define through a bitmap lookup.
48701         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48702         lib/unictype/bitmap.h.
48703         (Depends-on): Add inline. Clean up.
48704         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48705         lib/unictype/bitmap.h.
48706         (Depends-on): Add inline. Clean up.
48707         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48708         recognition.
48709         * tests/unicase/test-u16-tolower.c (main): Likewise.
48710         * tests/unicase/test-u32-tolower.c (main): Likewise.
48711
48712 2009-06-30  Bruno Haible  <bruno@clisp.org>
48713
48714         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48715         * lib/unicase/u16-casemap.c: Likewise.
48716         * lib/unicase/u32-casemap.c: Likewise.
48717
48718 2009-06-29  Bruno Haible  <bruno@clisp.org>
48719
48720         Define u32_casefold as a wrapper around u32_ct_casefold.
48721         * lib/unicase/u32-casefold.c: Update.
48722         * modules/unicase/u32-casefold (Depends-on): Add
48723         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48724         unicase/empty-suffix-context. Clean up.
48725
48726         Define u16_casefold as a wrapper around u16_ct_casefold.
48727         * lib/unicase/u16-casefold.c: Update.
48728         * modules/unicase/u16-casefold (Depends-on): Add
48729         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48730         unicase/empty-suffix-context. Clean up.
48731
48732         Define u8_casefold as a wrapper around u8_ct_casefold.
48733         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48734         * lib/unicase/u8-casefold.c: Update.
48735         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48736         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48737
48738         Define u32_totitle as a wrapper around u32_ct_totitle.
48739         * lib/unicase/u32-totitle.c: Update.
48740         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48742
48743         Define u16_totitle as a wrapper around u16_ct_totitle.
48744         * lib/unicase/u16-totitle.c: Update.
48745         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48747
48748         Define u8_totitle as a wrapper around u8_ct_totitle.
48749         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48750         functions.
48751         (FUNC): Delegate to U_CT_TOTITLE.
48752         * lib/unicase/u8-totitle.c: Update.
48753         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48754         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48755
48756         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48757         invocation.
48758         * modules/unicase/u32-tolower (Depends-on): Add
48759         unicase/empty-prefix-context, unicase/empty-suffix-context.
48760
48761         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48762         invocation.
48763         * modules/unicase/u16-tolower (Depends-on): Add
48764         unicase/empty-prefix-context, unicase/empty-suffix-context.
48765
48766         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48767         * modules/unicase/u8-tolower (Depends-on): Add
48768         unicase/empty-prefix-context, unicase/empty-suffix-context.
48769
48770         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48771         invocation.
48772         * modules/unicase/u32-toupper (Depends-on): Add
48773         unicase/empty-prefix-context, unicase/empty-suffix-context.
48774
48775         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48776         invocation.
48777         * modules/unicase/u16-toupper (Depends-on): Add
48778         unicase/empty-prefix-context, unicase/empty-suffix-context.
48779
48780         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48781         * modules/unicase/u8-toupper (Depends-on): Add
48782         unicase/empty-prefix-context, unicase/empty-suffix-context.
48783
48784         New module 'unicase/u32-ct-casefold'.
48785         * lib/unicase/u32-ct-casefold.c: New file.
48786         * modules/unicase/u32-ct-casefold: New file.
48787
48788         New module 'unicase/u16-ct-casefold'.
48789         * lib/unicase/u16-ct-casefold.c: New file.
48790         * modules/unicase/u16-ct-casefold: New file.
48791
48792         New module 'unicase/u8-ct-casefold'.
48793         * lib/unicase/u8-ct-casefold.c: New file.
48794         * lib/unicase/u-ct-casefold.h: New file, derived from
48795         lib/unicase/u-casefold.h.
48796         * modules/unicase/u8-ct-casefold: New file.
48797
48798         New module 'unicase/u32-ct-totitle'.
48799         * lib/unicase/u32-ct-totitle.c: New file.
48800         * modules/unicase/u32-ct-totitle: New file.
48801
48802         New module 'unicase/u16-ct-totitle'.
48803         * lib/unicase/u16-ct-totitle.c: New file.
48804         * modules/unicase/u16-ct-totitle: New file.
48805
48806         New module 'unicase/u8-ct-totitle'.
48807         * lib/unicase/u8-ct-totitle.c: New file.
48808         * lib/unicase/u-ct-totitle.h: New file, derived from
48809         lib/unicase/u-totitle.h.
48810         * modules/unicase/u8-ct-totitle: New file.
48811
48812         New module 'unicase/u32-ct-tolower'.
48813         * lib/unicase/u32-ct-tolower.c: New file.
48814         * modules/unicase/u32-ct-tolower: New file.
48815
48816         New module 'unicase/u16-ct-tolower'.
48817         * lib/unicase/u16-ct-tolower.c: New file.
48818         * modules/unicase/u16-ct-tolower: New file.
48819
48820         New module 'unicase/u8-ct-tolower'.
48821         * lib/unicase/u8-ct-tolower.c: New file.
48822         * modules/unicase/u8-ct-tolower: New file.
48823
48824         New module 'unicase/u32-ct-toupper'.
48825         * lib/unicase/u32-ct-toupper.c: New file.
48826         * modules/unicase/u32-ct-toupper: New file.
48827
48828         New module 'unicase/u16-ct-toupper'.
48829         * lib/unicase/u16-ct-toupper.c: New file.
48830         * modules/unicase/u16-ct-toupper: New file.
48831
48832         New module 'unicase/u8-ct-toupper'.
48833         * lib/unicase/u8-ct-toupper.c: New file.
48834         * modules/unicase/u8-ct-toupper: New file.
48835
48836         Add context arguments to u*_casemap functions.
48837         * lib/unicase/unicasemap.h: Include unicase.h.
48838         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48839         suffix_context arguments.
48840         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48841         functions.
48842         (FUNC): Add prefix_context and suffix_context arguments. Use
48843         uc_is_cased and uc_is_case_ignorable.
48844         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48845         * lib/unicase/u16-casemap.c: Likewise.
48846         * lib/unicase/u32-casemap.c: Likewise.
48847         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48848         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48849         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48850         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48851         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48852         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48853
48854         New module 'unicase/u32-suffix-context'.
48855         * lib/unicase/u32-suffix-context.c: New file.
48856         * modules/unicase/u32-suffix-context: New file.
48857
48858         New module 'unicase/u16-suffix-context'.
48859         * lib/unicase/u16-suffix-context.c: New file.
48860         * modules/unicase/u16-suffix-context: New file.
48861
48862         New module 'unicase/u8-suffix-context'.
48863         * lib/unicase/u8-suffix-context.c: New file.
48864         * lib/unicase/u-suffix-context.h: New file.
48865         * modules/unicase/u8-suffix-context: New file.
48866
48867         New module 'unicase/empty-suffix-context'.
48868         * lib/unicase/empty-suffix-context.c: New file.
48869         * modules/unicase/empty-suffix-context: New file.
48870
48871         New module 'unicase/u32-prefix-context'.
48872         * lib/unicase/u32-prefix-context.c: New file.
48873         * modules/unicase/u32-prefix-context: New file.
48874
48875         New module 'unicase/u16-prefix-context'.
48876         * lib/unicase/u16-prefix-context.c: New file.
48877         * modules/unicase/u16-prefix-context: New file.
48878
48879         New module 'unicase/u8-prefix-context'.
48880         * lib/unicase/u8-prefix-context.c: New file.
48881         * lib/unicase/u-prefix-context.h: New file.
48882         * lib/unicase/context.h: New file.
48883         * modules/unicase/u8-prefix-context: New file.
48884
48885         New module 'unicase/empty-prefix-context'.
48886         * lib/unicase/empty-prefix-context.c: New file.
48887         * modules/unicase/empty-prefix-context: New file.
48888
48889         New module 'unicase/ignorable'.
48890         * lib/unicase/ignorable.c: New file.
48891         * modules/unicase/ignorable: New file.
48892
48893         New module 'unicase/cased'.
48894         * lib/unicase/caseprop.h: New file.
48895         * lib/unicase/cased.c: New file.
48896         * modules/unicase/cased: New file.
48897
48898         New functions for case mapping of substrings.
48899         * lib/unicase.h (casing_prefix_context_t): New type.
48900         (unicase_empty_prefix_context): New variable.
48901         (u8_casing_prefix_context, u16_casing_prefix_context,
48902         u32_casing_prefix_context, u8_casing_prefixes_context,
48903         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48904         declarations.
48905         (casing_suffix_context_t): New type.
48906         (unicase_empty_suffix_context): New variable.
48907         (u8_casing_suffix_context, u16_casing_suffix_context,
48908         u32_casing_suffix_context, u8_casing_suffixes_context,
48909         u16_casing_suffixes_context, u32_casing_suffixes_context,
48910         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48911         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48912         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48913         declarations.
48914
48915 2009-06-28  Jim Meyering  <meyering@redhat.com>
48916
48917         boostrap: indent only with spaces
48918         * build-aux/bootstrap: Indent only with spaces, never TABs.
48919
48920         bootstrap: split long lines
48921         * build-aux/bootstrap: Keep line length < 80.
48922
48923         bootstrap: sync from coreutils
48924         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48925         just as autoreconf does.  Verify a list of prerequisite
48926         package-name,version-number pairs if defined in bootstrap.conf.
48927         Refer to README-prereq, if prerequisites are not satisfied.
48928
48929 2009-06-27  Eric Blake  <ebb9@byu.net>
48930
48931         tests: add test for bogus NULL definition
48932         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48933         * tests/test-stdlib.c: Likewise.
48934         * tests/test-string.c: Likewise.
48935         * tests/test-locale.c: Likewise.
48936         * tests/test-unistd.c: Likewise.
48937         * modules/stdio-tests (Depends-on): Add verify.
48938         * modules/stdlib-tests (Depends-on): Likewise.
48939         * modules/string-tests (Depends-on): Likewise.
48940         * modules/locale-tests (Depends-on): Likewise.
48941         * modules/unistd-tests (Depends-on): Likewise.
48942
48943 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48944
48945         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48946         self-explaining comment.
48947         * m4/selinux-selinux-h: Update serial.
48948         (gl_LIBSELINUX): New macro, adding a warning for missing development
48949         packages to code extracted from...
48950         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48951         Add warning for missing development packages here, too.
48952
48953 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48954
48955         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48956
48957 2009-06-25  Eric Blake  <ebb9@byu.net>
48958
48959         version-etc: fix regression
48960         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48961         gcc.
48962         (version_etc): Use it, to catch bugs with trailing NULL.
48963         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48964         (version_etc_va): Fix logic bug.
48965         * modules/version-etc-tests: Add test.
48966         * tests/test-version-etc.c: New file.
48967         * tests/test-version-etc.sh: Likewise.
48968
48969 2009-06-25  Sam Steingold  <sds@gnu.org>
48970
48971         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48972         mbtowc declaration.
48973
48974 2009-06-25  Eric Blake  <ebb9@byu.net>
48975
48976         fpurge: migrate into <stdio.h>
48977         * lib/fpurge.h: Delete...
48978         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48979         * lib/fpurge.c (fpurge): Change declaring header.
48980         * modules/fpurge (Files): Drop deleted file.
48981         (Depends-on): Add stdio.
48982         (configure.ac): Set witness.
48983         * modules/stdio (Makefile.am): Support fpurge macros.
48984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48986         * lib/fflush.c: Update client.
48987         * tests/test-fpurge.c: Likewise.
48988         * NEWS: Mention the change.
48989
48990 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48991
48992         * lib/argp-version-etc.c (program_authors): Add const
48993         qualifier.
48994         * lib/version-etc.c: Fix typos in the comments.
48995         * modules/argp-version-etc: Depends on version-etc.
48996
48997 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48998
48999         argp-version-etc: new module.
49000
49001         * lib/argp-version-etc.c: New file.
49002         * lib/argp-version-etc.h: New file.
49003         * modules/argp-version-etc: New file.
49004         * modules/argp-version-etc-tests: New file.
49005         * tests/test-argp-version-etc.c: New test.
49006         * tests/test-argp-version-etc-1.sh: New test.
49007
49008 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49009
49010         Provide additional interfaces and documentation for version-etc
49011         module.
49012
49013         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49014         interfaces.
49015         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49016         prototypes.
49017
49018 2009-06-24  Bruno Haible  <bruno@clisp.org>
49019
49020         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49021         HAVE_LIB${NAME} macro.
49022         Reported by Sam Steingold <sds@gnu.org>.
49023
49024 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49025
49026         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49027         needed.
49028
49029 2009-06-21  Bruno Haible  <bruno@clisp.org>
49030
49031         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49032         work.
49033         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49034         together with LIB${NAME}, LTLIB${NAME}.
49035         Reported by Sam Steingold <sds@gnu.org>.
49036
49037 2009-06-20  Jim Meyering  <meyering@redhat.com>
49038
49039         tests: make sc_require_test_exit_idiom more generic
49040         * top/maint.mk (Exit_witness_file): New overridable variable.
49041         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49042         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49043
49044 2009-06-19  Jim Meyering  <meyering@redhat.com>
49045
49046         hash: reverse order of src/dst parameters in an internal interface
49047         * lib/hash.c (transfer_entries): Reverse order of parameters to
49048         put DST before SRC.  Adjust callers.
49049
49050         tests: test-hash: avoid wholesale duplication
49051         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49052         Instead, use a loop and add a single conditional.
49053
49054         tests: test-hash: allow seed selection via a command line argument
49055         * tests/test-hash.c (get_seed): New function.
49056         (main): Use it.
49057
49058 2009-06-19  Eric Blake  <ebb9@byu.net>
49059
49060         hash: avoid memory leak on allocation failure
49061         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49062         failure.  Factor repeated algorithm...
49063         (transfer_entries): ...into new helper routine.
49064         (hash_delete): React to hash_rehash return value.
49065
49066         hash: reduce memory pressure in hash_rehash no-op case
49067         * lib/hash.c (next_prime): Avoid overflow.
49068         (hash_initialize): Factor bucket size computation...
49069         (compute_bucket_size): ...into new helper function.
49070         (hash_rehash): Use new function and open coding to reduce memory
49071         pressure, and avoid a memory leak in USE_OBSTACK code.
49072         Reported by Jim Meyering.
49073
49074 2009-06-18  Eric Blake  <ebb9@byu.net>
49075
49076         hash: make rotation more obvious
49077         * modules/hash (Depends-on): Add bitrotate and stdint.
49078         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49079         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49080         (SIZE_MAX): Rely on headers for definition.
49081         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49082         (raw_hasher): Use rotr_sz.
49083         Suggested by Jim Meyering.
49084
49085         hash: fix memory leak in last patch
49086         * lib/hash.c (hash_rehash): Avoid memory leak.
49087
49088         hash: avoid no-op rehashing
49089         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49090
49091         hash: provide default callback functions
49092         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49093         (hash_initialize): Use them as defaults.
49094         * tests/test-hash.c (main): Test this.
49095
49096         hash: minor optimization
49097         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49098         when possible.
49099         (hash_initialize): Document this promise.
49100         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49101         * tests/test-hash.c (hash_compare_strings): Test this.
49102
49103 2009-06-18  Bruno Haible  <bruno@clisp.org>
49104
49105         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49106         going to be replaced anyway.
49107
49108 2009-06-18  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49111         in one place.
49112         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49113         be replaced anyway.
49114
49115 2009-06-18  Eric Blake  <ebb9@byu.net>
49116
49117         hash: check for resize before insertion
49118         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49119         threshold before insertion, so that a pathological hash_rehash
49120         that fills every bucket can still trigger another rehash.
49121
49122 2009-06-18  Jim Meyering  <meyering@redhat.com>
49123
49124         hash-tests: add a loop around the small tests
49125         * tests/test-hash.c (main): Repeat small tests with selected
49126         small initial table sizes.
49127
49128 2009-06-17  Eric Blake  <ebb9@byu.net>
49129
49130         hash: minor cleanups
49131         * lib/hash.h (hash_entry): Make opaque, by moving...
49132         * lib/hash.c (hash_entry): ...here.
49133         (hash_insert): Clarify restrictions on what can be inserted.
49134         (hash_get_next): Clarify when it is safe to remove an element
49135         during traversal.
49136         (check_tuning): Skip verification when tuning is known safe.
49137         (hash_initialize): Clarify restrictions on tuning.
49138
49139 2009-06-17  Jim Meyering  <jim@meyering.net>
49140         and Eric Blake  <ebb9@byu.net>
49141
49142         hash-tests: new module
49143         * modules/hash-tests: New file.
49144         * tests/test-hash.c: New file.
49145
49146 2009-06-17  Eric Blake  <ebb9@byu.net>
49147
49148         strstr-simple: document new module
49149         * MODULES.html.sh: Document new module.
49150
49151         strstr, strcasestr: replace on platforms with broken memchr
49152         * modules/strstr: Split into...
49153         * modules/strstr-simple: ...new module that does not care about
49154         performance, but does care about glibc bug.
49155         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49156         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49157         if platform memchr is broken, per Debian bug 521737.
49158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49159         memchr.
49160         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49161         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49162         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49163         * modules/mountlist (Depends-on): Add strstr-simple.
49164         * modules/gen-uni-tables (Depends-on): Likewise.
49165         * modules/argz (Depends-on): Add strstr.
49166
49167 2009-06-17  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/posix_spawn-internal (Depends-on): Add errno.
49170
49171 2009-06-17  Bruno Haible  <bruno@clisp.org>
49172
49173         Define missing ESTALE on Interix 3.5.
49174         * lib/errno.in.h (ESTALE): Assign a value if missing.
49175         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49176         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49177         missing.
49178         * doc/posix-headers/errno.texi: Mention the Interix bug.
49179         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49180
49181 2009-06-15  Eric Blake  <ebb9@byu.net>
49182
49183         memchr, memchr2: add valgrind exception
49184         * lib/memchr.valgrind: New file.
49185         * lib/memchr2.valgrind: New file.
49186         * modules/memchr (Files): Distribute valgrind file.
49187         * modules/memchr2 (Files): Likewise.
49188
49189         docs: memchr is no longer obsolete
49190         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49191         * lib/string.in.h (memchr): Simplify logic.
49192
49193 2009-06-14  Jim Meyering  <meyering@redhat.com>
49194
49195         link-follow: fix the "checking..." message to not mention trailing slash
49196         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49197         never considered trailing slashes.
49198
49199 2009-06-14  Bruno Haible  <bruno@clisp.org>
49200
49201         * m4/memchr.m4: Mention also the bug on IA-64.
49202         * doc/posix-functions/memchr.texi: Likewise.
49203
49204 2009-06-12  Eric Blake  <ebb9@byu.net>
49205
49206         memchr: detect broken x86_64 and alpha implementations
49207         * modules/memchr-tests (Depends-on): Move mmap detection...
49208         * modules/memchr (Depends-on): ...here.
49209         (configure.ac): Set indicator.
49210         * lib/string.in.h (memchr): Declare replacement.
49211         * modules/string (Makefile.am): Trigger replacement.
49212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49213         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49214         bugs.
49215         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49216         * modules/getpagesize (License): Relax license.
49217
49218 2009-06-11  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/idpriv.h: Add more references.
49221
49222 2009-06-08  Bruno Haible  <bruno@clisp.org>
49223
49224         Tests for module 'idpriv-droptemp'.
49225         * modules/idpriv-droptemp-tests: New file.
49226         * tests/test-idpriv-droptemp.sh: New file.
49227         * tests/test-idpriv-droptemp.su.sh: New file.
49228         * tests/test-idpriv-droptemp.c: New file.
49229
49230         New module 'idpriv-droptemp'.
49231         * lib/idpriv-droptemp.c: New file.
49232         * modules/idpriv-droptemp: New file.
49233
49234 2009-06-08  Bruno Haible  <bruno@clisp.org>
49235
49236         Tests for module 'idpriv-drop'.
49237         * modules/idpriv-drop-tests: New file.
49238         * tests/test-idpriv-drop.sh: New file.
49239         * tests/test-idpriv-drop.su.sh: New file.
49240         * tests/test-idpriv-drop.c: New file.
49241
49242         New module 'idpriv-drop'.
49243         * lib/idpriv.h: New file.
49244         * lib-idpriv-drop.c: New file.
49245         * m4/idpriv.m4: New file.
49246         * modules/idpriv-drop: New file.
49247
49248 2009-06-08  Bruno Haible  <bruno@clisp.org>
49249
49250         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49251         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49252         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49253         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49254         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49255         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49256         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49257
49258 2009-06-08  Eric Blake  <ebb9@byu.net>
49259
49260         test-strstr: use memory fence, when possible
49261         * tests/test-strstr.c (main): Use memory fence, in order to be
49262         more likely to trigger Debian bug 521737.
49263         * modules/strstr-tests (Files): Pull in additional files.
49264
49265         memchr: no longer obsolete, for wider field testing
49266         * modules/memchr (Status, Notice): Delete, this module is no
49267         longer obsolete.
49268         * modules/vasnprintf (Depends-on): Add memchr.
49269
49270 2009-06-07  Jim Meyering  <meyering@redhat.com>
49271
49272         hash: declare some functions with the warn_unused_result attribute
49273         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49274
49275 2009-06-07  Bruno Haible  <bruno@clisp.org>
49276
49277         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49278         Reported by Eric Blake.
49279
49280 2009-06-06  Eric Blake  <ebb9@byu.net>
49281
49282         test-alignof: fix typo with long double
49283         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49284         compiler error.
49285
49286 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49287
49288         Escape non-texinfo { and }s.
49289         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49290         markup error.
49291
49292 2009-06-04  Jim Meyering  <meyering@redhat.com>
49293
49294         gitlog-to-changelog: don't infloop on an empty commit log
49295         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49296         Reported by Boris Petersen <transacid@centerim.org>.
49297
49298 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49299
49300         version-etc: extend for packagers
49301         Add three new configure options, intended for packagers:
49302           --with-packager="packager name"
49303           --with-packager-version="packager-specific version"
49304           --with-packager-bug-reports="packager bug reporting"
49305         An example with coreutils:
49306           $ ./configure \
49307             --with-packager=Gentoo \
49308             --with-packager-bug-report=http://bugs.gentoo.org/ \
49309             --with-packager-version="patchset 1.6"
49310           $ ./src/ls --version | head -n2
49311           ls (GNU coreutils) 7.1-dirty
49312           Packaged by Gentoo (patchset 1.6)
49313         Note that the bug reporting info via --help doesn't show up because
49314         coreutils uses its own custom emit_bug_reporting_address() implementation
49315         in src/system.h.  If it didn't, it'd look like:
49316           $ ./src/ls --help | tail -n4
49317           Report bugs to <bug-coreutils@gnu.org>.
49318           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49319           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49320           General help using GNU software: <http://www.gnu.org/gethelp/>.
49321         * lib/version-etc.c: Print new information, if provided.
49322         * m4/version-etc.m4: New file.
49323         * modules/version-etc (Files): Add m4/version-etc.m4.
49324         (configure.ac): Add gl_VERSION_ETC.
49325
49326 2009-05-31  Bruno Haible  <bruno@clisp.org>
49327
49328         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49329         and 'int64_t'.
49330         * modules/alignof-tests (Dependencies): Add stdint.
49331         Reported by Eric Blake.
49332
49333 2009-05-31  Bruno Haible  <bruno@clisp.org>
49334
49335         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49336         restriction due to compiler bugs.
49337         Reported by Eric Blake.
49338
49339 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49340             Bruno Haible  <bruno@clisp.org>
49341
49342         Fix test-alignof failure.
49343         * lib/alignof.h (alignof_slot): New macro.
49344         (alignof_type): New macro, with the same semantics as the previous
49345         'alignof'.
49346         (alignof): Alias to alignof_slot.
49347         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49348         check that the results are usable as constant expressions.
49349
49350 2009-05-31  Bruno Haible  <bruno@clisp.org>
49351
49352         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49353         * tests/test-memchr.c (main): Check that memchr does not read past the
49354         first occurrence of the byte.
49355         * tests/test-strstr.c (main): Update comment.
49356         Suggested by Eric Blake.
49357
49358 2009-05-30  Bruno Haible  <bruno@clisp.org>
49359
49360         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49361         detail how to use dumpbin.
49362         Reported by David Byron <dbyron@dbyron.com>.
49363
49364 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49365
49366         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49367
49368 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49369
49370         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49371
49372 2009-05-28  Bruno Haible  <bruno@clisp.org>
49373
49374         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49375         build-aux/ files.
49376
49377 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49378
49379         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49380
49381 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49382
49383         * gnulib-tool (sed_transform_main_lib_file)
49384         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49385         regexps.
49386
49387 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49388
49389         * tests/test-strstr.c: Add another self-test.
49390         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49391         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49392
49393 2009-05-23  Bruno Haible  <bruno@clisp.org>
49394
49395         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49396         change.
49397
49398 2009-05-21  Bruno Haible  <bruno@clisp.org>
49399
49400         Simplify use of mode_t varargs.
49401         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49402         uses 'mode_t' or 'int'.
49403         * lib/openat.c (openat): Likewise.
49404         * lib/open-safer.c (open_safer): Likewise.
49405         * m4/mode_t.m4: New file.
49406         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49407         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49408         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49409         * modules/open (Files): Add m4/mode_t.m4.
49410         * modules/openat (Files): Likewise.
49411         * modules/fcntl-safer (Files): Likewise.
49412         Suggested by Eric Blake.
49413
49414 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49415
49416         * doc/glibc-functions/fallocate.texi: New file.
49417         * doc/gnulib.texi: Include it.
49418
49419 2009-05-21  Eric Blake  <ebb9@byu.net>
49420             Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49423         invocations.
49424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49425
49426 2009-05-21  Eric Blake  <ebb9@byu.net>
49427             Bruno Haible  <bruno@clisp.org>
49428
49429         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49430         include_next. Fix of 2008-11-20 commit.
49431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49432         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49433         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49434         NEXT_MATH_H.
49435         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49436         instead of NEXT_MATH_H.
49437
49438 2009-05-21  Bruno Haible  <bruno@clisp.org>
49439
49440         Avoid redefinition warnings for SIZE_MAX.
49441         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49442         Reported by Simon Josefsson.
49443
49444 2009-05-21  Bruno Haible  <bruno@clisp.org>
49445
49446         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49447         AC_CACHE_VAL.
49448
49449 2009-05-20  Bruno Haible  <bruno@clisp.org>
49450
49451         Make zeroptr.h work on mingw.
49452         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49453         mprotect.
49454         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49455         * modules/memchr2-tests (configure.ac): Likewise.
49456         * modules/memcmp-tests (configure.ac): Likewise.
49457         * modules/memmem-tests (configure.ac): Likewise.
49458         * modules/memrchr-tests (configure.ac): Likewise.
49459         Reported by Simon Josefsson.
49460
49461 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49462
49463         * tests/test-glob.c: Include string.h for strcmp prototype.
49464
49465 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49466
49467         * modules/getdelim (Depends-on): Add explicit stdint, although it
49468         was implicitly already pulled in via realloc-posix.
49469         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49470
49471 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49472
49473         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49474         G. Christensen" <tgc@jupiterrise.com>.
49475         * m4/sys_socket_h.m4: Check for sa_family_t.
49476         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49477         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49478         * tests/test-sys_socket.c: Check that sa_family_t works.
49479
49480 2009-05-18  Eric Blake  <ebb9@byu.net>
49481
49482         maint.mk: allow gnulib_dir in VPATH build
49483         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49484
49485 2009-05-15  Jim Meyering  <meyering@redhat.com>
49486
49487         maint.mk: Give gnulib_dir a default definition.
49488         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49489         Thus, most packages no longer need to specify this variable in cfg.mk
49490
49491 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49492
49493         rename.m4: fix typos that would make non-mingw cross-configure fail
49494         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49495
49496 2009-05-13  Eric Blake  <ebb9@byu.net>
49497
49498         mmap-anon: avoid out-of-order autoconf expansion
49499         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49500         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49501         * modules/memchr-tests (Depends-on): Add extensions.
49502         * modules/memchr2-tests (Depends-on): Add extensions.
49503         * modules/memcmp-tests (Depends-on): Add extensions.
49504         * modules/memmem-tests (Depends-on): Add extensions.
49505         * modules/memrchr-tests (Depends-on): Add extensions.
49506
49507 2009-05-13  Bruno Haible  <bruno@clisp.org>
49508
49509         Make some tests ISO C 99 compliant.
49510         * tests/zerosize-ptr.h: New file.
49511         * tests/test-memchr.c: Include zerosize-ptr.h.
49512         (main): Use a zero-size object pointer instead of NULL.
49513         * tests/test-memchr2.c: Include zerosize-ptr.h.
49514         (main): Use a zero-size object pointer instead of NULL.
49515         * tests/test-memcmp.c: Include zerosize-ptr.h.
49516         (main): Use a zero-size object pointer instead of NULL.
49517         * tests/test-memmem.c: Include zerosize-ptr.h.
49518         (main): Use a zero-size object pointer instead of NULL.
49519         * tests/test-memrchr.c: Include zerosize-ptr.h.
49520         (main): Use a zero-size object pointer instead of NULL.
49521         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49522         m4/mmap-anon.m4.
49523         (Depends-on): Add getpagesize.
49524         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49525         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49526         m4/mmap-anon.m4.
49527         (Depends-on): Add getpagesize.
49528         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49529         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49530         m4/mmap-anon.m4.
49531         (Depends-on): Add getpagesize.
49532         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49533         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49534         m4/mmap-anon.m4.
49535         (Depends-on): Add getpagesize.
49536         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49537         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49538         m4/mmap-anon.m4.
49539         (Depends-on): Add getpagesize.
49540         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49541
49542 2009-05-12  Bruno Haible  <bruno@clisp.org>
49543
49544         Tests for module 'alignof'.
49545         * modules/alignof-tests: New file.
49546         * tests/test-alignof.c: New file.
49547
49548 2009-05-12  Bruno Haible  <bruno@clisp.org>
49549
49550         Fix alignof macro.
49551         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49552         vendor compilers that are always correct.
49553
49554 2009-05-12  Bruno Haible  <bruno@clisp.org>
49555
49556         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49557         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49558         not whether its fully works.
49559
49560 2009-05-12  Bruno Haible  <bruno@clisp.org>
49561
49562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49563
49564 2009-05-12  Jim Meyering  <meyering@redhat.com>
49565
49566         * top/maint.mk: Adjust backslash alignment.
49567
49568 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49569
49570         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49571
49572 2009-05-11  Eric Blake  <ebb9@byu.net>
49573
49574         argp: avoid undefined behavior
49575         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49576         macros.
49577
49578 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49579
49580         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49581         user.name to prevent git commit from complaining.
49582
49583 2009-05-10  Bruno Haible  <bruno@clisp.org>
49584
49585         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49586         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49587         it rewrites every file name only once.
49588         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49589
49590 2009-05-08  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49593         instead of 'max'.
49594
49595 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49596
49597         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49598         sockaddr_storage test.
49599
49600 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49601
49602         * modules/sys_socket (Makefile.am): Substitute
49603         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49604         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49605         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49606         * tests/test-sys_socket.c: Check sockaddr_storage.
49607
49608 2009-05-08  Bruno Haible  <bruno@clisp.org>
49609
49610         New module 'alignof'.
49611         * lib/alignof.h: New file.
49612         * modules/alignof: New file.
49613
49614 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49615             Bruno Haible  <bruno@clisp.org>
49616
49617         Fix test-file-has-acl on FreeBSD.
49618         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49619         mask is implicitly added.
49620         * tests/test-file-has-acl.c: Include <signal.h>.
49621         (main): Terminate the test after 5 seconds.
49622         * modules/acl-tests (configure.ac): Check for alarm function.
49623
49624 2009-05-04  Bruno Haible  <bruno@clisp.org>
49625
49626         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49628         * modules/errno (configure.ac): Drop AC_REQUIRE.
49629         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49630         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49631
49632 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49633
49634         * modules/glob-tests: New module.
49635         * tests/test-glob.c: Add.
49636
49637 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49638
49639         * modules/fnmatch-tests: New module.
49640         * tests/test-fnmatch.c: Add.
49641
49642 2009-05-04  Eric Blake  <ebb9@byu.net>
49643
49644         maint: make the new no-submodule-changes rule VPATH-safe
49645         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49646
49647 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49648             Bruno Haible  <bruno@clisp.org>
49649
49650         acl: Fix infinite loop on FreeBSD.
49651         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49652         of return value from acl_get_entry.
49653         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49654         Likewise.
49655
49656 2009-05-03  Bruno Haible  <bruno@clisp.org>
49657
49658         * lib/acl-internal.h (acl_entries): Clarify return value.
49659         * lib/acl_entries.c (acl_entries): Likewise.
49660
49661 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49662
49663         Bug fix in acl module.
49664         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49665
49666 2009-05-03  Bruno Haible  <bruno@clisp.org>
49667
49668         Create gperf-generated file in the source dir, not in the build dir.
49669         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49670         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49671         * modules/unicase/locale-language (unicase/locale-languages.h):
49672         Likewise.
49673         * modules/unicase/special-casing (unicase/special-casing-table.h):
49674         Likewise.
49675         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49676         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49677         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49678         Reported by Ralf Wildenhues.
49679
49680 2009-05-03  Bruno Haible  <bruno@clisp.org>
49681
49682         * modules/fnmatch (Description, configure.ac): Taken from
49683         fnmatch-posix.
49684         * modules/fnmatch-posix: Turn into a symbolic reference to the
49685         'fnmatch' module, and deprecate.
49686         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49687
49688 2009-05-03  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49691         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49692         Reported by Ralf Wildenhues.
49693
49694 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49695
49696         * m4/fnmatch.m4: Fix fnmatch re-define.
49697
49698 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49699
49700         priv-set: new module and tests; adapt write-any-file
49701         * lib/priv-set.c: New file.
49702         * lib/priv-set.h: New file.
49703         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49704         * lib/write-any-file.c: Simplify by using priv-set module.
49705         * m4/priv-set.m4: New file.
49706         * modules/priv-set: New file.
49707         * modules/unlinkdir: Add dependency on priv-set module.
49708         * modules/write-any-file: Likewise.
49709
49710         Tests for module 'priv-set'.
49711         * modules/priv-set-tests: New file.
49712         * tests/test-priv-set.c: New file.
49713
49714 2009-05-03  Jim Meyering  <meyering@redhat.com>
49715             Bruno Haible  <bruno@clisp.org>
49716
49717         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49718         use the converted UTF-8 variant of the name instead.
49719
49720 2009-05-03  Jim Meyering  <meyering@redhat.com>
49721
49722         tests: tighten some getdate tests
49723         * tests/test-getdate.c (main): Tighten tests: require equality,
49724         not just greater than.  Set TZ envvar to UTC0.
49725
49726 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49727
49728         getdate: correctly interpret "next monday" when run on a Monday
49729         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49730         that e.g., "next tues" (when run on a tuesday) results in a date
49731         that is one week in the future, and not today's date.
49732         I.e., add a week when the wday is the same as the current one.
49733         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49734         and earlier by Martin Bernreuther and Jan Minář.
49735         * tests/test-getdate.c (main): Check that "next DAY" is always in
49736         the future and that "last DAY" is always in the past.
49737
49738 2009-05-02  Jim Meyering  <meyering@redhat.com>
49739
49740         build: ensure that a release build fails when a submodule is unclean
49741         * top/maint.mk (no-submodule-changes): New rule.
49742         (alpha beta major): Depend on it.
49743
49744 2009-05-02  Bruno Haible  <bruno@clisp.org>
49745
49746         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49747         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49748         shell variable gl_fnmatch_required to detect which variant is
49749         requested.
49750         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49751         gl_FUNC_FNMATCH_POSIX.
49752         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49753         exclude fnmatch-posix.
49754
49755 2009-05-02  Bruno Haible  <bruno@clisp.org>
49756
49757         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49758         * modules/mbsrtowcs (License): Change to LGPLv2+.
49759         * modules/strnlen1 (License): Likewise.
49760         Reported by Simon Josefsson.
49761
49762 2009-05-02  Bruno Haible  <bruno@clisp.org>
49763
49764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49765         "cross".
49766         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49767         gnulib-tool was called with option --source-base=lib.
49768
49769 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49770
49771         Use automake *-local hooks without commands, for extensibility.
49772         * modules/localcharset (Makefile.am): Rename install-exec-local
49773         rule to install-exec-localcharset, and make it a prerequisite of
49774         install-exec-local.  Likewise, rename the uninstall-local rule to
49775         uninstall-localcharset, and make it a prerequisite of the former.
49776
49777 2009-05-01  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49780         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49781         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49783         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49784         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49785         m4/locale-zh.m4, m4/codeset.m4.
49786
49787         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49788         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49789         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49790         m4/locale-zh.m4.
49791
49792         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49793         REPLACE_WCRTOMB if mbstate_t must be replaced.
49794         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49795         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49796
49797 2009-05-01  Bruno Haible  <bruno@clisp.org>
49798
49799         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49800         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49801         dngettext, dcngettext, textdomain, bindtextdomain,
49802         bind_textdomain_codeset): Undefine before redefining.
49803
49804 2009-04-30  Bruno Haible  <bruno@clisp.org>
49805
49806         Fix bug introduced on 2009-04-25.
49807         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49808         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49809         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49810         is defined.
49811         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49812         is defined.
49813         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49814         is defined.
49815         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49816
49817 2009-04-28  Bruno Haible  <bruno@clisp.org>
49818
49819         Comment tweaks.
49820         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49821         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49822         * lib/unicase.h (u*_casexfrm): Likewise.
49823         Reported by Paolo Bonzini.
49824
49825 2009-04-28  Bruno Haible  <bruno@clisp.org>
49826
49827         Fix a compilation error.
49828         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49829         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49830         Reported by Jim Meyering.
49831
49832 2009-04-27  Bruno Haible  <bruno@clisp.org>
49833
49834         New module 'libunistring'.
49835         * modules/libunistring: New file.
49836         * m4/libunistring.m4: New file.
49837         * MODULES.html.sh (Unicode string functions): Add it.
49838
49839 2009-04-27  Eric Blake  <ebb9@byu.net>
49840
49841         maint.mk: allow package-specific header to provide <config.h>
49842         * top/maint.mk (sc_require_config_h): New variable.
49843         (sc_require_config_h, sc_require_config_h_first): Use it.
49844
49845 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49846
49847         * top/maint.mk (sc_avoid_if_before_free): Except
49848         useless-if-before-free script.
49849
49850 2009-04-27  Eric Blake  <ebb9@byu.net>
49851
49852         maintainer-makefile: depend on all required helper scripts
49853         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49854         useless-if-before-free.
49855         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49856         version, rather than assuming gnulib checkout is available.
49857         Reported by Simen Josefsson.
49858
49859 2009-04-26  Bruno Haible  <bruno@clisp.org>
49860
49861         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49862         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49863         "../" or "..".
49864
49865 2009-04-26  Bruno Haible  <bruno@clisp.org>
49866
49867         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49868         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49869         AC_LIB_HAVE_LINKFLAGS.
49870
49871 2009-04-26  Bruno Haible  <bruno@clisp.org>
49872
49873         Simplify calling convention of u*_conv_from_encoding.
49874         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49875         u32_conv_from_encoding): Expect a resultbuf argument and return the
49876         result directly as a pointer.
49877         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49878         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49879         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49880         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49881         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49882         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49883         Update.
49884         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49885         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49886         * lib/vasnprintf.c (VASNPRINTF): Update.
49887         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49888         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49889         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49890         * NEWS: Mention the change.
49891
49892 2009-04-26  Bruno Haible  <bruno@clisp.org>
49893
49894         Simplify calling convention of u*_conv_to_encoding.
49895         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49896         u32_conv_to_encoding): Expect a resultbuf argument and return the
49897         result directly as a pointer.
49898         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49899         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49900         freeing scaled_offsets if mem_iconveha failed.
49901         * lib/unicase/u-casexfrm.h (FUNC): Update.
49902         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49903         * lib/vasnprintf.c (VASNPRINTF): Update.
49904         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49905         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49906         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49907         * NEWS: Mention the change.
49908
49909 2009-04-26  Bruno Haible  <bruno@clisp.org>
49910
49911         Avoid test failures on AIX and OSF/1.
49912         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49913         malloc(0).
49914         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49915         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49916         Likewise.
49917         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49918         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49919         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49920         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49921         * doc/posix-functions/malloc.texi: Document the portability problem
49922         related to malloc(0).
49923
49924 2009-04-26  Bruno Haible  <bruno@clisp.org>
49925
49926         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49927         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49928         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49929
49930 2009-04-25  Bruno Haible  <bruno@clisp.org>
49931
49932         Avoid link error when creating a namespace clean library.
49933         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49934         as macro with arguments if already defined as an alias.
49935         * lib/signbitf.c (gl_signbitf): Don't undefine.
49936         * lib/signbitd.c (gl_signbitd): Don't undefine.
49937         * lib/signbitl.c (gl_signbitl): Don't undefine.
49938
49939 2009-04-25  Jim Meyering  <meyering@redhat.com>
49940
49941         vc-list-files: fix another quoting bug
49942         * build-aux/vc-list-files: Avoid sed backslash expansion
49943         of pathological directory names.
49944
49945 2009-04-25  Eric Blake  <ebb9@byu.net>
49946
49947         vc-list-files: fix shell quoting error
49948         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49949         timestamp.
49950
49951 2009-04-25  Jim Meyering  <meyering@redhat.com>
49952
49953         vc-list-files: restore lost functionality with subdir argument
49954         * build-aux/vc-list-files: When given a non-"." sub-directory
49955         argument, substitute the $dir/ prefix back onto each resulting name.
49956         Otherwise, coreutils' root_tests check would fail.
49957
49958 2009-04-24  Eric Blake  <ebb9@byu.net>
49959
49960         vc-list-files: ignore git symlinks
49961         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49962         than ls-files, to ignore git symlinks.
49963
49964         maint.mk: import improvements from m4
49965         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49966         (move_if_change): Delete unused macro.
49967         (news-date-check, vc-diff-check): Support VPATH builds.
49968         (announcement): Likewise.  Split --bootstrap-tools list...
49969         (boostrap-tools): ...into separate list, which can be overridden
49970         in cfg.mk.
49971         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49972         requiring dependency on useless-if-before-free module.
49973         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49974         Support VPATH builds.
49975
49976 2009-04-24  Jim Meyering  <meyering@redhat.com>
49977
49978         maint.mk: remove coreutils-specific rules and variables
49979         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49980         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49981         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49982
49983         maint.mk: remove obsolete rule
49984         * top/maint.mk (rel-check): Remove rule.
49985         (WGET, WGETFLAGS): Remove now-unused variables.
49986
49987 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49988
49989         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49990         consistency.
49991
49992         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49993         '$(PATH_SEPARATOR)' instead of ':'.
49994
49995 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49996
49997         * lib/getopt1.c (main): Use 'const' for static array.
49998
49999 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50000
50001         * top/maint.mk: Sync with coreutils.
50002         * NEWS: Explain incompatibilities.
50003
50004 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50005             Bruno Haible  <bruno@clisp.org>
50006
50007         Fix cross-compilation results.
50008         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50009         statement, as third argument of AC_TRY_RUN.
50010         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50011         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50012         Likewise.
50013         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50014         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50015         Likewise.
50016         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50017         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50018         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50019
50020 2009-04-20  Bruno Haible  <bruno@clisp.org>
50021
50022         Avoid test failure on mingw.
50023         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50024
50025 2009-04-20  Bruno Haible  <bruno@clisp.org>
50026
50027         Avoid compilation error on mingw.
50028         * modules/localename-tests (Depends-on): Add locale.
50029
50030 2009-04-19  Bruno Haible  <bruno@clisp.org>
50031
50032         Support for building a shared library on Windows platforms.
50033         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50034         (main): Test the presence of UNINORM_NFC here.
50035         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50036         (main): Test the presence of UNINORM_NFD here.
50037         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50038         (main): Test the presence of UNINORM_NFKC here.
50039         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50040         (main): Test the presence of UNINORM_NFKD here.
50041
50042 2009-04-19  Bruno Haible  <bruno@clisp.org>
50043
50044         Avoid a compiler warning.
50045         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50046         Change type of variable 'sequence'.
50047
50048 2009-04-19  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/configmake (Makefile.am): When the contents of configmake.h
50051         does not change, arrange to preserve its modification time.
50052
50053 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50054
50055         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50056         gettext domain.
50057
50058 2009-04-16  Jim Meyering  <meyering@redhat.com>
50059
50060         useless-if-before-free: improve conversion code
50061         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50062         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50063
50064 2009-04-14  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/fcntl (Depends-on): Add extensions.
50067         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50068
50069 2009-04-12  Ben Pfaff  <blp@gnu.org>
50070
50071         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50072         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50073
50074 2009-03-20  Ben Pfaff  <blp@gnu.org>
50075
50076         Make rename replace existing destinations on Windows.
50077         * m4/rename.m4: Add test for Mingw.
50078         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50079         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50080         * doc/posix-functions/rename.texi: Document.
50081
50082 2009-04-10  Bruno Haible  <bruno@clisp.org>
50083
50084         New include file "iconveh.h".
50085         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50086         * lib/striconveh.h: Include it.
50087         (enum iconv_ilseq_handler): Remove definition.
50088         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50089         striconveh.h.
50090         * lib/striconveha.c: Include striconveh.h.
50091         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50092         * modules/striconveh (Files): Add lib/iconveh.h.
50093         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50094         lib/striconveh.h.
50095
50096 2009-04-10  Bruno Haible  <bruno@clisp.org>
50097
50098         * lib/uniconv.h: Update comment.
50099
50100 2009-04-10  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50103         always.
50104         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50105         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50106         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50107         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50108         "unistring-notinline.h", so that the function gets defined always.
50109         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50110         * lib/unistr/u8-uctomb.c: Likewise.
50111         * lib/unistr/u16-mbtouc.c: Likewise.
50112         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50113         * lib/unistr/u16-uctomb.c: Likewise.
50114         * lib/unistr/u32-mbtouc.c: Likewise.
50115         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50116         * lib/unistr/u32-uctomb.c: Likewise.
50117
50118 2009-04-10  Bruno Haible  <bruno@clisp.org>
50119
50120         Mark 'utime' obsolete.
50121         * modules/utime (Status, Notice): New sections.
50122         Suggested by Jim Meyering.
50123
50124         Fix cross-compile guess for utime test.
50125         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50126         autoconf.
50127         * doc/posix-functions/utime.texi: Give more precisions.
50128         Reported by Jan <ipif@ymail.com>.
50129
50130 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50131
50132         filevercmp: correct today's change
50133         * lib/filevercmp.c: Also handle coreutils' test inputs.
50134         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50135
50136         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50137         for reporting it.
50138         * lib/filevercmp.c: Special handle for "", "." and "..".
50139         * tests/test-filevercmp.c: Enlarge the set suite.
50140
50141 2009-04-07  Jim Meyering  <meyering@redhat.com>
50142
50143         useless-if-before-free: show how to remove braced useless free, too
50144         * build-aux/useless-if-before-free: still only in a comment, though.
50145
50146 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50147
50148         maint.mk: import changes to syntax-check macros from coreutils
50149         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50150         Use them in the relevant macros.
50151
50152 2009-04-06  Bruno Haible  <bruno@clisp.org>
50153
50154         Fix unportable use of bit-fields.
50155         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50156         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50157         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50158
50159 2009-04-06  Bruno Haible  <bruno@clisp.org>
50160
50161         Avoid test failures on AIX and OSF/1.
50162         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50163         that malloc(0) = NULL.
50164         * tests/unicase/test-u8-tolower.c (check): Likewise.
50165         * tests/unicase/test-u8-totitle.c (check): Likewise.
50166         * tests/unicase/test-u8-toupper.c (check): Likewise.
50167         * tests/unicase/test-u16-casefold.c (check): Likewise.
50168         * tests/unicase/test-u16-tolower.c (check): Likewise.
50169         * tests/unicase/test-u16-totitle.c (check): Likewise.
50170         * tests/unicase/test-u16-toupper.c (check): Likewise.
50171         * tests/unicase/test-u32-casefold.c (check): Likewise.
50172         * tests/unicase/test-u32-tolower.c (check): Likewise.
50173         * tests/unicase/test-u32-totitle.c (check): Likewise.
50174         * tests/unicase/test-u32-toupper.c (check): Likewise.
50175         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50176         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50177         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50178         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50179         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50180         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50181         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50182         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50183         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50184         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50185         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50186         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50187
50188 2009-04-05  Bruno Haible  <bruno@clisp.org>
50189
50190         Work around an autoconf limitation.
50191         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50192         comment line if it would be longer than 3 KB.
50193
50194 2009-04-05  Bruno Haible  <bruno@clisp.org>
50195
50196         Avoid test failure with libiconv-1.13.
50197         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50198         of the expected test results.
50199
50200 2009-04-05  Bruno Haible  <bruno@clisp.org>
50201
50202         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50203         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50204         that it should be installed.
50205
50206 2009-04-05  Bruno Haible  <bruno@clisp.org>
50207
50208         * gnulib-tool: New option --copy-file.
50209         (func_usage): Document it.
50210         (func_dest_tmpfilename): Moved out of func_import.
50211         (func_add_file, func_update_file): New functions, extracted from
50212         func_import.
50213         (func_import): Update.
50214
50215 2009-04-05  Karl Berry  <karl@gnu.org>
50216
50217         * README: prominently mention gnulib-tool.
50218         Rearrange sections so getting the code is near the top.
50219
50220 2009-04-05  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/unicase.h: Mention u*_cmp2.
50223         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50224         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50225         * lib/unicase/ulc-casecmp.c: Likewise.
50226         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50227         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50228         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50229         unistr/u8-cmp.
50230         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50231         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50232         unistr/u16-cmp.
50233         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50234         unistr/u32-cmp.
50235
50236         * lib/uninorm.h: Mention u*_cmp2.
50237         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50238         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50239         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50240         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50241         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50242         unistr/u8-cmp.
50243         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50244         unistr/u16-cmp.
50245         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50246         unistr/u32-cmp.
50247
50248         New module 'unistr/u32-cmp2'.
50249         * lib/unistr/u32-cmp2.c: New file.
50250         * modules/unistr/u32-cmp2: New file.
50251
50252         New module 'unistr/u16-cmp2'.
50253         * lib/unistr/u16-cmp2.c: New file.
50254         * modules/unistr/u16-cmp2: New file.
50255
50256         New module 'unistr/u8-cmp2'.
50257         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50258         * lib/unistr/u8-cmp2.c: New file.
50259         * lib/unistr/u-cmp2.h: New file.
50260         * modules/unistr/u8-cmp2: New file.
50261
50262 2009-04-05  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/unictype.h (uc_property_is_valid): New macro.
50265         * tests/unictype/test-pr_byname.c (main): Use it.
50266
50267         * lib/unistr.h: Doc fixes.
50268         * lib/uniconv.h: Doc fixes.
50269         * lib/unictype.h: Doc fixes.
50270
50271 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50272
50273         Port coreutils 7.2 to Solaris 8.
50274
50275         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50276         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50277         for Solaris 8.  This is a bit of a hack, as it means it's the
50278         caller's responsibility to add -lnsl if needed, but most likely it
50279         won't be needed since only getaddrinfo uses this and getaddrinfo
50280         isn't needed on Solaris 8.
50281
50282         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50283         problem to Solaris 8 encountered with coreutils 7.2, which
50284         resulted in a message "fnmatch.c:292: warning: passing argument 4
50285         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50286         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50287
50288 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50289
50290         * m4/ld-version-script.m4: Add FIXME comment.
50291
50292 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50293
50294         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50295         SOVERSION variable.
50296
50297 2009-04-02  Bruno Haible  <bruno@clisp.org>
50298
50299         * Makefile (info, html, dvi, pdf): Combine the rules.
50300         Suggested by Jim Meyering.
50301
50302 2009-04-01  Bruno Haible  <bruno@clisp.org>
50303
50304         * Makefile (info, html, dvi, pdf): New targets.
50305         Reported by Reuben Thomas <rrt@sc3d.org>.
50306
50307 2009-04-01  Bruno Haible  <bruno@clisp.org>
50308
50309         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50310         can be put into PATH.
50311         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50312
50313 2009-04-01  Bruno Haible  <bruno@clisp.org>
50314
50315         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50316
50317 2009-04-01  Bruno Haible  <bruno@clisp.org>
50318
50319         Rename module 'visibility'.
50320         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50321         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50322         * doc/gnulib.texi: Update.
50323         * MODULES.html.sh (Misc): Update.
50324         * NEWS: Mention the change.
50325
50326 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50327
50328         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50329         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50330         Eric Blake <ebb9@byu.net> for review.
50331         * MODULES.html.sh: Add lib-msvc-compat.
50332         * doc/gnulib.texi: Link to new section.
50333         * m4/ld-output-def.m4: New file.
50334         * doc/ld-output-def.texi: New file.
50335
50336 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50337
50338         Rename ld-version-script to lib-symbol-versions.  Suggested by
50339         Bruno Haible <bruno@clisp.org>.
50340         * modules/ld-version-script: Renamed to lib-symbol-versions.
50341         * doc/ld-version-script.texi: Fix module name.
50342         * MODULES.html.sh: Add lib-symbol-versions.
50343
50344 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50345
50346         * modules/u64-tests: New file.
50347         * tests/test-u64.c: New file.
50348
50349 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50350
50351         * MODULES.html.sh: Mention u64.
50352         * modules/u64: New module.
50353         * modules/crypto/sha512: Depend on u64 module instead of providing
50354         u64.h.
50355
50356 2009-03-27  Eric Blake  <ebb9@byu.net>
50357
50358         test-strerror: make debugging EAI_SYSTEM easier
50359         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50360         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50361         failure was EAI_SYSTEM.
50362
50363 2009-03-25  Bruno Haible  <bruno@clisp.org>
50364
50365         Fix a problem with --enable-relocatable on Solaris 7.
50366         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50367         since 2008-02-24.
50368
50369 2009-03-25  Eric Blake  <ebb9@byu.net>
50370
50371         test-sockets: avoid gcc warning
50372         * tests/test-sockets.c (main): Silence compiler warning.
50373
50374 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         New modules nproc, pthread, contributed by Glen Lenker.
50377
50378         * MODULES.html.sh: Add pthread, nproc.
50379         * lib/nproc.c: New file.
50380         * lib/nproc.h: New file.
50381         * lib/pthread.in.h: New file.
50382         * m4/pthread.m4: New file.
50383         * modules/nproc: New file.
50384         * modules/pthread: New file.
50385
50386 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50387
50388         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50389         New variable.
50390
50391 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50392
50393         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50394         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50395         * tests/test-filevercmp.c: Add tests for backup suffixes.
50396
50397 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50398
50399         * modules/stdlib (Depends-on): Add stdint, needed when defining
50400         struct random_data on, for example, HP-UX 10.20.  Reported by
50401         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50402
50403 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50404
50405         * lib/readline.c (readline): Call fflush on stdout after printing
50406         prompt.
50407
50408 2009-03-20  Bruno Haible  <bruno@clisp.org>
50409
50410         Remove dependency from 'close' module to -lws2_32 on native Windows.
50411         * lib/close-hook.h: New file.
50412         * lib/close-hook.c: New file.
50413         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50414         w32sock.h.
50415         (_gl_close_fd_maybe_socket): Remove function.
50416         (rpl_close): Invoke execute_all_close_hooks instead of
50417         _gl_close_fd_maybe_socket.
50418         * lib/sockets.c: Include close-hook.h, w32sock.h.
50419         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50420         (close_sockets_hook): New variable.
50421         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50422         (gl_sockets_cleanup): Unregister it.
50423         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50424         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50425         * modules/close-hook: New file.
50426         * modules/close (Files): Remove lib/w32sock.h.
50427         (Depends-on): Add close-hook.
50428         (Link): Remove section.
50429         * modules/sockets (Files): Add lib/w32sock.h.
50430         (Depends-on): Add close-hook.
50431         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50432         invocation.
50433         * NEWS: Mention that LIB_CLOSE is gone.
50434
50435 2009-03-23  Eric Blake  <ebb9@byu.net>
50436
50437         signal-tests: test previous patch
50438         * tests/test-signal.c: New file.
50439         * modules/signal-tests: Likewise.
50440
50441         signal.h: always support 'volatile sig_atomic_t'
50442         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50443         (gl_SIGNAL_H_DEFAULTS): Add a default.
50444         * modules/signal (Makefile.am): Substitute if needed.
50445         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50446         users can blindly add volatile.
50447         * doc/posix-headers/signal.texi (signal.h): Document it.
50448         Reported by Matthew Woehlke.
50449
50450 2009-03-23  Jim Meyering  <meyering@redhat.com>
50451
50452         pathmax: PATH_MAX: use pathconf only when available
50453         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50454         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50455         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50456         This avoids a link failure in a PSP cross-compilation environment
50457         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50458
50459         * lib/vasnprintf.c (divide): Fix typo in comment.
50460
50461 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50462
50463         * gnulib-tool (func_filter_filelist): Fix comment.
50464
50465 2009-03-20  Bruno Haible  <bruno@clisp.org>
50466
50467         Make sockets.h self-contained.
50468         * lib/sockets.c: Include sockets.h first.
50469         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50470
50471 2009-03-19  Eric Blake  <ebb9@byu.net>
50472
50473         doc: mention more functions added in cygwin 1.7.0
50474         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50475         addition.
50476         * doc/posix-functions/log2f.texi: Likewise.
50477
50478 2009-03-19  Jim Meyering  <meyering@redhat.com>
50479
50480         fsusage: avoid syntax error due to statement-before-declaration
50481         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50482         after all declarations.  Reported by Matthew Woehlke in
50483         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50484
50485 2009-03-18  Eric Blake  <ebb9@byu.net>
50486
50487         build-aux/compile: sync from automake
50488         * build-aux/compile: New file, from automake.
50489         * config/srclist.txt: Mention build-aux/compile.
50490
50491 2009-03-17  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/git-merge-changelog.c: Fix typo in comment.
50494         Reported by Reuben Thomas <rrt@sc3d.org>.
50495
50496 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50497
50498         * m4/regex.m4: update and improve help for
50499         --without-included-regex.
50500
50501 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50502
50503         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50504         failure on missing include files.
50505
50506 2009-03-17  Eric Blake  <ebb9@byu.net>
50507
50508         doc: mention more functions added in cygwin 1.7.0
50509         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50510         addition.
50511         * doc/posix-functions/fwscanf.texi: Likewise.
50512         * doc/posix-functions/swprintf.texi: Likewise.
50513         * doc/posix-functions/swscanf.texi: Likewise.
50514         * doc/posix-functions/vfwprintf.texi: Likewise.
50515         * doc/posix-functions/vfwscanf.texi: Likewise.
50516         * doc/posix-functions/vswprintf.texi: Likewise.
50517         * doc/posix-functions/vswscanf.texi: Likewise.
50518         * doc/posix-functions/vwprintf.texi: Likewise.
50519         * doc/posix-functions/vwscanf.texi: Likewise.
50520         * doc/posix-functions/wcscasecmp.texi: Likewise.
50521         * doc/posix-functions/wcsdup.texi: Likewise.
50522         * doc/posix-functions/wcsftime.texi: Likewise.
50523         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50524         * doc/posix-functions/wprintf.texi: Likewise.
50525         * doc/posix-functions/wscanf.texi: Likewise.
50526         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50527
50528 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50529
50530         maint.mk: really add $(AM_MAKEFLAGS)
50531         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50532         was inadvertently omitted in the last commit.
50533         Spotted by Bruno Haible.
50534
50535         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50536         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50537         $(AM_MAKEFLAGS)' rather than plain `make'.
50538
50539         gnulib-tool: execute $MAKE not make
50540         * gnulib-tool: Default $MAKE to 'make'.
50541         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50542         than make.  Initialize $MAKE in the do-autobuild script.
50543
50544         gnulib-tool: use $MAKE not make in generated files
50545         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50546         make, in generated files.  Initialize $MAKE in the do-autobuild
50547         script.
50548
50549         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50550
50551         GNUmakefile: disable parallelism only for multiple, recursive targets
50552         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50553         additions in the Makefile.
50554         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50555         by Automake.
50556         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50557         are listed on the command line and at least one of them is
50558         listed in $(ALL_RECURSIVE_TARGETS).
50559
50560 2009-03-14  Bruno Haible  <bruno@clisp.org>
50561
50562         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50563         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50564         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50565         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50566         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50567         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50568         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50569         unistr/u8-uctomb.
50570         * modules/unistr/u8-strchr (Depends-on): Likewise.
50571         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50572         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50573         unistr/u16-uctomb.
50574         * modules/unistr/u16-strchr (Depends-on): Likewise.
50575         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50576
50577 2009-03-12  Bruno Haible  <bruno@clisp.org>
50578
50579         Work around select() bug on Interix 3.5.
50580         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50581         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50582         * m4/select.m4: New file.
50583         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50584         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50585         * modules/select (Files): Add m4/select.m4.
50586         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50587         * modules/nanosleep (Depends-on): Add select.
50588         * modules/poll (Depends-on): Likewise.
50589         * doc/posix-functions/select.texi: Mention the Interix bug.
50590         Reported by Markus Duft <mduft@gentoo.org>.
50591
50592         * lib/select.c: Renamed from lib/winsock-select.c.
50593         * modules/select (Files): Add lib/select.c, remove
50594         lib/winsock-select.c.
50595         (configure.ac): Update.
50596
50597 2009-03-12  Jim Meyering  <meyering@redhat.com>
50598
50599         avoid gcc warnings about unused macro definitions
50600         * lib/readtokens.c (STREQ): Remove unused definition.
50601         * lib/xmalloc.c (SIZE_MAX): Likewise.
50602         * lib/openat-die.c (N_): Likewise.
50603         * lib/mountlist.c (SIZE_MAX): Remove definition.
50604         Instead, include <stdint.h>.
50605         * lib/readutmp.c: Likewise.
50606         * modules/readutmp (Depends-on): Add stdint.
50607         * modules/mountlist (Depends-on): Add stdint.
50608         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50609
50610 2009-03-10  Bruno Haible  <bruno@clisp.org>
50611
50612         Tests for module 'mbmemcasecoll'.
50613         * modules/mbmemcasecoll-tests: New file.
50614         * tests/test-mbmemcasecoll1.sh: New file.
50615         * tests/test-mbmemcasecoll2.sh: New file.
50616         * tests/test-mbmemcasecoll3.sh: New file.
50617         * tests/test-mbmemcasecoll.c: New file.
50618
50619         New module 'mbmemcasecoll'.
50620         * lib/mbmemcasecoll.h: New file.
50621         * lib/mbmemcasecoll.c: New file.
50622         * modules/mbmemcasecoll: New file.
50623
50624         * tests/test-mbmemcasecmp.h: New file, extracted from
50625         tests/test-mbmemcasecmp.c.
50626         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50627         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50628         (main): Update.
50629         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50630
50631 2009-03-09  Bruno Haible  <bruno@clisp.org>
50632
50633         Tests for module 'mbmemcasecmp'.
50634         * modules/mbmemcasecmp-tests: New file.
50635         * tests/test-mbmemcasecmp1.sh: New file.
50636         * tests/test-mbmemcasecmp2.sh: New file.
50637         * tests/test-mbmemcasecmp3.sh: New file.
50638         * tests/test-mbmemcasecmp.c: New file.
50639
50640         New module 'mbmemcasecmp'.
50641         * lib/mbmemcasecmp.h: New file.
50642         * lib/mbmemcasecmp.c: New file.
50643         * modules/mbmemcasecmp: New file.
50644
50645 2009-03-09  Bruno Haible  <bruno@clisp.org>
50646
50647         Tests for module 'unicase/ulc-casecoll'.
50648         * modules/unicase/ulc-casecoll-tests: New file.
50649         * tests/unicase/test-ulc-casecoll1.sh: New file.
50650         * tests/unicase/test-ulc-casecoll2.sh: New file.
50651         * tests/unicase/test-ulc-casecoll.c: New file.
50652
50653         New module 'unicase/ulc-casecoll'.
50654         * lib/unicase.h (ulc_casecoll): New declaration.
50655         * lib/unicase/ulc-casecoll.c: New file.
50656         * modules/unicase/ulc-casecoll: New file.
50657
50658         New module 'unicase/ulc-casexfrm'.
50659         * lib/unicase.h (ulc_casexfrm): New declaration.
50660         * lib/unicase/ulc-casexfrm.c: New file.
50661         * modules/unicase/ulc-casexfrm: New file.
50662
50663 2009-03-09  Bruno Haible  <bruno@clisp.org>
50664
50665         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50666         invocations.
50667
50668         * m4/mbscasecmp.m4: Remove file.
50669         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50670         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50671
50672         * m4/mbscasestr.m4: Remove file.
50673         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50674         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50675
50676         * m4/mbschr.m4: Remove file.
50677         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50678         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50679
50680         * m4/mbscspn.m4: Remove file.
50681         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50682         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50683
50684         * m4/mbslen.m4: Remove file.
50685         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50686         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50687
50688         * m4/mbsncasecmp.m4: Remove file.
50689         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50690         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50691
50692         * m4/mbsnlen.m4: Remove file.
50693         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50694         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50695
50696         * m4/mbspbrk.m4: Remove file.
50697         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50698         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50699
50700         * m4/mbspcasecmp.m4: Remove file.
50701         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50702         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50703
50704         * m4/mbsrchr.m4: Remove file.
50705         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50706         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50707
50708         * m4/mbssep.m4: Remove file.
50709         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50710         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50711
50712         * m4/mbsspn.m4: Remove file.
50713         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50714         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50715
50716         * m4/mbsstr.m4: Remove file.
50717         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50718         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50719
50720         * m4/mbstok_r.m4: Remove file.
50721         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50722         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50723
50724         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50725
50726         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50727         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50728
50729         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50730
50731 2009-03-08  Bruno Haible  <bruno@clisp.org>
50732
50733         Tests for module 'unicase/ulc-casecmp'.
50734         * modules/unicase/ulc-casecmp-tests: New file.
50735         * tests/unicase/test-ulc-casecmp1.sh: New file.
50736         * tests/unicase/test-ulc-casecmp2.sh: New file.
50737         * tests/unicase/test-ulc-casecmp.c: New file.
50738
50739         New module 'unicase/ulc-casecmp'.
50740         * lib/unicase.h (ulc_casecmp): New declaration.
50741         * lib/unicase/ulc-casecmp.c: New file.
50742         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50743         'const SRC_UNIT *'.
50744         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50745         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50746         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50747         * modules/unicase/ulc-casecmp: New file.
50748
50749         Tests for module 'unicase/u32-is-cased'.
50750         * modules/unicase/u32-is-cased-tests: New file.
50751         * tests/unicase/test-u32-is-cased.c: New file.
50752
50753         Tests for module 'unicase/u16-is-cased'.
50754         * modules/unicase/u16-is-cased-tests: New file.
50755         * tests/unicase/test-u16-is-cased.c: New file.
50756
50757         Tests for module 'unicase/u8-is-cased'.
50758         * modules/unicase/u8-is-cased-tests: New file.
50759         * tests/unicase/test-u8-is-cased.c: New file.
50760         * tests/unicase/test-is-cased.h: New file.
50761
50762         New module 'unicase/u32-is-cased'.
50763         * lib/unicase/u32-is-cased.c: New file.
50764         * modules/unicase/u32-is-cased: New file.
50765
50766         New module 'unicase/u16-is-cased'.
50767         * lib/unicase/u16-is-cased.c: New file.
50768         * modules/unicase/u16-is-cased: New file.
50769
50770         New module 'unicase/u8-is-cased'.
50771         * lib/unicase/u8-is-cased.c: New file.
50772         * lib/unicase/u-is-cased.h: New file.
50773         * modules/unicase/u8-is-cased: New file.
50774
50775         Tests for module 'unicase/u32-is-casefolded'.
50776         * modules/unicase/u32-is-casefolded-tests: New file.
50777         * tests/unicase/test-u32-is-casefolded.c: New file.
50778
50779         Tests for module 'unicase/u16-is-casefolded'.
50780         * modules/unicase/u16-is-casefolded-tests: New file.
50781         * tests/unicase/test-u16-is-casefolded.c: New file.
50782
50783         Tests for module 'unicase/u8-is-casefolded'.
50784         * modules/unicase/u8-is-casefolded-tests: New file.
50785         * tests/unicase/test-u8-is-casefolded.c: New file.
50786         * tests/unicase/test-is-casefolded.h: New file.
50787
50788         New module 'unicase/u32-is-casefolded'.
50789         * lib/unicase/u32-is-casefolded.c: New file.
50790         * modules/unicase/u32-is-casefolded: New file.
50791
50792         New module 'unicase/u16-is-casefolded'.
50793         * lib/unicase/u16-is-casefolded.c: New file.
50794         * modules/unicase/u16-is-casefolded: New file.
50795
50796         New module 'unicase/u8-is-casefolded'.
50797         * lib/unicase/u8-is-casefolded.c: New file.
50798         * modules/unicase/u8-is-casefolded: New file.
50799
50800         Tests for module 'unicase/u32-is-titlecase'.
50801         * modules/unicase/u32-is-titlecase-tests: New file.
50802         * tests/unicase/test-u32-is-titlecase.c: New file.
50803
50804         Tests for module 'unicase/u16-is-titlecase'.
50805         * modules/unicase/u16-is-titlecase-tests: New file.
50806         * tests/unicase/test-u16-is-titlecase.c: New file.
50807
50808         Tests for module 'unicase/u8-is-titlecase'.
50809         * modules/unicase/u8-is-titlecase-tests: New file.
50810         * tests/unicase/test-u8-is-titlecase.c: New file.
50811         * tests/unicase/test-is-titlecase.h: New file.
50812
50813         New module 'unicase/u32-is-titlecase'.
50814         * lib/unicase/u32-is-titlecase.c: New file.
50815         * modules/unicase/u32-is-titlecase: New file.
50816
50817         New module 'unicase/u16-is-titlecase'.
50818         * lib/unicase/u16-is-titlecase.c: New file.
50819         * modules/unicase/u16-is-titlecase: New file.
50820
50821         New module 'unicase/u8-is-titlecase'.
50822         * lib/unicase/u8-is-titlecase.c: New file.
50823         * modules/unicase/u8-is-titlecase: New file.
50824
50825         Tests for module 'unicase/u32-is-lowercase'.
50826         * modules/unicase/u32-is-lowercase-tests: New file.
50827         * tests/unicase/test-u32-is-lowercase.c: New file.
50828
50829         Tests for module 'unicase/u16-is-lowercase'.
50830         * modules/unicase/u16-is-lowercase-tests: New file.
50831         * tests/unicase/test-u16-is-lowercase.c: New file.
50832
50833         Tests for module 'unicase/u8-is-lowercase'.
50834         * modules/unicase/u8-is-lowercase-tests: New file.
50835         * tests/unicase/test-u8-is-lowercase.c: New file.
50836         * tests/unicase/test-is-lowercase.h: New file.
50837
50838         New module 'unicase/u32-is-lowercase'.
50839         * lib/unicase/u32-is-lowercase.c: New file.
50840         * modules/unicase/u32-is-lowercase: New file.
50841
50842         New module 'unicase/u16-is-lowercase'.
50843         * lib/unicase/u16-is-lowercase.c: New file.
50844         * modules/unicase/u16-is-lowercase: New file.
50845
50846         New module 'unicase/u8-is-lowercase'.
50847         * lib/unicase/u8-is-lowercase.c: New file.
50848         * modules/unicase/u8-is-lowercase: New file.
50849
50850         Tests for module 'unicase/u32-is-uppercase'.
50851         * modules/unicase/u32-is-uppercase-tests: New file.
50852         * tests/unicase/test-u32-is-uppercase.c: New file.
50853
50854         Tests for module 'unicase/u16-is-uppercase'.
50855         * modules/unicase/u16-is-uppercase-tests: New file.
50856         * tests/unicase/test-u16-is-uppercase.c: New file.
50857
50858         Tests for module 'unicase/u8-is-uppercase'.
50859         * modules/unicase/u8-is-uppercase-tests: New file.
50860         * tests/unicase/test-u8-is-uppercase.c: New file.
50861         * tests/unicase/test-is-uppercase.h: New file.
50862
50863         New module 'unicase/u32-is-uppercase'.
50864         * lib/unicase/u32-is-uppercase.c: New file.
50865         * modules/unicase/u32-is-uppercase: New file.
50866
50867         New module 'unicase/u16-is-uppercase'.
50868         * lib/unicase/u16-is-uppercase.c: New file.
50869         * modules/unicase/u16-is-uppercase: New file.
50870
50871         New module 'unicase/u8-is-uppercase'.
50872         * lib/unicase/u8-is-uppercase.c: New file.
50873         * modules/unicase/u8-is-uppercase: New file.
50874
50875         New module 'unicase/u32-is-invariant'.
50876         * lib/unicase/u32-is-invariant.c: New file.
50877         * modules/unicase/u32-is-invariant: New file.
50878
50879         New module 'unicase/u16-is-invariant'.
50880         * lib/unicase/u16-is-invariant.c: New file.
50881         * modules/unicase/u16-is-invariant: New file.
50882
50883         New module 'unicase/u8-is-invariant'.
50884         * lib/unicase/u8-is-invariant.c: New file.
50885         * lib/unicase/invariant.h: New file.
50886         * lib/unicase/u-is-invariant.h: New file.
50887         * modules/unicase/u8-is-invariant: New file.
50888
50889         Tests for module 'unicase/u32-casecoll'.
50890         * modules/unicase/u32-casecoll-tests: New file.
50891         * tests/unicase/test-u32-casecoll.c: New file.
50892
50893         Tests for module 'unicase/u16-casecoll'.
50894         * modules/unicase/u16-casecoll-tests: New file.
50895         * tests/unicase/test-u16-casecoll.c: New file.
50896
50897         Tests for module 'unicase/u8-casecoll'.
50898         * modules/unicase/u8-casecoll-tests: New file.
50899         * tests/unicase/test-u8-casecoll.c: New file.
50900
50901         New module 'unicase/u32-casecoll'.
50902         * lib/unicase/u32-casecoll.c: New file.
50903         * modules/unicase/u32-casecoll: New file.
50904
50905         New module 'unicase/u16-casecoll'.
50906         * lib/unicase/u16-casecoll.c: New file.
50907         * modules/unicase/u16-casecoll: New file.
50908
50909         New module 'unicase/u8-casecoll'.
50910         * lib/unicase/u8-casecoll.c: New file.
50911         * lib/unicase/u-casecoll.h: New file.
50912         * modules/unicase/u8-casecoll: New file.
50913
50914         New module 'unicase/u32-casexfrm'.
50915         * lib/unicase/u32-casexfrm.c: New file.
50916         * modules/unicase/u32-casexfrm: New file.
50917
50918         New module 'unicase/u16-casexfrm'.
50919         * lib/unicase/u16-casexfrm.c: New file.
50920         * modules/unicase/u16-casexfrm: New file.
50921
50922         New module 'unicase/u8-casexfrm'.
50923         * lib/unicase/u8-casexfrm.c: New file.
50924         * lib/unicase/u-casexfrm.h: New file.
50925         * modules/unicase/u8-casexfrm: New file.
50926
50927         Tests for module 'unicase/u32-casecmp'.
50928         * modules/unicase/u32-casecmp-tests: New file.
50929         * tests/unicase/test-u32-casecmp.c: New file.
50930
50931         Tests for module 'unicase/u16-casecmp'.
50932         * modules/unicase/u16-casecmp-tests: New file.
50933         * tests/unicase/test-u16-casecmp.c: New file.
50934
50935         Tests for module 'unicase/u8-casecmp'.
50936         * modules/unicase/u8-casecmp-tests: New file.
50937         * tests/unicase/test-u8-casecmp.c: New file.
50938         * tests/unicase/test-casecmp.h: New file.
50939
50940         New module 'unicase/u32-casecmp'.
50941         * lib/unicase/u32-casecmp.c: New file.
50942         * modules/unicase/u32-casecmp: New file.
50943
50944         New module 'unicase/u16-casecmp'.
50945         * lib/unicase/u16-casecmp.c: New file.
50946         * modules/unicase/u16-casecmp: New file.
50947
50948         New module 'unicase/u8-casecmp'.
50949         * lib/unicase/u8-casecmp.c: New file.
50950         * lib/unicase/u-casecmp.h: New file.
50951         * modules/unicase/u8-casecmp: New file.
50952
50953         Tests for module 'unicase/u32-casefold'.
50954         * modules/unicase/u32-casefold-tests: New file.
50955         * tests/unicase/test-u32-casefold.c: New file.
50956
50957         Tests for module 'unicase/u16-casefold'.
50958         * modules/unicase/u16-casefold-tests: New file.
50959         * tests/unicase/test-u16-casefold.c: New file.
50960
50961         Tests for module 'unicase/u8-casefold'.
50962         * modules/unicase/u8-casefold-tests: New file.
50963         * tests/unicase/test-u8-casefold.c: New file.
50964
50965         New module 'unicase/u32-casefold'.
50966         * lib/unicase/u32-casefold.c: New file.
50967         * modules/unicase/u32-casefold: New file.
50968
50969         New module 'unicase/u16-casefold'.
50970         * lib/unicase/u16-casefold.c: New file.
50971         * modules/unicase/u16-casefold: New file.
50972
50973         New module 'unicase/u8-casefold'.
50974         * lib/unicase/u8-casefold.c: New file.
50975         * lib/unicase/u-casefold.h: New file.
50976         * modules/unicase/u8-casefold: New file.
50977
50978         New module 'unicase/tocasefold'.
50979         * lib/unicase/casefold.h: New file.
50980         * lib/unicase/tocasefold.c: New file.
50981         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50982         * modules/unicase/tocasefold: New file.
50983
50984         Tests for module 'unicase/u32-totitle'.
50985         * modules/unicase/u32-totitle-tests: New file.
50986         * tests/unicase/test-u32-totitle.c: New file.
50987
50988         Tests for module 'unicase/u16-totitle'.
50989         * modules/unicase/u16-totitle-tests: New file.
50990         * tests/unicase/test-u16-totitle.c: New file.
50991
50992         Tests for module 'unicase/u8-totitle'.
50993         * modules/unicase/u8-totitle-tests: New file.
50994         * tests/unicase/test-u8-totitle.c: New file.
50995
50996         New module 'unicase/u32-totitle'.
50997         * lib/unicase/u32-totitle.c: New file.
50998         * modules/unicase/u32-totitle: New file.
50999
51000         New module 'unicase/u16-totitle'.
51001         * lib/unicase/u16-totitle.c: New file.
51002         * modules/unicase/u16-totitle: New file.
51003
51004         New module 'unicase/u8-totitle'.
51005         * lib/unicase/u8-totitle.c: New file.
51006         * lib/unicase/u-totitle.h: New file.
51007         * modules/unicase/u8-totitle: New file.
51008
51009         Tests for module 'unicase/u32-tolower'.
51010         * modules/unicase/u32-tolower-tests: New file.
51011         * tests/unicase/test-u32-tolower.c: New file.
51012
51013         Tests for module 'unicase/u16-tolower'.
51014         * modules/unicase/u16-tolower-tests: New file.
51015         * tests/unicase/test-u16-tolower.c: New file.
51016
51017         Tests for module 'unicase/u8-tolower'.
51018         * modules/unicase/u8-tolower-tests: New file.
51019         * tests/unicase/test-u8-tolower.c: New file.
51020
51021         New module 'unicase/u32-tolower'.
51022         * lib/unicase/u32-tolower.c: New file.
51023         * modules/unicase/u32-tolower: New file.
51024
51025         New module 'unicase/u16-tolower'.
51026         * lib/unicase/u16-tolower.c: New file.
51027         * modules/unicase/u16-tolower: New file.
51028
51029         New module 'unicase/u8-tolower'.
51030         * lib/unicase/u8-tolower.c: New file.
51031         * modules/unicase/u8-tolower: New file.
51032
51033         Tests for module 'unicase/u32-toupper'.
51034         * modules/unicase/u32-toupper-tests: New file.
51035         * tests/unicase/test-u32-toupper.c: New file.
51036
51037         Tests for module 'unicase/u16-toupper'.
51038         * modules/unicase/u16-toupper-tests: New file.
51039         * tests/unicase/test-u16-toupper.c: New file.
51040
51041         Tests for module 'unicase/u8-toupper'.
51042         * modules/unicase/u8-toupper-tests: New file.
51043         * tests/unicase/test-u8-toupper.c: New file.
51044
51045         New module 'unicase/u32-toupper'.
51046         * lib/unicase/u32-toupper.c: New file.
51047         * modules/unicase/u32-toupper: New file.
51048
51049         New module 'unicase/u16-toupper'.
51050         * lib/unicase/u16-toupper.c: New file.
51051         * modules/unicase/u16-toupper: New file.
51052
51053         New module 'unicase/u8-toupper'.
51054         * lib/unicase/u8-toupper.c: New file.
51055         * modules/unicase/u8-toupper: New file.
51056
51057         New module 'unicase/u32-casemap'.
51058         * lib/unicase/u32-casemap.c: New file.
51059         * modules/unicase/u32-casemap: New file.
51060
51061         New module 'unicase/u16-casemap'.
51062         * lib/unicase/u16-casemap.c: New file.
51063         * modules/unicase/u16-casemap: New file.
51064
51065         New module 'unicase/u8-casemap'.
51066         * lib/unicase/unicasemap.h: New file.
51067         * lib/unicase/u8-casemap.c: New file.
51068         * lib/unicase/u-casemap.h: New file.
51069         * modules/unicase/u8-casemap: New file.
51070
51071         New module 'unicase/special-casing'.
51072         * lib/unicase/special-casing.h: New file.
51073         * lib/unicase/special-casing.c: New file.
51074         * lib/unicase/special-casing-table.gperf: New file, generated by
51075         gen-uni-tables.c.
51076         * modules/unicase/special-casing: New file.
51077
51078         Tests for module 'unicase/locale-language'.
51079         * modules/unicase/locale-language-tests: New file.
51080         * tests/unicase/test-locale-language.sh: New file.
51081         * tests/unicase/test-locale-language.c: New file.
51082
51083         New module 'unicase/locale-language'.
51084         * lib/unicase/locale-language.c: New file.
51085         * lib/unicase/locale-languages.gperf: New file.
51086         * modules/unicase/locale-language: New file.
51087
51088         Generate more tables for case conversion and case folding.
51089         * lib/gen-uni-tables.c (SCC_*): New enum items.
51090         (struct special_casing_rule): New type.
51091         (casing_rules, num_casing_rules, allocated_casing_rules): New
51092         variables.
51093         (add_casing_rule, fill_casing_rules): New functions.
51094         (struct casefold_rule): New type.
51095         (casefolding_rules, num_casefolding_rules,
51096         allocated_casefolding_rules): New variables.
51097         (fill_casefolding_rules): New function.
51098         (unicode_casefold): New variable.
51099         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51100         sort_casing_rules, output_casing_rules): New functions.
51101         (main): Accept to more arguments: SpecialCasing.txt and
51102         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51103         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51104         Output mapping for casefolding.
51105
51106         * lib/unicase.h: Include stdbool.h, uninorm.h.
51107         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51108         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51109         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51110         arguments.
51111         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51112         resultp arguments.
51113         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51114         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51115         resultp arguments.
51116         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51117         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51118         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51119         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51120         declarations.
51121         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51122
51123 2009-03-08  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51126         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51127         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51128         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51129
51130 2009-03-07  Bruno Haible  <bruno@clisp.org>
51131
51132         Adjust u*_normcmp, u*_normcoll API.
51133         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51134         u16_normcoll, u32_normcoll): Change failure conventions.
51135         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51136         errno and return -1.
51137         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51138
51139 2009-03-07  Bruno Haible  <bruno@clisp.org>
51140
51141         Tests for module 'uninorm/u32-normcoll'.
51142         * modules/uninorm/u32-normcoll-tests: New file.
51143         * tests/uninorm/test-u32-normcoll.c: New file.
51144
51145         Tests for module 'uninorm/u16-normcoll'.
51146         * modules/uninorm/u16-normcoll-tests: New file.
51147         * tests/uninorm/test-u16-normcoll.c: New file.
51148
51149         Tests for module 'uninorm/u8-normcoll'.
51150         * modules/uninorm/u8-normcoll-tests: New file.
51151         * tests/uninorm/test-u8-normcoll.c: New file.
51152
51153 2009-03-07  Bruno Haible  <bruno@clisp.org>
51154
51155         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51156         tests/uninorm/test-u32-normcmp.c.
51157         * tests/uninorm/test-u32-normcmp.c: Include it.
51158         (test_nonascii): New function, extracted from main. Add some more
51159         tests.
51160         (main): Invoke test_ascii and test_nonascii.
51161         * modules/uninorm/u32-normcmp-tests (Files): Add
51162         tests/uninorm/test-u32-normcmp.h.
51163         (Depends-on): Remove uninorm/u32-normcmp.
51164
51165         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51166         tests/uninorm/test-u16-normcmp.c.
51167         * tests/uninorm/test-u16-normcmp.c: Include it.
51168         (test_nonascii): New function, extracted from main. Add some more
51169         tests.
51170         (main): Invoke test_ascii and test_nonascii.
51171         * modules/uninorm/u16-normcmp-tests (Files): Add
51172         tests/uninorm/test-u16-normcmp.h.
51173         (Depends-on): Remove uninorm/u16-normcmp.
51174
51175         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51176         tests/uninorm/test-u8-normcmp.c.
51177         * tests/uninorm/test-u8-normcmp.c: Include it.
51178         (test_nonascii): New function, extracted from main. Add some more
51179         tests.
51180         (main): Invoke test_ascii and test_nonascii.
51181         * modules/uninorm/u8-normcmp-tests (Files): Add
51182         tests/uninorm/test-u8-normcmp.h.
51183         (Depends-on): Remove uninorm/u8-normcmp.
51184
51185 2009-03-07  Bruno Haible  <bruno@clisp.org>
51186
51187         New module 'uninorm/u32-normcoll'.
51188         * lib/uninorm/u32-normcoll.c: New file.
51189         * modules/uninorm/u32-normcoll: New file.
51190
51191         New module 'uninorm/u16-normcoll'.
51192         * lib/uninorm/u16-normcoll.c: New file.
51193         * modules/uninorm/u16-normcoll: New file.
51194
51195         New module 'uninorm/u8-normcoll'.
51196         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51197         declarations.
51198         * lib/uninorm/u8-normcoll.c: New file.
51199         * lib/uninorm/u-normcoll.h: New file.
51200         * modules/uninorm/u8-normcoll: New file.
51201
51202         New module 'uninorm/u32-normxfrm'.
51203         * lib/uninorm/u32-normxfrm.c: New file.
51204         * modules/uninorm/u32-normxfrm: New file.
51205
51206         New module 'uninorm/u16-normxfrm'.
51207         * lib/uninorm/u16-normxfrm.c: New file.
51208         * modules/uninorm/u16-normxfrm: New file.
51209
51210         New module 'uninorm/u8-normxfrm'.
51211         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51212         declarations.
51213         * lib/uninorm/u8-normxfrm.c: New file.
51214         * lib/uninorm/u-normxfrm.h: New file.
51215         * modules/uninorm/u8-normxfrm: New file.
51216
51217 2009-03-07  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51220         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51221         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51222
51223 2009-03-07  Bruno Haible  <bruno@clisp.org>
51224
51225         New module 'memxfrm'.
51226         * lib/memxfrm.h: New file.
51227         * lib/memxfrm.c: New file.
51228         * modules/memxfrm: New file.
51229
51230 2009-03-07  Bruno Haible  <bruno@clisp.org>
51231
51232         New module 'memcmp2'.
51233         * lib/memcmp2.h: New file.
51234         * lib/memcmp2.c: New file.
51235         * modules/memcmp2: New file.
51236
51237 2009-03-07  Bruno Haible  <bruno@clisp.org>
51238
51239         Tests for module 'uninorm/decomposing-form'.
51240         * modules/uninorm/decomposing-form-tests: New file.
51241         * tests/uninorm/test-decomposing-form.c: New file.
51242
51243         New module 'uninorm/decomposing-form'.
51244         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51245         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51246         Add 'decomposing_variant' field.
51247         * lib/uninorm/decomposing-form.c: New file.
51248         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51249         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51250         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51251         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51252         * modules/uninorm/decomposing-form: New file.
51253         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51254         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51255
51256 2009-03-07  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51259         strings.
51260
51261 2009-03-06  Bruno Haible  <bruno@clisp.org>
51262
51263         Tests for module 'uninorm/u32-normcmp'.
51264         * tests/uninorm/test-u32-normcmp.c: New file.
51265         * modules/uninorm/u32-normcmp-tests: New file.
51266
51267         Tests for module 'uninorm/u16-normcmp'.
51268         * tests/uninorm/test-u16-normcmp.c: New file.
51269         * modules/uninorm/u16-normcmp-tests: New file.
51270
51271         Tests for module 'uninorm/u8-normcmp'.
51272         * tests/uninorm/test-u8-normcmp.c: New file.
51273         * modules/uninorm/u8-normcmp-tests: New file.
51274
51275         New module 'uninorm/u32-normcmp'.
51276         * lib/uninorm/u32-normcmp.c: New file.
51277         * modules/uninorm/u32-normcmp: New file.
51278
51279         New module 'uninorm/u16-normcmp'.
51280         * lib/uninorm/u16-normcmp.c: New file.
51281         * modules/uninorm/u16-normcmp: New file.
51282
51283         New module 'uninorm/u8-normcmp'.
51284         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51285         declarations.
51286         * lib/uninorm/u8-normcmp.c: New file.
51287         * lib/uninorm/u-normcmp.h: New file.
51288         * modules/uninorm/u8-normcmp: New file.
51289
51290 2009-03-06  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51293         Reported by Eric Blake.
51294
51295 2009-03-06  Eric Blake  <ebb9@byu.net>
51296             Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51299         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51300         condition.
51301         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51302         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51303         condition.
51304         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51305
51306 2009-03-06  Eric Blake  <ebb9@byu.net>
51307
51308         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51309         to avoid compiler warnings.
51310         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51311
51312 2009-03-05  Bruno Haible  <bruno@clisp.org>
51313
51314         * tests/test-ftell.c (main): Disable test beyond end of file on
51315         FreeMiNT.
51316         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51317
51318 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51319
51320         * lib/filevercmp.c: Move hidden files up in ordering.
51321         * tests/test-filevercmp.c: Add tests for hidden files.
51322
51323 2009-03-04  Bruno Haible  <bruno@clisp.org>
51324
51325         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51326         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51327         AM_CFLAGS.
51328         Reported by Simon Josefsson.
51329
51330 2009-03-03  Bruno Haible  <bruno@clisp.org>
51331
51332         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51333         Reported by Simon Josefsson.
51334
51335         * doc/ld-version-script.texi: Update node reference.
51336
51337 2009-03-03  Bruno Haible  <bruno@clisp.org>
51338
51339         * modules/visibility (License): Change to 'unlimited'.
51340         Suggested by Simon Josefsson.
51341
51342 2009-03-03  Jim Meyering  <meyering@redhat.com>
51343
51344         unlinkdir: cannot_unlink_dir may modify process state
51345         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51346         it's neither thread-safe nor appropriate for use in a library.
51347
51348 2009-03-03  Eric Blake  <ebb9@byu.net>
51349
51350         test-closein: silence test under Darwin
51351         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51352         care if it dies from EPIPE or EBADF.
51353
51354 2009-03-03  Bruno Haible  <bruno@clisp.org>
51355
51356         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51357         earlier.
51358         * doc/visibility.texi: Fix @node and @section.
51359
51360 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51361
51362         * doc/gnulib.texi: Link to sections for ld version script and
51363         visibility.
51364         * doc/visibility.texi: Add @node and @section.
51365         * modules/ld-version-script: New module.
51366         * m4/ld-version-script.m4: New file.
51367         * doc/ld-version-script.texi: New file.
51368
51369 2009-03-02  David Lutterkort  <lutter@redhat.com>
51370
51371         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51373
51374 2009-03-02  Bruno Haible  <bruno@clisp.org>
51375
51376         * doc/visibility.texi: Mention libtool's -export-symbols option.
51377
51378 2009-03-02  Jim Meyering  <meyering@redhat.com>
51379
51380         announce-gen: new option: --no-print-checksums
51381         * build-aux/announce-gen (usage): Describe it.
51382         (print_checksums): Print a newline here, not in the [*] footnote.
51383         (main): Honor it.
51384
51385 2009-03-01  Bruno Haible  <bruno@clisp.org>
51386
51387         Use socklen_t in the native Windows replacements prototypes.
51388         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51389         instead of 'int'.
51390         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51391         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51392         * modules/getsockopt (Depends-on): Add socklen.
51393         * modules/setsockopt (Depends-on): Add socklen.
51394
51395 2009-03-01  Bruno Haible  <bruno@clisp.org>
51396
51397         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51398         least 4.2.
51399
51400 2009-03-01  Eric Blake  <ebb9@byu.net>
51401             Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51404         error messages.
51405         * lib/wait-process.c (wait_subprocess): Omit error message about
51406         deadly signal sent to the child of termsigp != NULL.
51407
51408 2009-03-01  Eric Blake  <ebb9@byu.net>
51409
51410         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51411
51412 2009-03-01  Bruno Haible  <bruno@clisp.org>
51413
51414         Avoid a gcc warning.
51415         * tests/test-sched.c (b): Make global.
51416         Reported by Eric Blake.
51417
51418 2009-01-19  Martin Lambers  <marlam@marlam.de>
51419
51420         Provide POSIX semantics for socket timeout options on W32.
51421         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51422         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51423         * modules/setsockopt: Depend on sys_time module for struct timeval.
51424         * modules/getsockopt: Depend on sys_time module for struct timeval.
51425
51426 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51427
51428         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51429         __USE_GNU, for consistency with netdb.in.h.
51430         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51431
51432 2009-03-01  Bruno Haible  <bruno@clisp.org>
51433
51434         More support for FreeMiNT.
51435         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51436         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51437
51438 2009-03-01  Bruno Haible  <bruno@clisp.org>
51439
51440         More support for FreeMiNT.
51441         * lib/fpurge.c (fpurge): Correct last commit.
51442         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51443
51444 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51445
51446         Fix unportable awk script in vc-list-files.
51447         * build-aux/vc-list-files: In the replacement awk script, use
51448         substr with a second argument of 1, not zero.
51449         Report by Simon Josefsson.
51450
51451 2009-02-28  Bruno Haible  <bruno@clisp.org>
51452
51453         More support for FreeMiNT.
51454         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51455         to FreeMiNT today.
51456         * lib/fwriting.c (fwriting): Likewise.
51457         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51458
51459 2009-02-28  Bruno Haible  <bruno@clisp.org>
51460
51461         * tests/test-freadseek.c (main): Disable test beyond end of file on
51462         FreeMiNT.
51463         * tests/test-ftello.c (main): Likewise.
51464         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51465
51466 2009-02-28  Bruno Haible  <bruno@clisp.org>
51467
51468         Add tentative support for FreeMiNT.
51469         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51470         * lib/fpurge.c (fpurge): Likewise.
51471         * lib/freadable.c (freadable): Likewise.
51472         * lib/freading.c (freading): Likewise.
51473         * lib/freadptr.c (freadptr): Likewise.
51474         * lib/freadseek.c (freadptrinc): Likewise.
51475         * lib/fseeko.c (rpl_fseeko): Likewise.
51476         * lib/fseterr.c (fseterr): Likewise.
51477         * lib/fwritable.c (fwritable): Likewise.
51478         * lib/fwriting.c (fwriting): Likewise.
51479         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51480         Hourihane.
51481         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51482
51483 2009-02-28  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51486         SIGCHLD.
51487         Reported by Jim Meyering.
51488
51489 2009-02-28  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51492         Mention the results of these tests on various platforms.
51493         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51494         order.
51495         * doc/posix-functions/printf.texi: Likewise.
51496         * doc/posix-functions/snprintf.texi: Likewise.
51497         * doc/posix-functions/sprintf.texi: Likewise.
51498         * doc/posix-functions/vfprintf.texi: Likewise.
51499         * doc/posix-functions/vprintf.texi: Likewise.
51500         * doc/posix-functions/vsnprintf.texi: Likewise.
51501         * doc/posix-functions/vsprintf.texi: Likewise.
51502         * doc/glibc-functions/obstack_printf.texi: Likewise.
51503         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51504
51505 2009-02-28  Bruno Haible  <bruno@clisp.org>
51506
51507         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51508         Reported by Loïc Minier <lool@dooz.org>.
51509
51510 2009-02-27  Bruno Haible  <bruno@clisp.org>
51511
51512         * gnulib-tool (func_import): Make the sed expression used to create the
51513         sed script for updating the .gitignore file POSIX compliant.
51514         Reported by Eric Blake.
51515
51516 2009-02-27  Bruno Haible  <bruno@clisp.org>
51517
51518         * gnulib-tool (sed): Don't alias as "sed --posix".
51519         Reported by Eric Blake.
51520
51521 2009-02-27  Bruno Haible  <bruno@clisp.org>
51522
51523         Avoid test link errors.
51524         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51525         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51526         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51527         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51529
51530 2009-02-27  Bruno Haible  <bruno@clisp.org>
51531
51532         Avoid spurious "(cached)" in configure output.
51533         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51534         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51535         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51536         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51537         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51538         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51539         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51540         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51541         Reported by Eric Blake.
51542
51543 2009-02-27  Eric Blake  <ebb9@byu.net>
51544
51545         printf: fix regression in previous patch
51546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51547
51548 2009-02-27  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51551         value.
51552         * lib/stdint.in.h: Likewise.
51553         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51554
51555 2009-02-27  Eric Blake  <ebb9@byu.net>
51556
51557         doc: mention more functions added in cygwin 1.7.0
51558         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51559         addition.
51560         * doc/posix-functions/open_wmemstream.texi: Likewise.
51561         * doc/posix-functions/wcsnlen.texi: Likewise.
51562         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51563         * doc/posix-functions/wcstod.texi: Likewise.
51564         * doc/posix-functions/wcstof.texi: Likewise.
51565         * doc/posix-functions/wcstoimax.texi: Likewise.
51566         * doc/posix-functions/wcstok.texi: Likewise.
51567         * doc/posix-functions/wcstoumax.texi: Likewise.
51568
51569         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51571         * doc/posix-functions/fprintf.texi: Update.
51572         * doc/posix-functions/printf.texi: Update.
51573         * doc/posix-functions/snprintf.texi: Update.
51574         * doc/posix-functions/sprintf.texi: Update.
51575         * doc/posix-functions/vfprintf.texi: Update.
51576         * doc/posix-functions/vprintf.texi: Update.
51577         * doc/posix-functions/vsnprintf.texi: Update.
51578         * doc/posix-functions/vsprintf.texi: Update.
51579         * doc/glibc-functions/obstack_printf.texi: Update.
51580         * doc/glibc-functions/obstack_vprintf.texi: Update.
51581
51582 2009-02-26  Eric Blake  <ebb9@byu.net>
51583
51584         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51585         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51586         compilation bug by using runtime conversion.
51587         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51588         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51589         * modules/ceill-tests (Files): Use nan.h.
51590         * modules/floorl-tests (Files): Likewise.
51591         * modules/frexpl-tests (Files): Likewise.
51592         * modules/isnanl-tests (Files): Likewise.
51593         * modules/ldexpl-tests (Files): Likewise.
51594         * modules/roundl-tests (Files): Likewise.
51595         * modules/truncl-tests (Files): Likewise.
51596         * tests/test-ceill.c (main): Use a working NaN.
51597         * tests/test-floorl.c (main): Likewise.
51598         * tests/test-frexpl.c (main): Likewise.
51599         * tests/test-isnan.c (test_long_double): Likewise.
51600         * tests/test-isnanl.h (main): Likewise.
51601         * tests/test-ldexpl.h (main): Likewise.
51602         * tests/test-roundl.h (main): Likewise.
51603         * tests/test-truncl.h (main): Likewise.
51604         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51605
51606 2009-02-26  Eric Blake  <ebb9@byu.net>
51607             Bruno Haible  <bruno@clisp.org>
51608
51609         Work around a *printf bug with %ls on Solaris.
51610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51611         precision is specified, sprintf stops converting the wide string
51612         argument when the number of bytes that have been produced by this
51613         conversion equals or exceeds the precision.
51614         * doc/posix-functions/fprintf.texi: Update.
51615         * doc/posix-functions/printf.texi: Update.
51616         * doc/posix-functions/snprintf.texi: Update.
51617         * doc/posix-functions/sprintf.texi: Update.
51618         * doc/posix-functions/vfprintf.texi: Update.
51619         * doc/posix-functions/vprintf.texi: Update.
51620         * doc/posix-functions/vsnprintf.texi: Update.
51621         * doc/posix-functions/vsprintf.texi: Update.
51622         * doc/glibc-functions/obstack_printf.texi: Update.
51623         * doc/glibc-functions/obstack_vprintf.texi: Update.
51624
51625 2009-02-26  Eric Blake  <ebb9@byu.net>
51626
51627         stdlib: favor compiler check of random.h
51628         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51629         to avoid an ObjC random.h installed by Swarm.
51630
51631 2009-02-26  Bruno Haible  <bruno@clisp.org>
51632
51633         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51634         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51635         Reported by Gary V. Vaughan <gary@gnu.org>.
51636
51637 2009-02-26  Bruno Haible  <bruno@clisp.org>
51638
51639         Fix *printf behaviour regarding the %ls directive.
51640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51641         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51642         NEED_PRINTF_DIRECTIVE_LS.
51643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51644         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51646         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51647         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51648         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51649         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51654         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51658         * doc/posix-functions/fprintf.texi: Update.
51659         * doc/posix-functions/printf.texi: Update.
51660         * doc/posix-functions/snprintf.texi: Update.
51661         * doc/posix-functions/sprintf.texi: Update.
51662         * doc/posix-functions/vfprintf.texi: Update.
51663         * doc/posix-functions/vprintf.texi: Update.
51664         * doc/posix-functions/vsnprintf.texi: Update.
51665         * doc/posix-functions/vsprintf.texi: Update.
51666         * doc/glibc-functions/obstack_printf.texi: Update.
51667         * doc/glibc-functions/obstack_vprintf.texi: Update.
51668         Reported by Eric Blake.
51669
51670 2009-02-25  Bruno Haible  <bruno@clisp.org>
51671
51672         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51673         with known value.
51674         Reported by Gary V. Vaughan <gary@gnu.org>.
51675
51676 2009-02-25  Bruno Haible  <bruno@clisp.org>
51677
51678         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51679         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51680         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51681         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51682         Reported by Gary V. Vaughan <gary@gnu.org>.
51683
51684 2009-02-25  Bruno Haible  <bruno@clisp.org>
51685
51686         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51687         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51688         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51689         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51690         Reported by Gary V. Vaughan <gary@gnu.org>.
51691
51692 2009-02-25  Eric Blake  <ebb9@byu.net>
51693
51694         tests: skip fseek/ftell tests if ungetc is broken
51695         * m4/ungetc.m4: New file.
51696         * modules/fseek-tests: Split test, so ungetc dependency is
51697         separate from rest of test.
51698         * modules/fseeko-tests: Likewise.
51699         * modules/ftell-tests: Likewise.
51700         * modules/ftello-tests: Likewise.
51701         * tests/test-fseek.c (main): Isolate ungetc dependency.
51702         * tests/test-fseeko.c (main): Likewise.
51703         * tests/test-ftell.c (main): Likewise.
51704         * tests/test-ftello.c (main): Likewise.
51705         * tests/test-fseek2.sh: New file.
51706         * tests/test-fseeko2.sh: Likewise.
51707         * tests/test-ftell2.sh: Likewise.
51708         * tests/test-ftello2.sh: Likewise.
51709
51710 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51711
51712         test-getaddrinfo: fix usage of skip return code 77
51713         * tests/test-gettaddrinfo.c: Return skip code 77 only
51714         for first occurrence of skip (4x77 is not 77)
51715
51716 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51717
51718         strtod: avoid C99 decl-after-statement
51719         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51720
51721 2009-02-24  Eric Blake  <ebb9@byu.net>
51722
51723         strtod: detect HP-UX 11.31 bug
51724         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51725         Reported by Gary V. Vaughan.
51726
51727 2009-02-23  Bruno Haible  <bruno@clisp.org>
51728
51729         Fix invalid read past end of memory block.
51730         * lib/vasnprintf.c (DCHAR_SET): Define.
51731         (local_wcslen): Define only when needed.
51732         (local_strnlen, local_wcsnlen): New functions.
51733         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51734         directives that involve a conversion ourselves.
51735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51736         wcsnlen, mbrtowc, wcrtomb.
51737         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51738         * tests/test-vasprintf-posix.c (test_function): Likewise.
51739         * tests/test-snprintf-posix.h (test_function): Likewise.
51740         * tests/test-sprintf-posix.h (test_function): Likewise.
51741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51742
51743 2009-02-22  Bruno Haible  <bruno@clisp.org>
51744
51745         Implement new clarified decomposition of Hangul syllables.
51746         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51747         of type LTV, return only a pairwise decomposition.
51748         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51749         Likewise.
51750         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51751         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51752         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51753
51754 2009-02-22  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51757         zero-length results and shrink excess allocated memory.
51758         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51759         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51760         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51761         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51762         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51763         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51764         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51765         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51766         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51767         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51768         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51769         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51770
51771 2009-02-21  Bruno Haible  <bruno@clisp.org>
51772
51773         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51774         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51775         spaces after a period. Put a space between a macro name and its
51776         argument list. Trivial rewordings.
51777         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51778         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51779         (main): Return 0 explicitly.
51780
51781 2009-02-21  Bruno Haible  <bruno@clisp.org>
51782
51783         Tests for module 'uninorm/filter'.
51784         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51785         * modules/uninorm/filter-tests: New file.
51786
51787         New module 'uninorm/filter'.
51788         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51789         uninorm_filter_flush, uninorm_filter_free): New declarations.
51790         * lib/uninorm/uninorm-filter.c: New file.
51791         * modules/uninorm/filter: New file.
51792
51793 2009-02-21  Bruno Haible  <bruno@clisp.org>
51794
51795         Tests for module 'uninorm/nfkc'.
51796         * tests/uninorm/test-nfkc.c: New file.
51797         * tests/uninorm/test-u8-nfkc.c: New file.
51798         * tests/uninorm/test-u16-nfkc.c: New file.
51799         * tests/uninorm/test-u32-nfkc.c: New file.
51800         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51801         * tests/uninorm/test-u32-nfkc-big.c: New file.
51802         * modules/uninorm/nfkc-tests: New file.
51803
51804         New module 'uninorm/nfkc'.
51805         * lib/uninorm/nfkc.c: New file.
51806         * modules/uninorm/nfkc: New file.
51807
51808         Tests for module 'uninorm/nfkd'.
51809         * tests/uninorm/test-nfkd.c: New file.
51810         * tests/uninorm/test-u8-nfkd.c: New file.
51811         * tests/uninorm/test-u16-nfkd.c: New file.
51812         * tests/uninorm/test-u32-nfkd.c: New file.
51813         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51814         * tests/uninorm/test-u32-nfkd-big.c: New file.
51815         * modules/uninorm/nfkd-tests: New file.
51816
51817         New module 'uninorm/nfkd'.
51818         * lib/uninorm/nfkd.c: New file.
51819         * modules/uninorm/nfkd: New file.
51820
51821         Tests for module 'uninorm/nfc'.
51822         * tests/uninorm/test-nfc.c: New file.
51823         * tests/uninorm/test-u8-nfc.c: New file.
51824         * tests/uninorm/test-u16-nfc.c: New file.
51825         * tests/uninorm/test-u32-nfc.c: New file.
51826         * tests/uninorm/test-u32-nfc-big.sh: New file.
51827         * tests/uninorm/test-u32-nfc-big.c: New file.
51828         * modules/uninorm/nfc-tests: New file.
51829
51830         New module 'uninorm/nfc'.
51831         * lib/uninorm/nfc.c: New file.
51832         * modules/uninorm/nfc: New file.
51833
51834         Tests for module 'uninorm/nfd'.
51835         * tests/uninorm/test-nfd.c: New file.
51836         * tests/uninorm/test-u8-nfd.c: New file.
51837         * tests/uninorm/test-u16-nfd.c: New file.
51838         * tests/uninorm/test-u32-nfd.c: New file.
51839         * tests/uninorm/test-u32-nfd-big.sh: New file.
51840         * tests/uninorm/test-u32-nfd-big.c: New file.
51841         * tests/uninorm/test-u32-normalize-big.h: New file.
51842         * tests/uninorm/test-u32-normalize-big.c: New file.
51843         * tests/uninorm/NormalizationTest.txt: New file, created from
51844         Unicode 5.1.0 NormalizationTest.txt.
51845         * modules/uninorm/nfd-tests: New file.
51846
51847         New module 'uninorm/nfd'.
51848         * lib/uninorm/nfd.c: New file.
51849         * modules/uninorm/nfd: New file.
51850
51851         New module 'uninorm/u32-normalize'.
51852         * lib/uninorm/u32-normalize.c: New file.
51853         * modules/uninorm/u32-normalize: New file.
51854
51855         New module 'uninorm/u16-normalize'.
51856         * lib/uninorm/u16-normalize.c: New file.
51857         * modules/uninorm/u16-normalize: New file.
51858
51859         New module 'uninorm/u8-normalize'.
51860         * lib/uninorm/u8-normalize.c: New file.
51861         * lib/uninorm/normalize-internal.h: New file.
51862         * lib/uninorm/u-normalize-internal.h: New file.
51863         * modules/uninorm/u8-normalize: New file.
51864
51865         New module 'uninorm/decompose-internal'.
51866         * lib/uninorm/decompose-internal.c: New file.
51867         * modules/uninorm/decompose-internal: New file.
51868
51869         Tests for module 'uninorm/composition'.
51870         * tests/uninorm/test-composition.c: New file.
51871         * modules/uninorm/composition-tests: New file.
51872
51873         New module 'uninorm/composition'.
51874         * lib/uninorm/composition.c: New file.
51875         * lib/uninorm/composition-table.gperf: New file, generated by
51876         gen-uni-tables.
51877         * modules/uninorm/composition: New file.
51878
51879         Tests for module 'uninorm/compat-decomposition'.
51880         * tests/uninorm/test-compat-decomposition.c: New file.
51881         * modules/uninorm/compat-decomposition-tests: New file.
51882
51883         New module 'uninorm/compat-decomposition'.
51884         * lib/uninorm/decompose-internal.h: New file.
51885         * lib/uninorm/compat-decomposition.c: New file.
51886         * modules/uninorm/compat-decomposition: New file.
51887
51888         Tests for module 'uninorm/canonical-decomposition'.
51889         * tests/uninorm/test-canonical-decomposition.c: New file.
51890         * modules/uninorm/canonical-decomposition-tests: New file.
51891
51892         New module 'uninorm/canonical-decomposition'.
51893         * lib/uninorm/canonical-decomposition.c: New file.
51894         * modules/uninorm/canonical-decomposition: New file.
51895
51896         Tests for module 'uninorm/decomposition'.
51897         * tests/uninorm/test-decomposition.c: New file.
51898         * modules/uninorm/decomposition-tests: New file.
51899
51900         New module 'uninorm/decomposition'.
51901         * lib/uninorm/decomposition.c: New file.
51902         * modules/uninorm/decomposition: New file.
51903
51904         New module 'uninorm/decomposition-table'.
51905         * lib/uninorm/decomposition-table.h: New file.
51906         * lib/uninorm/decomposition-table.c: New file.
51907         * lib/uninorm/decomposition-table1.h: New file, generated by
51908         gen-uni-tables.
51909         * lib/uninorm/decomposition-table2.h: New file, generated by
51910         gen-uni-tables.
51911         * modules/uninorm/decomposition-table: New file.
51912
51913         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51914         (UC_DECOMP_*): New enumeration items.
51915         (get_decomposition): New function.
51916         (struct decomp_table): New type.
51917         (output_decomposition, output_decomposition_tables): New functions.
51918         (unicode_composition_exclusions): New variable.
51919         (fill_composition_exclusions, debug_output_composition_tables): New
51920         functions.
51921         (main): Accept one more argument. Invoke fill_composition_exclusions.
51922         Output decomposition and composition tables.
51923
51924         New module 'uninorm/base'.
51925         * lib/uninorm.h: New file.
51926         * lib/unictype.h: Update comment.
51927         * modules/uninorm/base: New file.
51928
51929 2009-02-21  David Lutterkort  <lutter@redhat.com>
51930
51931         Tests for module 'safe-alloc'.
51932         * tests/test-safe-alloc.c: New file.
51933         * modules/safe-alloc-tests: New file.
51934
51935         New module 'safe-alloc'.
51936         * lib/safe-alloc.h: New file.
51937         * lib/safe-alloc.c: New file.
51938         * m4/safe-alloc.m4: New file.
51939         * modules/safe-alloc: New file.
51940         * doc/safe-alloc.texi: New file.
51941         * doc/gnulib.texi: Include it.
51942         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51943         safe-alloc.
51944
51945 2009-02-18  Bruno Haible  <bruno@clisp.org>
51946
51947         Fix link error on non-glibc systems.
51948         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51949         variable.
51950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51951
51952 2009-02-18  Jim Meyering  <meyering@redhat.com>
51953
51954         fts: avoid used-uninitialized error due to recent change
51955         * lib/fts.c (fts_read): Guard uses of the new member,
51956         parent->fts_n_dirs_remaining, since it's not relevant for
51957         the parent of a directory specified on the command-line.
51958
51959 2009-02-17  James Youngman  <jay@gnu.org>
51960             Bruno Haible  <bruno@clisp.org>
51961
51962         * m4/include_next.m4: Reformulate comment.
51963
51964 2009-02-16  Jim Meyering  <meyering@redhat.com>
51965
51966         fts: add #if guards so that the fts_lgpl module still builds
51967         * lib/fts.c: Guard just-added hash-table-using parts with
51968         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51969         Reported by Simon Josefsson.
51970
51971 2009-02-15  Bruno Haible  <bruno@clisp.org>
51972
51973         * modules/array-mergesort-tests: New file.
51974         * tests/test-array-mergesort.c: New file.
51975
51976         New module 'array-mergesort'.
51977         * modules/array-mergesort: New file.
51978         * lib/array-mergesort.h: New file.
51979
51980 2009-02-15  Bruno Haible  <bruno@clisp.org>
51981
51982         Fix 2009-02-07 commit.
51983         * lib/gen-uni-tables.c (output_predicate, output_category,
51984         output_combclass, output_bidi_category, output_decimal_digit,
51985         output_digit, output_numeric, output_mirror, output_scripts,
51986         output_ident_category, output_simple_mapping): Fix format directives.
51987         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51988
51989 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51990
51991         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51992         fixes are available from IBM.
51993
51994 2009-02-13  Jim Meyering  <meyering@redhat.com>
51995
51996         fts: arrange not to stat non-directories in more cases
51997         This makes GNU find (when it doesn't need to stat each file)
51998         *much* more efficient at traversing reiserfs file systems.
51999         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52000         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52001         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52002         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52003         (leaf_optimization_applies): New function.
52004         (LCO_hash, LCO_compare): New helper functions.
52005         (link_count_optimize_ok): New function.
52006         (fts_stat): Initialize new member (if dir).
52007         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52008         we've just stat'ed a directory.  Skip the stat call when possible.
52009         ---
52010         Note this AFS-related exchange:
52011         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52012         and note find's pioctl call in find/fstype.c.
52013         But that is necessary only if you want to enable the
52014         optimization for AFS, and for now, I don't.
52015
52016         fts: move a function definition "up" (no semantic change)
52017         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52018         "up" to precede upcoming use of a related function.
52019
52020 2009-02-11  Jim Meyering  <meyering@redhat.com>
52021
52022         fts: correct internal computation of nlinks (optimization-related)
52023         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52024         whether the current entry is a directory, so don't test it.
52025
52026 2009-02-10  Bruno Haible  <bruno@clisp.org>
52027
52028         Tests for module 'uniwbrk/ulc-wordbreaks'.
52029         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52030         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52031         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52032
52033         Tests for module 'uniwbrk/u32-wordbreaks'.
52034         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52035         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52036
52037         Tests for module 'uniwbrk/u16-wordbreaks'.
52038         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52039         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52040
52041         Tests for module 'uniwbrk/u8-wordbreaks'.
52042         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52043         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52044
52045 2009-02-10  Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52048         property.
52049         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52050         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52051         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52052
52053 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52054
52055         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52056         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52057
52058 2009-02-10  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52061         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52062         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52063         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52064         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52065         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52066
52067 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52068
52069         * lib/sockets.h (gl_fd_to_handle): New function.
52070
52071         * tests/test-sockets.c: Call gl_fd_to_handle.
52072
52073 2009-02-09  Bruno Haible  <bruno@clisp.org>
52074
52075         * doc/havelib.texi: Document the conventions on bi-arch systems.
52076
52077 2009-02-08  Bruno Haible  <bruno@clisp.org>
52078
52079         Document the AC_LIB_LINKFLAGS macro.
52080         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52081         * doc/gnulib.texi: Include it.
52082
52083 2009-02-08  Bruno Haible  <bruno@clisp.org>
52084
52085         Fix wrong order of sections, compared to TOC.
52086         * doc/gnulib.texi: Include relocatable-maint.texi after the
52087         "Regular expressions" node, not before.
52088
52089 2009-02-08  Bruno Haible  <bruno@clisp.org>
52090
52091         Tests for module 'unicase/totitle'.
52092         * modules/unicase/totitle-tests: New file.
52093
52094         Tests for module 'unicase/tolower'.
52095         * modules/unicase/tolower-tests: New file.
52096
52097         Tests for module 'unicase/toupper'.
52098         * modules/unicase/toupper-tests: New file.
52099         * tests/unicase/test-mapping-part1.h: New file.
52100         * tests/unicase/test-mapping-part2.h: New file.
52101
52102         New module 'unicase/totitle'.
52103         * modules/unicase/totitle: New file.
52104         * lib/unicase/totitle.c: New file.
52105
52106         New module 'unicase/tolower'.
52107         * modules/unicase/tolower: New file.
52108         * lib/unicase/tolower.c: New file.
52109
52110         New module 'unicase/toupper'.
52111         * modules/unicase/toupper: New file.
52112         * lib/unicase/toupper.c: New file.
52113         * lib/unicase/simple-mapping.h: New file.
52114
52115         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52116         (mapping_table): New structure.
52117         (output_simple_mapping): New function.
52118         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52119         * modules/gen-uni-tables (Description): Update.
52120         * lib/unicase/toupper.h: New file, automatically generated by
52121         gen-uni-tables.
52122         * lib/unicase/tolower.h: New file, automatically generated by
52123         gen-uni-tables.
52124         * lib/unicase/totitle.h: New file, automatically generated by
52125         gen-uni-tables.
52126         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52127         gen-uni-tables.
52128         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52129         gen-uni-tables.
52130         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52131         gen-uni-tables.
52132
52133         New module 'unicase/base'.
52134         * modules/unicase/base: New file.
52135         * lib/unicase.h: New file.
52136
52137 2009-02-08  Bruno Haible  <bruno@clisp.org>
52138
52139         New module 'uniwbrk/ulc-wordbreaks'.
52140         * modules/uniwbrk/ulc-wordbreaks: New file.
52141         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52142
52143         New module 'uniwbrk/u32-wordbreaks'.
52144         * modules/uniwbrk/u32-wordbreaks: New file.
52145         * lib/uniwbrk/u32-wordbreaks.c: New file.
52146
52147         New module 'uniwbrk/u16-wordbreaks'.
52148         * modules/uniwbrk/u16-wordbreaks: New file.
52149         * lib/uniwbrk/u16-wordbreaks.c: New file.
52150
52151         New module 'uniwbrk/u8-wordbreaks'.
52152         * modules/uniwbrk/u8-wordbreaks: New file.
52153         * lib/uniwbrk/u8-wordbreaks.c: New file.
52154         * lib/uniwbrk/u-wordbreaks.h: New file.
52155
52156         New module 'uniwbrk/table'.
52157         * modules/uniwbrk/table: New file.
52158         * lib/uniwbrk/wbrktable.h: New file.
52159         * lib/uniwbrk/wbrktable.c: New file.
52160
52161         New module 'uniwbrk/wordbreak-property'.
52162         * modules/uniwbrk/wordbreak-property: New file.
52163         * lib/uniwbrk/wordbreak-property.c: New file.
52164
52165         * lib/gen-uni-tables.c (WBP_*): New enum items.
52166         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52167         (unicode_org_wbp): New variable.
52168         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52169         New functions.
52170         (wbp_table): New structure.
52171         (output_wbp, output_wbrk_tables): New functions.
52172         (main): Accept additional argument. Invoke fill_org_wbp,
52173         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52174         output_wbrk_tables.
52175         * modules/gen-uni-tables (Description): Update.
52176         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52177         gen-uni-tables.
52178
52179         New module 'uniwbrk/base'.
52180         * modules/uniwbrk/base: New file.
52181         * lib/uniwbrk.h: New file.
52182
52183 2009-02-08  Bruno Haible  <bruno@clisp.org>
52184
52185         Update to Unicode 5.1.0.
52186         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52187         U+2185..U+2188.
52188         (is_property_default_ignorable_code_point): Don't include characters
52189         of category Cc or Cs and not-a-characters.
52190         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52191         U+0D79, U+109E, U+109F, U+A60C.
52192         * lib/unictype/bidi_of.h: Regenerated.
52193         * lib/unictype/blocks.h: Regenerated.
52194         * lib/unictype/categ_C.h: Regenerated.
52195         * lib/unictype/categ_Cf.h: Regenerated.
52196         * lib/unictype/categ_Cn.h: Regenerated.
52197         * lib/unictype/categ_L.h: Regenerated.
52198         * lib/unictype/categ_Ll.h: Regenerated.
52199         * lib/unictype/categ_Lm.h: Regenerated.
52200         * lib/unictype/categ_Lo.h: Regenerated.
52201         * lib/unictype/categ_Lu.h: Regenerated.
52202         * lib/unictype/categ_M.h: Regenerated.
52203         * lib/unictype/categ_Mc.h: Regenerated.
52204         * lib/unictype/categ_Me.h: Regenerated.
52205         * lib/unictype/categ_Mn.h: Regenerated.
52206         * lib/unictype/categ_N.h: Regenerated.
52207         * lib/unictype/categ_Nd.h: Regenerated.
52208         * lib/unictype/categ_Nl.h: Regenerated.
52209         * lib/unictype/categ_No.h: Regenerated.
52210         * lib/unictype/categ_P.h: Regenerated.
52211         * lib/unictype/categ_Pd.h: Regenerated.
52212         * lib/unictype/categ_Pe.h: Regenerated.
52213         * lib/unictype/categ_Pf.h: Regenerated.
52214         * lib/unictype/categ_Pi.h: Regenerated.
52215         * lib/unictype/categ_Po.h: Regenerated.
52216         * lib/unictype/categ_Ps.h: Regenerated.
52217         * lib/unictype/categ_S.h: Regenerated.
52218         * lib/unictype/categ_Sk.h: Regenerated.
52219         * lib/unictype/categ_Sm.h: Regenerated.
52220         * lib/unictype/categ_So.h: Regenerated.
52221         * lib/unictype/categ_of.h: Regenerated.
52222         * lib/unictype/combining.h: Regenerated.
52223         * lib/unictype/ctype_alnum.h: Regenerated.
52224         * lib/unictype/ctype_alpha.h: Regenerated.
52225         * lib/unictype/ctype_graph.h: Regenerated.
52226         * lib/unictype/ctype_lower.h: Regenerated.
52227         * lib/unictype/ctype_print.h: Regenerated.
52228         * lib/unictype/ctype_punct.h: Regenerated.
52229         * lib/unictype/ctype_upper.h: Regenerated.
52230         * lib/unictype/decdigit.h: Regenerated.
52231         * lib/unictype/digit.h: Regenerated.
52232         * lib/unictype/mirror.h: Regenerated.
52233         * lib/unictype/numeric.h: Regenerated.
52234         * lib/unictype/pr_alphabetic.h: Regenerated.
52235         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52236         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52237         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52238         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52239         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52240         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52241         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52242         * lib/unictype/pr_combining.h: Regenerated.
52243         * lib/unictype/pr_dash.h: Regenerated.
52244         * lib/unictype/pr_decimal_digit.h: Regenerated.
52245         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52246         * lib/unictype/pr_deprecated.h: Regenerated.
52247         * lib/unictype/pr_diacritic.h: Regenerated.
52248         * lib/unictype/pr_extender.h: Regenerated.
52249         * lib/unictype/pr_format_control.h: Regenerated.
52250         * lib/unictype/pr_grapheme_base.h: Regenerated.
52251         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52252         * lib/unictype/pr_grapheme_link.h: Regenerated.
52253         * lib/unictype/pr_id_continue.h: Regenerated.
52254         * lib/unictype/pr_id_start.h: Regenerated.
52255         * lib/unictype/pr_ideographic.h: Regenerated.
52256         * lib/unictype/pr_ignorable_control.h: Regenerated.
52257         * lib/unictype/pr_lowercase.h: Regenerated.
52258         * lib/unictype/pr_math.h: Regenerated.
52259         * lib/unictype/pr_numeric.h: Regenerated.
52260         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52261         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52262         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52263         * lib/unictype/pr_other_id_continue.h: Regenerated.
52264         * lib/unictype/pr_other_lowercase.h: Regenerated.
52265         * lib/unictype/pr_other_math.h: Regenerated.
52266         * lib/unictype/pr_punctuation.h: Regenerated.
52267         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52268         * lib/unictype/pr_soft_dotted.h: Regenerated.
52269         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52270         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52271         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52272         * lib/unictype/pr_uppercase.h: Regenerated.
52273         * lib/unictype/pr_xid_continue.h: Regenerated.
52274         * lib/unictype/pr_xid_start.h: Regenerated.
52275         * lib/unictype/pr_zero_width.h: Regenerated.
52276         * lib/unictype/scripts.h: Regenerated.
52277         * lib/unictype/scripts_byname.gperf: Regenerated.
52278         * lib/unictype/sy_java_ident.h: Regenerated.
52279         * lib/unilbrk/lbrkprop1.h: Regenerated.
52280         * lib/unilbrk/lbrkprop2.h: Regenerated.
52281         * tests/unictype/test-categ_C.c: Regenerated.
52282         * tests/unictype/test-categ_Cf.c: Regenerated.
52283         * tests/unictype/test-categ_Cn.c: Regenerated.
52284         * tests/unictype/test-categ_L.c: Regenerated.
52285         * tests/unictype/test-categ_Ll.c: Regenerated.
52286         * tests/unictype/test-categ_Lm.c: Regenerated.
52287         * tests/unictype/test-categ_Lo.c: Regenerated.
52288         * tests/unictype/test-categ_Lu.c: Regenerated.
52289         * tests/unictype/test-categ_M.c: Regenerated.
52290         * tests/unictype/test-categ_Mc.c: Regenerated.
52291         * tests/unictype/test-categ_Me.c: Regenerated.
52292         * tests/unictype/test-categ_Mn.c: Regenerated.
52293         * tests/unictype/test-categ_N.c: Regenerated.
52294         * tests/unictype/test-categ_Nd.c: Regenerated.
52295         * tests/unictype/test-categ_Nl.c: Regenerated.
52296         * tests/unictype/test-categ_No.c: Regenerated.
52297         * tests/unictype/test-categ_P.c: Regenerated.
52298         * tests/unictype/test-categ_Pd.c: Regenerated.
52299         * tests/unictype/test-categ_Pe.c: Regenerated.
52300         * tests/unictype/test-categ_Pf.c: Regenerated.
52301         * tests/unictype/test-categ_Pi.c: Regenerated.
52302         * tests/unictype/test-categ_Po.c: Regenerated.
52303         * tests/unictype/test-categ_Ps.c: Regenerated.
52304         * tests/unictype/test-categ_S.c: Regenerated.
52305         * tests/unictype/test-categ_Sk.c: Regenerated.
52306         * tests/unictype/test-categ_Sm.c: Regenerated.
52307         * tests/unictype/test-categ_So.c: Regenerated.
52308         * tests/unictype/test-ctype_alnum.c: Regenerated.
52309         * tests/unictype/test-ctype_alpha.c: Regenerated.
52310         * tests/unictype/test-ctype_graph.c: Regenerated.
52311         * tests/unictype/test-ctype_lower.c: Regenerated.
52312         * tests/unictype/test-ctype_print.c: Regenerated.
52313         * tests/unictype/test-ctype_punct.c: Regenerated.
52314         * tests/unictype/test-ctype_upper.c: Regenerated.
52315         * tests/unictype/test-decdigit.h: Regenerated.
52316         * tests/unictype/test-digit.h: Regenerated.
52317         * tests/unictype/test-numeric.h: Regenerated.
52318         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52319         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52321         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52322         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52323         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52324         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52325         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52326         * tests/unictype/test-pr_combining.c: Regenerated.
52327         * tests/unictype/test-pr_dash.c: Regenerated.
52328         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52329         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52330         * tests/unictype/test-pr_deprecated.c: Regenerated.
52331         * tests/unictype/test-pr_diacritic.c: Regenerated.
52332         * tests/unictype/test-pr_extender.c: Regenerated.
52333         * tests/unictype/test-pr_format_control.c: Regenerated.
52334         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52335         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52336         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52337         * tests/unictype/test-pr_id_continue.c: Regenerated.
52338         * tests/unictype/test-pr_id_start.c: Regenerated.
52339         * tests/unictype/test-pr_ideographic.c: Regenerated.
52340         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52341         * tests/unictype/test-pr_lowercase.c: Regenerated.
52342         * tests/unictype/test-pr_math.c: Regenerated.
52343         * tests/unictype/test-pr_numeric.c: Regenerated.
52344         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52345         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52346         Regenerated.
52347         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52348         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52349         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52350         * tests/unictype/test-pr_other_math.c: Regenerated.
52351         * tests/unictype/test-pr_punctuation.c: Regenerated.
52352         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52353         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52354         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52355         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52356         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52357         * tests/unictype/test-pr_uppercase.c: Regenerated.
52358         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52359         * tests/unictype/test-pr_xid_start.c: Regenerated.
52360         * tests/unictype/test-pr_zero_width.c: Regenerated.
52361
52362         Update to Unicode 5.1.0.
52363         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52364         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52365         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52366         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52367         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52368         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52369         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52370         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52371         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52372         (nonspacing_table_ind): Update.
52373         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52374
52375         Update to Unicode 5.1.0.
52376         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52377         code transform.
52378         * lib/uniname/uniname.c (unicode_character_name,
52379         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52380         * lib/uniname/uninames.h: Regenerated.
52381         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52382
52383 2009-02-07  Bruno Haible  <bruno@clisp.org>
52384
52385         Merge gen-ctype and gen-lbrk into a single program.
52386         * lib/gen-uni-tables.c: New file, incorporating
52387         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52388         Add directory prefixes to the names of the generated files.
52389         * lib/unictype/gen-ctype.c: Remove file.
52390         * lib/unilbrk/gen-lbrk.c: Remove file.
52391         * modules/gen-uni-tables: New file.
52392         * modules/unictype/gen-ctype: Remove file.
52393         * modules/unilbrk/gen-lbrk: Remove file.
52394
52395 2009-02-07  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52398
52399         New module 'unistr/u32-strcoll'.
52400         * modules/unistr/u32-strcoll: New file.
52401         * lib/unistr/u32-strcoll.c: New file.
52402
52403         New module 'unistr/u16-strcoll'.
52404         * modules/unistr/u16-strcoll: New file.
52405         * lib/unistr/u16-strcoll.c: New file.
52406
52407         New module 'unistr/u8-strcoll'.
52408         * modules/unistr/u8-strcoll: New file.
52409         * lib/unistr/u8-strcoll.c: New file.
52410         * lib/unistr/u-strcoll.h: New file.
52411
52412 2009-02-07  Bruno Haible  <bruno@clisp.org>
52413
52414         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52415         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52416         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52417         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52418         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52419         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52420
52421 2009-02-07  Bruno Haible  <bruno@clisp.org>
52422
52423         Make 64-bit clean.
52424         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52425         output_combclass, output_bidi_category, output_decimal_digit,
52426         output_digit, output_numeric, output_mirror, output_scripts,
52427         output_ident_category): Use proper width specifier in format strings.
52428
52429 2009-02-07  Bruno Haible  <bruno@clisp.org>
52430
52431         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52432         failure behaviour.
52433
52434 2009-02-07  Jim Meyering  <meyering@redhat.com>
52435
52436         regex: avoid compilation failure with upcoming gcc-4.4
52437         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52438         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52439         "... error: integer overflow in preprocessor expression".
52440
52441 2009-02-05  Ben Pfaff  <blp@gnu.org>
52442
52443         Fix link errors on Windows when close module is used.
52444         * modules/close: Add $(LIB_CLOSE) to Link section.
52445         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52446         $(LIB_CLOSE) on Windows.
52447
52448 2009-02-05  Jim Meyering  <meyering@redhat.com>
52449
52450         still avoid unused-parameter warnings, but do it cleanly
52451         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52452         (get_fs_usage): Cast to void instead.
52453         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52454         (dev_from_mount_options, read_file_system_list): Cast to void.
52455         Prompted by Bruno Haible.
52456
52457 2009-02-04  Jim Meyering  <meyering@redhat.com>
52458
52459         fsusage.c: correct copyright year
52460         * lib/fsusage.c: Reflect year in which the change is pushed into
52461
52462         avoid misc. warnings
52463         * lib/fsusage.c (UNUSED_PARAM): Define.
52464         (get_fs_usage): Mark parameter "disk" as unused.
52465         * lib/getugroups.c (getgrent): Use "void" in prototype.
52466         * lib/mountlist.c: Mark unused parameters.
52467         (read_file_system_list): Declare a local with "const".
52468         * lib/nanosleep.c (getnow): Declare static.
52469         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52470
52471         dirfd: set errno upon failure
52472         * lib/dirfd.c: Include <errno.h>.
52473         Set errno to ENOTSUP when returning -1.
52474         * modules/dirfd (Depends-on): Add errno.
52475         Suggested by John Kodis <kodis@comcast.net>.
52476
52477 2009-02-01  Bruno Haible  <bruno@clisp.org>
52478
52479         Don't assume sizeof (long) >= sizeof (void *).
52480         * lib/memcmp.c: Include stdint.h.
52481         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52482         srcp2 to 'const byte *'.
52483         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52484         types to uintptr_t.
52485         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52486         * modules/memcmp (Depends-on): Add stdint.
52487         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52488
52489 2009-01-30  Eric Blake  <ebb9@byu.net>
52490
52491         fix more require-before-expand issues
52492         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52493         expand, AC_PROG_AWK.
52494         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52495
52496 2009-01-28  Eric Blake  <ebb9@byu.net>
52497
52498         version-etc: use consistent URL formatting
52499         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52500         Improve formatting.  Use fputs for string without %.
52501
52502 2009-01-28  Jim Meyering  <meyering@redhat.com>
52503
52504         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52505         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52506         "underquoted definition of NAME" from autoconf-2.59.
52507
52508 2009-01-28  Bruno Haible  <bruno@clisp.org>
52509
52510         * doc/gnulib.texi: Add "Obsolete modules" to index.
52511
52512 2009-01-28  Jim Meyering  <meyering@redhat.com>
52513
52514         useless-if-before-free: recognize more variants
52515         * build-aux/useless-if-before-free: Also recognize e.g.,
52516         if (NULL != p) free (p);
52517
52518 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52519
52520         test-getaddrinfo: skip (don't fail) this test when there's no network
52521         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52522         on the presumption that it means you lack network access.
52523
52524 2009-01-26  Jim Meyering  <meyering@redhat.com>
52525
52526         fflush: avoid warnings on modern systems
52527         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52528         pos and result, into scopes where they're used.
52529
52530 2009-01-26  Eric Blake  <ebb9@byu.net>
52531
52532         Silence warning reintroduced by recent extensions patch.
52533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52534         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52535         autoconf.
52536
52537         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52538         * m4/00gnulib.m4: New file.
52539         * gnulib-tool (func_get_filelist): Always use it.
52540         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52541         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52542
52543 2009-01-25  Bruno Haible  <bruno@clisp.org>
52544
52545         Make test-quotearg work on MacOS X and AIX.
52546         * tests/test-quotearg.sh: New file.
52547         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52548         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52549         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52550         include <libintl.h>.
52551         (fake_locale): Remove variable.
52552         (gettext, dgettext, dcgettext): Remove functions.
52553         (main): Instead of setting a fake locale, set a real locale. Call
52554         textdomain and bindtextdomain.
52555         * modules/quotearg-tests (Files): Add the new files.
52556         (Depends-on): Add gettext, setenv, unsetenv.
52557         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52558         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52559         Augment TESTS_ENVIRONMENT.
52560
52561 2009-01-25  Bruno Haible  <bruno@clisp.org>
52562
52563         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52564         fr_FR.ISO8859-1 locale on MacOS X.
52565         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52566         ja_JP.eucJP locale on MacOS X.
52567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52568         zh_CN.GB18030 locale on MacOS X.
52569
52570 2009-01-25  Bruno Haible  <bruno@clisp.org>
52571
52572         Avoid link errors on MacOS X 10.3.
52573         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52574         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52575
52576 2009-01-25  Bruno Haible  <bruno@clisp.org>
52577
52578         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52579         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52580         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52581         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52582         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52583         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52584         posix_spawnattr_init, posix_spawnattr_setsigmask,
52585         posix_spawnattr_setflags, posix_spawnattr_destroy.
52586
52587         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52588         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52589         * modules/execute (Files): Remove m4/posix_spawn.m4.
52590         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52591         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52592         posix_spawnattr_init, posix_spawnattr_setsigmask,
52593         posix_spawnattr_setflags, posix_spawnattr_destroy.
52594
52595 2009-01-25  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/glthread/threadlib.c: Include <stdlib.h>.
52598
52599 2009-01-25  Bruno Haible  <bruno@clisp.org>
52600
52601         * lib/glthread/threadlib.c (dummy): New declaration.
52602
52603 2009-01-25  Bruno Haible  <bruno@clisp.org>
52604
52605         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52606         multibyte characters also for the GB18030 encoding. Don't crash when
52607         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52608
52609 2009-01-25  Bruno Haible  <bruno@clisp.org>
52610
52611         Avoid redefining 'struct random_data' on OSF/1 5.1.
52612         * lib/stdlib.in.h: Include <random.h> if it exists.
52613         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52614         HAVE_RANDOM_H. Include <random.h> when testing whether
52615         'struct random_data' exists.
52616         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52617
52618 2009-01-25  Bruno Haible  <bruno@clisp.org>
52619
52620         Don't install charset.alias on MacOS X >= 10.3.
52621         * lib/localcharset.c (DARWIN7): New macro.
52622         (get_charset_aliases): Hardcode the result for Darwin7.
52623         * modules/localcharset (install-exec-local): Don't install
52624         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52625
52626 2009-01-25  Bruno Haible  <bruno@clisp.org>
52627
52628         Don't install charset.alias on mingw and Cygwin.
52629         * modules/localcharset (install-exec-local): Don't install
52630         charset.alias on mingw and Cygwin, if the file does not yet exist.
52631         The result for these platforms is hardcoded in localcharset.c.
52632
52633 2009-01-25  Bruno Haible  <bruno@clisp.org>
52634
52635         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52636         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52637         before requiring AC_USE_SYSTEM_EXTENSIONS.
52638
52639 2009-01-25  Jim Meyering  <meyering@redhat.com>
52640
52641         c-strtod: avoid warnings
52642         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52643         "assignment discards qualifiers from pointer target type" warnings.
52644
52645 2009-01-24  Bruno Haible  <bruno@clisp.org>
52646
52647         Add support for non-UTF-8 locales on MacOS X.
52648         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52649         canonical encodings. For Darwin 7 and newer, don't map traditional
52650         encodings to UTF-8.
52651         Reported by Vincent Lefevre <vincent@vinc17.org>
52652         at <http://savannah.gnu.org/bugs/?25235>.
52653
52654 2009-01-24  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/gnulib.texi (Obsolete modules): New section.
52657         Reported by Mike Frysinger <vapier@gentoo.org>.
52658
52659 2009-01-24  Bruno Haible  <bruno@clisp.org>
52660
52661         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52662         (%.dvi): New rule.
52663
52664 2009-01-24  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52667         Reported by Eric Blake.
52668
52669 2009-01-24  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52672         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52673         Reported by Gary V. Vaughan <gary@gnu.org>.
52674
52675 2009-01-24  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52678
52679 2009-01-23  Bruno Haible  <bruno@clisp.org>
52680
52681         Make c-strtod, c-strtold usable in libraries.
52682         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52683         (C_STRTOD): Call strdup instead of xstrdup.
52684         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52685         * modules/c-strtold (Depends-on): Likewise.
52686         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52687         * NEWS: Mention the change.
52688         Reported by Michael Gold <mgold@ncf.ca>.
52689
52690 2009-01-23  Jim Meyering  <meyering@redhat.com>
52691
52692         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52693         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52694         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52695
52696 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52697
52698         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52699         GNU CoreUtils.
52700         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52701         * modules/version-etc (Description): Update.
52702
52703 2009-01-22  Bruno Haible  <bruno@clisp.org>
52704
52705         Cache the C locale object.
52706         * lib/c-strtod.c (c_locale_cache): New variable.
52707         (c_locale): New function.
52708         (C_STRTOD): Use it, and don't call freelocale.
52709         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52710         Suggested by Paolo Bonzini.
52711
52712 2009-01-21  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52715         conditions other than overflow.
52716
52717 2009-01-21  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/c-strtod.c: Include errno.h.
52720         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52721         value from STRTOD_L and STRTOD.
52722
52723 2009-01-21  Bruno Haible  <bruno@clisp.org>
52724         and Jim Meyering  <meyering@redhat.com>
52725
52726         nanosleep: skip configure test (fail it) for apple universal builds
52727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52728         universal builds, assume that nanosleep does not work.
52729         * modules/nanosleep (Depends-on): Add multiarch.
52730
52731         mktime: skip configure test (fail it) for apple universal builds
52732         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52733         universal builds, assume that mktime does not work.
52734         * modules/mktime (Depends-on): Add multiarch.
52735
52736 2009-01-21  Eric Blake  <ebb9@byu.net>
52737
52738         multiarch: avoid expand-before-require warning
52739         * modules/multiarch (configure.ac): Require, rather than expand,
52740         gl_MULTIARCH.
52741         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52742         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52743         enforce that all clients require it.  Partial reversion of
52744         2008-12-29 patch.
52745
52746         error: avoid expand-before-require warning
52747         * modules/errno (configure.ac): Require, rather than expand,
52748         gl_HEADER_ERRNO_H.
52749         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52750         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52751         enforce that all clients require it.
52752
52753         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52754         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52755         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52756         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52757
52758 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52759
52760         Revert:
52761         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52762
52763         regex: do not depend on obsolete modules.
52764         * modules/regex: Remove memcmp and memmove.
52765
52766 2009-01-20  Bruno Haible  <bruno@clisp.org>
52767
52768         Make the 'link' module link on Windows NT 4.
52769         * lib/link.c (_WIN32_WINNT): Don't define.
52770         (CreateHardLinkFuncType): New type.
52771         (CreateHardLinkFunc, initialized): New variables.
52772         (initialize): New function.
52773         (link): Invoke CreateHardLink indirectly through the function pointer.
52774
52775 2009-01-20  Bruno Haible  <bruno@clisp.org>
52776
52777         Fix compilation failure on mingw.
52778         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52779
52780 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52781
52782         * doc/c-strtod.texi: Mention a couple of restrictions.
52783
52784 2009-01-20  Jim Meyering  <meyering@redhat.com>
52785
52786         gettimeofday: move more declarations out of functions
52787         * lib/gettimeofday.c: Move extern declarations of tzset and
52788         gmtime out of containing functions.  Prompted by Bruno Haible.
52789
52790 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52791
52792         regex: do not depend on obsolete modules.
52793         * modules/regex: Remove memcmp and memmove.
52794
52795 2009-01-19  Bruno Haible  <bruno@clisp.org>
52796
52797         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52798         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52799         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52800         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52801         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52802
52803 2009-01-19  Bruno Haible  <bruno@clisp.org>
52804
52805         * tests/test-link.c: Include <errno.h>.
52806         (main): Exit with code 77 when a hard link cannot be created due to
52807         the file system.
52808         * tests/test-link.sh: Skip test when a hard link cannot be created due
52809         to the file system.
52810         Suggested by Eric Blake.
52811
52812 2009-01-19  Martin Lambers  <marlam@marlam.de>
52813
52814         * modules/link-tests: New file.
52815         * tests/test-link.sh: New file.
52816         * tests/test-link.c: New file.
52817
52818 2009-01-19  Eric Blake  <ebb9@byu.net>
52819
52820         doc: mention another function added in cygwin 1.7.0
52821         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52822         Another new function in cygwin 1.7.
52823
52824 2009-01-19  Bruno Haible  <bruno@clisp.org>
52825
52826         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52827         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52828         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52829         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52830         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52831         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52833         * m4/md4.m4 (gl_MD4): Likewise.
52834         * m4/md5.m4 (gl_MD5): Likewise.
52835         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52836         * m4/sha1.m4 (gl_SHA1): Likewise.
52837         * m4/sha256.m4 (gl_SHA256): Likewise.
52838         * m4/sha512.m4 (gl_SHA512): Likewise.
52839
52840 2009-01-19  Bruno Haible  <bruno@clisp.org>
52841
52842         * modules/uniname/uniname-tests (Depends-on): Add progname.
52843         * tests/uniname/test-uninames.c: Include progname.h.
52844         (main): Call set_program_name.
52845
52846         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52847         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52848         (main): Call set_program_name.
52849
52850         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52851         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52852         (main): Call set_program_name.
52853
52854         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52855         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52856         (main): Call set_program_name.
52857
52858         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52859         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52860         (main): Call set_program_name.
52861
52862         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52863         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52864         (main): Call set_program_name.
52865
52866         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52867         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52868         (main): Call set_program_name.
52869
52870         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52871         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52872         (main): Call set_program_name.
52873
52874         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52875         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52876         (main): Call set_program_name.
52877
52878 2009-01-19  Eric Blake  <ebb9@byu.net>
52879
52880         test-unistd: test previous patch
52881         * tests/test-unistd.c: Test *_FILENO macros.
52882
52883         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52884         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52885         Guarantee a definition.
52886         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52887         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52888         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52889         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52890         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52891         Likewise.
52892         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52893         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52894         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52895         Likewise.
52896         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52897         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52898         (STDERR_FILENO): Likewise.
52899         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52900         (STDERR_FILENO): Likewise.
52901         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52902         (STDERR_FILENO): Likewise.
52903         Reported by Elbert Pol.
52904
52905 2009-01-19  Eric Blake  <ebb9@byu.net>
52906
52907         doc: mention more functions added in cygwin 1.7.0
52908         * doc/posix-functions/abort.texi (abort): Update wording related
52909         to cygwin.
52910         * doc/posix-functions/daylight.texi (daylight): Likewise.
52911         * doc/posix-functions/optarg.texi (optarg): Likewise.
52912         * doc/posix-functions/optarg.texi (opterr): Likewise.
52913         * doc/posix-functions/optarg.texi (optind): Likewise.
52914         * doc/posix-functions/optarg.texi (optopt): Likewise.
52915         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52916         worked in 1.5.x, and was withdrawn in 1.7.
52917         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52918         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52919         cygwin versions.
52920         * doc/posix-functions/perror.texi (perror): Likewise.
52921         * doc/posix-functions/printf.texi (printf): Likewise.
52922         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52923         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52924         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52925         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52926         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52927         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52928         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52929         Likewise.
52930         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52931         Likewise.
52932         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52933         this function.
52934         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52935         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52936         Likewise.
52937         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52938         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52939         * doc/posix-functions/confstr.texi (confstr): Likewise.
52940         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52941         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52942         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52943         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52944         * doc/posix-functions/fputws.texi (fputws): Likewise.
52945         * doc/posix-functions/fwide.texi (fwide): Likewise.
52946         * doc/posix-functions/getwc.texi (getwc): Likewise.
52947         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52948         * doc/posix-functions/putwc.texi (putwc): Likewise.
52949         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52950         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52951         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52952         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52953         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52954         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52955         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52956         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52957         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52958         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52959         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52960
52961 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52962
52963         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52964         * lib/ioctl.c: Include <sys/ioctl.h>.
52965
52966 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52967
52968         * modules/getdate-tests (Depends-on): Add progname.
52969         * tests/test-getdate.c: Use progname module, to avoid link errors
52970         on non-glibc systems.
52971
52972 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52973
52974         * modules/filenamecat-tests (Depends-on): Add progname.
52975         * modules/fstrcmp-tests (Depends-on): Likewise.
52976
52977         * tests/test-filenamecat.c: Use progname module, to avoid link
52978         errors on non-glibc systems.
52979         * tests/test-fstrcmp.c: Likewise.
52980
52981 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52982
52983         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52984         * lib/gettimeofday.c: Move extern declaration out of function.
52985
52986 2009-01-18  Bruno Haible  <bruno@clisp.org>
52987
52988         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52989         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52990         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52991
52992 2009-01-18  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/strftime.c (MEMPCPY): Remove unused macro.
52995         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52996
52997 2009-01-18  Martin Lambers  <marlam@marlam.de>
52998
52999         New module 'link'.
53000         * lib/unistd.in.h (link): New declaration.
53001         * lib/link.c: New file.
53002         * m4/link.m4: New file.
53003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53004         HAVE_LINK.
53005         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53006         * modules/link: New file.
53007         * doc/posix-functions/link.texi: Mention the new module.
53008
53009 2009-01-18  Bruno Haible  <bruno@clisp.org>
53010
53011         * tests/test-avltree_list.c (main): Call set_program_name.
53012         * tests/test-avltree_oset.c (main): Likewise.
53013         * tests/test-obstack-printf.c: Include progname.h.
53014         (main): Call set_program_name.
53015         * tests/test-quotearg.c: Include progname.h.
53016         (main): Call set_program_name.
53017         * tests/test-xmemdup0.c: Include progname.h.
53018         (main): Call set_program_name.
53019
53020 2009-01-18  Bruno Haible  <bruno@clisp.org>
53021
53022         New module 'alphasort'.
53023         * lib/dirent.in.h (alphasort): New declaration.
53024         * lib/alphasort.c: New file, from glibc with modifications.
53025         * m4/alphasort.m4: New file.
53026         * modules/alphasort: New file.
53027         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53028         HAVE_ALPHASORT.
53029         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53030         HAVE_ALPHASORT.
53031         * doc/posix-functions/alphasort.texi: Mention the new module and the
53032         portability problems.
53033
53034 2009-01-18  Bruno Haible  <bruno@clisp.org>
53035
53036         New module 'scandir'.
53037         * lib/dirent.in.h (scandir): New declaration.
53038         * lib/scandir.c: New file, from glibc with modifications.
53039         * m4/scandir.m4: New file.
53040         * modules/scandir: New file.
53041         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53042         HAVE_SCANDIR.
53043         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53044         HAVE_SCANDIR.
53045         * doc/posix-functions/scandir.texi: Mention the new module and the
53046         portability problems.
53047
53048 2009-01-17  Bruno Haible  <bruno@clisp.org>
53049
53050         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53051         Update documentation.
53052         (func_remove_suffix): Escape all dots in the suffix. Update
53053         documentation.
53054         (func_filter_filelist): Update documentation.
53055         Reported by Ralf Wildenhues.
53056
53057 2009-01-17  Bruno Haible  <bruno@clisp.org>
53058
53059         * modules/dprintf-posix-tests: New file.
53060         * tests/test-dprintf-posix.sh: New file.
53061         * tests/test-dprintf-posix.c: New file.
53062
53063         New modules 'dprintf', 'dprintf-posix'.
53064         * lib/stdio.in.h (dprintf): New declaration.
53065         * lib/dprintf.c: New file.
53066         * m4/dprintf.m4: New file.
53067         * m4/dprintf-posix.m4: New file.
53068         * modules/dprintf: New file.
53069         * modules/dprintf-posix: New file.
53070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53071         HAVE_DPRINTF, REPLACE_DPRINTF.
53072         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53073         HAVE_DPRINTF, REPLACE_DPRINTF.
53074         * doc/posix-functions/dprintf.texi: Mention the new modules.
53075
53076 2009-01-17  Bruno Haible  <bruno@clisp.org>
53077
53078         * modules/vdprintf-posix-tests: New file.
53079         * tests/test-vdprintf-posix.sh: New file.
53080         * tests/test-vdprintf-posix.c: New file.
53081
53082         New modules 'vdprintf', 'vdprintf-posix'.
53083         * lib/stdio.in.h (vdprintf): New declaration.
53084         * lib/vdprintf.c: New file.
53085         * m4/vdprintf.m4: New file.
53086         * m4/vdprintf-posix.m4: New file.
53087         * modules/vdprintf: New file.
53088         * modules/vdprintf-posix: New file.
53089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53090         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53091         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53092         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53093         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53094
53095 2009-01-17  Bruno Haible  <bruno@clisp.org>
53096
53097         Fix replacement of fopen on mingw.
53098         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53099         mingw.
53100
53101 2009-01-17  Bruno Haible  <bruno@clisp.org>
53102
53103         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53104         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53105
53106 2009-01-17  Bruno Haible  <bruno@clisp.org>
53107
53108         Avoid test-fflush2.sh failure on mingw.
53109         * tests/test-fflush2.c: Include binary-io.h.
53110         (main): Put standard input into binary mode.
53111         * modules/fflush-tests (Depends-on): Add binary-io.
53112
53113 2009-01-17  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/wchar.in.h: In another particular situation, include only the
53116         system's <wchar.h> file.
53117         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53118         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53119         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53120
53121 2009-01-17  Bruno Haible  <bruno@clisp.org>
53122
53123         Support for stripping executables in --enable-relocatable.
53124         * build-aux/install-reloc: Expect one more argument, or an environment
53125         variable RELOC_STRIP_PROG. If set, strip the destination program and
53126         its wrapper.
53127         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53128         RELOC_STRIP_PROG.
53129         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53130         to set RELOCATABLE_STRIP.
53131         * NEWS: Mention the new Makefile requirement.
53132
53133 2009-01-17  Bruno Haible  <bruno@clisp.org>
53134
53135         * build-aux/install-reloc: Remove debugging information left over by
53136         C compiler on MacOS X.
53137
53138 2009-01-17  Bruno Haible  <bruno@clisp.org>
53139
53140         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53141         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53142         _NSGetExecutablePath.
53143
53144 2009-01-16  Jim Meyering  <meyering@redhat.com>
53145
53146         strerror: avoid warnings about discarding "const"
53147         * lib/strerror.c (rpl_strerror): Instead of returning a const
53148         string from each and every "case", use a variable, and add a single
53149         cast after the switch.
53150
53151 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53152
53153         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53154
53155 2009-01-16  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53158         array initializer syntax that also works in C++ mode.
53159         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53160
53161 2009-01-16  Jim Meyering  <meyering@redhat.com>
53162
53163         poll: suppress a warning
53164         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53165         to ignore "...unsigned expression < 0 is always false" warnings.
53166
53167 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53168
53169         poll: remove declarations of unused variables
53170         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53171         sockbuf and optlen.
53172
53173 2009-01-15  Bruno Haible  <bruno@clisp.org>
53174
53175         Make fflush-after-ungetc POSIX compliant on BSD systems.
53176         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53177         (clear_ungetc_buffer): Implement also for other systems.
53178         (rpl_fflush): On glibc systems, invoke
53179         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53180         clear_ungetc_buffer after fetching the stream's position, not before.
53181
53182 2009-01-15  Bruno Haible  <bruno@clisp.org>
53183
53184         Make fflush-after-ungetc POSIX compliant on glibc systems.
53185         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53186         after ungetc.
53187         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53188         (rpl_fflush): On glibc systems, simply call the system's fflush
53189         function after clearing the ungetc buffer.
53190         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53191         Instead, lseek only to the end of file, then use the system's fseeko
53192         for the rest. On glibc systems, reset the EOF indicator bit.
53193
53194 2009-01-15  Jim Meyering  <meyering@redhat.com>
53195
53196         openmp.m4: revert quote-adding change, for portability to older autoconf
53197         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53198         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53199         Simon Josefsson noticed the problem when using autoconf-2.61.
53200
53201 2009-01-15  Bruno Haible  <bruno@clisp.org>
53202
53203         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53204         * tests/test-fflush2.c (ASSERT): Always fail.
53205         (main): Add two tests for fflush() after ungetc(), taking into account
53206         the Austin Group's clarification.
53207         Suggested by Eric Blake.
53208
53209 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53210
53211         mktime.m4: remove K&R-style function prototypes
53212         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53213         for the Sun C++ compiler.
53214
53215 2009-01-14  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53218         while including <wchar.h>.
53219         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53220         the system's <wchar.h> file.
53221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53222
53223 2009-01-14  Bruno Haible  <bruno@clisp.org>
53224
53225         * m4/csharp.m4: Don't mention gettext on the serial number line.
53226         * m4/csharpexec.m4: Likewise.
53227         * m4/eaccess.m4: Likewise.
53228         * m4/javaexec.m4: Likewise.
53229         * m4/sig_atomic_t.m4: Likewise.
53230         * m4/tmpdir.m4: Likewise.
53231         * m4/intldir.m4: Bump gettext version.
53232         * m4/lib-ld.m4: Likewise.
53233
53234 2009-01-14  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/progname.c (set_program_name): Add more comments.
53237         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53238
53239 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53240
53241         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53242         were sys/stat.h does not define it.
53243
53244 2009-01-14  Jim Meyering  <meyering@redhat.com>
53245
53246         many *.m4 files: improve m4 quoting
53247         99% of this change was performed by running the following commands:
53248         git ls-files | grep '\.m4$' | xargs perl -pi \
53249           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53250           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53251           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53252           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53253         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53254         The remainder were to add Copyright dates, increment serial numbers,
53255         undo some changes in comments, exclude m4/intl.m4, and add quotes
53256         around the "1" in ",1" where the unusual spacing prohibited the
53257         above regexps from doing the job.  For more details, see
53258         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53259         * m4/acl.m4: Modified.
53260         * m4/afs.m4: Likewise.
53261         * m4/alloca.m4: Likewise.
53262         * m4/argp.m4: Likewise.
53263         * m4/argz.m4: Likewise.
53264         * m4/atexit.m4: Likewise.
53265         * m4/bison-i18n.m4: Likewise.
53266         * m4/bison.m4: Likewise.
53267         * m4/byteswap.m4: Likewise.
53268         * m4/c-stack.m4: Likewise.
53269         * m4/c-strtod.m4: Likewise.
53270         * m4/calloc.m4: Likewise.
53271         * m4/canonicalize-lgpl.m4: Likewise.
53272         * m4/chown.m4: Likewise.
53273         * m4/clock_time.m4: Likewise.
53274         * m4/codeset.m4: Likewise.
53275         * m4/copy-file.m4: Likewise.
53276         * m4/csharp.m4: Likewise.
53277         * m4/csharpcomp.m4: Likewise.
53278         * m4/csharpexec.m4: Likewise.
53279         * m4/d-ino.m4: Likewise.
53280         * m4/d-type.m4: Likewise.
53281         * m4/dirfd.m4: Likewise.
53282         * m4/double-slash-root.m4: Likewise.
53283         * m4/eaccess.m4: Likewise.
53284         * m4/eealloc.m4: Likewise.
53285         * m4/environ.m4: Likewise.
53286         * m4/errno_h.m4: Likewise.
53287         * m4/euidaccess.m4: Likewise.
53288         * m4/execute.m4: Likewise.
53289         * m4/fatal-signal.m4: Likewise.
53290         * m4/fchdir.m4: Likewise.
53291         * m4/fcntl_h.m4: Likewise.
53292         * m4/fileblocks.m4: Likewise.
53293         * m4/filenamecat.m4: Likewise.
53294         * m4/findprog.m4: Likewise.
53295         * m4/flexmember.m4: Likewise.
53296         * m4/fnmatch.m4: Likewise.
53297         * m4/fopen.m4: Likewise.
53298         * m4/fpending.m4: Likewise.
53299         * m4/fprintf-posix.m4: Likewise.
53300         * m4/free.m4: Likewise.
53301         * m4/frexp.m4: Likewise.
53302         * m4/frexpl.m4: Likewise.
53303         * m4/fsusage.m4: Likewise.
53304         * m4/ftruncate.m4: Likewise.
53305         * m4/gc-camellia.m4: Likewise.
53306         * m4/gc-random.m4: Likewise.
53307         * m4/gc.m4: Likewise.
53308         * m4/getaddrinfo.m4: Likewise.
53309         * m4/getcwd-abort-bug.m4: Likewise.
53310         * m4/getcwd-path-max.m4: Likewise.
53311         * m4/getdate.m4: Likewise.
53312         * m4/getdomainname.m4: Likewise.
53313         * m4/getgroups.m4: Likewise.
53314         * m4/gethostname.m4: Likewise.
53315         * m4/gethrxtime.m4: Likewise.
53316         * m4/getline.m4: Likewise.
53317         * m4/getloadavg.m4: Likewise.
53318         * m4/getndelim2.m4: Likewise.
53319         * m4/getpass.m4: Likewise.
53320         * m4/gettext.m4: Likewise.
53321         * m4/gettime.m4: Likewise.
53322         * m4/gettimeofday.m4: Likewise.
53323         * m4/gnulib-common.m4: Likewise.
53324         * m4/group-member.m4: Likewise.
53325         * m4/host-os.m4: Likewise.
53326         * m4/iconv.m4: Likewise.
53327         * m4/iconv_open.m4: Likewise.
53328         * m4/inet_ntop.m4: Likewise.
53329         * m4/inet_pton.m4: Likewise.
53330         * m4/inline.m4: Likewise.
53331         * m4/intldir.m4: Likewise.
53332         * m4/intlmacosx.m4: Likewise.
53333         * m4/intmax.m4: Likewise.
53334         * m4/intmax_t.m4: Likewise.
53335         * m4/inttypes.m4: Likewise.
53336         * m4/inttypes_h.m4: Likewise.
53337         * m4/inttypes-pri.m4: Likewise.
53338         * m4/isapipe.m4: Likewise.
53339         * m4/isnand.m4: Likewise.
53340         * m4/isnanf.m4: Likewise.
53341         * m4/isnanl.m4: Likewise.
53342         * m4/javacomp.m4: Likewise.
53343         * m4/javaexec.m4: Likewise.
53344         * m4/jm-winsz1.m4: Likewise.
53345         * m4/jm-winsz2.m4: Likewise.
53346         * m4/lchown.m4: Likewise.
53347         * m4/lcmessage.m4: Likewise.
53348         * m4/ldexpl.m4: Likewise.
53349         * m4/lib-ld.m4: Likewise.
53350         * m4/lib-link.m4: Likewise.
53351         * m4/libsigsegv.m4: Likewise.
53352         * m4/link-follow.m4: Likewise.
53353         * m4/localcharset.m4: Likewise.
53354         * m4/locale-fr.m4: Likewise.
53355         * m4/locale-ja.m4: Likewise.
53356         * m4/locale-tr.m4: Likewise.
53357         * m4/locale-zh.m4: Likewise.
53358         * m4/lock.m4: Likewise.
53359         * m4/longlong.m4: Likewise.
53360         * m4/ls-mntd-fs.m4: Likewise.
53361         * m4/lstat.m4: Likewise.
53362         * m4/malloc.m4: Likewise.
53363         * m4/mathl.m4: Likewise.
53364         * m4/mbrtowc.m4: Likewise.
53365         * m4/mbstate_t.m4: Likewise.
53366         * m4/mbswidth.m4: Likewise.
53367         * m4/memchr.m4: Likewise.
53368         * m4/memcmp.m4: Likewise.
53369         * m4/memcpy.m4: Likewise.
53370         * m4/memmem.m4: Likewise.
53371         * m4/memmove.m4: Likewise.
53372         * m4/mempcpy.m4: Likewise.
53373         * m4/memrchr.m4: Likewise.
53374         * m4/memset.m4: Likewise.
53375         * m4/minmax.m4: Likewise.
53376         * m4/mkdir-slash.m4: Likewise.
53377         * m4/mkdtemp.m4: Likewise.
53378         * m4/mktime.m4: Likewise.
53379         * m4/mmap-anon.m4: Likewise.
53380         * m4/mountlist.m4: Likewise.
53381         * m4/nanosleep.m4: Likewise.
53382         * m4/nls.m4: Likewise.
53383         * m4/nocrash.m4: Likewise.
53384         * m4/open.m4: Likewise.
53385         * m4/openat.m4: Likewise.
53386         * m4/openmp.m4: Likewise.
53387         * m4/pathmax.m4: Likewise.
53388         * m4/perl.m4: Likewise.
53389         * m4/physmem.m4: Likewise.
53390         * m4/pipe.m4: Likewise.
53391         * m4/po.m4: Likewise.
53392         * m4/poll.m4: Likewise.
53393         * m4/posixtm.m4: Likewise.
53394         * m4/posixver.m4: Likewise.
53395         * m4/printf-frexp.m4: Likewise.
53396         * m4/printf-frexpl.m4: Likewise.
53397         * m4/printf-posix.m4: Likewise.
53398         * m4/printf-posix-rpl.m4: Likewise.
53399         * m4/printf.m4: Likewise.
53400         * m4/progtest.m4: Likewise.
53401         * m4/putenv.m4: Likewise.
53402         * m4/readline.m4: Likewise.
53403         * m4/readlink.m4: Likewise.
53404         * m4/readutmp.m4: Likewise.
53405         * m4/realloc.m4: Likewise.
53406         * m4/regex.m4: Likewise.
53407         * m4/relocatable.m4: Likewise.
53408         * m4/relocatable-lib.m4: Likewise.
53409         * m4/rename-dest-slash.m4: Likewise.
53410         * m4/rename.m4: Likewise.
53411         * m4/rmdir-errno.m4: Likewise.
53412         * m4/rmdir.m4: Likewise.
53413         * m4/roundf.m4: Likewise.
53414         * m4/roundl.m4: Likewise.
53415         * m4/rpmatch.m4: Likewise.
53416         * m4/save-cwd.m4: Likewise.
53417         * m4/selinux-selinux-h.m4: Likewise.
53418         * m4/setenv.m4: Likewise.
53419         * m4/settime.m4: Likewise.
53420         * m4/sig2str.m4: Likewise.
53421         * m4/sig_atomic_t.m4: Likewise.
53422         * m4/signalblocking.m4: Likewise.
53423         * m4/signbit.m4: Likewise.
53424         * m4/sigpipe.m4: Likewise.
53425         * m4/sockets.m4: Likewise.
53426         * m4/sockpfaf.m4: Likewise.
53427         * m4/st_dm_mode.m4: Likewise.
53428         * m4/stat-time.m4: Likewise.
53429         * m4/stdbool.m4: Likewise.
53430         * m4/stdint.m4: Likewise.
53431         * m4/stdint_h.m4: Likewise.
53432         * m4/stpcpy.m4: Likewise.
53433         * m4/stpncpy.m4: Likewise.
53434         * m4/strcase.m4: Likewise.
53435         * m4/strchrnul.m4: Likewise.
53436         * m4/strcspn.m4: Likewise.
53437         * m4/strdup.m4: Likewise.
53438         * m4/strftime.m4: Likewise.
53439         * m4/strndup.m4: Likewise.
53440         * m4/strnlen.m4: Likewise.
53441         * m4/strpbrk.m4: Likewise.
53442         * m4/strptime.m4: Likewise.
53443         * m4/strsep.m4: Likewise.
53444         * m4/strtod.m4: Likewise.
53445         * m4/strtoimax.m4: Likewise.
53446         * m4/strtok_r.m4: Likewise.
53447         * m4/strtol.m4: Likewise.
53448         * m4/strtoll.m4: Likewise.
53449         * m4/strtoul.m4: Likewise.
53450         * m4/strtoull.m4: Likewise.
53451         * m4/strtoumax.m4: Likewise.
53452         * m4/strverscmp.m4: Likewise.
53453         * m4/threadlib.m4: Likewise.
53454         * m4/timegm.m4: Likewise.
53455         * m4/tm_gmtoff.m4: Likewise.
53456         * m4/tmpdir.m4: Likewise.
53457         * m4/tmpfile.m4: Likewise.
53458         * m4/tzset.m4: Likewise.
53459         * m4/uintmax_t.m4: Likewise.
53460         * m4/unlinkdir.m4: Likewise.
53461         * m4/unlocked-io.m4: Likewise.
53462         * m4/uptime.m4: Likewise.
53463         * m4/userspec.m4: Likewise.
53464         * m4/utimbuf.m4: Likewise.
53465         * m4/utime.m4: Likewise.
53466         * m4/utimes-null.m4: Likewise.
53467         * m4/utimes.m4: Likewise.
53468         * m4/vararrays.m4: Likewise.
53469         * m4/vasnprintf.m4: Likewise.
53470         * m4/vfprintf-posix.m4: Likewise.
53471         * m4/vprintf-posix.m4: Likewise.
53472         * m4/wait-process.m4: Likewise.
53473         * m4/wchar_t.m4: Likewise.
53474         * m4/wint_t.m4: Likewise.
53475         * m4/write-any-file.m4: Likewise.
53476         * m4/yield.m4: Likewise.
53477
53478 2009-01-13  Bruno Haible  <bruno@clisp.org>
53479
53480         Avoid test-copy-file.sh failures when ACL support insufficient.
53481         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53482         TESTS_ENVIRONMENT.
53483         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53484         Reported by Jim Meyering.
53485
53486 2009-01-13  Bruno Haible  <bruno@clisp.org>
53487
53488         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53489         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53490         * modules/unistdio/u8-printf-parse (Files): Likewise.
53491         * modules/unistdio/u32-printf-parse (Files): Likewise.
53492         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53493
53494 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53495
53496         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53497         and m4/inttypes_h.m4 too.
53498
53499 2009-01-12  Eric Blake  <ebb9@byu.net>
53500
53501         tests: IRIX 6.2 cc can't compile -0.0 into .data
53502         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53503         rather than at compile-time.
53504         * tests/test-floorl.c (minus_zero): Likewise.
53505         * tests/test-frexpl.c (minus_zero): Likewise.
53506         * tests/test-isnan.c (minus_zerol): Likewise.
53507         * tests/test-isnanl.h (minus_zero): Likewise.
53508         * tests/test-ldexpl.c (minus_zero): Likewise.
53509         * tests/test-roundl.c (minus_zero): Likewise.
53510         * tests/test-signbit.c (minus_zerol): Likewise.
53511         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53512         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53513         * tests/test-truncl.c (minus_zero): Likewise.
53514         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53515         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53516         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53517
53518 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53519
53520         regex: fix glibc bug 9697
53521         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53522         handling.
53523
53524 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53525
53526         regex: fix glibc bug 697
53527         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53528         being NULL also if there are no backreferences.
53529
53530 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53531
53532         regex: merge glibc changes
53533         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53534         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53535         re_string_skip_chars, re_string_reconstruct): Likewise.
53536         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53537
53538 2009-01-07  Jim Meyering  <meyering@redhat.com>
53539
53540         poll: filter through cppi
53541         * lib/poll.c: Indent cpp directives to reflect nesting.
53542
53543 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53544
53545         poll: don't return uninitialized
53546         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53547
53548 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53549
53550         avoid compile failure on AIX 6.1
53551         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53552         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53553
53554 2009-01-04  Jim Meyering  <meyering@redhat.com>
53555
53556         remove duplicate inclusion of <stdio.h>
53557         * tests/test-fprintf-posix.c: Likewise.
53558         * tests/test-printf-posix.c: Likewise.
53559         * tests/test-snprintf-posix.c: Likewise.
53560         * tests/test-sprintf-posix.c: Likewise.
53561         * tests/test-vasprintf-posix.c: Likewise.
53562         * tests/test-vfprintf-posix.c: Likewise.
53563         * tests/test-vprintf-posix.c: Likewise.
53564         * tests/test-vsnprintf-posix.c: Likewise.
53565         * tests/test-vsprintf-posix.c: Likewise.
53566
53567 2009-01-03  Jim Meyering  <meyering@redhat.com>
53568
53569         gnulib-tool: fix sed-based filtering
53570         * gnulib-tool (func_filter_filelist): Remove extra backslash
53571         in sed_fff_filter definition.
53572
53573 2009-01-02  Jim Meyering  <meyering@redhat.com>
53574
53575         strftime: avoid compilation failure on Solaris 2.6
53576         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53577         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53578         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53579         be available.  Reported by Tom G. Christensen.  Details in
53580         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53581
53582 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53583             Bruno Haible  <bruno@clisp.org>
53584
53585         Speed up gnulib-tool by doing more string processing through shell
53586         built-ins.
53587         * gnulib-tool (fast_func_append): New variable.
53588         (func_remove_prefix, func_remove_suffix): New functions.
53589         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53590         (func_filter_filelist): New function.
53591         (func_get_dependencies): Use func_remove_suffix instead of sed.
53592         (func_get_automake_snippet): Use func_filter_filelist instead of a
53593         subshell and sed invocation.
53594
53595 2009-01-01  Bruno Haible  <bruno@clisp.org>
53596
53597         Fix a security bug.
53598         * gnulib-tool (func_import, import, update): Don't allow the characters
53599         '"', '$', '`', '\' in macro arguments that become part of commands that
53600         are evaluated.
53601
53602 2009-01-01  Bruno Haible  <bruno@clisp.org>
53603
53604         * gnulib-tool (func_reset_sigpipe): Add more comments.
53605
53606 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53607
53608         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53609         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53610         already know the answer.
53611
53612 2009-01-01  Jim Meyering  <meyering@redhat.com>
53613
53614         * lib/version-etc.c (version_etc_va): Update copyright year.
53615
53616 2008-12-30  Bruno Haible  <bruno@clisp.org>
53617
53618         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53619         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53620         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53621
53622 2008-12-29  Eric Blake  <ebb9@byu.net>
53623
53624         multiarch: avoid autoconf AC_REQUIRE bug
53625         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53626         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53627         2.63 and older.
53628         Reported by Bruno Haible, and analyzed in
53629         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53630
53631 2008-12-29  Bruno Haible  <bruno@clisp.org>
53632
53633         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53634         files in subdirectories correctly.
53635         Reported by Ralf Wildenhues.
53636
53637 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53638
53639         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53640         rather than 'join FILE -', for Solaris join.
53641
53642 2008-12-29  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53645         quoting.
53646         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53647         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53648         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53649         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53650         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53651         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53652         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53653         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53654         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53655         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53656         * m4/nls.m4 (AM_NLS): Likewise.
53657         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53658         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53659         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53660         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53661         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53662         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53663         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53664         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53665         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53666         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53667         * m4/xsize.m4 (gl_XSIZE): Likewise.
53668         Suggested by Jim Meyering.
53669
53670 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53671
53672         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53673         * lib/parse-duration.c: use a switch instead of cascading if's.
53674
53675 2008-12-29  Eric Blake  <ebb9@byu.net>
53676
53677         wchar.h: supply WEOF on Irix 5.3
53678         * lib/wchar.in.h (wint_t): Also supply WEOF.
53679         * lib/wctype.in.h (wint_t): Likewise.
53680         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53681         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53682         Reported by Tom G. Christensen.
53683
53684 2008-12-26  Bruno Haible  <bruno@clisp.org>
53685
53686         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53687         i486, i586, i686.
53688
53689 2008-12-26  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53692
53693 2008-12-26  Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53696         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53697         not __STDC_CONSTANT_MACROS.
53698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53699
53700 2008-12-25  Bruno Haible  <bruno@clisp.org>
53701
53702         Add support for universal builds to vasnprintf.
53703         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53704         universal builds, guess no.
53705         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53706         * modules/vasprintf-posix (Depends-on): Likewise.
53707         * modules/fprintf-posix (Depends-on): Likewise.
53708         * modules/vfprintf-posix (Depends-on): Likewise.
53709         * modules/snprintf-posix (Depends-on): Likewise.
53710         * modules/vsnprintf-posix (Depends-on): Likewise.
53711         * modules/sprintf-posix (Depends-on): Likewise.
53712         * modules/vsprintf-posix (Depends-on): Likewise.
53713         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53714         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53715         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53717         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53718         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53719         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53720
53721         Add support for universal builds to <inttypes.h>.
53722         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53723         _SCNu64_PREFIX): In Apple
53724         universal builds, define directly, using _LP64.
53725         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53726         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53727         * modules/inttypes (Depends-on): Add multiarch.
53728         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53729
53730         Add support for universal builds to <stdint.h>.
53731         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53732         universal builds, define directly, using _LP64.
53733         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53734         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53735         and size_t.
53736         * modules/stdint (Depends-on): Add multiarch.
53737         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53738
53739         New module 'multiarch'.
53740         * modules/multiarch: New file.
53741         * m4/multiarch.m4: New file.
53742
53743 2008-12-25  Bruno Haible  <bruno@clisp.org>
53744
53745         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53746
53747 2008-12-25  Bruno Haible  <bruno@clisp.org>
53748
53749         * modules/btowc (License): Relicense under LGPLv2+.
53750         * modules/mbsinit (License): Likewise.
53751         * modules/mbrtowc (License): Likewise.
53752         * modules/wcrtomb (License): Likewise.
53753         * modules/streq (License): Likewise.
53754         Reported by David Lutterkort <lutter@redhat.com>.
53755
53756 2008-12-23  Bruno Haible  <bruno@clisp.org>
53757
53758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53759
53760 2008-12-23  Bruno Haible  <bruno@clisp.org>
53761
53762         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53764         GETADDRINFO_LIB, not in LIBS.
53765         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53766         * modules/canon-host (Link): Likewise.
53767         * NEWS: Mention the change.
53768         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53769         GETADDRINFO_LIB.
53770
53771 2008-12-22  Bruno Haible  <bruno@clisp.org>
53772
53773         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53774         * doc/posix-functions/iswalpha_l.texi: Likewise.
53775         * doc/posix-functions/iswblank_l.texi: Likewise.
53776         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53777         * doc/posix-functions/iswctype_l.texi: Likewise.
53778         * doc/posix-functions/iswdigit_l.texi: Likewise.
53779         * doc/posix-functions/iswgraph_l.texi: Likewise.
53780         * doc/posix-functions/iswlower_l.texi: Likewise.
53781         * doc/posix-functions/iswprint_l.texi: Likewise.
53782         * doc/posix-functions/iswpunct_l.texi: Likewise.
53783         * doc/posix-functions/iswspace_l.texi: Likewise.
53784         * doc/posix-functions/iswupper_l.texi: Likewise.
53785         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53786         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53787         * doc/posix-functions/open_wmemstream.texi: Likewise.
53788         * doc/posix-functions/swscanf.texi: Likewise.
53789         * doc/posix-functions/towctrans_l.texi: Likewise.
53790         * doc/posix-functions/towlower.texi: Likewise.
53791         * doc/posix-functions/towlower_l.texi: Likewise.
53792         * doc/posix-functions/towupper.texi: Likewise.
53793         * doc/posix-functions/towupper_l.texi: Likewise.
53794         * doc/posix-functions/vfwprintf.texi: Likewise.
53795         * doc/posix-functions/vfwscanf.texi: Likewise.
53796         * doc/posix-functions/vswscanf.texi: Likewise.
53797         * doc/posix-functions/vwprintf.texi: Likewise.
53798         * doc/posix-functions/vwscanf.texi: Likewise.
53799         * doc/posix-functions/wcpcpy.texi: Likewise.
53800         * doc/posix-functions/wcpncpy.texi: Likewise.
53801         * doc/posix-functions/wcscasecmp.texi: Likewise.
53802         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53803         * doc/posix-functions/wcscoll_l.texi: Likewise.
53804         * doc/posix-functions/wcsdup.texi: Likewise.
53805         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53806         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53807         * doc/posix-functions/wcsnlen.texi: Likewise.
53808         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53809         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53810         * doc/posix-functions/wctrans_l.texi: Likewise.
53811         * doc/posix-functions/wctype_l.texi: Likewise.
53812         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53813         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53814         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53815         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53816         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53817         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53818         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53819         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53820         * doc/glibc-functions/wcschrnul.texi: Likewise.
53821         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53822         * doc/glibc-functions/wcstod_l.texi: Likewise.
53823         * doc/glibc-functions/wcstof_l.texi: Likewise.
53824         * doc/glibc-functions/wcstol_l.texi: Likewise.
53825         * doc/glibc-functions/wcstold_l.texi: Likewise.
53826         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53827         * doc/glibc-functions/wcstoq.texi: Likewise.
53828         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53829         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53830         * doc/glibc-functions/wcstouq.texi: Likewise.
53831         * doc/glibc-functions/wmempcpy.texi: Likewise.
53832
53833 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53834             Eric Blake  <ebb9@byu.net>
53835             Paolo Bonzini  <bonzini@gnu.org>
53836             Bruno Haible  <bruno@clisp.org>
53837
53838         Make c-stack work on Haiku.
53839         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53840         (c_stack_action): Use SA_ONSTACK flag.
53841
53842 2008-12-22  Bruno Haible  <bruno@clisp.org>
53843
53844         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53845
53846 2008-12-22  Bruno Haible  <bruno@clisp.org>
53847
53848         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53849         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53850         being overridden.
53851         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53852         New macros.
53853         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53855         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53856         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53857
53858 2008-12-22  Bruno Haible  <bruno@clisp.org>
53859
53860         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53861         from test code.
53862
53863 2008-12-22  Eric Blake  <ebb9@byu.net>
53864
53865         Avoid gcc warnings on cygwin.
53866         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53867         Avoid unused variable.
53868         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53869         Likewise.
53870
53871 2008-12-22  Bruno Haible  <bruno@clisp.org>
53872
53873         Remove HAVE_MBRTOWC conditionals.
53874         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53875         (mbscasecmp): Assume mbrtowc function.
53876         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53877         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53878         * lib/mbschr.c: Include mbuiter.h unconditionally.
53879         (mbschr): Assume mbrtowc function.
53880         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53881         (mbscspn): Assume mbrtowc function.
53882         * lib/mbslen.c: Include mbuiter.h unconditionally.
53883         (mbslen): Assume mbrtowc function.
53884         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53885         (mbsncasecmp): Assume mbrtowc function.
53886         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53887         (mbsnlen): Assume mbrtowc function.
53888         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53889         (mbspbrk): Assume mbrtowc function.
53890         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53891         (mbspcasecmp): Assume mbrtowc function.
53892         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53893         (mbsrchr): Assume mbrtowc function.
53894         * lib/mbssep.c: Include mbuiter.h unconditionally.
53895         (mbssep): Assume mbrtowc function.
53896         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53897         (mbsspn): Assume mbrtowc function.
53898         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53899         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53900         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53901         (mbstok_r): Assume mbrtowc function.
53902         * lib/propername.c: Include mbuiter.h unconditionally.
53903         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53904         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53905         (trim2): Assume mbrtowc function.
53906         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53907         (mbsnwidth): Assume mbrtowc function.
53908         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53909         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53910         fallback definitions.
53911         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53912
53913 2008-12-22  Bruno Haible  <bruno@clisp.org>
53914
53915         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53916
53917 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53918
53919         * modules/regex: Request emulations for the mb*/wc* functions we need.
53920         * m4/regex.m4: Don't look for those functions here.
53921         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53922
53923 2008-12-22  Bruno Haible  <bruno@clisp.org>
53924
53925         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53926
53927 2008-12-21  Bruno Haible  <bruno@clisp.org>
53928
53929         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53930         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53931         (Include): Remove conditionalization.
53932         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53933         (Include): Remove conditionalization.
53934         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53935         (Include): Remove conditionalization.
53936         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53937         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53938         * NEWS: Mention the change.
53939         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53940         via Sergey Poznyakoff <gray@gnu.org.ua>.
53941
53942 2008-12-21  Bruno Haible  <bruno@clisp.org>
53943
53944         * MODULES.html.sh (Extended multibyte and wide character utilities
53945         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53946         wcrtomb, wcsrtombs.
53947         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53948         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53949         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53950         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53951
53952 2008-12-21  Bruno Haible  <bruno@clisp.org>
53953
53954         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53955
53956 2008-12-21  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/wcsnrtombs-tests: New file.
53959         * tests/test-wcsnrtombs1.sh: New file.
53960         * tests/test-wcsnrtombs2.sh: New file.
53961         * tests/test-wcsnrtombs3.sh: New file.
53962         * tests/test-wcsnrtombs4.sh: New file.
53963         * tests/test-wcsnrtombs.c: New file.
53964
53965         New module 'wcsnrtombs'.
53966         * lib/wchar.in.h (wcsnrtombs): New declaration.
53967         * lib/wcsnrtombs.c: New file.
53968         * lib/wcsrtombs-state.c: New file.
53969         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53970         (internal_state): Remove variable.
53971         * m4/wcsnrtombs.m4: New file.
53972         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53973         compilation units.
53974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53975         HAVE_WCSNRTOMBS.
53976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53977         HAVE_WCSNRTOMBS.
53978         * modules/wcsnrtombs: New file.
53979         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53980         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53981
53982 2008-12-21  Bruno Haible  <bruno@clisp.org>
53983
53984         * modules/wcsrtombs-tests: New file.
53985         * tests/test-wcsrtombs1.sh: New file.
53986         * tests/test-wcsrtombs2.sh: New file.
53987         * tests/test-wcsrtombs3.sh: New file.
53988         * tests/test-wcsrtombs4.sh: New file.
53989         * tests/test-wcsrtombs.c: New file.
53990
53991         New module 'wcsrtombs'.
53992         * lib/wchar.in.h (wcsrtombs): New declaration.
53993         * lib/wcsrtombs.c: New file.
53994         * m4/wcsrtombs.m4: New file.
53995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53996         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53998         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53999         * modules/wcsrtombs: New file.
54000         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54001         bugs.
54002
54003 2008-12-21  Bruno Haible  <bruno@clisp.org>
54004
54005         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54006         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54007         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54008         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54009         if not correct.
54010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54011         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54012         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54013         m4/locale-zh.m4, m4/codeset.m4.
54014         * doc/posix-functions/wcrtomb.texi: Document the bug.
54015
54016 2008-12-21  Bruno Haible  <bruno@clisp.org>
54017
54018         Work around a btowc() bug on IRIX 6.5.
54019         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54020         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54021         REPLACE_WTOBC if not.
54022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54023         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54024         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54025
54026 2008-12-21  Bruno Haible  <bruno@clisp.org>
54027
54028         * modules/wcrtomb-tests: New file.
54029         * tests/test-wcrtomb.sh: New file.
54030         * tests/test-wcrtomb.c: New file.
54031
54032         New module 'wcrtomb'.
54033         * lib/wchar.in.h (wcrtomb): New declaration.
54034         * lib/wcrtomb.c: New file.
54035         * m4/wcrtomb.m4: New file.
54036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54037         HAVE_WCRTOMB.
54038         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54039         HAVE_WCRTOMB.
54040         * modules/wcrtomb: New file.
54041         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54042
54043 2008-12-21  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54046         * modules/mbsrtowcs (Files): Likewise.
54047         * modules/wctob (Files): Likewise.
54048         * modules/c-strcase-tests (Files): Likewise.
54049         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54050         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54051         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54052         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54053         * modules/vasnprintf-posix-tests (Files): Likewise.
54054
54055 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54056
54057         gitlog-to-changelog: pass all command-line arguments to git-log
54058         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54059         it is sometimes convenient to filter the commits in various ways.
54060         gitlog-to-changelog only allows --since to specify a start date,
54061         but git-log itself supports many other filtering mechanisms.
54062         At the moment, I want to filter by branch name.  Rather than
54063         adding a --branch option to gitlog-to-changelog, it seems more
54064         flexible to simply pass all options directly to git-log and let
54065         git do the work.  Notice that this effectively makes --since a
54066         redundant option for gitlog-to-changelog, but removing it would
54067         require current usage to change since calls would then require
54068         an additional '--'.
54069
54070 2008-12-21  Bruno Haible  <bruno@clisp.org>
54071
54072         * modules/mbsnrtowcs-tests: New file.
54073         * tests/test-mbsnrtowcs1.sh: New file.
54074         * tests/test-mbsnrtowcs2.sh: New file.
54075         * tests/test-mbsnrtowcs3.sh: New file.
54076         * tests/test-mbsnrtowcs4.sh: New file.
54077         * tests/test-mbsnrtowcs.c: New file.
54078
54079         New module 'mbsnrtowcs'.
54080         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54081         * lib/mbsnrtowcs.c: New file.
54082         * lib/mbsrtowcs-state.c: New file.
54083         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54084         (internal_state): Remove variable.
54085         * m4/mbsnrtowcs.m4: New file.
54086         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54087         compilation units.
54088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54089         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54090         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54091         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54092         * modules/mbsnrtowcs: New file.
54093         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54094         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54095         portability problem.
54096
54097 2008-12-21  Bruno Haible  <bruno@clisp.org>
54098
54099         Work around mbsrtowcs bug.
54100         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54101         (gl_FUNC_MBSRTOWCS): Invoke it.
54102         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54103         m4/locale-zh.m4.
54104         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54105
54106 2008-12-21  Bruno Haible  <bruno@clisp.org>
54107
54108         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54109
54110 2008-12-21  Bruno Haible  <bruno@clisp.org>
54111
54112         Update doc for AIX.
54113         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54114         16-bit wchar_t type.
54115         * doc/posix-functions/btowc.texi: Likewise.
54116         * doc/posix-functions/fgetwc.texi: Likewise.
54117         * doc/posix-functions/fgetws.texi: Likewise.
54118         * doc/posix-functions/fputwc.texi: Likewise.
54119         * doc/posix-functions/fputws.texi: Likewise.
54120         * doc/posix-functions/fwide.texi: Likewise.
54121         * doc/posix-functions/fwprintf.texi: Likewise.
54122         * doc/posix-functions/fwscanf.texi: Likewise.
54123         * doc/posix-functions/getwchar.texi: Likewise.
54124         * doc/posix-functions/getwc.texi: Likewise.
54125         * doc/posix-functions/iswalnum.texi: Likewise.
54126         * doc/posix-functions/iswalpha.texi: Likewise.
54127         * doc/posix-functions/iswblank.texi: Likewise.
54128         * doc/posix-functions/iswcntrl.texi: Likewise.
54129         * doc/posix-functions/iswctype.texi: Likewise.
54130         * doc/posix-functions/iswdigit.texi: Likewise.
54131         * doc/posix-functions/iswgraph.texi: Likewise.
54132         * doc/posix-functions/iswlower.texi: Likewise.
54133         * doc/posix-functions/iswprint.texi: Likewise.
54134         * doc/posix-functions/iswpunct.texi: Likewise.
54135         * doc/posix-functions/iswspace.texi: Likewise.
54136         * doc/posix-functions/iswupper.texi: Likewise.
54137         * doc/posix-functions/iswxdigit.texi: Likewise.
54138         * doc/posix-functions/mbrtowc.texi: Likewise.
54139         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54140         * doc/posix-functions/mbstowcs.texi: Likewise.
54141         * doc/posix-functions/mbtowc.texi: Likewise.
54142         * doc/posix-functions/putwchar.texi: Likewise.
54143         * doc/posix-functions/putwc.texi: Likewise.
54144         * doc/posix-functions/swprintf.texi: Likewise.
54145         * doc/posix-functions/tolower.texi: Likewise.
54146         * doc/posix-functions/toupper.texi: Likewise.
54147         * doc/posix-functions/towctrans.texi: Likewise.
54148         * doc/posix-functions/ungetwc.texi: Likewise.
54149         * doc/posix-functions/vswprintf.texi: Likewise.
54150         * doc/posix-functions/wcrtomb.texi: Likewise.
54151         * doc/posix-functions/wcscat.texi: Likewise.
54152         * doc/posix-functions/wcschr.texi: Likewise.
54153         * doc/posix-functions/wcscmp.texi: Likewise.
54154         * doc/posix-functions/wcscoll.texi: Likewise.
54155         * doc/posix-functions/wcscpy.texi: Likewise.
54156         * doc/posix-functions/wcscspn.texi: Likewise.
54157         * doc/posix-functions/wcsftime.texi: Likewise.
54158         * doc/posix-functions/wcslen.texi: Likewise.
54159         * doc/posix-functions/wcsncat.texi: Likewise.
54160         * doc/posix-functions/wcsncmp.texi: Likewise.
54161         * doc/posix-functions/wcsncpy.texi: Likewise.
54162         * doc/posix-functions/wcspbrk.texi: Likewise.
54163         * doc/posix-functions/wcsrchr.texi: Likewise.
54164         * doc/posix-functions/wcsrtombs.texi: Likewise.
54165         * doc/posix-functions/wcsspn.texi: Likewise.
54166         * doc/posix-functions/wcsstr.texi: Likewise.
54167         * doc/posix-functions/wcstod.texi: Likewise.
54168         * doc/posix-functions/wcstof.texi: Likewise.
54169         * doc/posix-functions/wcstoimax.texi: Likewise.
54170         * doc/posix-functions/wcstok.texi: Likewise.
54171         * doc/posix-functions/wcstold.texi: Likewise.
54172         * doc/posix-functions/wcstoll.texi: Likewise.
54173         * doc/posix-functions/wcstol.texi: Likewise.
54174         * doc/posix-functions/wcstombs.texi: Likewise.
54175         * doc/posix-functions/wcstoull.texi: Likewise.
54176         * doc/posix-functions/wcstoul.texi: Likewise.
54177         * doc/posix-functions/wcstoumax.texi: Likewise.
54178         * doc/posix-functions/wcswidth.texi: Likewise.
54179         * doc/posix-functions/wcsxfrm.texi: Likewise.
54180         * doc/posix-functions/wctob.texi: Likewise.
54181         * doc/posix-functions/wctomb.texi: Likewise.
54182         * doc/posix-functions/wctrans.texi: Likewise.
54183         * doc/posix-functions/wctype.texi: Likewise.
54184         * doc/posix-functions/wcwidth.texi: Likewise.
54185         * doc/posix-functions/wmemchr.texi: Likewise.
54186         * doc/posix-functions/wmemcmp.texi: Likewise.
54187         * doc/posix-functions/wmemcpy.texi: Likewise.
54188         * doc/posix-functions/wmemmove.texi: Likewise.
54189         * doc/posix-functions/wmemset.texi: Likewise.
54190         * doc/posix-functions/wprintf.texi: Likewise.
54191         * doc/posix-functions/wscanf.texi: Likewise.
54192
54193 2008-12-21  Bruno Haible  <bruno@clisp.org>
54194
54195         Update doc for HP-UX 11.11.
54196         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54197         in HP-UX version 11.00, not in all versions of HP-UX 11.
54198         * doc/posix-functions/fwide.texi: Likewise.
54199         * doc/posix-functions/fwprintf.texi: Likewise.
54200         * doc/posix-functions/fwscanf.texi: Likewise.
54201         * doc/posix-functions/inet_ntop.texi: Likewise.
54202         * doc/posix-functions/inet_pton.texi: Likewise.
54203         * doc/posix-functions/mbrlen.texi: Likewise.
54204         * doc/posix-functions/mbrtowc.texi: Likewise.
54205         * doc/posix-functions/mbsinit.texi: Likewise.
54206         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54207         * doc/posix-functions/swprintf.texi: Likewise.
54208         * doc/posix-functions/swscanf.texi: Likewise.
54209         * doc/posix-functions/towctrans.texi: Likewise.
54210         * doc/posix-functions/vfwprintf.texi: Likewise.
54211         * doc/posix-functions/vswprintf.texi: Likewise.
54212         * doc/posix-functions/vwprintf.texi: Likewise.
54213         * doc/posix-functions/wcrtomb.texi: Likewise.
54214         * doc/posix-functions/wcsrtombs.texi: Likewise.
54215         * doc/posix-functions/wcsstr.texi: Likewise.
54216         * doc/posix-functions/wctob.texi: Likewise.
54217         * doc/posix-functions/wctrans.texi: Likewise.
54218         * doc/posix-functions/wmemchr.texi: Likewise.
54219         * doc/posix-functions/wmemcmp.texi: Likewise.
54220         * doc/posix-functions/wmemcpy.texi: Likewise.
54221         * doc/posix-functions/wmemmove.texi: Likewise.
54222         * doc/posix-functions/wmemset.texi: Likewise.
54223         * doc/posix-functions/wprintf.texi: Likewise.
54224         * doc/posix-functions/wscanf.texi: Likewise.
54225
54226 2008-12-21  Bruno Haible  <bruno@clisp.org>
54227
54228         Work around a portability problem.
54229         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54230         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54231
54232 2008-12-20  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54235         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54236         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54238         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54239
54240         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54241         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54242         set.
54243         (GNULIB_defined_mbstate_t): New macro.
54244         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54245         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54246         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54247         reuses the system's mbrtowc function but works around the bugs.
54248         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54249         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54250         macros.
54251         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54252         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54253         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54254         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54255         REPLACE_MBSINIT if mbsinit needs to be overridden.
54256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54257         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54258         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54259         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54260         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54261         m4/locale-zh.m4.
54262         (Depends): Add mbsinit.
54263         * modules/mbsinit (Depends): Add mbrtowc.
54264         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54265
54266 2008-12-20  Bruno Haible  <bruno@clisp.org>
54267
54268         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54269         so that there are no conversion errors on AIX.
54270         * tests/test-mbsrtowcs.c (main): LIkewise.
54271
54272 2008-12-20  Bruno Haible  <bruno@clisp.org>
54273
54274         Work around wctob bug on Solaris <= 9.
54275         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54276         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54278         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54279         * modules/wctob (Files): Add m4/locale-fr.m4.
54280         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54281
54282 2008-12-20  Bruno Haible  <bruno@clisp.org>
54283
54284         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54285         /dev/null.
54286         * tests/test-select-in.sh: Likewise.
54287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54288
54289 2008-12-20  Bruno Haible  <bruno@clisp.org>
54290
54291         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54292         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54293         Cygwin 1.5.x.
54294
54295 2008-12-20  Bruno Haible  <bruno@clisp.org>
54296
54297         Ensure mbstate_t is defined on HP-UX 11.11.
54298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54299         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54300         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54301         AC_USE_SYSTEM_EXTENSIONS.
54302         * modules/fnmatch (Depends-on): Add extensions.
54303         * modules/mbrlen (Depends-on): Likewise.
54304         * modules/mbrtowc (Depends-on): Likewise.
54305         * modules/mbsinit (Depends-on): Likewise.
54306         * modules/mbsrtowcs (Depends-on): Likewise.
54307         * modules/mbswidth (Depends-on): Likewise.
54308         * modules/quotearg (Depends-on): Likewise.
54309         * modules/strftime (Depends-on): Likewise.
54310
54311 2008-12-20  Bruno Haible  <bruno@clisp.org>
54312
54313         Ensure wctob is declared on IRIX 6.5.
54314         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54315         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54316         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54318         of HAVE_WCTOB.
54319         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54320         HAVE_WCTOB.
54321         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54322
54323 2008-12-19  Bruno Haible  <bruno@clisp.org>
54324
54325         * modules/mbsrtowcs-tests: New file.
54326         * tests/test-mbsrtowcs1.sh: New file.
54327         * tests/test-mbsrtowcs2.sh: New file.
54328         * tests/test-mbsrtowcs3.sh: New file.
54329         * tests/test-mbsrtowcs4.sh: New file.
54330         * tests/test-mbsrtowcs.c: New file.
54331
54332         New module 'mbsrtowcs'.
54333         * lib/wchar.in.h (mbsrtowcs): New declaration.
54334         * lib/mbsrtowcs.c: New file.
54335         * m4/mbsrtowcs.m4: New file.
54336         * modules/mbsrtowcs: New file.
54337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54338         HAVE_MBSRTOWCS.
54339         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54340         HAVE_MBSRTOWCS.
54341         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54342
54343 2008-12-19  Bruno Haible  <bruno@clisp.org>
54344
54345         New module 'mbrlen'.
54346         * lib/wchar.in.h (mbrlen): New declaration.
54347         * lib/mbrlen.c: New file.
54348         * m4/mbrlen.m4: New file.
54349         * modules/mbrlen: New file.
54350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54351         HAVE_MBRLEN.
54352         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54353         HAVE_MBRLEN.
54354         * doc/posix-functions/mbrlen.texi: Document the new module.
54355
54356 2008-12-19  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54359         * modules/mbrtowc (Depends-on): Add verify.
54360         Suggested by Paul Eggert.
54361
54362 2008-12-18  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/mbsinit-tests: New file.
54365         * tests/test-mbsinit.sh: New file.
54366         * tests/test-mbsinit.c: New file.
54367
54368 2008-12-18  Bruno Haible  <bruno@clisp.org>
54369
54370         * modules/mbrtowc-tests: New file.
54371         * tests/test-mbrtowc1.sh: New file.
54372         * tests/test-mbrtowc2.sh: New file.
54373         * tests/test-mbrtowc3.sh: New file.
54374         * tests/test-mbrtowc4.sh: New file.
54375         * tests/test-mbrtowc.c: New file.
54376
54377         New module 'mbrtowc'.
54378         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54379         mbsinit and mbrtowc.
54380         (mbrtowc): New declaration.
54381         * lib/mbrtowc.c: New file.
54382         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54383         * modules/mbrtowc: New file.
54384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54385         HAVE_MBRTOWC.
54386         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54387         HAVE_MBRTOWC.
54388         * doc/posix-functions/mbrtowc.texi: Document the new module.
54389
54390 2008-12-18  Bruno Haible  <bruno@clisp.org>
54391
54392         New module 'wctob'.
54393         * lib/wchar.in.h (wctob): New declaration.
54394         * lib/wctob.c: New file.
54395         * m4/wctob.m4: New file.
54396         * modules/wctob: New file.
54397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54398         HAVE_WCTOB.
54399         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54400         * doc/posix-functions/wctob.texi: Document the new module.
54401
54402 2008-12-18  Bruno Haible  <bruno@clisp.org>
54403
54404         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54405         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54406
54407 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54408
54409         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54410         G. Christensen" <tgc@jupiterrise.com>.
54411
54412         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54413         G. Christensen" <tgc@jupiterrise.com>.
54414
54415         * lib/flock.c: Need to include string.h.  Reported by "Tom
54416         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54417         <ebb9@byu.net>.
54418
54419 2008-12-18  Bruno Haible  <bruno@clisp.org>
54420
54421         * m4/locale-ja.m4: New file, from GNU gettext.
54422
54423 2008-12-17  Bruno Haible  <bruno@clisp.org>
54424
54425         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54426         Suggested by Eric Blake.
54427
54428 2008-12-17  Bruno Haible  <bruno@clisp.org>
54429
54430         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54431
54432 2008-12-17  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54435         * modules/mbsinit (Depends-on): Add verify.
54436         Suggested by Paul Eggert.
54437
54438 2008-12-17  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54441         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54442         gl_FUNC_MBRTOWC.
54443         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54444         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54445         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54446         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54447         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54448         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54449         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54450         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54451         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54452         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54453         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54454         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54455         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54456         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54457         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54458         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54459         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54460         * modules/trim (configure.ac): Likewise.
54461
54462 2008-12-17  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/btowc-tests: New file.
54465         * tests/test-btowc1.sh: New file.
54466         * tests/test-btowc2.sh: New file.
54467         * tests/test-btowc.c: New file.
54468
54469         New module 'btowc'.
54470         * lib/wchar.in.h (btowc): New declaration.
54471         * lib/btowc.c: New file.
54472         * m4/btowc.m4: New file.
54473         * modules/btowc: New file.
54474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54475         HAVE_BTOWC.
54476         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54477         * doc/posix-functions/btowc.texi: Document the new module.
54478
54479 2008-12-17  Bruno Haible  <bruno@clisp.org>
54480
54481         New module 'mbsinit'.
54482         * lib/wchar.in.h (mbsinit): New declaration.
54483         * lib/mbsinit.c: New file.
54484         * m4/mbsinit.m4: New file.
54485         * modules/mbsinit: New file.
54486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54487         HAVE_MBSINIT.
54488         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54489         HAVE_MBSINIT.
54490         * doc/posix-functions/mbsinit.texi: Document the new module.
54491
54492 2008-12-16  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/unistd.in.h: Add comment.
54495         * tests/test-environ.c: Don't include <stdlib.h>.
54496
54497 2008-12-16  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/parse-duration.h (parse_duration): Document return value
54500         convention.
54501         * lib/parse-duration.c: Include specification header first. Add
54502         comments.
54503         (_): Remove macro.
54504         (parse_year_month_day, parse_hour_minute_second): Move side effects
54505         outside of strchr call.
54506         (parse_non_iso8601): Move side effects outside of isspace call.
54507         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54508         call.
54509
54510 2008-12-16  Bruno Haible  <bruno@clisp.org>
54511
54512         * tests/test-parse-duration.sh: Produce no output when the test
54513         succeeds.
54514
54515 2008-12-16  Bruno Haible  <bruno@clisp.org>
54516
54517         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54518         expressions.
54519
54520 2008-12-15  Bruno Haible  <bruno@clisp.org>
54521
54522         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54523         * doc/glibc-functions/flistxattr.texi: Likewise.
54524         * doc/glibc-functions/fopencookie.texi: Likewise.
54525         * doc/glibc-functions/fremovexattr.texi: Likewise.
54526         * doc/glibc-functions/fsetxattr.texi: Likewise.
54527         * doc/glibc-functions/getxattr.texi: Likewise.
54528         * doc/glibc-functions/lgetxattr.texi: Likewise.
54529         * doc/glibc-functions/listxattr.texi: Likewise.
54530         * doc/glibc-functions/llistxattr.texi: Likewise.
54531         * doc/glibc-functions/lremovexattr.texi: Likewise.
54532         * doc/glibc-functions/lsetxattr.texi: Likewise.
54533         * doc/glibc-functions/removexattr.texi: Likewise.
54534         * doc/glibc-functions/setxattr.texi: Likewise.
54535         * doc/posix-functions/open_memstream.texi: Likewise.
54536
54537 2008-12-15  Eric Blake  <ebb9@byu.net>
54538
54539         Update doc for cygwin 1.7.
54540         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54541         functions.
54542         * doc/posix-functions/fchmodat.texi: Likewise.
54543         * doc/posix-functions/fchownat.texi: Likewise.
54544         * doc/posix-functions/fdopendir.texi: Likewise.
54545         * doc/posix-functions/fmemopen.texi: Likewise.
54546         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54547         * doc/posix-functions/fstatat.texi: Likewise.
54548         * doc/posix-functions/futimens.texi: Likewise.
54549         * doc/posix-functions/gai_strerror.texi: Likewise.
54550         * doc/posix-functions/getaddrinfo.texi: Likewise.
54551         * doc/posix-functions/getnameinfo.texi: Likewise.
54552         * doc/posix-functions/if_freenameindex.texi: Likewise.
54553         * doc/posix-functions/if_indextoname.texi: Likewise.
54554         * doc/posix-functions/if_nameindex.texi: Likewise.
54555         * doc/posix-functions/if_nametoindex.texi: Likewise.
54556         * doc/posix-functions/insque.texi: Likewise.
54557         * doc/posix-functions/linkat.texi: Likewise.
54558         * doc/posix-functions/llrint.texi: Likewise.
54559         * doc/posix-functions/llrintf.texi: Likewise.
54560         * doc/posix-functions/llrintl.texi: Likewise.
54561         * doc/posix-functions/lockf.texi: Likewise.
54562         * doc/posix-functions/lrintl.texi: Likewise.
54563         * doc/posix-functions/mkdirat.texi: Likewise.
54564         * doc/posix-functions/mkfifoat.texi: Likewise.
54565         * doc/posix-functions/mknodat.texi: Likewise.
54566         * doc/posix-functions/mq_close.texi: Likewise.
54567         * doc/posix-functions/mq_getattr.texi: Likewise.
54568         * doc/posix-functions/mq_notify.texi: Likewise.
54569         * doc/posix-functions/mq_open.texi: Likewise.
54570         * doc/posix-functions/mq_receive.texi: Likewise.
54571         * doc/posix-functions/mq_send.texi: Likewise.
54572         * doc/posix-functions/mq_setattr.texi: Likewise.
54573         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54574         * doc/posix-functions/mq_timedsend.texi: Likewise.
54575         * doc/posix-functions/mq_unlink.texi: Likewise.
54576         * doc/posix-functions/open_memstream.texi: Likewise.
54577         * doc/posix-functions/openat.texi: Likewise.
54578         * doc/posix-functions/posix_fadvise.texi: Likewise.
54579         * doc/posix-functions/posix_fallocate.texi: Likewise.
54580         * doc/posix-functions/posix_madvise.texi: Likewise.
54581         * doc/posix-functions/posix_memalign.texi: Likewise.
54582         * doc/posix-functions/posix_openpt.texi: Likewise.
54583         * doc/posix-functions/readlinkat.texi: Likewise.
54584         * doc/posix-functions/remque.texi: Likewise.
54585         * doc/posix-functions/renameat.texi: Likewise.
54586         * doc/posix-functions/rintl.texi: Likewise.
54587         * doc/posix-functions/sem_unlink.texi: Likewise.
54588         * doc/posix-functions/shm_open.texi: Likewise.
54589         * doc/posix-functions/shm_unlink.texi: Likewise.
54590         * doc/posix-functions/signgam.texi: Likewise.
54591         * doc/posix-functions/sigset.texi: Likewise.
54592         * doc/posix-functions/stpcpy.texi: Likewise.
54593         * doc/posix-functions/stpncpy.texi: Likewise.
54594         * doc/posix-functions/strerror.texi: Likewise.
54595         * doc/posix-functions/strtod.texi: Likewise.
54596         * doc/posix-functions/symlinkat.texi: Likewise.
54597         * doc/posix-functions/unlinkat.texi: Likewise.
54598         * doc/posix-functions/utimensat.texi: Likewise.
54599         * doc/glibc-functions/bindresvport.texi: Likewise.
54600         * doc/glibc-functions/dn_expand.texi: Likewise.
54601         * doc/glibc-functions/exp10.texi: Likewise.
54602         * doc/glibc-functions/exp10f.texi: Likewise.
54603         * doc/glibc-functions/fgetxattr.texi: Likewise.
54604         * doc/glibc-functions/flistxattr.texi: Likewise.
54605         * doc/glibc-functions/fopencookie.texi: Likewise.
54606         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54607         * doc/glibc-functions/fremovexattr.texi: Likewise.
54608         * doc/glibc-functions/fsetxattr.texi: Likewise.
54609         * doc/glibc-functions/getifaddrs.texi: Likewise.
54610         * doc/glibc-functions/getxattr.texi: Likewise.
54611         * doc/glibc-functions/lgetxattr.texi: Likewise.
54612         * doc/glibc-functions/listxattr.texi: Likewise.
54613         * doc/glibc-functions/llistxattr.texi: Likewise.
54614         * doc/glibc-functions/lremovexattr.texi: Likewise.
54615         * doc/glibc-functions/lsetxattr.texi: Likewise.
54616         * doc/glibc-functions/pow10.texi: Likewise.
54617         * doc/glibc-functions/pow10f.texi: Likewise.
54618         * doc/glibc-functions/rcmd_af.texi: Likewise.
54619         * doc/glibc-functions/removexattr.texi: Likewise.
54620         * doc/glibc-functions/res_init.texi: Likewise.
54621         * doc/glibc-functions/res_mkquery.texi: Likewise.
54622         * doc/glibc-functions/res_query.texi: Likewise.
54623         * doc/glibc-functions/res_querydomain.texi: Likewise.
54624         * doc/glibc-functions/res_send.texi: Likewise.
54625         * doc/glibc-functions/rresvport_af.texi: Likewise.
54626         * doc/glibc-functions/setxattr.texi: Likewise.
54627         * doc/glibc-functions/strcasestr.texi: Likewise.
54628
54629 2008-12-15  Bruno Haible  <bruno@clisp.org>
54630
54631         Fix compilation error on OSF/1 4.0.
54632         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54633         <sys/time.h>, simply delegate to the system header.
54634         Reported by Daniel Richard G. <oss@teragram.com>.
54635
54636 2008-12-15  Bruno Haible  <bruno@clisp.org>
54637
54638         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54639         * doc/posix-functions/fchmodat.texi: Likewise.
54640         * doc/posix-functions/fchownat.texi: Likewise.
54641         * doc/posix-functions/fdopendir.texi: Likewise.
54642         * doc/posix-functions/fstatat.texi: Likewise.
54643         * doc/posix-functions/mkdirat.texi: Likewise.
54644         * doc/posix-functions/unlinkat.texi: Likewise.
54645
54646 2008-12-14  Bruno Haible  <bruno@clisp.org>
54647
54648         Update doc for POSIX:2008.
54649         * doc/posix-functions/faccessat.texi: New file.
54650         * doc/posix-functions/fchmodat.texi: New file.
54651         * doc/posix-functions/fchownat.texi: New file.
54652         * doc/posix-functions/fdopendir.texi: New file.
54653         * doc/posix-functions/fstatat.texi: New file.
54654         * doc/posix-functions/futimens.texi: New file.
54655         * doc/posix-functions/linkat.texi: New file.
54656         * doc/posix-functions/mkdirat.texi: New file.
54657         * doc/posix-functions/mkfifoat.texi: New file.
54658         * doc/posix-functions/mknodat.texi: New file.
54659         * doc/posix-functions/open_wmemstream.texi: New file.
54660         * doc/posix-functions/openat.texi: New file.
54661         * doc/posix-functions/psiginfo.texi: New file.
54662         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54663         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54664         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54665         * doc/posix-functions/readlinkat.texi: New file.
54666         * doc/posix-functions/renameat.texi: New file.
54667         * doc/posix-functions/strerror_l.texi: New file.
54668         * doc/posix-functions/symlinkat.texi: New file.
54669         * doc/posix-functions/unlinkat.texi: New file.
54670         * doc/posix-functions/utimensat.texi: New file.
54671         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54672
54673 2008-12-14  Bruno Haible  <bruno@clisp.org>
54674
54675         Update doc for POSIX:2008.
54676         * doc/posix-functions/alphasort.texi: Renamed from
54677         doc/glibc-functions/alphasort.texi.
54678         * doc/posix-functions/dirfd.texi: Renamed from
54679         doc/glibc-functions/dirfd.texi.
54680         * doc/posix-functions/dprintf.texi: Renamed from
54681         doc/glibc-functions/dprintf.texi.
54682         * doc/posix-functions/duplocale.texi: Renamed from
54683         doc/glibc-functions/duplocale.texi.
54684         * doc/posix-functions/fexecve.texi: Renamed from
54685         doc/glibc-functions/fexecve.texi.
54686         * doc/posix-functions/fmemopen.texi: Renamed from
54687         doc/glibc-functions/fmemopen.texi.
54688         * doc/posix-functions/freelocale.texi: Renamed from
54689         doc/glibc-functions/freelocale.texi.
54690         * doc/posix-functions/getdate_err.texi: Renamed from
54691         doc/glibc-functions/getdate_err.texi.
54692         * doc/posix-functions/isalnum_l.texi: Renamed from
54693         doc/glibc-functions/isalnum_l.texi.
54694         * doc/posix-functions/isalpha_l.texi: Renamed from
54695         doc/glibc-functions/isalpha_l.texi.
54696         * doc/posix-functions/isblank_l.texi: Renamed from
54697         doc/glibc-functions/isblank_l.texi.
54698         * doc/posix-functions/iscntrl_l.texi: Renamed from
54699         doc/glibc-functions/iscntrl_l.texi.
54700         * doc/posix-functions/isdigit_l.texi: Renamed from
54701         doc/glibc-functions/isdigit_l.texi.
54702         * doc/posix-functions/isgraph_l.texi: Renamed from
54703         doc/glibc-functions/isgraph_l.texi.
54704         * doc/posix-functions/islower_l.texi: Renamed from
54705         doc/glibc-functions/islower_l.texi.
54706         * doc/posix-functions/isprint_l.texi: Renamed from
54707         doc/glibc-functions/isprint_l.texi.
54708         * doc/posix-functions/ispunct_l.texi: Renamed from
54709         doc/glibc-functions/ispunct_l.texi.
54710         * doc/posix-functions/isspace_l.texi: Renamed from
54711         doc/glibc-functions/isspace_l.texi.
54712         * doc/posix-functions/isupper_l.texi: Renamed from
54713         doc/glibc-functions/isupper_l.texi.
54714         * doc/posix-functions/iswalnum_l.texi: Renamed from
54715         doc/glibc-functions/iswalnum_l.texi.
54716         * doc/posix-functions/iswalpha_l.texi: Renamed from
54717         doc/glibc-functions/iswalpha_l.texi.
54718         * doc/posix-functions/iswblank_l.texi: Renamed from
54719         doc/glibc-functions/iswblank_l.texi.
54720         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54721         doc/glibc-functions/iswcntrl_l.texi.
54722         * doc/posix-functions/iswctype_l.texi: Renamed from
54723         doc/glibc-functions/iswctype_l.texi.
54724         * doc/posix-functions/iswdigit_l.texi: Renamed from
54725         doc/glibc-functions/iswdigit_l.texi.
54726         * doc/posix-functions/iswgraph_l.texi: Renamed from
54727         doc/glibc-functions/iswgraph_l.texi.
54728         * doc/posix-functions/iswlower_l.texi: Renamed from
54729         doc/glibc-functions/iswlower_l.texi.
54730         * doc/posix-functions/iswprint_l.texi: Renamed from
54731         doc/glibc-functions/iswprint_l.texi.
54732         * doc/posix-functions/iswpunct_l.texi: Renamed from
54733         doc/glibc-functions/iswpunct_l.texi.
54734         * doc/posix-functions/iswspace_l.texi: Renamed from
54735         doc/glibc-functions/iswspace_l.texi.
54736         * doc/posix-functions/iswupper_l.texi: Renamed from
54737         doc/glibc-functions/iswupper_l.texi.
54738         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54739         doc/glibc-functions/iswxdigit_l.texi.
54740         * doc/posix-functions/isxdigit_l.texi: Renamed from
54741         doc/glibc-functions/isxdigit_l.texi.
54742         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54743         doc/glibc-functions/mbsnrtowcs.texi.
54744         * doc/posix-functions/mkdtemp.texi: Renamed from
54745         doc/glibc-functions/mkdtemp.texi.
54746         * doc/posix-functions/newlocale.texi: Renamed from
54747         doc/glibc-functions/newlocale.texi.
54748         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54749         doc/glibc-functions/nl_langinfo_l.texi.
54750         * doc/posix-functions/open_memstream.texi: Renamed from
54751         doc/glibc-functions/open_memstream.texi.
54752         * doc/posix-functions/opterr.texi: Renamed from
54753         doc/glibc-functions/opterr.texi.
54754         * doc/posix-functions/optind.texi: Renamed from
54755         doc/glibc-functions/optind.texi.
54756         * doc/posix-functions/optopt.texi: Renamed from
54757         doc/glibc-functions/optopt.texi.
54758         * doc/posix-functions/psignal.texi: Renamed from
54759         doc/glibc-functions/psignal.texi.
54760         * doc/posix-functions/scandir.texi: Renamed from
54761         doc/glibc-functions/scandir.texi.
54762         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54763         doc/glibc-functions/sched_get_priority_min.texi.
54764         * doc/posix-functions/signgam.texi: Renamed from
54765         doc/glibc-functions/signgam.texi.
54766         * doc/posix-functions/stpcpy.texi: Renamed from
54767         doc/glibc-functions/stpcpy.texi.
54768         * doc/posix-functions/stpncpy.texi: Renamed from
54769         doc/glibc-functions/stpncpy.texi.
54770         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54771         doc/glibc-functions/strcasecmp_l.texi.
54772         * doc/posix-functions/strcoll_l.texi: Renamed from
54773         doc/glibc-functions/strcoll_l.texi.
54774         * doc/posix-functions/strfmon_l.texi: Renamed from
54775         doc/glibc-functions/strfmon_l.texi.
54776         * doc/posix-functions/strftime_l.texi: Renamed from
54777         doc/glibc-functions/strftime_l.texi.
54778         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54779         doc/glibc-functions/strncasecmp_l.texi.
54780         * doc/posix-functions/strndup.texi: Renamed from
54781         doc/glibc-functions/strndup.texi.
54782         * doc/posix-functions/strnlen.texi: Renamed from
54783         doc/glibc-functions/strnlen.texi.
54784         * doc/posix-functions/strsignal.texi: Renamed from
54785         doc/glibc-functions/strsignal.texi.
54786         * doc/posix-functions/strxfrm_l.texi: Renamed from
54787         doc/glibc-functions/strxfrm_l.texi.
54788         * doc/posix-functions/timer_gettime.texi: Renamed from
54789         doc/glibc-functions/timer_gettime.texi.
54790         * doc/posix-functions/tolower_l.texi: Renamed from
54791         doc/glibc-functions/tolower_l.texi.
54792         * doc/posix-functions/toupper_l.texi: Renamed from
54793         doc/glibc-functions/toupper_l.texi.
54794         * doc/posix-functions/towctrans_l.texi: Renamed from
54795         doc/glibc-functions/towctrans_l.texi.
54796         * doc/posix-functions/towlower_l.texi: Renamed from
54797         doc/glibc-functions/towlower_l.texi.
54798         * doc/posix-functions/towupper_l.texi: Renamed from
54799         doc/glibc-functions/towupper_l.texi.
54800         * doc/posix-functions/uselocale.texi: Renamed from
54801         doc/glibc-functions/uselocale.texi.
54802         * doc/posix-functions/vdprintf.texi: Renamed from
54803         doc/glibc-functions/vdprintf.texi.
54804         * doc/posix-functions/wcpcpy.texi:
54805         Renamed from doc/glibc-functions/wcpcpy.texi.
54806         * doc/posix-functions/wcpncpy.texi: Renamed from
54807         doc/glibc-functions/wcpncpy.texi.
54808         * doc/posix-functions/wcscasecmp.texi: Renamed from
54809         doc/glibc-functions/wcscasecmp.texi.
54810         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54811         doc/glibc-functions/wcscasecmp_l.texi.
54812         * doc/posix-functions/wcscoll_l.texi: Renamed from
54813         doc/glibc-functions/wcscoll_l.texi.
54814         * doc/posix-functions/wcsdup.texi: Renamed from
54815         doc/glibc-functions/wcsdup.texi.
54816         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54817         doc/glibc-functions/wcsncasecmp.texi.
54818         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54819         doc/glibc-functions/wcsncasecmp_l.texi.
54820         * doc/posix-functions/wcsnlen.texi: Renamed from
54821         doc/glibc-functions/wcsnlen.texi.
54822         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54823         doc/glibc-functions/wcsnrtombs.texi.
54824         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54825         doc/glibc-functions/wcsxfrm_l.texi.
54826         * doc/posix-functions/wctrans_l.texi: Renamed from
54827         doc/glibc-functions/wctrans_l.texi.
54828         * doc/posix-functions/wctype_l.texi: Renamed from
54829         doc/glibc-functions/wctype_l.texi.
54830         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54831         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54832         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54833         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54834         these subsections.
54835         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54836         Remove sections.
54837
54838 2008-12-14  Bruno Haible  <bruno@clisp.org>
54839
54840         Update doc for POSIX:2008.
54841         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54842
54843 2008-12-14  Bruno Haible  <bruno@clisp.org>
54844
54845         Update doc for POSIX:2008.
54846         * doc/pastposix-functions/bcmp.texi: Renamed from
54847         doc/posix-functions/bcmp.texi.
54848         * doc/pastposix-functions/bcopy.texi: Renamed from
54849         doc/posix-functions/bcopy.texi.
54850         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54851         doc/posix-functions/bsd_signal.texi.
54852         * doc/pastposix-functions/bzero.texi: Renamed from
54853         doc/posix-functions/bzero.texi.
54854         * doc/pastposix-functions/ecvt.texi: Renamed from
54855         doc/posix-functions/ecvt.texi.
54856         * doc/pastposix-functions/fcvt.texi: Renamed from
54857         doc/posix-functions/fcvt.texi.
54858         * doc/pastposix-functions/ftime.texi: Renamed from
54859         doc/posix-functions/ftime.texi.
54860         * doc/pastposix-functions/gcvt.texi: Renamed from
54861         doc/posix-functions/gcvt.texi.
54862         * doc/pastposix-functions/getcontext.texi: Renamed from
54863         doc/posix-functions/getcontext.texi.
54864         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54865         doc/posix-functions/gethostbyaddr.texi.
54866         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54867         doc/posix-functions/gethostbyname.texi.
54868         * doc/pastposix-functions/getwd.texi: Renamed from
54869         doc/posix-functions/getwd.texi.
54870         * doc/pastposix-functions/h_errno.texi: Renamed from
54871         doc/posix-functions/h_errno.texi.
54872         * doc/pastposix-functions/index.texi: Renamed from
54873         doc/posix-functions/index.texi.
54874         * doc/pastposix-functions/makecontext.texi: Renamed from
54875         doc/posix-functions/makecontext.texi.
54876         * doc/pastposix-functions/mktemp.texi: Renamed from
54877         doc/posix-functions/mktemp.texi.
54878         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54879         doc/posix-functions/pthread_attr_getstackaddr.texi.
54880         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54881         doc/posix-functions/pthread_attr_setstackaddr.texi.
54882         * doc/pastposix-functions/rindex.texi: Renamed from
54883         doc/posix-functions/rindex.texi.
54884         * doc/pastposix-functions/scalb.texi: Renamed from
54885         doc/posix-functions/scalb.texi.
54886         * doc/pastposix-functions/setcontext.texi: Renamed from
54887         doc/posix-functions/setcontext.texi.
54888         * doc/pastposix-functions/swapcontext.texi: Renamed from
54889         doc/posix-functions/swapcontext.texi.
54890         * doc/pastposix-functions/ualarm.texi: Renamed from
54891         doc/posix-functions/ualarm.texi.
54892         * doc/pastposix-functions/usleep.texi: Renamed from
54893         doc/posix-functions/usleep.texi.
54894         * doc/pastposix-functions/vfork.texi: Renamed from
54895         doc/posix-functions/vfork.texi.
54896         * doc/pastposix-functions/wcswcs.texi: Renamed from
54897         doc/posix-functions/wcswcs.texi.
54898         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54899         (Function Substitutes): Update.
54900
54901 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54902
54903         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54904         m4/strerror.m4.
54905
54906 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54907             Bruno Haible  <bruno@clisp.org>
54908
54909         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54910
54911 2008-12-13  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/strtoull (Depends-on): Remove unistd.
54914
54915 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54916
54917         * modules/strtoull (Depends-on): Add stdlib.
54918
54919 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54920
54921         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54922
54923 2008-12-10  Jim Meyering  <meyering@redhat.com>
54924
54925         gl_ASSERT: don't say assertions are disabled when they're not
54926         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54927         "checking whether to enable assertions... no", when they are in
54928         fact enabled.  This is solely a bug in the output of configure.
54929         In spite of saying "no", NDEBUG was not defined in that case.
54930         Also, as noted by Eric Blake, leave assertions enabled upon
54931         --enable-assert=INVALID.
54932
54933 2008-12-10  Bruno Haible  <bruno@clisp.org>
54934
54935         Change MODULES.html to refer to POSIX:2008 where possible.
54936         * MODULES.html.sh (POSIX2008_URL): New variable.
54937         (posix_headers): Remove sys/timeb, ucontext.
54938         (posix2001_headers): New variable.
54939         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54940         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54941         index, makecontext, mktemp, pthread_attr_getstackaddr,
54942         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54943         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54944         (posix2001_functions): New variable.
54945         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54946         otherwise.
54947
54948 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54949
54950         add missing include to parse-duration.c
54951         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54952         * modules/parse-duration (Depends-on): Add xalloc.
54953
54954         fix sed script reading maint.mk
54955         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54956         (syntax-check-rules): Use it.
54957
54958 2008-12-09  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54961         MacOS X 10.4/PowerPC.
54962         Reported by Simon Josefsson.
54963
54964 2008-12-08  Jim Meyering  <meyering@redhat.com>
54965
54966         work around mingw's lack of some S_IF definitions
54967         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54968         Reported by Simon Josefsson.
54969
54970 2008-12-08  Bruno Haible  <bruno@clisp.org>
54971
54972         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54973         applied to variables. Needed on MacOS X 10.4/PowerPC.
54974         Reported by Simon Josefsson.
54975
54976 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54977         and Eric Blake  <ebb9@byu.net>
54978
54979         assert: honor --enable-assert
54980         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54981         order to honor --enable-assert, rather than treating it as a
54982         synonym for --disable-assert.
54983
54984 2008-12-08  Jim Meyering  <meyering@redhat.com>
54985
54986         * lib/posixtm.c: Remove now-useless declaration of mktime.
54987
54988         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54989
54990 2008-12-07  Bruno Haible  <bruno@clisp.org>
54991
54992         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54993         test_once): Mark functions as static.
54994         * tests/test-tls.c (test_tls): Likewise.
54995
54996 2008-12-07  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54999         iconv_register_autodetect.
55000
55001 2008-12-07  Jim Meyering  <meyering@redhat.com>
55002
55003         posixtm.c: avoid a warning
55004         * lib/posixtm.c (posixtime): Don't initialize tm0.
55005         It's no longer needed to placate gcc4's -Wuninitialized,
55006         and the attempt to placate would elicit a new warning.
55007
55008         unicodeio.c: mark unused parameters
55009         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55010         (fallback_failure_callback): Likewise.
55011
55012 2008-12-07  Bruno Haible  <bruno@clisp.org>
55013
55014         * gnulib-tool (func_create_testdir): When building the tests
55015         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55016         Reported by Simon Josefsson.
55017
55018 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55019
55020         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55021
55022 2008-12-06  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55025         Suggested by Eric Blake.
55026
55027 2008-12-06  Bruno Haible  <bruno@clisp.org>
55028
55029         Fix a c-stack test failure on MacOS X.
55030         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55031         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55032         handler for SIGBUS as well.
55033         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55034         install a signal handler for SIGBUS as well.
55035         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55036
55037 2008-12-06  Bruno Haible  <bruno@clisp.org>
55038
55039         Advocacy documentation.
55040         * doc/gnulib-intro.texi (Benefits): New section.
55041         * doc/gnulib.texi: Update.
55042
55043 2008-12-06  Bruno Haible  <bruno@clisp.org>
55044
55045         Document the 'manywarnings' module.
55046         * doc/manywarnings.texi: New file.
55047         * doc/gnulib.texi: Include it.
55048
55049 2008-12-05  Eric Blake  <ebb9@byu.net>
55050
55051         tests: silence some gcc warnings
55052         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55053         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55054         type mismatches.
55055
55056 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55057             Bruno Haible  <bruno@clisp.org>
55058
55059         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55060
55061 2008-11-29  Jim Meyering  <meyering@redhat.com>
55062
55063         unicodeio.c: mark unused parameters
55064         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55065         (fallback_failure_callback): Likewise.
55066
55067         fts: fix a thinko
55068         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55069         (set_stat_type): Return S_IF*-valued "type" directly.
55070         Prompted by James Youngman's spotting a related bug.
55071         Confirmed by further testing through find.
55072
55073         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55074         * lib/fts.c (D_TYPE): Define.
55075         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55076         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55077         (s_ifmt_shift_bits): New function.
55078         (set_stat_type): New function.
55079         (fts_build): When not calling fts_stat, call set_stat_type
55080         to propagate dirent.d_type info to fts_read caller.
55081         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55082         fts_statp->st_mode type information may be valid.
55083
55084 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55085
55086         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55087         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55088         <sds@gnu.org>.
55089
55090 2008-11-20  Bruno Haible  <bruno@clisp.org>
55091
55092         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55093         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55094         INCLUDE_NEXT.
55095         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55096         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55097         * modules/math (Makefile.am): Substitute
55098         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55099         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55100
55101 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55102             Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/stdint.in.h: Define all type macros so that their expansion is
55105         a single typedef'ed token. Fixes a compilation failure in Boost which
55106         does "using ::int8_t;".
55107
55108 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55109
55110         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55111         gl_MANYWARN_ALL_GCC.
55112         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55113         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55114         * modules/manywarnings: New file.
55115         * MODULES.html.sh: Mention manywarnings module.
55116
55117 2008-11-18  Bruno Haible  <bruno@clisp.org>
55118
55119         * doc/gnulib-tool.texi (Unit tests): New section.
55120
55121 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55122
55123         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55124         paths like 'lib/po/foo.po'.
55125
55126 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55127
55128         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55129         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55130
55131 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55132
55133         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55134         parameter works.
55135
55136 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55137
55138         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55139
55140 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55141
55142         * modules/parse-duration-tests: New file.
55143         * tests/test-parse-duration.sh: New file.
55144         * tests/test-parse-duration.c: New file.
55145
55146         New module 'parse-duration'.
55147         * lib/parse-duration.h: New file.
55148         * lib/parse-duration.c: New file.
55149         * modules/parse-duration: New file.
55150
55151 2008-11-17  Bruno Haible  <bruno@clisp.org>
55152
55153         * tests/test-select-out.sh: Comment out the first pipe test.
55154         Reported by Simon Josefsson.
55155
55156 2008-11-17  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55160         gl_HOSTENT.
55161
55162 2008-11-17  Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55165         -lnetwork and -lnet. Needed for Haiku and BeOS.
55166
55167 2008-11-16  Bruno Haible  <bruno@clisp.org>
55168
55169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55170
55171 2008-11-16  Bruno Haible  <bruno@clisp.org>
55172
55173         Avoid test failure on Haiku.
55174         * tests/test-fsync.c: Include <errno.h>.
55175         (main): Don't require that fsync (0) fails.
55176
55177 2008-11-15  Bruno Haible  <bruno@clisp.org>
55178
55179         New module 'hostent'.
55180         * modules/hostent: New file.
55181         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55182
55183 2008-11-15  Bruno Haible  <bruno@clisp.org>
55184
55185         New module 'servent'.
55186         * modules/servent: New file.
55187         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55188
55189 2008-11-15  Bruno Haible  <bruno@clisp.org>
55190
55191         Avoid generating same test program with two different rules.
55192         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55193         test-frexp to test-frexp-nolibm.
55194         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55195         test-frexpl to test-frexpl-nolibm.
55196
55197 2008-11-15  Bruno Haible  <bruno@clisp.org>
55198
55199         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55200         $(FREXPL_LIBM).
55201
55202 2008-11-15  Bruno Haible  <bruno@clisp.org>
55203
55204         * lib/netdb.in.h: Activate the definitions also when the system's
55205         <netdb.h> has 'struct addrinfo'.
55206         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55207         EAI_OVERFLOW or AI_NUMERICSERV.
55208         * doc/posix-headers/netdb.texi: Document the problem.
55209
55210 2008-11-15  Bruno Haible  <bruno@clisp.org>
55211
55212         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55213
55214         Make the 'sched' module work on platforms where <sched.h> exists but
55215         is incomplete (such as Haiku).
55216         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55217         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55218         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55219         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55220         HAVE_STRUCT_SCHED_PARAM.
55221         * modules/sched (Depends-on): Add include_next.
55222         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55223         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55224         * doc/posix-headers/sched.texi: Document the issue.
55225
55226 2008-11-13  Jim Meyering  <meyering@redhat.com>
55227
55228         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55229         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55230         test would fail due to the difference in the Report bugs to ...
55231         line.  The expected address is empty, "<>", while the actual
55232         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55233
55234 2008-11-12  Bruno Haible  <bruno@clisp.org>
55235
55236         lstat: don't compile lstat.c on systems lacking lstat
55237         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55238         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55239         Reported by Daniel P. Berrange via Jim Meyering.
55240
55241 2008-11-12  Jim Meyering  <meyering@redhat.com>
55242
55243         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55244
55245 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55246
55247         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55248         instead.
55249
55250 2008-11-12  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/unicodeio.c: Include unistr.h.
55253         (utf8_wctomb): Remove function.
55254         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55255
55256 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55257
55258         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55259         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55260         <bruno@clisp.org>.
55261         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55262
55263 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55264
55265         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55266         * doc/gnulib.texi: Add section for warnings.
55267
55268 2008-11-11  Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/sockets.h: Add a comment.
55271
55272 2008-11-11  Karl Berry  <karl@gnu.org>
55273
55274         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55275
55276 2008-11-11  Eric Blake  <ebb9@byu.net>
55277
55278         fdl.texi: avoid git symlinks
55279         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55280
55281 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55282
55283         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55284
55285 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55286
55287         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55288         (gl_WARN_ADD): Substitute $2 if literal.
55289
55290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55291
55292         * m4/warning.m4: Remove.
55293
55294 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55295
55296         * m4/warnings.m4: Almost complete rewrite. :-)
55297
55298 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55299
55300         * modules/warnings: New module.
55301         * m4/warnings.m4: New file.
55302         * MODULES.html.sh: Mention warnings module.
55303         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55304         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55305
55306 2008-11-10  Eric Blake  <ebb9@byu.net>
55307
55308         fdl.texi: make a symlink to the latest version
55309         * doc/standards.texi: Revert today's earlier change.
55310         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55311         * doc/fdl.texi: ...and replace this with a symlink to the newer
55312         fdl-1.3.texi.
55313
55314 2008-11-10  Bruno Haible  <bruno@clisp.org>
55315
55316         * tests/test-select-fd.c (main): Accept the result file name as fourth
55317         argument.
55318         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55319         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55320
55321 2008-11-10  Bruno Haible  <bruno@clisp.org>
55322
55323         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55324         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55325         as autoconf-substituted macros.
55326         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55328         gl_NETDB_H_DEFAULTS. Set these variables.
55329         * modules/netdb (Makefile.am): Substitute these variables.
55330
55331 2008-11-10  Eric Blake  <ebb9@byu.net>
55332
55333         standards.texi: include correct file for FDL 1.3
55334         * doc/standards.texi (GNU Free Documentation License): Change
55335         include file to pull in FDL 1.3, not 1.2.
55336
55337         fdl.texi: revert accidental change to license
55338         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55339
55340 2008-11-10  Bruno Haible  <bruno@clisp.org>
55341
55342         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55343         cross-compiling guesses also when the native compile gives no result.
55344
55345 2008-11-10  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/spawni.c (__spawni): Force variable into the stack.
55348
55349 2008-11-10  Bruno Haible  <bruno@clisp.org>
55350
55351         Add support for Haiku.
55352         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55353         glibc and BeOS, but also on Haiku.
55354         * lib/fpurge.c (fpurge): Likewise.
55355         * lib/freadable.c (freadable): Likewise.
55356         * lib/freadahead.c (freadahead): Likewise.
55357         * lib/freading.c (freading): Likewise.
55358         * lib/freadptr.c (freadptr): Likewise.
55359         * lib/freadseek.c (freadptrinc): Likewise.
55360         * lib/fseeko.c (rpl_fseeko): Likewise.
55361         * lib/fseterr.c (fseterr): Likewise.
55362         * lib/fwritable.c (fwritable): Likewise.
55363         * lib/fwriting.c (fwriting): Likewise.
55364         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55365
55366 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55367
55368         * lib/config.charset: Treat Haiku like BeOS.
55369
55370 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55371
55372         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55373         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55374
55375 2008-11-08  Bruno Haible  <bruno@clisp.org>
55376
55377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55378         AC_CACHE_CHECK.
55379
55380 2008-11-08  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55383
55384 2008-11-08  Bruno Haible  <bruno@clisp.org>
55385
55386         * tests/test-select-fd.c: New file.
55387         * tests/test-select-in.sh: New file.
55388         * tests/test-select-out.sh: New file.
55389         * tests/test-select-stdin.c: New file.
55390         * modules/select-tests (Files): Add the new files.
55391         (Depends-on): Add gettimeofday.
55392         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55393         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55394         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55395
55396 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55397             Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55400
55401 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55402
55403         * build-aux/pmccabe2html: Added support for C++ source files.
55404
55405 2008-11-05  Ben Pfaff  <blp@gnu.org>
55406
55407         Fix lib/close.c build on Windows.
55408         * modules/close (Files): Add lib/w32sock.h.
55409
55410 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55411
55412         Accept Bison's NEWS format.
55413         * build-aux/announce-gen (print_news_deltas): Tweak
55414         $re_prefix.
55415
55416 2008-11-04  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/random_r (Maintainer): Add glibc.
55419
55420 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55421
55422         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55423         by karl@freefriends.org (Karl Berry).
55424         * doc/alloca.texi: Likewise.
55425         * doc/c-ctype.texi: Likewise.
55426         * doc/c-strcase.texi: Likewise.
55427         * doc/c-strcaseeq.texi: Likewise.
55428         * doc/c-strcasestr.texi: Likewise.
55429         * doc/c-strstr.texi: Likewise.
55430         * doc/c-strtod.texi: Likewise.
55431         * doc/c-strtold.texi: Likewise.
55432         * doc/ctime.texi: Likewise.
55433         * doc/error.texi: Likewise.
55434         * doc/fdl.texi: Likewise.
55435         * doc/gcd.texi: Likewise.
55436         * doc/getdate.texi: Likewise.
55437         * doc/gnulib-intro.texi: Likewise.
55438         * doc/gnulib-tool.texi: Likewise.
55439         * doc/gnulib.texi: Likewise.
55440         * doc/inet_ntoa.texi: Likewise.
55441         * doc/maintain.texi: Likewise.
55442         * doc/make-stds.texi: Likewise.
55443         * doc/quote.texi: Likewise.
55444         * doc/regexprops-generic.texi: Likewise.
55445         * doc/standards.texi: Likewise.
55446         * doc/verify.texi: Likewise.
55447         * doc/visibility.texi: Likewise.
55448         * doc/gnulib.texi (GNU Free Documentation License): Include
55449         fdl-1.3.texi instead of fdl.texi.
55450
55451 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55452
55453         * doc/fdl-1.3.texi: New file, from
55454         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55455         * modules/fdl-1.3: Add.
55456         * MODULES.html.sh: Add fdl-1.3.
55457
55458 2008-11-03  Bruno Haible  <bruno@clisp.org>
55459
55460         Make determination of absolute name of header file work with AIX xlc.
55461         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55462         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55463         preprocessing.
55464         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55465         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55466
55467 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55468
55469         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55470         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55471         <ludo@gnu.org>.
55472
55473 2008-11-02  Bruno Haible  <bruno@clisp.org>
55474
55475         Mark 'strpbrk' obsolete.
55476         * modules/strpbrk (Status, Notice): New sections.
55477         * modules/strtok_r (Depends-on): Add strpbrk.
55478
55479 2008-11-02  Bruno Haible  <bruno@clisp.org>
55480
55481         Mark 'strdup' obsolete.
55482         * modules/strdup (Status, Notice): New sections.
55483         * modules/findprog (Depends-on): Add strdup.
55484         * modules/getaddrinfo (Depends-on): Likewise.
55485         * modules/localename (Depends-on): Likewise.
55486         * modules/relocatable-lib (Depends-on): Likewise.
55487         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55488         * modules/relocatable-prog (Depends-on): Likewise.
55489         * modules/trim (Depends-on): Likewise.
55490         * modules/unictype/gen-ctype (Depends-on): Likewise.
55491         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55492
55493 2008-11-02  Bruno Haible  <bruno@clisp.org>
55494
55495         Mark 'strcspn' obsolete.
55496         * modules/strcspn (Status, Notice): New sections.
55497
55498 2008-11-02  Bruno Haible  <bruno@clisp.org>
55499
55500         Mark 'rmdir' obsolete.
55501         * modules/rmdir (Status, Notice): New sections.
55502         * modules/clean-temp (Depends-on): Add rmdir.
55503         * modules/openat (Depends-on): Likewise.
55504
55505 2008-11-02  Bruno Haible  <bruno@clisp.org>
55506
55507         Mark 'raise' obsolete.
55508         * modules/raise (Status, Notice): New sections.
55509         (Include): Specify <signal.h>.
55510         * modules/stdio (Depends-on): Add raise.
55511         * modules/write (Depends-on): Likewise.
55512
55513 2008-11-02  Bruno Haible  <bruno@clisp.org>
55514
55515         Mark 'memset' obsolete.
55516         * modules/memset (Status, Notice): New sections.
55517
55518 2008-11-02  Bruno Haible  <bruno@clisp.org>
55519
55520         Mark 'memmove' obsolete.
55521         * modules/memmove (Status, Notice): New sections.
55522         * modules/argp (Depends-on): Add memmove.
55523         * modules/argz (Depends-on): Likewise.
55524         * modules/canonicalize (Depends-on): Likewise.
55525         * modules/canonicalize-lgpl (Depends-on): Likewise.
55526         * modules/fts (Depends-on): Likewise.
55527         * modules/getcwd (Depends-on): Likewise.
55528         * modules/human (Depends-on): Likewise.
55529         * modules/regex (Depends-on): Likewise.
55530         * modules/striconveh (Depends-on): Likewise.
55531         * modules/trim (Depends-on): Likewise.
55532         * modules/unistr/u8-move (Depends-on): Likewise.
55533         * modules/unistr/u16-move (Depends-on): Likewise.
55534         * modules/unistr/u32-move (Depends-on): Likewise.
55535
55536 2008-11-02  Bruno Haible  <bruno@clisp.org>
55537
55538         Mark 'memcpy' obsolete.
55539         * modules/memcpy (Status, Notice): New sections.
55540
55541 2008-11-02  Bruno Haible  <bruno@clisp.org>
55542
55543         Mark 'memcmp' obsolete.
55544         * modules/memcmp (Status, Notice): New sections.
55545         * modules/argmatch (Depends-on): Add memchr.
55546         * modules/backupfile (Depends-on): Likewise.
55547         * modules/c-strcasestr (Depends-on): Likewise.
55548         * modules/crypto/des (Depends-on): Likewise.
55549         * modules/csharpcomp (Depends-on): Likewise.
55550         * modules/fnmatch (Depends-on): Likewise.
55551         * modules/git-merge-changelog (Depends-on): Likewise.
55552         * modules/isnand (Depends-on): Likewise.
55553         * modules/isnand-nolibm (Depends-on): Likewise.
55554         * modules/isnanf (Depends-on): Likewise.
55555         * modules/isnanf-nolibm (Depends-on): Likewise.
55556         * modules/isnanl (Depends-on): Likewise.
55557         * modules/isnanl-nolibm (Depends-on): Likewise.
55558         * modules/mbchar (Depends-on): Likewise.
55559         * modules/memcoll (Depends-on): Likewise.
55560         * modules/quotearg (Depends-on): Likewise.
55561         * modules/regex (Depends-on): Likewise.
55562         * modules/relocatable-prog (Depends-on): Likewise.
55563         * modules/same (Depends-on): Likewise.
55564         * modules/signbit (Depends-on): Likewise.
55565         * modules/strcasestr-simple (Depends-on): Likewise.
55566         * modules/unictype/gen-ctype (Depends-on): Likewise.
55567         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55568         * modules/uniname/uniname (Depends-on): Likewise.
55569         * modules/unistr/u8-cmp (Depends-on): Likewise.
55570
55571 2008-11-02  Bruno Haible  <bruno@clisp.org>
55572
55573         Mark 'memchr' obsolete.
55574         * modules/memchr (Status, Notice): New sections.
55575         * modules/argp (Depends-on): Add memchr.
55576         * modules/base64 (Depends-on): Likewise.
55577         * modules/c-strcasestr (Depends-on): Likewise.
55578         * modules/chdir-long (Depends-on): Likewise.
55579         * modules/fnmatch (Depends-on): Likewise.
55580         * modules/getsubopt (Depends-on): Likewise.
55581         * modules/git-merge-changelog (Depends-on): Likewise.
55582         * modules/glob (Depends-on): Likewise.
55583         * modules/strcasestr-simple (Depends-on): Likewise.
55584         * modules/strnlen (Depends-on): Likewise.
55585
55586 2008-11-02  Bruno Haible  <bruno@clisp.org>
55587
55588         Mark 'atexit' obsolete.
55589         * modules/atexit (Status, Notice): New sections.
55590         * modules/chdir-long (Depends-on): Add atexit.
55591         * modules/wait-process (Depends-on): Likewise.
55592
55593 2008-11-02  Bruno Haible  <bruno@clisp.org>
55594
55595         * gnulib-tool: New option --with-obsolete.
55596         (func_usage): Document it.
55597         (func_modules_transitive_closure): Drop obsolete dependencies if
55598         incobsolete is not true.
55599         (func_import): Read and save the incobsolete variable to the cache.
55600
55601 2008-11-02  Bruno Haible  <bruno@clisp.org>
55602
55603         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55604         * gnulib-tool: New option --extract-status.
55605         (func_usage): Document it.
55606         (sed_extract_prog): Recognize it.
55607         (func_get_status): New function.
55608
55609 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55610
55611         * modules/sockets (License): Change from LGPL to LGPLv2+.
55612
55613 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55614
55615         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55616
55617 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55618
55619         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55620         Mention times and sys_times.
55621         * modules/sys_times, modules/sys_times-tests: New modules.
55622         * modules/times, modules/times-tests: Likewise
55623         * m4/sys_times_h.m4: New file.
55624         * lib/sys_times.in.h: Likewise
55625         * lib/times.c: Likewise.
55626         * tests/test-sys_times.c: Likewise.
55627         * tests/test-times.c: Likewise.
55628         * doc/posix-headers/sys_times.texi: Update.
55629         * doc/posix-functions/times.texi: Update.
55630
55631 2008-10-28  Jim Meyering  <meyering@redhat.com>
55632
55633         * modules/tempname (Depends-on): Add lstat.
55634
55635         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55636
55637 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55638
55639         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55640         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55641         using idiom used elsewhere in gnulib.
55642
55643 2008-10-27  Jim Meyering  <meyering@redhat.com>
55644
55645         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55646
55647 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55648
55649         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55650         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55651         programs.
55652         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55653
55654 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55655
55656         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55657
55658 2008-10-27  Bruno Haible  <bruno@clisp.org>
55659
55660         * tests/test-lstat.c: Include <stdio.h>.
55661
55662 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55663
55664         * modules/lstat-tests: New module.
55665         * tests/test-lstat.c: New file.
55666
55667 2008-10-26  Jim Meyering  <meyering@redhat.com>
55668
55669         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55670
55671 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55672             Bruno Haible  <bruno@clisp.org>
55673
55674         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55675         * modules/configmake (Include): Add a note that the include must come
55676         after all system headers.
55677         * lib/javaversion.c: Include configmake.h after all other includes.
55678
55679 2008-10-26  Bruno Haible  <bruno@clisp.org>
55680
55681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55682         HAVE_STRUCT_RANDOM_DATA to 1.
55683         (gl_STDLIB_H): Simplify.
55684
55685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55686
55687         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55688         substitute HAVE_STRUCT_RANDOM_DATA.
55689         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55690         random_data.
55691         * modules/stdlib (Makefile.am): Substitute
55692         HAVE_STRUCT_RANDOM_DATA.
55693
55694 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55695
55696         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55697         * doc/gnulib-intro.texi (Copyright): Likewise.
55698
55699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55700
55701         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55702         findings.
55703
55704 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55705             Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/unistd.in.h: Include <winsock2.h>.
55708         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55709         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55710         Provide dummy declarations.
55711         (gethostname): Override.
55712         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55713         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55714         gl_PREREQ_SYS_H_WINSOCK2.
55715         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55716         * doc/posix-functions/gethostname.texi: More details.
55717
55718 2008-10-25  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55721         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55722         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55723
55724         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55725         here ...
55726         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55728         gl_UNISTD_H_DEFAULTS.
55729
55730 2008-10-25  Eric Blake  <ebb9@byu.net>
55731
55732         signbit: avoid spurious compiler failure
55733         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55734         declarations inside function.
55735
55736 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55737             Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55740         * modules/random_r (Depends-on): Add stdint.
55741
55742 2008-10-24  Bruno Haible  <bruno@clisp.org>
55743
55744         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55745         Eggert.
55746         * modules/strerror (License): Likewise.
55747
55748 2008-10-24  Jim Meyering  <meyering@redhat.com>
55749
55750         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55751         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55752
55753 2008-10-24  Eric Blake  <ebb9@byu.net>
55754
55755         getgroups: fix compilation when getgroups is available
55756         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55757         but with <config.h> override of getgroups disabled.
55758
55759 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55760
55761         * doc/gnulib.texi (Header files): Add note about C++ problems.
55762         Explained by Bruno Haible <bruno@clisp.org>.
55763
55764 2008-10-23  Bruno Haible  <bruno@clisp.org>
55765
55766         Define a dummy SA_NODEFER macro on Interix.
55767         * lib/signal.in.h (SA_NODEFER): Define fallback.
55768         Reported by Aleksey Cheusov <cheusov@tut.by> via
55769         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55770
55771 2008-10-23  Bruno Haible  <bruno@clisp.org>
55772
55773         * modules/freadahead (License): Change to LGPLv2+.
55774         Suggested by Simon Josefsson.
55775
55776 2008-10-23  Jim Meyering  <meyering@redhat.com>
55777
55778         random_r: new module
55779         * modules/random_r: New file.
55780         * m4/random_r.m4: New file.
55781         * lib/random_r.c: New file, from glibc.
55782         * modules/random_r-tests: New file.
55783         * tests/test-random_r.c: New file.
55784         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55785          Declare.
55786         (RAND_MAX): Define.
55787         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55788         * modules/stdlib: Substitute them, too.
55789         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55790         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55791         * doc/glibc-functions/random_r.texi: Likewise.
55792         * doc/glibc-functions/setstate_r.texi: Likewise.
55793         * doc/glibc-functions/srandom_r.texi: Likewise.
55794         * config/srclist.txt: Mention it.
55795
55796 2008-10-23  David Lutterkort  <lutter@redhat.com>
55797
55798         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55799         link requirement
55800
55801 2008-10-23  Jim Meyering  <meyering@redhat.com>
55802
55803         selinux-h: mark parameters of stub functions as intentionally unused
55804         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55805         * lib/se-context.in.h: Likewise.
55806
55807 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55808
55809         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55810
55811 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55812
55813         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55814
55815 2008-10-22  Eric Blake  <ebb9@byu.net>
55816
55817         glthread/thread: avoid compiler warning
55818         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55819         Add unreachable abort to silence compiler.
55820
55821 2008-10-22  Eric Blake  <ebb9@byu.net>
55822
55823         netdb: also supply struct addrinfo for cygwin 1.5.x
55824         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55825         older cygwin.
55826         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55827         cygwin.
55828         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55829
55830 2008-10-22  Bruno Haible  <bruno@clisp.org>
55831
55832         * users.txt: Update entry about pspp.
55833
55834 2008-10-21  Bruno Haible  <bruno@clisp.org>
55835
55836         Simplification.
55837         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55838         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55839
55840         Simplification.
55841         * lib/ioctl.c (ioctl): Don't undefine.
55842         * lib/socket.c (socket): Don't undefine.
55843
55844         Remove unused module indicator macros.
55845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55846         GNULIB_$1 as a C macro.
55847
55848         * doc/posix-functions/close.texi: Undo last change.
55849         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55850         Windows platforms.
55851
55852 2008-10-21  Bruno Haible  <bruno@clisp.org>
55853
55854         Add gethostname() declaration to <unistd.h>.
55855         * lib/unistd.in.h (gethostname): New declaration.
55856         * lib/gethostname.c: Include <unistd.h>.
55857         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55858         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55860         and HAVE_GETHOSTNAME.
55861         * modules/gethostname (Depends-on): Add unistd.
55862         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55863         (Include): Specify <unistd.h>.
55864         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55865         HAVE_GETHOSTNAME.
55866         * tests/test-gethostname.c: Include <unistd.h> first.
55867
55868 2008-10-21  Bruno Haible  <bruno@clisp.org>
55869
55870         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55871         * modules/select-tests (Depends-on): Likewise.
55872         Reported by Simon Josefsson.
55873
55874 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55875
55876         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55877         * lib/accept.c: New file, based on winsock.c.
55878         * lib/bind.c: New file, based on winsock.c.
55879         * lib/connect.c: New file, based on winsock.c.
55880         * lib/getpeername.c: New file, based on winsock.c.
55881         * lib/getsockname.c: New file, based on winsock.c.
55882         * lib/getsockopt.c: New file, based on winsock.c.
55883         * lib/ioctl.c: New file, based on winsock.c.
55884         * lib/listen.c: New file, based on winsock.c.
55885         * lib/recv.c: New file, based on winsock.c.
55886         * lib/recvfrom.c: New file, based on winsock.c.
55887         * lib/send.c: New file, based on winsock.c.
55888         * lib/sendto.c: New file, based on winsock.c.
55889         * lib/setsockopt.c: New file, based on winsock.c.
55890         * lib/shutdown.c: New file, based on winsock.c.
55891         * lib/socket.c: New file, based on winsock.c.
55892         * lib/w32sock.h: New file, based on winsock.c.
55893         * lib/winsock.c: Remove file.
55894         * modules/accept: Likewise.
55895         * modules/bind: Likewise.
55896         * modules/connect: Likewise.
55897         * modules/getpeername: Likewise.
55898         * modules/getsockname: Likewise.
55899         * modules/getsockopt: Likewise.
55900         * modules/ioctl: Likewise.
55901         * modules/listen: Likewise.
55902         * modules/recv: Likewise.
55903         * modules/recvfrom: Likewise.
55904         * modules/send: Likewise.
55905         * modules/sendto: Likewise.
55906         * modules/setsockopt: Likewise.
55907         * modules/shutdown: Likewise.
55908         * modules/socket: Use socket.c instead of winsock.c.
55909         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55910         * doc/posix-functions/accept.texi: Doc fix.
55911         * doc/posix-functions/bind.texi: Doc fix.
55912         * doc/posix-functions/close.texi: Doc fix.
55913         * doc/posix-functions/connect.texi: Doc fix.
55914         * doc/posix-functions/getpeername.texi: Doc fix.
55915         * doc/posix-functions/getsockname.texi: Doc fix.
55916         * doc/posix-functions/getsockopt.texi: Doc fix.
55917         * doc/posix-functions/ioctl.texi: Doc fix.
55918         * doc/posix-functions/listen.texi: Doc fix.
55919         * doc/posix-functions/recv.texi: Doc fix.
55920         * doc/posix-functions/recvfrom.texi: Doc fix.
55921         * doc/posix-functions/send.texi: Doc fix.
55922         * doc/posix-functions/sendto.texi: Doc fix.
55923         * doc/posix-functions/setsockopt.texi: Doc fix.
55924         * doc/posix-functions/shutdown.texi: Doc fix.
55925         * doc/posix-functions/socket.texi: Doc fix.
55926
55927 2008-10-20  Bruno Haible  <bruno@clisp.org>
55928
55929         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55930         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55931         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55932         as an alias for SIGABRT.
55933         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55934         (sigaction): Map it to SIGABRT.
55935         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55936
55937 2008-10-20  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/fts.c: Don't include lstat.h.
55940         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55941
55942         Move the lstat() declaration to <sys/stat.h>.
55943         * lib/lstat.h: Remove file.
55944         * lib/sys_stat.in.h: Add special invocation convention.
55945         (lstat): New declaration.
55946         * lib/lstat.c (orig_lstat): New function.
55947         (rpl_lstat): Use orig_lstat instead of lstat.
55948         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55949         AC_C_INLINE. Set REPLACE_LSTAT.
55950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55951         and REPLACE_LSTAT.
55952         * modules/lstat (Files): Remove lib/lstat.h.
55953         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55954         (Include): Specify <sys/stat.h> instead of lstat.h.
55955         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55956         REPLACE_LSTAT.
55957         * NEWS: Mention the change.
55958
55959 2008-10-20  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/posix_spawn-tests: New file.
55962         * tests/test-posix_spawn3.c: New file.
55963
55964 2008-10-20  Bruno Haible  <bruno@clisp.org>
55965
55966         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55967         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55968         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55969         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55970         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55971
55972 2008-10-20  Bruno Haible  <bruno@clisp.org>
55973
55974         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55975         of posix_spawn on AIX 5.3.
55976
55977 2008-10-20  Bruno Haible  <bruno@clisp.org>
55978
55979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55980
55981 2008-10-20  Bruno Haible  <bruno@clisp.org>
55982
55983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55984         of AC_LANG_PROGRAM.
55985
55986 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55987
55988         * lib/netdb.in.h: Don't define GNU specific constants until they
55989         are supported or needed.  Reported by Bruno Haible
55990         <bruno@clisp.org>.
55991
55992 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55993
55994         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55995
55996 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55997
55998         * lib/getaddrinfo.h: Remove file.
55999         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56000         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56001         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56002         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56003         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56004         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56005         * tests/test-getaddrinfo.c: Likewise.
56006         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56007         * NEWS: Mention change.
56008
56009 2008-10-19  Bruno Haible  <bruno@clisp.org>
56010
56011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56012
56013 2008-10-19  Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/wait-process.c: Include simply <sys/wait.h>.
56016         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56017         WIFSTOPPED): Remove fallback definitions.
56018         * modules/wait-process (Depends-on): Add sys_wait.
56019
56020         New module 'sys_wait'.
56021         * modules/sys_wait: New file.
56022         * lib/sys_wait.in.h: New file, partially copied from
56023         lib/wait-process.c.
56024         * m4/sys_wait_h.m4: New file.
56025         * doc/posix-headers/sys_wait.texi: Mention the new module.
56026
56027 2008-10-19  Bruno Haible  <bruno@clisp.org>
56028
56029         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56030
56031 2008-10-19  Bruno Haible  <bruno@clisp.org>
56032
56033         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56034         * lib/wait-process.c (WAIT_T): Remove type.
56035         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56036         (wait_subprocess): Update.
56037
56038 2008-10-19  Bruno Haible  <bruno@clisp.org>
56039
56040         New module 'atoll'.
56041         * modules/atoll: New file.
56042         * lib/stdlib.in.h (atoll): New declaration.
56043         * lib/atoll.c: New file, from glibc with modifications.
56044         * m4/atoll.m4: New file.
56045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56046         HAVE_ATOLL.
56047         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56048         * doc/posix-functions/atoll.texi: Mention the new module.
56049
56050 2008-10-19  Bruno Haible  <bruno@clisp.org>
56051
56052         Add strtoull() declaration to <stdlib.h>.
56053         * lib/stdlib.in.h (strtoull): New declaration.
56054         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56055         Set HAVE_STRTOULL.
56056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56057         HAVE_STRTOULL.
56058         * modules/strtoull (Depends-on): Add stdlib.
56059         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56060         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56061         HAVE_STRTOULL.
56062
56063 2008-10-19  Bruno Haible  <bruno@clisp.org>
56064
56065         Add strtoll() declaration to <stdlib.h>.
56066         * lib/stdlib.in.h (strtoll): New declaration.
56067         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56068         Set HAVE_STRTOLL.
56069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56070         HAVE_STRTOLL.
56071         * modules/strtoll (Depends-on): Add stdlib.
56072         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56073         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56074
56075 2008-10-19  Bruno Haible  <bruno@clisp.org>
56076
56077         * modules/bcopy (Depends-on): Add strings.
56078         (Include): Specify <strings.h>.
56079
56080 2008-10-19  Bruno Haible  <bruno@clisp.org>
56081
56082         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56083
56084 2008-10-19  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56087         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56088         mingw.
56089
56090 2008-10-19  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/atanl.c: Don't include isnanl.h.
56093         * lib/cosl.c: Likewise.
56094         * lib/ldexpl.c: Likewise.
56095         * lib/logl.c: Likewise.
56096         * lib/sinl.c: Likewise.
56097         * lib/sqrtl.c: Likewise.
56098         * lib/tanl.c: Likewise.
56099
56100         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56101         * lib/isnanf.h: Remove file.
56102         * lib/isnand.h: Remove file.
56103         * lib/isnanl.h: Remove file.
56104         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56105         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56106         macros.
56107         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56108         HAVE_ISNANF, don't define it as a C macro.
56109         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56110         HAVE_ISNAND, don't define it as a C macro.
56111         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56112         HAVE_ISNANL, don't define it as a C macro.
56113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56114         HAVE_ISNAN[FDL].
56115         * modules/isnanf (Files): Remove lib/isnanf.h.
56116         (Depends-on): Add math.
56117         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56118         (Include): Specify <math.h> instead of isnanf.h.
56119         * modules/isnand (Files): Remove lib/isnand.h.
56120         (Depends-on): Add math.
56121         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56122         (Include): Specify <math.h> instead of isnand.h.
56123         * modules/isnanl (Files): Remove lib/isnanl.h.
56124         (Depends-on): Add math.
56125         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56126         (Include): Specify <math.h> instead of isnanl.h.
56127         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56128         HAVE_ISNAN[FDL].
56129         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56130         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56131         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56132         * NEWS: Mention the change.
56133
56134 2008-10-18  Bruno Haible  <bruno@clisp.org>
56135
56136         Add getusershell(), setusershell(), endusershell() declarations to
56137         <unistd.h>.
56138         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56139         declarations.
56140         * lib/getusershell.c: Include unistd.h.
56141         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56142         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56143         HAVE_GETUSERSHELL.
56144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56145         and HAVE_GETUSERSHELL.
56146         * modules/getusershell (Depends-on): Add unistd, extensions.
56147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56148         (Include): Specify <unistd.h>.
56149         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56150         HAVE_GETUSERSHELL.
56151
56152 2008-10-18  Bruno Haible  <bruno@clisp.org>
56153
56154         Add a getloadavg() declaration to <stdlib.h>.
56155         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56156         getloadavg declaration.
56157         (getloadavg): New declaration.
56158         * lib/getloadavg.c: Include <stdlib.h> first.
56159         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56160         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56161         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56163         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56164         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56166         (Include): Specify <stdlib.h>.
56167         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56168         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56169
56170 2008-10-18  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/dirchownmod.c: Don't include lchmod.h.
56173
56174         Move the lchmod() declaration to <sys/stat.h>.
56175         * lib/lchmod.h: Remove file.
56176         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56177         (lchmod): New declaration, moved here from lib/lchown.h.
56178         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56179         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56181         and HAVE_LCHMOD.
56182         * modules/lchmod (Files): Remove lib/lchmod.h.
56183         (Depends-on): Add sys_stat, extensions.
56184         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56185         (Include): Specify <sys/stat.h> instead of lchmod.h.
56186         * modules/sys_stat (Depends-on): Add link-warning.
56187         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56188         definition of GL_LINK_WARNING.
56189         * NEWS: Mention the change.
56190
56191 2008-10-18  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/fchdir.c: Don't include dirfd.h.
56194         * lib/fts.c: Likewise.
56195         * lib/getcwd.c: Likewise.
56196         * lib/glob.c: Likewise.
56197
56198         Move the dirfd() declaration to <dirent.h>.
56199         * lib/dirfd.h: Remove file.
56200         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56201         (dirfd): New declaration.
56202         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56203         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56204         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56205         HAVE_DECL_DIRFD.
56206         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56207         HAVE_DECL_DIRFD.
56208         * modules/dirfd (Files): Remove lib/dirfd.h.
56209         (Depends-on): Add dirent, extensions.
56210         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56211         (Include): Specify <dirent.h> instead of dirfd.h.
56212         * modules/dirent (Depends-on): Add link-warning.
56213         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56214         definition of GL_LINK_WARNING.
56215         * NEWS: Mention the change.
56216
56217 2008-10-18  Bruno Haible  <bruno@clisp.org>
56218
56219         Move the euidaccess() declaration to <unistd.h>.
56220         * lib/euidaccess.h: Remove file.
56221         * lib/unistd.in.h (euidaccess): New declaration.
56222         * lib/euidaccess.c: Don't include euidaccess.h.
56223         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56224         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56226         and HAVE_EUIDACCESS.
56227         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56228         (Depends-on): Add unistd.
56229         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56230         (Include): Specify <unistd.h> instead of euidaccess.h.
56231         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56232         HAVE_EUIDACCESS.
56233         * NEWS: Mention the change.
56234
56235 2008-10-18  Bruno Haible  <bruno@clisp.org>
56236
56237         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56238
56239         Move the getdomainname() declaration to <unistd.h>.
56240         * lib/getdomainname.h: Remove file.
56241         * lib/unistd.in.h (getdomainname): New declaration.
56242         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56243         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56244         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56245         HAVE_GETDOMAINNAME.
56246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56247         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56248         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56249         (Depends-on): Add unistd, extensions.
56250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56251         (Includes): Specify <unistd.h> instead of getdomainname.h.
56252         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56253         HAVE_GETDOMAINNAME.
56254         * NEWS: Mention the change.
56255
56256 2008-10-18  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/dirent: New file.
56259         * m4/dirent_h.m4: New file.
56260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56261         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56262         * modules/fchdir (Files): Remove lib/dirent.in.h.
56263         (Depends-on): Add dirent.
56264         (Makefile.am): Move rules to modules/dirent.
56265         * doc/posix-headers/dirent.texi: Mention the new module.
56266
56267 2008-10-18  Bruno Haible  <bruno@clisp.org>
56268
56269         Avoid -Wunused-parameter warnings in public gnulib header files.
56270         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56271         macro.
56272         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56273
56274 2008-10-18  Bruno Haible  <bruno@clisp.org>
56275
56276         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56277         * doc/glibc-functions/error.texi: Mention the module 'error'.
56278         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56279         * doc/glibc-functions/getdomainname.texi: Mention the module
56280         'getdomainname'.
56281         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56282         * doc/glibc-functions/getpagesize.texi: Mention the module
56283         'getpagesize'.
56284         * doc/glibc-functions/getusershell.texi: Mention the module
56285         'getusershell'.
56286         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56287         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56288         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56289         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56290         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56291         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56292         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56293         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56294         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56295         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56296         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56297         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56298         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56299         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56300
56301 2008-10-17  Bruno Haible  <bruno@clisp.org>
56302
56303         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56304         HP-UX and IRIX, use -0.0L.
56305         * tests/test-ceill.c (minus_zero): Likewise.
56306         * tests/test-floorl.c (minus_zero): Likewise.
56307         * tests/test-frexpl.c (minus_zero): Likewise.
56308         * tests/test-isnan.c (minus_zerol): Likewise.
56309         * tests/test-isnanl.h (minus_zero): Likewise.
56310         * tests/test-ldexpl.c (minus_zero): Likewise.
56311         * tests/test-roundl.c (minus_zero): Likewise.
56312         * tests/test-signbit.c (minus_zerol): Likewise.
56313         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56314         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56315         * tests/test-truncl.c (minus_zero): Likewise.
56316         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56317         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56318         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56319         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56320
56321 2008-10-17  Bruno Haible  <bruno@clisp.org>
56322
56323         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56324         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56325         that it gets activated only for gcc >= 3.0.
56326         * lib/dirent.in.h: Likewise.
56327         * lib/errno.in.h: Likewise.
56328         * lib/fcntl.in.h: Likewise.
56329         * lib/float.in.h: Likewise.
56330         * lib/iconv.in.h: Likewise.
56331         * lib/inttypes.in.h: Likewise.
56332         * lib/locale.in.h: Likewise.
56333         * lib/math.in.h: Likewise.
56334         * lib/netdb.in.h: Likewise.
56335         * lib/netinet_in.in.h: Likewise.
56336         * lib/search.in.h: Likewise.
56337         * lib/signal.in.h: Likewise.
56338         * lib/spawn.in.h: Likewise.
56339         * lib/stdarg.in.h: Likewise.
56340         * lib/stdint.in.h: Likewise.
56341         * lib/stdio.in.h: Likewise.
56342         * lib/stdlib.in.h: Likewise.
56343         * lib/string.in.h: Likewise.
56344         * lib/strings.in.h: Likewise.
56345         * lib/sys_file.in.h: Likewise.
56346         * lib/sys_ioctl.in.h: Likewise.
56347         * lib/sys_select.in.h: Likewise.
56348         * lib/sys_socket.in.h: Likewise.
56349         * lib/sys_stat.in.h: Likewise.
56350         * lib/sys_time.in.h: Likewise.
56351         * lib/sysexits.in.h: Likewise.
56352         * lib/time.in.h: Likewise.
56353         * lib/unistd.in.h: Likewise.
56354         * lib/wchar.in.h: Likewise.
56355         * lib/wctype.in.h: Likewise.
56356         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56357
56358 2008-10-17  Jim Meyering  <meyering@redhat.com>
56359
56360         ignore-value: don't depend on inline module
56361         * modules/ignore-value (Depends-on): Remove 'inline'.
56362         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56363         Suggestion from Bruno Haible.
56364
56365 2008-10-17  Bruno Haible  <bruno@clisp.org>
56366
56367         New implementation of condition variables for Win32.
56368         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56369         (gl_linked_waitqueue_t): New type.
56370         (gl_cond_t): Use it.
56371         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56372         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56373         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56374         (glthread_cond_init_func, glthread_cond_wait_func,
56375         glthread_cond_timedwait_func, glthread_cond_signal_func,
56376         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56377         Reimplemented on the basis of gl_linked_waitqueue_t.
56378         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56379         gl_waitqueue_t.
56380         (gl_rwlock_t): Update.
56381         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56382
56383 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56384
56385         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56386         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56387
56388 2008-10-17  Jim Meyering  <meyering@redhat.com>
56389
56390         ignore-value: new module
56391         * modules/ignore-value: New file.
56392         * lib/ignore-value.h: New file.
56393         * MODULES.html.sh (Compiler warning management): New section,
56394         just for this module.  More to come.
56395
56396 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56397
56398         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56399         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56400         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56401
56402 2008-10-16  Jim Meyering  <meyering@redhat.com>
56403
56404         openat-die.c: avoid 'no previous prototype' warning
56405         * lib/openat-die.c: Include "openat.h".
56406         Reported by Reuben Thomas <rrt@sc3d.org>.
56407
56408 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56409
56410         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56411         * lib/netdb.in.h: Fix typo.
56412         Reported by Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/netdb.in.h: Include sys/socket.h for platforms without
56415         netdb.h, to get structures like hostent on MinGW.
56416         * modules/netdb (Depends-on): Add sys_socket.
56417
56418 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56419
56420         * modules/netdb, modules/netdb-tests: New file.
56421         * m4/netdb_h.m4: New file.
56422         * lib/netdb.in.h: Add, currently just an empty file pending
56423         definitions.
56424         * tests/test-netdb.c: New file.
56425         * doc/posix-headers/netdb.texi: Mention that we replace it if
56426         needed.
56427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56428         netdb.
56429
56430 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56431
56432         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56433         with code.
56434
56435 2008-10-13  Bruno Haible  <bruno@clisp.org>
56436
56437         * lib/glthread/cond.c (glthread_cond_wait_func,
56438         glthread_cond_timedwait_func): Add a comment.
56439
56440 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56441
56442         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56443         * tests/test-select.c: Likewise,
56444
56445 2008-10-13  Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/glthread/cond.c (glthread_cond_wait_func,
56448         glthread_cond_timedwait_func): Fix variable name.
56449         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56450
56451 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56452
56453         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56455         struct sockaddr.sa_len.
56456         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56457
56458 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56459
56460         * build-aux/pmccabe2html: Add css and css_url parameters.
56461
56462 2008-10-12  Bruno Haible  <bruno@clisp.org>
56463
56464         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56465         calling aclx_get.
56466         Reported by Rainer Tammer <tammer@tammer.net>.
56467
56468 2008-10-12  Bruno Haible  <bruno@clisp.org>
56469
56470         Use msvcrt aware primitives for creation/termination of Win32 threads.
56471         * lib/glthread/thread.c: Include <process.h>.
56472         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56473         (wrapper_func): Update signature.
56474         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56475
56476 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56477             Bruno Haible  <bruno@clisp.org>
56478
56479         Provide a Win32 implementation of the 'cond' module.
56480         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56481         * lib/glthread/cond.c (glthread_cond_init_func,
56482         glthread_cond_wait_func, glthread_cond_timedwait_func,
56483         glthread_cond_signal_func, glthread_cond_broadcast_func,
56484         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56485         * modules/cond (Dependencies): Add gettimeofday.
56486
56487 2008-10-11  Bruno Haible  <bruno@clisp.org>
56488
56489         Make sleep work on older versions of mingw.
56490         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56491         only whether it exists.
56492         * doc/posix-functions/sleep.texi: Mention the problem with older
56493         versions of mingw.
56494
56495 2008-10-11  Bruno Haible  <bruno@clisp.org>
56496
56497         New module 'shutdown'.
56498         * modules/shutdown: New file.
56499         * lib/sys_socket.in.h (shutdown): New declaration.
56500         * lib/winsock.c (shutdown): New function.
56501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56502         GNULIB_SHUTDOWN.
56503         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56504         * doc/posix-functions/shutdown.texi: Document the new module.
56505
56506 2008-10-11  Jim Meyering  <meyering@redhat.com>
56507
56508         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56509
56510 2008-10-11  Bruno Haible  <bruno@clisp.org>
56511
56512         New module 'fclose'.
56513         * modules/fclose: New file.
56514         * lib/stdio.in.h (fclose): New declaration.
56515         * lib/fclose.c: New file.
56516         * m4/fclose.m4: New file.
56517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56518         REPLACE_FCLOSE.
56519         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56520         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56521         REPLACE_FCLOSE.
56522         * modules/close (Depends-on): fclose.
56523         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56524
56525 2008-10-11  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56528         set errno and don't call _close.
56529
56530 2008-10-10  Bruno Haible  <bruno@clisp.org>
56531
56532         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56533         ACL, not afterwards. Fixes test failure on Cygwin.
56534
56535 2008-10-09  Ben Pfaff  <blp@gnu.org>
56536
56537         * build-aux/announce-gen: Fix gnulib version related part of usage
56538         message.  Die with a useful error message if no tarballs are
56539         found.
56540
56541 2008-10-10  Jim Meyering  <meyering@redhat.com>
56542
56543         bootstrap: use git's --depth=N option only if it's supported
56544         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56545         recognize the --depth option.  Reported by Pádraig Brady.
56546
56547 2008-10-09  Bruno Haible  <bruno@clisp.org>
56548
56549         New module 'ioctl'.
56550         * modules/ioctl: New file.
56551         * lib/sys_socket.in.h (ioctl): Remove declaration.
56552         * lib/winsock.c: Include <sys/ioctl.h>.
56553         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56554         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56555         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56556         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56557         * doc/posix-functions/ioctl.texi: Mention the new module.
56558
56559 2008-10-09  Bruno Haible  <bruno@clisp.org>
56560
56561         New module 'sys_ioctl'.
56562         * lib/sys_ioctl.in.h: New file.
56563         * m4/sys_ioctl_h.m4: New file.
56564         * modules/sys_ioctl: New file.
56565         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56566
56567 2008-10-09  Bruno Haible  <bruno@clisp.org>
56568
56569         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56570         * lib/winsock.c: Include <stdarg.h>.
56571         (rpl_ioctl): Change to second argument 'int' and then varargs.
56572
56573 2008-10-09  Bruno Haible  <bruno@clisp.org>
56574
56575         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56576         when the sys_socket module is present and the system has <winsock2.h>.
56577
56578 2008-10-09  Bruno Haible  <bruno@clisp.org>
56579
56580         * doc/posix-functions/close.texi: Mention module 'close' instead of
56581         module 'sys_socket'.
56582
56583 2008-10-09  Bruno Haible  <bruno@clisp.org>
56584
56585         * doc/glibc-headers/sys_ioctl.texi: New file.
56586         * doc/gnulib.texi: Include it.
56587
56588 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56589             Bruno Haible  <bruno@clisp.org>
56590
56591         Combine the two replacements of 'close'.
56592         * lib/sys_socket.in.h (close): Define to a reminder to include
56593         <unistd.h>.
56594         (_gl_close_fd_maybe_socket): New declaration.
56595         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56596         * lib/winsock.c (close): Remove undefinition.
56597         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56598         needed for the gnulib module 'close'.
56599         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56600         define to an error symbol or to a warning, if suitable.
56601         * lib/close.c: Include <sys/socket.h>.
56602         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56603         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56604         UNISTD_H_HAVE_WINSOCK2_H.
56605         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56607         UNISTD_H_HAVE_WINSOCK2_H.
56608         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56609         (configure.ac): Set a module indicator.
56610         (Makefile.am): Substitute GNULIB_CLOSE.
56611         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56612         * modules/poll-tests (Depends-on): Add close.
56613         * modules/select-tests (Depends-on): Likewise.
56614
56615 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56616             Bruno Haible  <bruno@clisp.org>
56617
56618         New module 'close'.
56619         * modules/close: New file.
56620         * lib/unistd.in.h (close): Move declaration out of the
56621         FCHDIR_REPLACEMENT scope.
56622         (_gl_unregister_fd): New declaration.
56623         * lib/close.c: New file.
56624         * lib/fchdir.c (rpl_close): Remove function.
56625         * m4/close.m4: New file.
56626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56627         close.
56628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56629         REPLACE_CLOSE.
56630         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56631         REPLACE_CLOSE.
56632         * modules/fchdir (Depends-on): Add close.
56633
56634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56635             Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/fcntl.in.h (open): Simplify conditionals.
56638         (_gl_register_fd): New declaration.
56639         * lib/fchdir.c (rpl_open): Remove function.
56640         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56641         also.
56642         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56644         open.
56645
56646 2008-10-09  Jim Meyering  <meyering@redhat.com>
56647
56648         GNUmakefile: use the more name-space-friendly "_version"
56649         * top/GNUmakefile (_dummy): Update.
56650         (_version): Rename from "version".
56651
56652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56653             Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56656         rpl_close.
56657         (_gl_register_fd): New function, extracted from rpl_open.
56658         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56659         (rpl_open, rpl_opendir): Use _gl_register_fd.
56660
56661 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56662
56663         Fix organization of 'open' replacement.
56664         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56665         (gl_FUNC_OPEN): Use it.
56666         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56667
56668 2008-10-08  Bruno Haible  <bruno@clisp.org>
56669
56670         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56671
56672 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56673
56674         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56675         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56676         listen).
56677
56678 2008-10-08  Eric Blake  <ebb9@byu.net>
56679
56680         GNUmakefile: add 'make version' target
56681         * top/GNUmakefile (_curr-ver): Split version update rules...
56682         (version): ...into a target.
56683
56684 2008-10-07  Bruno Haible  <bruno@clisp.org>
56685
56686         Use a more portable replacement expression for -0.0L.
56687         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56688         instead of -0.0L. Fix m4 quotation.
56689
56690         * tests/test-signbit.c: Include <float.h>.
56691         (minus_zero): New variable.
56692         (test_signbitl): Use minus_zero instead of -zero.
56693         * modules/signbit-tests (Depends-on): Add float.
56694
56695         * tests/test-ceill.c: Include <float.h>.
56696         (zero): Remove variable.
56697         (minus_zero): New variable.
56698         (main): Use minus_zero instead of -zero.
56699         * modules/ceill-tests (Depends-on): Add float.
56700
56701         * tests/test-floorl.c: Include <float.h>.
56702         (zero): Remove variable.
56703         (minus_zero): New variable.
56704         (main): Use minus_zero instead of -zero.
56705         * modules/floorl-tests (Depends-on): Add float.
56706
56707         * tests/test-roundl.c: Include <float.h>.
56708         (zero): Remove variable.
56709         (minus_zero): New variable.
56710         (main): Use minus_zero instead of -zero.
56711         * modules/roundl-tests (Depends-on): Add float.
56712
56713         * tests/test-truncl.c: Include <float.h>.
56714         (zero): Remove variable.
56715         (minus_zero): New variable.
56716         (main): Use minus_zero instead of -zero.
56717         * modules/truncl-tests (Depends-on): Add float.
56718
56719         * tests/test-frexpl.c (zero): Remove variable.
56720         (minus_zero): New variable.
56721         (main): Use minus_zero instead of -zero.
56722         * modules/frexpl-tests (Depends-on): Add float.
56723
56724         * tests/test-isnan.c (zerol): Remove variable.
56725         (minus_zerol): New variable.
56726         (test_long_double): Use minus_zerol instead of -zerol.
56727         * modules/isnan-tests (Depends-on): Add float.
56728
56729         * tests/test-isnanl.h (zero): Remove variable.
56730         (minus_zero): New variable.
56731         (main): Use minus_zero instead of -zero.
56732         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56733         * modules/isnanl-tests (Depends-on): Add float.
56734
56735         * tests/test-ldexpl.c (zero): Remove variable.
56736         (minus_zero): New variable.
56737         (main): Use minus_zero instead of -zero.
56738         * modules/ldexpl-tests (Depends-on): Add float.
56739
56740         * tests/test-snprintf-posix.h (zerol): Remove variable.
56741         (minus_zerol): New variable.
56742         (test_function): Use minus_zerol instead of -zerol.
56743         * modules/snprintf-posix-tests (Depends-on): Add float.
56744         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56745
56746         * tests/test-sprintf-posix.h (zerol): Remove variable.
56747         (minus_zerol): New variable.
56748         (test_function): Use minus_zerol instead of -zerol.
56749         * modules/sprintf-posix-tests (Depends-on): Add float.
56750         * modules/vsprintf-posix-tests (Depends-on): Add float.
56751
56752         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56753         (minus_zerol): New variable.
56754         (test_function): Use minus_zerol instead of -zerol.
56755         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56756
56757         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56758         (minus_zerol): New variable.
56759         (test_function): Use minus_zerol instead of -zerol.
56760         * modules/vasprintf-posix-tests (Depends-on): Add float.
56761
56762 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56763
56764         * MODULES.html.sh (Support for building documentation): Mention
56765         pmccabe2html.  Sort entries.
56766
56767         Add pmccabe2html module, from gnupdf.
56768         * build-aux/pmccabe.css: New file.
56769         * build-aux/pmccabe2html: New file.
56770         * m4/pmccabe2html.m4: New file.
56771         * modules/pmccabe2html: New file.
56772
56773 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56774
56775         flock: new module
56776         * MODULES.html.sh: Add to list of modules.
56777         * lib/flock.c: flock implementation for Windows and Unix systems
56778         which have fcntl.
56779         * doc/glibc-functions/flock.texi: Update documentation.
56780         * lib/sys_file.in.h: <sys/file.h> header file.
56781         * m4/flock.m4: M4 macros.
56782         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56783         * modules/flock: flock module.
56784         * modules/flock-tests: flock tests module.
56785         * modules/sys_file: sys/file.h module.
56786         * tests/test-flock.c: test suite for flock.
56787
56788 2008-10-06  Jim Meyering  <meyering@redhat.com>
56789
56790         bootstrap: check for LT_INIT more portably still ;-)
56791         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56792         Spotted by Bruno Haible.
56793
56794 2008-10-06  Eric Blake  <ebb9@byu.net>
56795
56796         test-signbit: avoid tripping Irix cc bug on -0.0L
56797         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56798         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56799         entire testsuite consistent and avoids an Irix 6.2 bug.
56800
56801 2008-10-05  Bruno Haible  <bruno@clisp.org>
56802             Jim Meyering  <jim@meyering.net>
56803
56804         Add an option for ignoring EPIPE during close_stdout.
56805         * lib/closeout.h: Include <stdbool.h>.
56806         (close_stdout_set_ignore_EPIPE): New declaration.
56807         * lib/closeout.c: Include <stdbool.h>.
56808         (ignore_EPIPE): New variable.
56809         (close_stdout_set_ignore_EPIPE): New function.
56810         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56811         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56812         failure.
56813         * modules/closeout (Depends-on): Add stdbool.
56814
56815 2008-10-05  Bruno Haible  <bruno@clisp.org>
56816
56817         * modules/accept: New file.
56818         * modules/bind: New file.
56819         * modules/connect: New file.
56820         * modules/getpeername: New file.
56821         * modules/getsockname: New file.
56822         * modules/getsockopt: New file.
56823         * modules/listen: New file.
56824         * modules/recv: New file.
56825         * modules/recvfrom: New file.
56826         * modules/send: New file.
56827         * modules/sendto: New file.
56828         * modules/setsockopt: New file.
56829         * modules/socket: New file.
56830         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56831         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56832         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56833         the particular module is requested. Add a link warning when the
56834         particular module is not requested.
56835         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56836         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56837         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56838         the particular module is requested.
56839         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56840         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56841         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56842         * modules/sys_socket (Depends-on): Add link-warning.
56843         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56844         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56845         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56846         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56847         GL_LINK_WARNING.
56848         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56849         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56850         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56851         * doc/posix-functions/getpeername.texi: Mention the new module
56852         'getpeername'.
56853         * doc/posix-functions/getsockname.texi: Mention the new module
56854         'getsockname'.
56855         * doc/posix-functions/getsockopt.texi: Mention the new module
56856         'getsockopt'.
56857         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56858         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56859         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56860         * doc/posix-functions/send.texi: Mention the new module 'send'.
56861         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56862         * doc/posix-functions/setsockopt.texi: Mention the new module
56863         'setsockopt'.
56864         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56865         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56866         listen, connect, accept.
56867         * modules/select-tests (Depends-on): Likewise.
56868
56869 2008-10-05  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/winsock.c (strerror): Remove unused #undef.
56872         (rpl_close): Remove unused local variable.
56873
56874         * modules/sys_socket (Depends-on); Add errno.
56875
56876 2008-10-05  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56879         (select): Add a link warning when the 'select' module is not used.
56880         * modules/sys_select (Depends-on): Add link-warning.
56881         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56882         Suggested by Paolo Bonzini.
56883
56884 2008-10-05  Jim Meyering  <meyering@redhat.com>
56885
56886         bootstrap: check for LT_INIT more portably
56887         * build-aux/bootstrap: Avoid using grep -E, since it's not
56888         portable enough.  Suggestion from Bruno Haible.
56889
56890 2008-10-05  Bruno Haible  <bruno@clisp.org>
56891
56892         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56893         as being fixed by gnulib.
56894
56895 2008-10-05  Bruno Haible  <bruno@clisp.org>
56896
56897         * modules/select-tests: New file, mostly copied from
56898         modules/sys_select-tests.
56899         * tests/test-select.c: New file, mostly copied from
56900         tests/test-sys_select.c.
56901         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56902         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56903         (Makefile.am): Remove test_sys_select_LDADD.
56904
56905         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56906         to an undefined symbol, for an error message.
56907         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56908         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56909         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56910         winsock-select.c here.
56911         * modules/sys_select (Files): Remove lib/winsock-select.c.
56912         (Depends-on): Remove alloca.
56913         (Makefile.am): Substitute GNULIB_SELECT.
56914         * modules/select: New file.
56915         * doc/posix-functions/select.texi: Update.
56916
56917 2008-10-05  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56920         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56921         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56922         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56923         getdtablesize.
56924         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56925         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56926
56927 2008-10-05  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/getdtablesize-tests: New file.
56930         * tests/test-getdtablesize.c: New file.
56931
56932         New module 'getdtablesize'.
56933         * lib/unistd.in.h (getdtablesize): New declaration.
56934         * lib/getdtablesize.c: New file.
56935         * m4/getdtablesize.m4: New file.
56936         * modules/getdtablesize: New file.
56937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56938         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56939         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56940         HAVE_GETDTABLESIZE.
56941         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56942
56943 2008-10-05  Bruno Haible  <bruno@clisp.org>
56944
56945         * modules/sched (Makefile.am): Fix typo.
56946         Reported by Simon Josefsson.
56947
56948 2008-10-05  Jim Meyering  <meyering@redhat.com>
56949
56950         bootstrap: check for LT_INIT, too
56951         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56952         are deprecated.  Suggestion from Ralf Wildenhues.
56953
56954 2008-10-05  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56957         overriding them by ours.
56958         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56959
56960 2008-10-05  Jim Meyering  <meyering@redhat.com>
56961
56962         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56963         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56964         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56965
56966 2008-10-04  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/dup2 (License): Change to LGPLv2+.
56969         * modules/sleep (License): Likewise.
56970         * modules/perror (License): Likewise.
56971         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56972         Blake.
56973         * modules/signal (License): Likewise.
56974         * modules/sigprocmask (License): Likewise.
56975         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56976         Meyering.
56977
56978 2008-10-04  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56981         Reported by Rainer Tammer <tammer@tammer.net>.
56982
56983 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56984             Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56987         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56988         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56989
56990 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56991
56992         filevercmp: new module
56993         * lib/filevercmp.h: New function filevercmp comparing version strings.
56994         * lib/filevercmp.c: Implementation of filevercmp function.
56995         * modules/filevercmp: Module metadata.
56996         * tests/test-filevercmp.c: Unit test for new module.
56997         * modules/filevercmp-tests: Unit test metadata.
56998         * MODULES.html.sh: Add filevercmp module.
56999
57000 2008-10-03  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/c-ctype.h: Add comment.
57003         Reported by Jim Meyering.
57004
57005 2008-10-02  Bruno Haible  <bruno@clisp.org>
57006
57007         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57008
57009 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57010
57011         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57012         name of bootstrap.conf accordingly.
57013
57014 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57015
57016         * build-aux/bootstrap: Install git-merge-changelog configuration
57017         items into .gitconfig if needed.
57018
57019 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57020
57021         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57022         git repository, and initialize/update it accordingly.
57023
57024 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57025
57026         * modules/fsync-tests: New file.
57027         * tests/test-fsync.c: New file.
57028
57029         New module 'fsync'.
57030         * lib/fsync.c: New file.
57031         * m4/fsync.m4: New file.
57032         * modules/fsync: New file.
57033         * lib/unistd.in.h (fsync): New declaration.
57034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57035         GNULIB_FSYNC and HAVE_FSYNC.
57036         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57037         * MODULES.html.sh (posix_functions): Add fsync.
57038         * doc/posix-functions/fsync.texi: Mention the new module.
57039
57040 2008-10-02  Jim Meyering  <meyering@redhat.com>
57041
57042         fts.c: sync with similar code from coreutils' remove.c
57043         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57044         Guard also with "#if defined __linux__", since for now at least,
57045         this code is Linux-kernel-specific.
57046
57047 2008-10-02  Jim Meyering  <meyering@redhat.com>
57048
57049         fts: bug fixes
57050         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57051         Include <sys/vfs.h>, not <sys/statfs.h>.
57052
57053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57054         Include <sys/vfs.h>, not <sys/statfs.h>.
57055
57056 2008-10-01  Bruno Haible  <bruno@clisp.org>
57057
57058         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57059         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57060         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57061         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57062         * doc/posix-functions/posix_spawnp.texi: Likewise.
57063         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57064         whether posix_spawn actually works.
57065         * m4/pipe.m4 (gl_PIPE): Likewise.
57066         * modules/execute (Files): Add m4/posix_spawn.m4.
57067         * modules/pipe (Files): Add m4/posix_spawn.m4.
57068         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57069
57070 2008-10-01  Jim Meyering  <meyering@redhat.com>
57071
57072         remove trailing spaces
57073         * NEWS: Likewise.
57074         * lib/poll.c (poll): Likewise.
57075         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57076         * lib/winsock.c (rpl_close): Likewise.
57077         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57078         * modules/yield: Likewise.
57079         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57080         * tests/test-sys_select.c (connect_to_socket): Likewise.
57081
57082         fts.c: adjust a new interface to be more generally useful
57083         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57084         (fts_build): Adjust caller.
57085
57086 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57087
57088         * modules/cond-tests: New file.
57089         * tests/test-cond.c: New file.
57090
57091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57092             Bruno Haible  <bruno@clisp.org>
57093
57094         * modules/cond (Dependencies): Add errno, time.
57095         * lib/glthread/cond.h: Include <time.h>.
57096         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57097         across platforms.
57098
57099 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57100             Bruno Haible  <bruno@clisp.org>
57101
57102         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57103
57104 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57105             Bruno Haible  <bruno@clisp.org>
57106
57107         * modules/tls-tests (Depends-on): Add thread, yield.
57108         (configure.ac): Remove all checks.
57109         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57110         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57111         gl_thread_self): Remove definitions. Include glthread/thread.h and
57112         glthread/yield.h instead.
57113         (test_tls): Pass an additional NULL argument to gl_thread_join.
57114
57115 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57116             Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/lock-tests (Depends-on): Add thread, yield.
57119         (configure.ac): Remove all checks.
57120         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57121         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57122         gl_thread_self): Remove definitions. Include glthread/thread.h and
57123         glthread/yield.h instead.
57124         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57125         additional NULL argument to gl_thread_join.
57126
57127 2008-09-30  Bruno Haible  <bruno@clisp.org>
57128
57129         Fix the Win32 implementation of the 'thread' module.
57130         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57131         pointer type.
57132         (gl_thread_self): Invoke gl_thread_self_func.
57133         (gl_thread_self_func): New declaration.
57134         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57135         (do_init_self_key, init_self_key): New functions.
57136         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57137         Remove some fields.
57138         (running_threads, running_lock): Remove variables.
57139         (get_current_thread_handle): New function.
57140         (gl_thread_self_func, wrapper_func, glthread_create_func,
57141         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57142         simplified.
57143
57144 2008-09-30  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57147         files.
57148
57149 2008-09-30  Jim Meyering  <meyering@redhat.com>
57150
57151         fts.m4: correct the test for statfs.f_type
57152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57153         when checking for statfs.f_type.
57154
57155 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57156
57157         tests: avoid some compiler warnings
57158         * tests/test-memchr.c (main): Pass NULL indirectly.
57159         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57160
57161 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57162
57163         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57164         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57165         exactly specified dayshifts.
57166         (dayshift): New rule.
57167         (rel): Add dayshift.
57168         (relative_time_table) [tomorrow, yesterday, today, now]:
57169         Use tDAY_SHIFT in place of tDAY_UNIT.
57170         * tests/test-getdate.c: Add tests for now-disallowed countable
57171         dayshifts, e.g., "4 yesterday ago".
57172
57173 2008-09-29  Bruno Haible  <bruno@clisp.org>
57174
57175         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57176         * tests/test-posix_spawn1.in.sh: Renamed from
57177         tests/test-posix_spawn.in.sh.
57178         * tests/test-posix_spawn2.c: New file.
57179         * tests/test-posix_spawn2.in.sh: New file.
57180         * modules/posix_spawnp-tests (Files): Update.
57181         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57182
57183 2008-09-29  Bruno Haible  <bruno@clisp.org>
57184
57185         Propagate effects of putenv/setenv/unsetenv to child processes.
57186         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57187         * lib/pipe.c (create_pipe): Likewise.
57188
57189 2008-09-29  Bruno Haible  <bruno@clisp.org>
57190
57191         Enable use of shell scripts as executables in mingw.
57192         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57193         run the program as a shell script.
57194         * lib/pipe.c (create_pipe): Likewise.
57195         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57196         resulting array.
57197
57198 2008-09-29  Eric Blake  <ebb9@byu.net>
57199
57200         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57201
57202 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57203
57204         * doc/posix-functions/accept.texi: Update mingw problems.
57205         * doc/posix-functions/bind.texi: Update mingw problems.
57206         * doc/posix-functions/close.texi: Update mingw problems.
57207         * doc/posix-functions/connect.texi: Update mingw problems.
57208         * doc/posix-functions/getpeername.texi: Update mingw problems.
57209         * doc/posix-functions/getsockname.texi: Update mingw problems.
57210         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57211         * doc/posix-functions/ioctl.texi: Update mingw problems.
57212         * doc/posix-functions/listen.texi: Update mingw problems.
57213         * doc/posix-functions/recv.texi: Update mingw problems.
57214         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57215         * doc/posix-functions/select.texi: Update mingw problems.
57216         * doc/posix-functions/send.texi: Update mingw problems.
57217         * doc/posix-functions/sendto.texi: Update mingw problems.
57218         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57219         * doc/posix-functions/socket.texi: Update mingw problems.
57220
57221 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57222             Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/sys_select.in.h: Include sys/time.h.
57225         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57226         * modules/sys_select: Depend on sys_time.
57227         * tests/test-sys_select.c: Test that sys/select.h defines struct
57228         timeval fully.
57229
57230 2008-09-29  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57233         * lib/sys_select.in.h: Likewise.
57234
57235 2008-09-29  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57238
57239 2008-09-29  Bruno Haible  <bruno@clisp.org>
57240
57241         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57242         Set LIBSOCKET instead of augmenting LIBS.
57243         * modules/sockets (Link): New section.
57244         * modules/sockets-tests (test_sockets_LDADD): New variable.
57245         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57246         * modules/poll-tests (test_poll_LDADD): New variable.
57247         * NEWS: Document the change.
57248
57249 2008-09-29  Bruno Haible  <bruno@clisp.org>
57250
57251         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57252         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57253         ARPA_INET_H directly.
57254         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57255
57256 2008-09-28  Bruno Haible  <bruno@clisp.org>
57257
57258         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57259         from gl_HEADER_SYS_SOCKET.
57260         (gl_HEADER_SYS_SOCKET): Invoke it.
57261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57262
57263 2008-09-28  Bruno Haible  <bruno@clisp.org>
57264
57265         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57266         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57267         Needed on OSF/1 4.0.
57268
57269 2008-09-28  Bruno Haible  <bruno@clisp.org>
57270
57271         Override open more carefully.
57272         * lib/open.c (orig_open): New function.
57273         (rpl_open): Use orig_open instead of open.
57274         * lib/fcntl.in.h: Add special invocation convention.
57275         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57276         (gl_FUNC_OPEN): Invoke it.
57277
57278         Override freopen more carefully.
57279         * lib/freopen.c (orig_freopen): New function.
57280         (rpl_freopen): Use orig_freopen instead of freopen.
57281         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57282         (gl_FUNC_FREOPEN): Invoke it.
57283
57284         Override fopen more carefully.
57285         * lib/fopen.c (orig_fopen): New function.
57286         (rpl_fopen): Use orig_fopen instead of fopen.
57287         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57288         (gl_FUNC_FOPEN): Invoke it.
57289         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57290
57291 2008-09-28  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57294         SIGPIPE.
57295
57296 2008-09-28  Bruno Haible  <bruno@clisp.org>
57297
57298         * tests/test-sigaction.c (handler, main): Disable the check whether
57299         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57300         glibc systems with LinuxThreads.
57301
57302 2008-09-28  Bruno Haible  <bruno@clisp.org>
57303
57304         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57305
57306         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57307         with AIX xlc.
57308         * lib/fcntl.in.h (open): Likewise.
57309         Reported by Rainer Tammer <tammer@tammer.net>.
57310
57311 2008-09-28  Bruno Haible  <bruno@clisp.org>
57312
57313         * modules/posix_spawnp-tests: New file.
57314         * tests/test-posix_spawn.c: New file.
57315         * tests/test-posix_spawn.in.sh: New file.
57316
57317         New module 'posix_spawnp'.
57318         * modules/posix_spawnp: New file.
57319         * lib/spawnp.c: New file, from GNU libc with modifications.
57320         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57321
57322         New module 'posix_spawn'.
57323         * modules/posix_spawn: New file.
57324         * lib/spawn.c: New file, from GNU libc with modifications.
57325         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57326
57327         New module 'posix_spawnattr_destroy'.
57328         * modules/posix_spawnattr_destroy: New file.
57329         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57330         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57331         module.
57332
57333         New module 'posix_spawnattr_setsigmask'.
57334         * modules/posix_spawnattr_setsigmask: New file.
57335         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57336         modifications.
57337         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57338         new module.
57339
57340         New module 'posix_spawnattr_getsigmask'.
57341         * modules/posix_spawnattr_getsigmask: New file.
57342         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57343         modifications.
57344         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57345         new module.
57346
57347         New module 'posix_spawnattr_setsigdefault'.
57348         * modules/posix_spawnattr_setsigdefault: New file.
57349         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57350         modifications.
57351         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57352         new module.
57353
57354         New module 'posix_spawnattr_getsigdefault'.
57355         * modules/posix_spawnattr_getsigdefault: New file.
57356         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57357         modifications.
57358         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57359         new module.
57360
57361         New module 'posix_spawnattr_setschedpolicy'.
57362         * modules/posix_spawnattr_setschedpolicy: New file.
57363         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57364         modifications.
57365         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57366         new module.
57367
57368         New module 'posix_spawnattr_getschedpolicy'.
57369         * modules/posix_spawnattr_getschedpolicy: New file.
57370         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57371         modifications.
57372         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57373         new module.
57374
57375         New module 'posix_spawnattr_setschedparam'.
57376         * modules/posix_spawnattr_setschedparam: New file.
57377         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57378         modifications.
57379         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57380         new module.
57381
57382         New module 'posix_spawnattr_getschedparam'.
57383         * modules/posix_spawnattr_getschedparam: New file.
57384         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57385         modifications.
57386         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57387         new module.
57388
57389         New module 'posix_spawnattr_setpgroup'.
57390         * modules/posix_spawnattr_setpgroup: New file.
57391         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57392         modifications.
57393         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57394         module.
57395
57396         New module 'posix_spawnattr_getpgroup'.
57397         * modules/posix_spawnattr_getpgroup: New file.
57398         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57399         modifications.
57400         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57401         module.
57402
57403         New module 'posix_spawnattr_setflags'.
57404         * modules/posix_spawnattr_setflags: New file.
57405         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57406         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57407         module.
57408
57409         New module 'posix_spawnattr_getflags'.
57410         * modules/posix_spawnattr_getflags: New file.
57411         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57412         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57413         module.
57414
57415         New module 'posix_spawnattr_init'.
57416         * modules/posix_spawnattr_init: New file.
57417         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57418         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57419         module.
57420
57421         New module 'posix_spawn_file_actions_destroy'.
57422         * modules/posix_spawn_file_actions_destroy: New file.
57423         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57424         modifications.
57425         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57426         the new module.
57427
57428         New module 'posix_spawn_file_actions_addopen'.
57429         * modules/posix_spawn_file_actions_addopen: New file.
57430         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57431         modifications.
57432         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57433         the new module.
57434
57435         New module 'posix_spawn_file_actions_adddup2'.
57436         * modules/posix_spawn_file_actions_adddup2: New file.
57437         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57438         modifications.
57439         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57440         the new module.
57441
57442         New module 'posix_spawn_file_actions_addclose'.
57443         * modules/posix_spawn_file_actions_addclose: New file.
57444         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57445         modifications.
57446         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57447         the new module.
57448
57449         New module 'posix_spawn_file_actions_init'.
57450         * modules/posix_spawn_file_actions_init: New file.
57451         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57452         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57453         new module.
57454
57455         New module 'posix_spawn-internal'.
57456         * modules/posix_spawn-internal: New file.
57457         * lib/spawn_int.h: New file, from GNU libc with modifications.
57458         * lib/spawni.c: New file, from GNU libc with modifications.
57459         * m4/posix_spawn.m4: New file.
57460
57461         New module 'spawn'.
57462         * modules/spawn: New file.
57463         * lib/spawn.in.h: New file, from GNU libc with modifications.
57464         * m4/spawn_h.m4: New file.
57465         * doc/posix-headers/spawn.texi: Mention the new module.
57466
57467 2008-09-28  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/sched-tests: New file.
57470         * tests/test-sched.c: New file.
57471
57472         New module 'sched'.
57473         * modules/sched: New file.
57474         * lib/sched.in.h: New file.
57475         * m4/sched_h.m4: New file.
57476         * doc/posix-headers/sched.texi: Mention the new module.
57477
57478 2008-09-27  Eric Blake  <ebb9@byu.net>
57479
57480         Fix previous patch, and tweak references to $0.
57481         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57482         (func_version, func_gnulib_dir): Don't call this program
57483         gnulib-tool.
57484         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57485         with using $0 in function.
57486         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57487         (func_fatal_error): Reuse the name the user invoked us with.
57488
57489 2008-09-27  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57492         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57493         (gl_ICONV_H): Not here.
57494         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57495         instead of assigning ICONV_H directly.
57496
57497         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57499         WCHAR_H directly.
57500
57501 2008-09-27  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57504         * modules/arpa_inet (Depends-on): Add link-warning.
57505         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57506         * modules/unistd (Makefile.am): Likewise.
57507
57508 2008-09-26  Bruno Haible  <bruno@clisp.org>
57509
57510         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57511         variables.
57512         (func_version): Essentially copied from gnulib-tool.
57513         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57514         func_readlink): Copied from gnulib-tool.
57515
57516 2008-09-26  Bruno Haible  <bruno@clisp.org>
57517
57518         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57519         invoking git-version-gen.
57520
57521 2008-09-26  Bruno Haible  <bruno@clisp.org>
57522
57523         * posix-modules: Update to directory names changed on 2008-01-19.
57524         Remove commas in output before splitting into words. No more need to
57525         avoid 'ftruncate' since 2007-02-19.
57526
57527 2008-09-26  Bruno Haible  <bruno@clisp.org>
57528
57529         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57530
57531 2008-09-26  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57534         * modules/fwriteerror (Depends-on): Add errno.
57535
57536 2008-09-26  Bruno Haible  <bruno@clisp.org>
57537
57538         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57539         * tests/test-vc-list-files-cvs.sh: Likewise.
57540
57541 2008-09-26  Bruno Haible  <bruno@clisp.org>
57542
57543         * doc/posix-headers/sys_resource.texi: Reorder items.
57544
57545 2008-09-26  Jim Meyering  <meyering@redhat.com>
57546
57547         fts: tweak inode comparison function
57548         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57549         inode numbers, as documented.
57550
57551         fts: sort dirent entries on inode number before traversing
57552         This avoids a quadratic, seek-related performance penalty when
57553         operating on a directory containing many entries (measurable at 10k;
57554         3.5 hours at 2 million entries with a cold cache) on certain types
57555         of file systems, including ext3 and ext4, but not tmpfs.
57556         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57557         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57558         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57559         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57560         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57561         (fts_build): Set the stat.st_ino member from D_INO.
57562         If it is likely to be useful, sort dirent entries on inode number.
57563
57564         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57565         and the struct statfs.f_type member.
57566         * modules/fts (Depends-on): Add d-ino.
57567
57568 2008-09-26  Bruno Haible  <bruno@clisp.org>
57569
57570         * modules/sigpipe-die (Depends-on): Add sigpipe.
57571
57572         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57573         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57574         and GNULIB_STDIO_H_SIGPIPE are set.
57575         * lib/stdio-write.c: New file.
57576         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57577         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57578         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57579         REPLACE_STDIO_WRITE_FUNCS.
57580         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57581         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57582         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57583         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57584         * modules/stdio (Files): Add lib/stdio-write.c.
57585         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57588         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57589         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57590         REPLACE_FPRINTF_POSIX.
57591         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57592         REPLACE_PRINTF_POSIX.
57593         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57594         REPLACE_VFPRINTF_POSIX.
57595         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57596         REPLACE_VPRINTF_POSIX.
57597         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57598         SIGPIPE issue.
57599         * doc/posix-functions/fputc.texi: Likewise.
57600         * doc/posix-functions/fputs.texi: Likewise.
57601         * doc/posix-functions/fwrite.texi: Likewise.
57602         * doc/posix-functions/printf.texi: Likewise.
57603         * doc/posix-functions/putc.texi: Likewise.
57604         * doc/posix-functions/putchar.texi: Likewise.
57605         * doc/posix-functions/puts.texi: Likewise.
57606         * doc/posix-functions/vfprintf.texi: Likewise.
57607         * doc/posix-functions/vprintf.texi: Likewise.
57608
57609         * modules/safe-write (Depends-on): Add write.
57610
57611         * modules/sigpipe-tests: New file.
57612         * tests/test-sigpipe.c: New file.
57613         * tests/test-sigpipe.sh: New file.
57614
57615         * modules/write: New file.
57616         * lib/unistd.in.h: Include <sys/types.h>.
57617         (write): New declaration.
57618         * lib/write.c: New file.
57619         * m4/write.m4: New file.
57620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57621         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57622         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57623         GNULIB_WRITE, REPLACE_WRITE.
57624         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57625         and the SIGPIPE issue.
57626
57627         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57628         (raise): New declaration.
57629         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57630         (ext_signal): New function.
57631         (rpl_raise): New function.
57632         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57633         GNULIB_SIGNAL_H_SIGPIPE.
57634         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57635         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57636
57637         * modules/sigpipe: New file.
57638         * m4/sigpipe.m4: New file.
57639
57640 2008-09-25  Derek Price  <derek@ximbiot.com>
57641             Bruno Haible  <bruno@clisp.org>
57642
57643         * gnulib-tool (func_import): Report all license incompatibilities, not
57644         just the first one.
57645
57646 2008-09-25  Bruno Haible  <bruno@clisp.org>
57647
57648         * gnulib-tool (func_import): When computing the edits, consider not
57649         only the Makefile.ams that exist but also those that will be generated.
57650
57651 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57652
57653         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57654         fixes gnulib-tool --test warning about duplicate dependency.
57655
57656 2008-09-25  Bruno Haible  <bruno@clisp.org>
57657
57658         * gnulib-tool: Don't ask the user to perform edits in the generated
57659         Makefile.ams.
57660         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57661         apply to the Makefile.am being generated.
57662         (func_emit_tests_Makefile_am): Execute edits that apply to the
57663         Makefile.am being generated.
57664         (func_import): Setup list of Makefile.am edits before emitting the
57665         Makefile.ams, not at the end.
57666         (func_create_testdir): Update.
57667         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57668
57669 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57670
57671         * gnulib-tool (func_import): Store the --tests-base option in the
57672         comment in gnulib-cache.m4.
57673
57674 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57675
57676         * NEWS: Document increased portability that sys_select now provides.
57677
57678         * lib/sys_select.in.h: Install select wrapper.
57679         * lib/sys_socket.in.h: Use more descriptive name when there is no
57680         select wrapper.
57681         * lib/winsock-select.c: New.
57682         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57683         Require gl_HEADER_SYS_SOCKET.
57684         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57685         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57686         * tests/test-sys_select.c: Add functional tests.
57687
57688 2008-09-24  Eric Blake  <ebb9@byu.net>
57689
57690         open, fopen: close fd leak in last patch
57691         * lib/open.c (rpl_open): Close fd before returning error.
57692         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57693         * doc/posix-functions/open.texi (open): Document that Irix also
57694         has the bug.
57695         * doc/posix-functions/fopen.texi (fopen): Likewise.
57696         Reported by Paolo Bonzini.
57697
57698 2008-09-24  Bruno Haible  <bruno@clisp.org>
57699
57700         Ensure that a filename ending in a slash cannot be used to access a
57701         non-directory.
57702         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57703         to check whether it's really a directory.
57704         * lib/fopen.c: Include fcntl.h, unistd.h.
57705         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57706         and fdopen().
57707         * modules/fopen (Depends-on): Add unistd.
57708         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57709         * tests/test-fopen.c (main): Likewise.
57710         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57711         * doc/posix-functions/fopen.texi: Likewise.
57712         Reported by Eric Blake.
57713
57714 2008-09-23  Eric Blake  <ebb9@byu.net>
57715
57716         c-stack: avoid compiler optimizations when provoking overflow
57717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57718         recursion harder to optimize, to ensure a stack overflow occurs.
57719         * tests/test-c-stack.c (recurse): Likewise.
57720         Borrowed from libsigsegv.
57721
57722         c-stack: work around Irix sigaltstack bug
57723         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57724         whether sigaltstack uses wrong end of stack_t (copied in part from
57725         libsigsegv).
57726         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57727         Irix bug, without requiring an over-allocation.
57728         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57729         bug.
57730
57731         fopen: document mingw bug on directories
57732         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57733         not allowing a stream visiting a directory, even though reading
57734         from such a stream is not portable.
57735
57736 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57737
57738         * lib/poll.c: Rewrite.
57739         * modules/poll: Depend on alloca.
57740
57741 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57742
57743         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57744         instead define prototypes for a full set of wrappers.  Ensure
57745         that Cygwin does not use the compatibility code, which is only
57746         for MinGW.
57747         * lib/winsock.c: New.
57748         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57749         * modules/sys_socket: Add lib/winsock.c.
57750
57751         * modules/poll-tests: Add errno and perror.
57752         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57753
57754 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57755
57756         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57757
57758 2008-09-23  Bruno Haible  <bruno@clisp.org>
57759
57760         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57761         * doc/glibc-functions/*: Likewise.
57762
57763 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57764
57765         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57766         success.
57767
57768 2008-09-22  Eric Blake  <ebb9@byu.net>
57769             Bruno Haible  <bruno@clisp.org>
57770
57771         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57772         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57773         supply %A but mishandle pseudo-NaN.
57774         Reported by Simon Josefsson.
57775
57776 2008-09-21  Bruno Haible  <bruno@clisp.org>
57777
57778         * tests/test-lock.c (main): Tweak skip message.
57779         * tests/test-tls.c (main): Likewise.
57780
57781 2008-09-21  Bruno Haible  <bruno@clisp.org>
57782
57783         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57784         whether 'struct sigaction' has sa_sigaction here...
57785         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57786         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57787
57788 2008-09-21  Bruno Haible  <bruno@clisp.org>
57789
57790         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57791         section.
57792         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57793         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57794         the new section.
57795         (Support for obsolete systems lacking POSIX:2001): New section.
57796         (String handling <string.h>): Move strdup to the new section.
57797         Suggested by Simon Josefsson and Paolo Bonzini.
57798
57799 2008-09-21  Bruno Haible  <bruno@clisp.org>
57800
57801         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57802         exponents in %e and %g results on 'long double'. Needed for mingw's
57803         improved *printf functions.
57804         * tests/test-vasprintf-posix.c (test_function): Likewise.
57805         * tests/test-snprintf-posix.h (test_function): Likewise.
57806         * tests/test-sprintf-posix.h (test_function): Likewise.
57807         Reported by Eric Blake.
57808
57809 2008-09-21  Bruno Haible  <bruno@clisp.org>
57810
57811         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57812         * tests/test-sprintf-posix.h (test_function): Likewise.
57813
57814 2008-09-21  Bruno Haible  <bruno@clisp.org>
57815
57816         * modules/getpass (Depends-on): Add strdup-posix.
57817
57818         New module 'strdup-posix'.
57819         * modules/strdup-posix: New file.
57820         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57821         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57822         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57823         REPLACE_STRDUP.
57824         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57825         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57827         strdup-posix.
57828
57829         * modules/strdup (Depends-on): Remove malloc-posix.
57830
57831 2008-09-20  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57834         Wildenhues.
57835
57836 2008-09-20  Bruno Haible  <bruno@clisp.org>
57837
57838         Ensure that wint_t gets defined on IRIX 5.3.
57839         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57840         * lib/wctype.in.h (wint_t): Likewise.
57841         (__wctype_wint_t): Remove type.
57842         (isw*): Use wint_t instead of __wctype_wint_t.
57843         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57844         * modules/wchar (Files): Add m4/wint_t.m4.
57845         (Makefile.am): Substitute HAVE_WINT_T.
57846         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57847         * tests/test-wctype.c: Check that wint_t is defined.
57848         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57849         * doc/posix-headers/wctype.texi: Likewise.
57850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57851
57852 2008-09-18  Bruno Haible  <bruno@clisp.org>
57853
57854         * gnulib-tool (func_exit): Update comment.
57855
57856 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57857
57858         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57859         assumes strdup exists and does not depend on strdup to return
57860         ENOMEM on out of memory conditions.
57861
57862 2008-09-18  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57865         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57866         digits for the exponent.
57867
57868 2008-09-18  Jim Meyering  <meyering@redhat.com>
57869             Bruno Haible  <bruno@clisp.org>
57870
57871         * lib/vasnprintf.c (decimal_point_char): Define also if
57872         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57873
57874 2008-09-16  Bruno Haible  <bruno@clisp.org>
57875         and Eric Blake  <ebb9@byu.net>
57876
57877         vasnprintf: support Irix 5.3
57878         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57879         that mishandle long double infinity.
57880         Reported by Tom G. Christensen.
57881
57882 2008-09-16  Bruno Haible  <bruno@clisp.org>
57883
57884         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57885         Solaris 9.
57886         * doc/glibc-functions/alphasort.texi: Likewise.
57887         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57888
57889 2008-09-16  Jim Meyering  <meyering@redhat.com>
57890
57891         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57892         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57893         a umask modification leak out of a subshell.  Otherwise, the
57894         opensolaris /bin/sh would be accepted and thus cause unwarranted
57895         failures in the coreutils test suite.
57896
57897 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57898
57899         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57900         to succeed.
57901
57902 2008-09-16  Jim Meyering  <meyering@redhat.com>
57903
57904         avoid spurious test failure when library is built without ACL support
57905         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57906         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57907         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57908         * tests/test-copy-acl.sh: Likewise.
57909
57910 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57911
57912         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57913         based on character occurrence counts.
57914
57915 2008-09-15  Eric Blake  <ebb9@byu.net>
57916
57917         tests: avoid some compiler warnings
57918         * tests/test-memchr.c (main): Pass NULL indirectly.
57919         * tests/test-closein.c (main): Avoid unused variable.
57920
57921 2008-09-15  Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57924         are missing on OpenBSD 4.0 individually.
57925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57926
57927 2008-09-15  Bruno Haible  <bruno@clisp.org>
57928
57929         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57930         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57931         * doc/posix-functions/perror.texi: Likewise.
57932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57933         is missing.
57934         Reported by Eric Blake.
57935
57936         * lib/errno.in.h: Use replacement values >= 2000.
57937         Reported by Eric Blake.
57938
57939 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57940
57941         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57942         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57943         limit.
57944         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57945         compareseq was aborted.
57946
57947 2008-09-14  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57950         yvec_edit_count.
57951         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57952         (fstrcmp_bounded): Simplify result computation accordingly.
57953
57954 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57955
57956         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57957         (fstrcmp): Define in terms of fstrcmp_bounded.
57958         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57959         lower_bound argument.
57960         Return quickly if the result is certainly < lower_bound.
57961         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57962
57963 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57964
57965         * lib/diffseq.h (EARLY_ABORT): New macro.
57966         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57967         evaluates to true.
57968
57969 2008-09-14  Bruno Haible  <bruno@clisp.org>
57970
57971         * modules/perror-tests: New file.
57972         * tests/test-perror.sh: New file.
57973         * tests/test-perror.c: New file.
57974
57975         New module 'perror'.
57976         * lib/stdio.in.h (perror): New declaration.
57977         * lib/perror.c: New file.
57978         * m4/perror.m4: New file.
57979         * modules/perror: New file.
57980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57981         * doc/posix-functions/perror.texi: Mention the perror module.
57982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57983         REPLACE_PERROR.
57984         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57985         REPLACE_PERROR.
57986
57987 2008-09-14  Bruno Haible  <bruno@clisp.org>
57988
57989         * modules/stdio (Makefile.am): Reorder to match the order in
57990         lib/stdio.in.h.
57991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57992
57993 2008-09-13  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57996
57997 2008-09-13  Bruno Haible  <bruno@clisp.org>
57998
57999         Extend strerror to cover the added errno values.
58000         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58001         (rpl_strerror): Provide error messages for the added errno values and
58002         for the WSA* values.
58003         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58004         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58005         strerror.
58006         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58007         * modules/strerror (Depends-on): Add errno.
58008         * doc/posix-functions/strerror.texi: Document the change.
58009         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58010         and EOVERFLOW.
58011
58012 2008-09-13  Bruno Haible  <bruno@clisp.org>
58013
58014         * modules/EOVERFLOW: Remove file.
58015         * m4/eoverflow.m4: Remove file.
58016         * modules/EOVERFLOW-tests: Remove file.
58017         * tests/test-EOVERFLOW.c: Remove file.
58018         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58019         * modules/ftell (Depends-on): Likewise.
58020         * modules/getdelim (Depends-on): Likewise.
58021         * modules/getugroups (Depends-on): Likewise.
58022         * modules/poll (Depends-on): Likewise.
58023         * modules/snprintf (Depends-on): Likewise.
58024         * modules/sprintf-posix (Depends-on): Likewise.
58025         * modules/vasnprintf (Depends-on): Likewise.
58026         * modules/vasprintf (Depends-on): Likewise.
58027         * modules/vfprintf-posix (Depends-on): Likewise.
58028         * modules/vsnprintf (Depends-on): Likewise.
58029         * modules/vsprintf-posix (Depends-on): Likewise.
58030         * modules/xvasprintf (Depends-on): Likewise.
58031         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58032         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58033         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58034         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58036         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58037         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58038         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58039         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58040         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58041         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58042         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58043         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58044         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58045         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58046         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58047         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58048         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58049         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58050         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58051         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58052         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58053         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58054         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58055         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58056         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58057         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58058         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58059         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58060         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58061         * MODULES.html.sh: Remove EOVERFLOW.
58062         * NEWS: Mention the change.
58063
58064 2008-09-13  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/errno-tests: New file.
58067         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58068
58069         * lib/errno.in.h: New file.
58070         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58071         * modules/errno: New file.
58072         * doc/posix-headers/errno.texi: Update documentation.
58073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58074
58075 2008-09-13  Bruno Haible  <bruno@clisp.org>
58076
58077         * tests/test-poll.c: Use #if for native Windows, rather than testing
58078         __MSVCRT__.
58079
58080 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58081             Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/glob.c: Don't include <pwd.h> on native Windows.
58084         (WINDOWS32): New macro.
58085         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58086
58087 2008-09-13  Bruno Haible  <bruno@clisp.org>
58088
58089         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58090         (ETIMEDOUT): Remove macro.
58091         (glthread_cond_timedwait_multithreaded): New declaration.
58092         (glthread_cond_timedwait): Use it.
58093         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58094         (glthread_cond_timedwait_multithreaded): New function.
58095
58096 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58097
58098         * modules/poll-tests: Do not check for io.h.
58099         * tests/test-poll.c: Check for __MSVCRT__ instead.
58100
58101 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58102
58103         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58104         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58105         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58106
58107 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58108
58109         * modules/poll-tests: New.
58110         * tests/test-poll.c: New.
58111
58112 2008-09-12  Eric Blake  <ebb9@byu.net>
58113
58114         frexp: test for NetBSD failure on -0.0
58115         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58116         not all, bugs from NetBSD 3.0 have been fixed.
58117         * doc/posix-functions/frexp.texi (frexp): Document bug.
58118         Reported by Thomas Klausner.
58119
58120         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58121         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58122         literal -0.0.
58123         Reported by Jonathan C. Patschke <jp@centtech.com>.
58124
58125 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58126
58127         * lib/glthread/cond.h: Use dummy implementation also if
58128         USE_WIN32_THREADS.
58129
58130 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58131
58132         * modules/fnmatch-posix (License): Change to LGPLv2+.
58133         * modules/fnmatch-gnu (License): Likewise.
58134
58135 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58136
58137         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58138
58139 2008-09-11  Jim Meyering  <meyering@redhat.com>
58140
58141         * users.txt: Add gtk-vnc.
58142
58143 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58144
58145         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58146         rotate amounts.
58147
58148         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58149         required for 16-bit and 8-bit rotates.
58150         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58151         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58152         UINT8_MAX instead of hard-coded constants.
58153         Suggested by Paul Eggert.
58154
58155 2008-09-07  Bruno Haible  <bruno@clisp.org>
58156
58157         * tests/test-striconveh.c (main): Check behaviour when converting from
58158         UTF-7.
58159
58160         Make striconveh work better with stateful encodings.
58161         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58162         that iconv does not increment the inptr when returning -1/EINVAL.
58163
58164 2008-09-07  Bruno Haible  <bruno@clisp.org>
58165
58166         * build-aux/config.rpath: Update according to libtool-2.2.6.
58167         * build-aux/config.libpath: Likewise.
58168
58169 2008-09-06  Bruno Haible  <bruno@clisp.org>
58170
58171         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58172         * lib/freadptr.c (freadptr): Likewise.
58173         * lib/freadseek.c (freadptrinc): Likewise.
58174         Reported by Simon Josefsson.
58175
58176 2008-09-06  Bruno Haible  <bruno@clisp.org>
58177
58178         * modules/freadptr (License): Change to LGPLv2+.
58179         * modules/freadseek (License): Likewise.
58180         Suggested by Eric Blake.
58181
58182         * modules/memchr2 (License): Change to LGPLv2+.
58183         Approved by Eric Blake.
58184
58185 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58186             Bruno Haible  <bruno@clisp.org>
58187
58188         Make gnulib-tool work with native 'sed' on AIX.
58189         * gnulib-tool (sed_noop): New variable.
58190         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58191         func_add_or_update, func_create_testdir): Use it to initialize sed
58192         script variables.
58193         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58194
58195 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58196             Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58199         also works after #include directives.
58200
58201 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58202
58203         getdate.y: reject an out-of-range timezone value
58204         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58205         the range [-24...+24].  When specified with only one or two digits,
58206         * tests/test-getdate.c: Tests for the fix.
58207         * doc/getdate.texi: Document this change.
58208
58209 2008-09-03  Bruno Haible  <bruno@clisp.org>
58210
58211         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58212
58213 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58214
58215         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58216         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58217         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58218         Blake <ebb9@byu.net>.
58219
58220         * tests/test-bitrotate.c: Add more test vectors.
58221
58222 2008-09-02  Eric Blake  <ebb9@byu.net>
58223
58224         vasnprintf-posix: handle large precision via %.*d
58225         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58226         when handling it ourselves.
58227         * tests/test-vasnprintf-posix.c (test_function): Add test.
58228         * tests/test-snprintf-posix.h (test_function): Likewise.
58229         * tests/test-sprintf-posix.h (test_function): Likewise.
58230         * tests/test-vasprintf-posix.c (test_function): Likewise.
58231         Reported by Alain Guibert.
58232
58233 2008-09-01  Eric Blake  <ebb9@byu.net>
58234
58235         c-stack: make configure-time check more robust
58236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58237         successful sigaction call.
58238         Reported by Tom G. Christensen.
58239
58240 2008-09-01  Bruno Haible  <bruno@clisp.org>
58241
58242         New module 'findprog-lgpl'.
58243         * modules/findprog-lgpl: New file.
58244         * lib/findprog-lgpl.c: New file.
58245         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58246         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58247         to decide whether to use strdup or xstrdup, concatenated_filename or
58248         xconcatenated_filename.
58249
58250 2008-09-01  Bruno Haible  <bruno@clisp.org>
58251
58252         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58253         'xconcat-filename' (GPL).
58254         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58255         (License): Change to LGPLv2+.
58256         * modules/xconcat-filename: New file.
58257         * lib/concat-filename.h (concatenated_filename): Change specification.
58258         (xconcatenated_filename): New declaration.
58259         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58260         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58261         memory situations.
58262         * lib/xconcat-filename.c: New file.
58263         * NEWS: Mention the change.
58264         * lib/findprog.c: Include concat-filename.h, not filename.h.
58265         (find_in_path): Use xconcatenated_filename instead of
58266         concatenated_filename.
58267         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58268         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58269         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58270         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58271         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58272         instead of concatenated_filename.
58273         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58274         (execute_java_class): Use xconcatenated_filename instead of
58275         concatenated_filename.
58276         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58277         * modules/javacomp (Depends-on): Likewise.
58278         * modules/javaexec (Depends-on): Likewise.
58279
58280 2008-09-01  Bruno Haible  <bruno@clisp.org>
58281
58282         Split module 'filename' into 'filename' and 'concat-filename'.
58283         * modules/filename: Keep only lib/filename.h.
58284         (License): Change to LGPLv2+.
58285         * modules/concat-filename: New file, extracted from modules/filename.
58286         * lib/filename.h (concatenated_filename): Remove declaration.
58287         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58288         * lib/concat-filename.c: Include concat-filename.h.
58289         * NEWS: Mention the change.
58290
58291 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58292
58293         * lib/bitrotate.h (rotl8, rotr8): Add.
58294
58295         * modules/bitrotate (configure.ac): Need
58296         AC_REQUIRE([AC_C_INLINE]).
58297         (Description): Mention stdint.h.  Reported by Bruno Haible
58298         <bruno@clisp.org>.
58299
58300         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58301         Paolo Bonzini <bonzini@gnu.org>.
58302
58303 2008-08-31  Bruno Haible  <bruno@clisp.org>
58304
58305         Assume Solaris specific bi-arch conventions on Solaris systems.
58306         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58307         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58308         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58309         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58310         like acl_libdirstem.
58311         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58312         acl_libdirstem.
58313         * NEWS: Mention the change.
58314         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58315
58316 2008-08-31  Jim Meyering  <meyering@redhat.com>
58317
58318         * lib/strftime.h: Add comments describing the two added arguments.
58319
58320         remove duplicate #include directives
58321         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58322         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58323
58324 2008-08-31  Bruno Haible  <bruno@clisp.org>
58325
58326         New module 'sigpipe-die'.
58327         * modules/sigpipe-die: New file.
58328         * lib/sigpipe-die.h: New file.
58329         * lib/sigpipe-die.c: New file.
58330         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58331
58332 2008-08-31  Bruno Haible  <bruno@clisp.org>
58333
58334         Don't override previously installed signal handlers.
58335         * lib/fatal-signal.c (saved_sigactions): New variable.
58336         (uninstall_handlers): Reset the signal to the saved handler, not
58337         to SIG_DFL (except when ignored).
58338         (install_handlers): Save the previous handlers.
58339
58340 2008-08-30  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_reset_sigpipe): New function.
58343         (func_get_automake_snippet, func_modules_transitive_closure,
58344         func_import): Invoke it before a join command that reads from stdin,
58345         to avoid "echo: write error: Broken pipe" error messages on stderr.
58346         Reported by Sam Steingold <sds@gnu.org>.
58347
58348 2008-08-30  Bruno Haible  <bruno@clisp.org>
58349
58350         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58351         Code copied from m4/open.m4.
58352         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58353         access and the filename ends in a slash. Code copied from lib/open.c.
58354         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58355         * tests/test-fopen.c (main): Check against bug with trailing slash.
58356
58357 2008-08-29  Bruno Haible  <bruno@clisp.org>
58358
58359         Avoid some "gcc -pedantic" warnings.
58360         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58361         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58362         * lib/dirent.in.h: Likewise.
58363         * lib/fcntl.in.h: Likewise.
58364         * lib/float.in.h: Likewise.
58365         * lib/iconv.in.h: Likewise.
58366         * lib/inttypes.in.h: Likewise.
58367         * lib/locale.in.h: Likewise.
58368         * lib/math.in.h: Likewise.
58369         * lib/netinet_in.in.h: Likewise.
58370         * lib/search.in.h: Likewise.
58371         * lib/signal.in.h: Likewise.
58372         * lib/stdarg.in.h: Likewise.
58373         * lib/stdint.in.h: Likewise.
58374         * lib/stdio.in.h: Likewise.
58375         * lib/stdlib.in.h: Likewise.
58376         * lib/string.in.h: Likewise.
58377         * lib/strings.in.h: Likewise.
58378         * lib/sys_select.in.h: Likewise.
58379         * lib/sys_socket.in.h: Likewise.
58380         * lib/sys_stat.in.h: Likewise.
58381         * lib/sys_time.in.h: Likewise.
58382         * lib/sysexits.in.h: Likewise.
58383         * lib/time.in.h: Likewise.
58384         * lib/unistd.in.h: Likewise.
58385         * lib/wchar.in.h: Likewise.
58386         * lib/wctype.in.h: Likewise.
58387         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58388         * modules/fchdir (Makefile.am): Likewise.
58389         * modules/fcntl (Makefile.am): Likewise.
58390         * modules/float (Makefile.am): Likewise.
58391         * modules/iconv_open (Makefile.am): Likewise.
58392         * modules/inttypes (Makefile.am): Likewise.
58393         * modules/locale (Makefile.am): Likewise.
58394         * modules/math (Makefile.am): Likewise.
58395         * modules/netinet_in (Makefile.am): Likewise.
58396         * modules/search (Makefile.am): Likewise.
58397         * modules/signal (Makefile.am): Likewise.
58398         * modules/stdarg (Makefile.am): Likewise.
58399         * modules/stdint (Makefile.am): Likewise.
58400         * modules/stdio (Makefile.am): Likewise.
58401         * modules/stdlib (Makefile.am): Likewise.
58402         * modules/string (Makefile.am): Likewise.
58403         * modules/strings (Makefile.am): Likewise.
58404         * modules/sys_select (Makefile.am): Likewise.
58405         * modules/sys_socket (Makefile.am): Likewise.
58406         * modules/sys_stat (Makefile.am): Likewise.
58407         * modules/sys_time (Makefile.am): Likewise.
58408         * modules/sysexits (Makefile.am): Likewise.
58409         * modules/time (Makefile.am): Likewise.
58410         * modules/unistd (Makefile.am): Likewise.
58411         * modules/wchar (Makefile.am): Likewise.
58412         * modules/wctype (Makefile.am): Likewise.
58413         Reported by Reuben Thomas <rrt@sc3d.org>.
58414
58415 2008-08-29  Bruno Haible  <bruno@clisp.org>
58416
58417         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58418         any more.
58419
58420 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58421
58422         * MODULES.html.sh (Misc): Add bitrotate.
58423
58424         * modules/bitrotate: New file.
58425
58426         * lib/bitrotate.h: New file.
58427
58428         * modules/bitrotate-tests: New file.
58429
58430         * tests/test-bitrotate.c: New file.
58431
58432         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58433         on the bitrotate module.
58434
58435         * lib/arctwo.c: Use new bitrotate module.
58436
58437 2008-08-29  Jim Meyering  <meyering@redhat.com>
58438
58439         bootstrap: merge changes from coreutils
58440         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58441         of copied files.  Remove a kludge, now that this is fixed.
58442         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58443         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58444         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58445
58446 2008-08-29  Bruno Haible  <bruno@clisp.org>
58447
58448         * MODULES.html.sh: Remove --cvs-urls option.
58449
58450 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58451
58452         maint.mk: adjust to file name change
58453         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58454
58455 2008-08-28  Jim Meyering  <meyering@redhat.com>
58456
58457         * modules/getndelim2 (License): Relicense to LGPLv2+.
58458         Approved by Richard Stallman for the version of 1995, and by
58459         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58460
58461 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58462
58463         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58464         dummy if one is not available.  Do not touch them if
58465         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58466         (getc_maybe_unlocked): New.
58467         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58468
58469 2008-08-26  Eric Blake  <ebb9@byu.net>
58470
58471         doc/INSTALL: resync from autoconf
58472         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58473         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58474         moving...
58475         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58476         * INSTALL: Regenerate.
58477         * INSTALL.ISO: New file.
58478         * INSTALL.UTF-8: Likewise.
58479
58480 2008-08-26  Jim Meyering  <meyering@redhat.com>
58481
58482         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58483         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58484         these definitions conditional, so that they may be overridden, too.
58485
58486 2008-08-26  Bruno Haible  <bruno@clisp.org>
58487
58488         Generate INSTALL file variants with prettier quotes.
58489         * doc/Makefile (INSTALL_PRELUDE): New macro.
58490         (INSTALL): Use it.
58491         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58492
58493 2008-08-26  Bruno Haible  <bruno@clisp.org>
58494
58495         Run makeinfo in an English locale.
58496         * doc/Makefile (MAKEINFO): New variable.
58497
58498 2008-08-26  Bruno Haible  <bruno@clisp.org>
58499
58500         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58501         Suggested by Eric Blake.
58502
58503 2008-08-25  Bruno Haible  <bruno@clisp.org>
58504
58505         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58506
58507 2008-08-25  Eric Blake  <ebb9@byu.net>
58508
58509         c-stack: test that stack overflow can be caught
58510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58511         that platform allows handling stack overflow; at least OS/2 EMX
58512         has sigaltstack, but crashes before transferring control to
58513         handler on stack overflow.
58514         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58515         check for HAVE_STACK_OVERFLOW_HANDLING.
58516         Reported by Elbert Pol.
58517
58518 2008-08-25  Bruno Haible  <bruno@clisp.org>
58519
58520         * doc/posix-functions/strftime.texi: Fix description of strftime
58521         module.
58522
58523 2008-08-24  Bruno Haible  <bruno@clisp.org>
58524
58525         * tests/uniwidth/test-uc_width2.c: New file.
58526         * tests/uniwidth/test-uc_width2.sh: New file.
58527         * modules/uniwidth/width-tests (Files): Add the new files.
58528         (TESTS): Add uniwidth/test-uc_width2.sh.
58529         (TESTS_ENVIRONMENT): New variable.
58530         (check_PROGRAMS): Add test-uc_width2.
58531         (test_uc_width2_SOURCES): New variable.
58532
58533         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58534         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58535         not 0x00AB.
58536         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58537
58538 2008-08-22  Eric Blake  <ebb9@byu.net>
58539
58540         test-lock, test-tls: mention why a test is skipped
58541         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58542         skipped.
58543         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58544
58545         count-one-bits: relax license
58546         * modules/count-one-bits (License): Relicense to LGPLv2+.
58547         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58548
58549 2008-08-22  Andreas Schwab  <schwab@suse.de>
58550
58551         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58552         Remove spurious space in assignment.
58553
58554 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58555
58556         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58557         Paul Eggert <eggert@CS.UCLA.EDU>.
58558
58559 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58560
58561         * modules/gettext: Add m4/threadlib.m4.
58562
58563 2008-08-19  Eric Blake  <ebb9@byu.net>
58564
58565         test-c-stack: fix compilation failure on FreeBSD 5.0
58566         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58567         headers before <sys/resource.h>.
58568         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58569         the bug.
58570         Reported by Nelson H. F. Beebe.
58571
58572         strverscmp: migrate from "strverscmp.h" to <string.h>
58573         * modules/string (Makefile.am): Add new hooks.
58574         * modules/strverscmp (Files): Remove strverscmp.h.
58575         (Depends-on): Add string.
58576         (configure.ac): Add indicator.
58577         (Include): Mention new header.
58578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58579         defaults.
58580         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58581         results.
58582         * lib/strverscmp.h: Delete.
58583         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58584         * tests/test-strverscmp.c (includes): Adjust client.
58585         * lib/check-version.c (includes): Likewise.
58586         * NEWS: Document the change.
58587
58588         strverscmp: add unit test
58589         * modules/strverscmp-tests: New file.
58590         * tests/test-strverscmp.c: Likewise.
58591
58592 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58593
58594         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58595         regarding Windows crypto stuff, from Mono.
58596
58597 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58598
58599         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58600         if present, for intel RND.  Return error on failures.
58601
58602 2008-08-18  Ben Pfaff  <blp@gnu.org>
58603
58604         gitlog-to-changelog: give better diagnostic for failed pipe-open
58605         * build-aux/gitlog-to-changelog: Improve error message: suggest
58606         that the version of Git may be too old.
58607
58608 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58609
58610         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58611         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58612
58613 2008-08-18  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58616         pthread_in_use().
58617
58618 2008-08-18  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/glthread/threadlib.c: Include <pthread.h>.
58621
58622 2008-08-18  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58625         glthread_recursive_lock_* macros.
58626         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58627         Fix syntax error.
58628
58629 2008-08-18  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/glthread/thread.c: Avoid forcing a context switch right after
58632         thread creation.
58633
58634 2008-08-17  Bruno Haible  <bruno@clisp.org>
58635
58636         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58637         * lib/glthread/thread.h: Provide Win32 specific implementation.
58638         * modules/thread (Files): Add lib/glthread/thread.c.
58639         (Depends-on): Add lock.
58640         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58641
58642 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58643
58644         New module 'yield'.
58645         * modules/yield: New file.
58646         * lib/glthread/yield.h: New file.
58647         * m4/yield.m4: New file.
58648         * MODULES.html.sh (Multithreading): Add yield.
58649
58650 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58651
58652         New module 'thread'.
58653         * modules/thread: New file.
58654         * lib/glthread/thread.h: New file.
58655         * m4/thread.m4: New file.
58656         * MODULES.html.sh (Multithreading): Add thread.
58657
58658 2008-08-17  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/glthread/lock.h: Include <stdlib.h> always.
58661         * lib/glthread/tls.h: Likewise.
58662         * lib/glthread/cond.h: Likewise.
58663
58664 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58665
58666         New module 'cond'.
58667         * modules/cond: New file.
58668         * lib/glthread/cond.h: New file.
58669         * lib/glthread/cond.c: New file.
58670         * m4/cond.m4: New file.
58671         * MODULES.html.sh (Multithreading): Add cond.
58672
58673 2008-08-16  Eric Blake  <ebb9@byu.net>
58674
58675         c-stack: fix regression on Irix 5.3 from 2008-06-21
58676         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58677         sa_sigaction...
58678         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58679         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58680         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58681         * modules/signal (Makefile.am): Use the value.
58682         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58683         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58684         * doc/posix-headers/signal.texi (signal.h): Document this
58685         portability issue.
58686         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58687         Reported by Tom G. Christensen.
58688
58689 2008-08-17  Bruno Haible  <bruno@clisp.org>
58690
58691         New module 'threadlib'.
58692         * modules/threadlib: New file.
58693         * lib/glthread/threadlib.c: New file, extracted from
58694         lib/glthread/lock.c.
58695         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58696         functions.
58697         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58698         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58699         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58700         macros.
58701         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58702         (gl_DISABLE_THREADS): Remove macro.
58703         * modules/lock (Files): Remove build-aux/config.rpath.
58704         (Depends-on): Remove havelib. Add threadlib.
58705         (configure.ac-early): Remove section.
58706         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58707         * modules/tls (Depends-on): Remove lock. Add threadlib.
58708         (Link): New section, copied from threadlib.
58709         * MODULES.html.sh (Multithreading): Add threadlib.
58710
58711 2008-08-14  Bruno Haible  <bruno@clisp.org>
58712
58713         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58714         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58715         glthread_rwlock_unlock, glthread_rwlock_destroy,
58716         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58717         glthread_recursive_lock_destroy): Define as macros always.
58718         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58719         glthread_lock_lock.
58720         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58721         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58722         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58723         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58724         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58725         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58726         (glthread_recursive_lock_lock_func): Renamed from
58727         glthread_recursive_lock_lock.
58728         (glthread_recursive_lock_unlock_func): Renamed from
58729         glthread_recursive_lock_unlock.
58730         (glthread_recursive_lock_destroy_func): Renamed from
58731         glthread_recursive_lock_destroy.
58732
58733 2008-08-14  Bruno Haible  <bruno@clisp.org>
58734
58735         * lib/glthread/lock.h: Renamed from lib/lock.h.
58736         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58737         * lib/glthread/tls.h: Renamed from lib/tls.h.
58738         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58739         * lib/fstrcmp.c: Update includes.
58740         * lib/strsignal.c: Update includes.
58741         * modules/lock (Files, Makefile.am): Update.
58742         (Include): Change to "glthread/lock.h".
58743         * modules/tls (Files, Makefile.am): Update.
58744         (Include): Change to "glthread/tls.h".
58745         * tests/test-lock.c: Update includes.
58746         * tests/test-tls.c: Update includes.
58747         * NEWS: Mention the renamed header files.
58748
58749 2008-08-11  Jim Meyering  <meyering@redhat.com>
58750
58751         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58752
58753 2008-08-11  Eric Blake  <ebb9@byu.net>
58754
58755         test-c-stack: avoid C99-ism
58756         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58757         before statement.
58758         Reported by Alain Guibert.
58759
58760 2008-08-10  Jim Meyering  <meyering@redhat.com>
58761
58762         ensure that return value of uinttostr et al are not ignored
58763         * lib/inttostr.h (__GNUC_PREREQ): Define.
58764         (__attribute_warn_unused_result__): Define.
58765         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58766
58767 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58768
58769         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58770         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58771
58772 2008-08-07  Jim Meyering  <meyering@redhat.com>
58773
58774         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58775
58776         * modules/mkstemp (License): Relicense under LGPLv2+.
58777         * modules/tempname (License): Likewise.
58778
58779 2008-08-06  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/poll.c (poll): Further micro-optimization.
58782
58783 2008-08-06  Jim Meyering  <meyering@redhat.com>
58784
58785         inet_pton.c: use locale-independent tolower
58786         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58787         (inet_pton6): Use c_tolower rather than tolower.
58788         * modules/inet_pton (Depends-on): Add c-ctype.
58789
58790 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58791
58792         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58793         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58794
58795 2008-08-06  Jim Meyering  <meyering@redhat.com>
58796
58797         * modules/inet_pton (License): Relicense under LGPLv2+.
58798
58799 2008-08-03  Bruno Haible  <bruno@clisp.org>
58800
58801         Additional non-aborting API for lock and tls.
58802         * lib/lock.h: Include <errno.h>.
58803         (glthread_lock_init): New macro/function.
58804         (gl_lock_init): Define as wrapper around glthread_lock_init.
58805         (glthread_lock_lock): New macro/function.
58806         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58807         (glthread_lock_unlock): New macro/function.
58808         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58809         (glthread_lock_destroy): New macro/function.
58810         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58811         (glthread_rwlock_init): New macro/function.
58812         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58813         (glthread_rwlock_rdlock): New macro/function.
58814         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58815         (glthread_rwlock_wrlock): New macro/function.
58816         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58817         (glthread_rwlock_unlock): New macro/function.
58818         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58819         (glthread_rwlock_destroy): New macro/function.
58820         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58821         (glthread_recursive_lock_init): New macro/function.
58822         (gl_recursive_lock_init): Define as wrapper around
58823         glthread_recursive_lock_init.
58824         (glthread_recursive_lock_lock): New macro/function.
58825         (gl_recursive_lock_lock): Define as wrapper around
58826         glthread_recursive_lock_lock.
58827         (glthread_recursive_lock_unlock): New macro/function.
58828         (gl_recursive_lock_unlock): Define as wrapper around
58829         glthread_recursive_lock_unlock.
58830         (glthread_recursive_lock_destroy): New macro/function.
58831         (gl_recursive_lock_destroy): Define as wrapper around
58832         glthread_recursive_lock_destroy.
58833         (glthread_once): New macro/function.
58834         (gl_once): Define as wrapper around glthread_once.
58835         Update function declarations.
58836         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58837         glthread_rwlock_init. Return error code.
58838         (glthread_rwlock_rdlock_multithreaded): Renamed from
58839         glthread_rwlock_rdlock. Return error code.
58840         (glthread_rwlock_wrlock_multithreaded): Renamed from
58841         glthread_rwlock_wrlock. Return error code.
58842         (glthread_rwlock_unlock_multithreaded): Renamed from
58843         glthread_rwlock_unlock. Return error code.
58844         (glthread_rwlock_destroy_multithreaded): Renamed from
58845         glthread_rwlock_destroy. Return error code.
58846         (glthread_recursive_lock_init_multithreaded): Renamed from
58847         glthread_recursive_lock_init. Return error code.
58848         (glthread_recursive_lock_lock_multithreaded): Renamed from
58849         glthread_recursive_lock_lock. Return error code.
58850         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58851         glthread_recursive_lock_unlock. Return error code.
58852         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58853         glthread_recursive_lock_destroy. Return error code.
58854         (glthread_once_call): Make static.
58855         (glthread_once_multithreaded): Renamed from glthread_once.
58856         * lib/tls.h: Include <errno.h>.
58857         (glthread_tls_key_init): New macro/function.
58858         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58859         (glthread_tls_set): New macro/function.
58860         (gl_tls_set): Define as wrapper around glthread_tls_set.
58861         (glthread_tls_key_destroy): New macro/function.
58862         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58863         Update function declarations.
58864         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58865         glthread_tls_get.
58866         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58867
58868 2008-08-04  Eric Blake  <ebb9@byu.net>
58869
58870         gnumakefile: use space, not TAB, outside of targets
58871         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58872
58873 2008-08-02  Jim Meyering  <meyering@redhat.com>
58874
58875         getdate.y: avoid locale-dependent date parsing failure
58876         In Turkish locales, getdate would fail to recognize keywords
58877         containing a lowercase "i".  The solution is not to rely on
58878         locale-sensitive case-conversion.
58879         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58880         (lookup_word): Use c_toupper in place of toupper.
58881         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58882         Reported by Vefa Bicakci <bicave@superonline.com> in
58883         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58884         * modules/getdate (Depends-on): Add c-ctype.
58885
58886 2008-08-02  Bruno Haible  <bruno@clisp.org>
58887
58888         * gnulib-tool (func_import): When updating or creating a .gitignore
58889         file, prepend each added line with a slash, and ignore leading slashes
58890         from the existing lines.
58891         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58892
58893 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58894
58895         Portability fix for GNU make 3.79.1.
58896         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58897         versions do not understand.
58898
58899 2008-08-01  Bruno Haible  <bruno@clisp.org>
58900
58901         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58902         * tests/test-isnanf.h (zero): New variable.
58903         (main): Avoid literal -0.0f.
58904         * tests/test-isnand.h (zero): New variable.
58905         (main): Avoid literal -0.0.
58906         * tests/test-isnanl.h (zero): New variable.
58907         (main): Avoid literal -0.0L.
58908         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58909         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58910         -0.0, -0.0L.
58911         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58912         (test_signbitd): Avoid literal -0.0.
58913         (test_signbitl): Avoid literal -0.0L.
58914         * tests/test-ceilf1.c (zero): New variable.
58915         (main): Avoid literal -0.0f.
58916         * tests/test-ceill.c (zero): New variable.
58917         (main): Avoid literal -0.0L.
58918         * tests/test-floorf1.c (zero): New variable.
58919         (main): Avoid literal -0.0f.
58920         * tests/test-floorl.c (zero): New variable.
58921         (main): Avoid literal -0.0L.
58922         * tests/test-roundf1.c (zero): New variable.
58923         (main): Avoid literal -0.0f.
58924         * tests/test-round1.c (zero): New variable.
58925         (main): Avoid literal -0.0.
58926         * tests/test-roundl.c (zero): New variable.
58927         (main): Avoid literal -0.0L.
58928         * tests/test-truncf1.c (zero): New variable.
58929         (main): Avoid literal -0.0f.
58930         * tests/test-trunc1.c (zero): New variable.
58931         (main): Avoid literal -0.0.
58932         * tests/test-truncl.c (zero): New variable.
58933         (main): Avoid literal -0.0L.
58934         * tests/test-frexp.c (zero): New variable.
58935         (main): Avoid literal -0.0.
58936         * tests/test-frexpl.c (zero): New variable.
58937         (main): Avoid literal -0.0L.
58938         * tests/test-ldexpl.c (zero): New variable.
58939         (main): Avoid literal -0.0L.
58940         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58941         (zerod, zerol): New variables.
58942         (test_function): Avoid literals -0.0, -0.0L.
58943         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58944         (zerod, zerol): New variables.
58945         (test_function): Avoid literals -0.0, -0.0L.
58946         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58947         (zerod, zerol): New variables.
58948         (test_function): Avoid literals -0.0, -0.0L.
58949         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58950         (zerod, zerol): New variables.
58951         (test_function): Avoid literals -0.0, -0.0L.
58952         * tests/test-strtod.c (zero): New variable.
58953         (main): Avoid literal -0.0.
58954         Reported by Jonathan C. Patschke <jp@centtech.com>.
58955
58956 2008-07-31  Jim Meyering  <meyering@redhat.com>
58957
58958         sha256.h: correct definition of SHA224_DIGEST_SIZE
58959         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58960         Reported by Paulie Pena IV <paulie4@gmail.com>.
58961         Define as 224 / 8, rather than as a literal.
58962         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58963         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58964         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58965
58966 2008-07-31  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58969         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58970         Reported by Jonathan Patschke <jp@centtech.com>.
58971
58972 2008-07-31  Bruno Haible  <bruno@clisp.org>
58973
58974         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58975         Reported by Paolo Bonzini <bonzini@gnu.org>.
58976
58977 2008-07-30  Eric Blake  <ebb9@byu.net>
58978
58979         test-strtod: allow compilation without -lm
58980         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58981         Reported by Dennis Clarke <blastwave@gmail.com>.
58982
58983 2008-07-28  Jim Meyering  <meyering@redhat.com>
58984
58985         bootstrap: work also when there are no .po files in po/
58986         * build-aux/bootstrap (update_po_files): Complete the change
58987         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58988
58989 2008-07-27  Jim Meyering  <meyering@redhat.com>
58990
58991         * users.txt: Add zile.
58992
58993 2008-07-26  Ben Pfaff  <blp@gnu.org>
58994
58995         Add missing dependencies on new m4/exponent[fdl].m4 files.
58996         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58997         * modules/isnand-nolibm: Add m4/exponentd.m4.
58998         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58999         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59000         m4/isnan[fdl].m4, because the macros actually used moved.
59001         Reported by Jim Meyering.
59002
59003 2008-07-14  Ben Pfaff  <blp@gnu.org>
59004
59005         Add isinf module.
59006         * lib/isinf.c: New file.
59007         * lib/math.in.h: Define isinf macro if we have decided to replace
59008         it.
59009         * m4/isinf.m4: New file.
59010         * m4/math_h.m4: Initialize and substitute variables for isinf
59011         module.
59012         * modules/isinf: New file.
59013         * modules/isinf-tests: New file.
59014         * modules/math: Add substitutions for new module.
59015         * tests/test-isinf.c: New file.
59016         * doc/posix-functions/isinf.texi: Mention new module.
59017         * MODULES.html.sh: Mention new module.
59018
59019 2008-07-14  Ben Pfaff  <blp@gnu.org>
59020
59021         Factor out some macros for use by additional modules.
59022         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59023         exponentf.m4.
59024         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59025         exponentd.m4.
59026         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59027         file exponentl.m4.
59028         * m4/exponentf.m4: New file.
59029         * m4/exponentd.m4: New file.
59030         * m4/exponentl.m4: New file.
59031         * modules/isnanf: Use new file m4/exponentf.m4.
59032         * modules/isnand: Use new file m4/exponentd.m4.
59033         * modules/isnanl: Use new file m4/exponentl.m4.
59034
59035 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59036
59037         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59038         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59039         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59040         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59041
59042         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59043         readlink on platforms without PATH_MAX.
59044
59045 2008-07-21  Eric Blake  <ebb9@byu.net>
59046
59047         Warn, not fail, on stale version.
59048         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59049
59050         Don't allow installation with stale devel version number.
59051         * top/GNUmakefile (_is-install-target): New macro.
59052         (_curr-ver): Forbid installation with stale version number.
59053
59054 2008-07-20  Bruno Haible  <bruno@clisp.org>
59055
59056         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59057         TESTS_ENVIRONMENT.
59058         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59059
59060 2008-07-20  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/c-stack.h (c_stack_action): Add documentation.
59063         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59064
59065 2008-07-20  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59068         * modules/readlink (License): Likewise.
59069
59070 2008-07-17  Eric Blake  <ebb9@byu.net>
59071
59072         * modules/c-stack (Link): Fix typo.
59073
59074         Make c-stack use libsigsegv, when available.
59075         * modules/c-stack (Depends-on): Add libsigsegv.
59076         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59077         needed.
59078         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59079         (segv_handler, overflow_handler, c_stack_action)
59080         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59081         implementation when libsigsegv is available, but only when using
59082         the library is necessary.
59083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59084         comment, explaining why XSI check fails on Linux.
59085         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59086         * tests/test-c-stack2.sh: Tweak skip message.
59087         * NEWS: Document new link-time requirements.
59088
59089 2008-07-16  Eric Blake  <ebb9@byu.net>
59090
59091         c-stack: Expose false positives when not using libsigsegv.
59092         * modules/c-stack-tests (Files): Expand test.
59093         * tests/test-c-stack.c (main): Add means to conditionally trigger
59094         non-overflow SIGSEGV.
59095         * tests/test-c-stack2.sh: New file.
59096
59097 2008-07-14  Bruno Haible  <bruno@clisp.org>
59098
59099         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59100         Reported by Eric Blake.
59101
59102 2008-07-14  Sam Steingold  <sds@gnu.org>
59103             Bruno Haible  <bruno@clisp.org>
59104
59105         New module libsigsegv.
59106         * modules/libsigsegv: New file.
59107         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59108         modifications.
59109         * MODULES.html.sh (Signal handling): New section.
59110
59111 2008-07-14  Bruno Haible  <bruno@clisp.org>
59112
59113         * modules/unictype/ctype-* (Description): Add the word "function".
59114         Improves the resulting doc in MODULES.html.
59115
59116 2008-07-12  Ben Pfaff  <blp@gnu.org>
59117
59118         Add longlong module.
59119         * modules/longlong: New file.
59120
59121 2008-07-12  Bruno Haible  <bruno@clisp.org>
59122
59123         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59124         to empty.
59125
59126 2008-07-10  Ben Pfaff  <blp@gnu.org>
59127
59128         Add isnan module.
59129         * doc/posix-functions/isnan.texi: Mention new module.
59130         * lib/math.in.h: Define isnan macro if we have decided to replace
59131         it.
59132         * m4/isnan.m4: New file.
59133         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59134         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59135         also.
59136         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59137         redundancy.
59138         * m4/math_h.m4: Initialize and substitute variables for isnan
59139         module.
59140         * modules/isnan: New file.
59141         * modules/isnan-tests: New file.
59142         * modules/math: Add substitutions for new module.
59143         * tests/test-isnan.c: New file.
59144         * MODULES.html.sh: Mention new module.
59145
59146 2008-07-10  Ben Pfaff  <blp@gnu.org>
59147
59148         Add isnanf module.
59149         * lib/isnanf.m4: New file.
59150         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59151         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59152         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59153         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59154         * modules/isnanf: New file.
59155         * modules/isnanf-tests: New file.
59156         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59157         files.
59158         * tests/test-isnanf-nolibm.c: factored most of its contents into
59159         new file tests/test-isnanf.h.
59160         * tests/test-isnanf.h: New file.
59161         * tests/test-isnanf.c: New file.
59162         * MODULES.html.sh: Mention new module.
59163         * doc/glibc-functions/isnanf.texi: Mention new module.
59164
59165 2008-07-10  Ben Pfaff  <blp@gnu.org>
59166
59167         Add isnand module.
59168         * lib/isnand.h: New file.
59169         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59170         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59171         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59172         functionality also.
59173         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59174         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59175         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59176         * modules/isnand: New file.
59177         * modules/isnand-tests: New file.
59178         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59179         files.
59180         * tests/test-isnand-nolibm.c: factored most of its contents into
59181         new file tests/test-isnand.h.
59182         * tests/test-isnand.h: New file.
59183         * tests/test-isnand.c: New file.
59184         * MODULES.html.sh: Mention new module.
59185
59186 2008-07-10  Ben Pfaff  <blp@gnu.org>
59187
59188         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59189         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59190         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59191         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59192         * modules/isnanf-nolibm: Update references to renamed files.
59193         * modules/isnand-nolibm: Likewise.
59194         * modules/isnanf-nolibm-tests: Likewise.
59195         * modules/isnand-nolibm-tests: Likewise.
59196         * lib/frexp.c: Likewise.
59197         * lib/isfinite.c: Likewise.
59198         * lib/signbitd.c: Likewise.
59199         * lib/signbitf.c: Likewise.
59200         * lib/vasnprintf.c: Likewise.
59201         * tests/test-ceilf1.c: Likewise.
59202         * tests/test-ceilf2.c: Likewise.
59203         * tests/test-floorf1.c: Likewise.
59204         * tests/test-floorf2.c: Likewise.
59205         * tests/test-frexp.c: Likewise.
59206         * tests/test-round1.c: Likewise.
59207         * tests/test-round2.c: Likewise.
59208         * tests/test-roundf1.c: Likewise.
59209         * tests/test-strtod.c: Likewise.
59210         * tests/test-trunc1.c: Likewise.
59211         * tests/test-trunc2.c: Likewise.
59212         * tests/test-truncf1.c: Likewise.
59213         * tests/test-truncf2.c: Likewise.
59214         * NEWS: Mention the renamed header files.
59215
59216 2008-07-11  Jim Meyering  <meyering@redhat.com>
59217
59218         vc-list-files: make the last-resort awk code more portable
59219         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59220         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59221         does not support it.
59222
59223 2008-07-10  Eric Blake  <ebb9@byu.net>
59224
59225         Work with tar's bootstrap.
59226         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59227         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59228         an m4 comment.
59229
59230 2008-07-09  Jim Meyering  <meyering@redhat.com>
59231
59232         posix-shell.m4: fix typo that made this test malfunction
59233         * m4/posix-shell.m4: Remove capitalization in variable name.
59234
59235 2008-07-08  Bruno Haible  <bruno@clisp.org>
59236
59237         * m4/onceonly.m4: Update comments.
59238         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59239
59240 2008-07-04  Jim Meyering  <meyering@redhat.com>
59241
59242         * users.txt: Add vc-dwim.
59243         (bison, coreutils): Use the gitweb URL.
59244
59245 2008-07-03  Jim Meyering  <meyering@redhat.com>
59246
59247         * users.txt: Add libffcall.  From Sam Steingold.
59248
59249 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59250
59251         getdate.y: do not ignore TZ with relative day, month or year offset
59252         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59253         relative-date-handling, since otherwise, the latter would clobber the
59254         sole output (an updated Start value) of the tz-handling block.
59255         * tests/test-getdate.c: Tests for the fix
59256
59257 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59258
59259         Recognize 'foo_LIBRARIES += libgnu.a'.
59260         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59261         makefile snippet has already specified an installation location,
59262         also using '+='.
59263
59264 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59265
59266         getdate.y: factor out common actions
59267         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59268         Use them in place of open-coded actions.
59269
59270 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59271
59272         Add self-test for getdate module.
59273         * modules/getdate-tests: New file.
59274         * tests/test-getdate.c: New file.
59275
59276 2008-06-29  Bruno Haible  <bruno@clisp.org>
59277
59278         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59279         .gitignore.
59280         Reported by Sylvain Beucler <beuc@beuc.net>.
59281
59282 2008-06-29  Bruno Haible  <bruno@clisp.org>
59283
59284         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59285         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59286
59287 2008-06-29  Bruno Haible  <bruno@clisp.org>
59288
59289         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59290         EXTRA_DIST.
59291         Reported by Sylvain Beucler <beuc@beuc.net>.
59292
59293 2008-06-26  Jim Meyering  <meyering@redhat.com>
59294
59295         make several modules depend on the "open" module
59296         This provides slightly increased consistency when opening-for-write
59297         the name of a non-directory spelled with a trailing slash.
59298         * modules/chdir-safer: Likewise.
59299         * modules/chown: Likewise.
59300         * modules/clean-temp: Likewise.
59301         * modules/copy-file: Likewise.
59302         * modules/fchdir: Likewise.
59303         * modules/fcntl-safer: Likewise.
59304         * modules/pipe: Likewise.
59305         * modules/utime: Likewise.
59306         Prompted by Eric Blake and Bruno Haible.
59307
59308 2008-06-24  Andreas Schwab  <schwab@suse.de>
59309
59310         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59311         literals can be used as initializers for global variables.
59312
59313 2008-06-23  Eric Blake  <ebb9@byu.net>
59314
59315         Make gnulib-cache.m4 easier to diff.
59316         * gnulib-tool (func_import): Allow newlines when reading cached
59317         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59318
59319 2008-06-23  Bruno Haible  <bruno@clisp.org>
59320
59321         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59322         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59323         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59324         m4/signalblocking.m4.
59325         (gl_PREREQ_SIGACTION): Don't invoke it.
59326         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59327         gl_PREREQ_SIG_HANDLER_H.
59328         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59329         Don't check for sigaction here.
59330
59331 2008-06-23  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59334         (install_handlers): Don't set the SA_RESETHAND flag.
59335
59336 2008-06-23  Bruno Haible  <bruno@clisp.org>
59337
59338         * m4/sigaction.m4: Comment fixes.
59339         * lib/signal.in.h: Likewise.
59340
59341 2008-06-23  Eric Blake  <ebb9@byu.net>
59342
59343         Fix typo.
59344         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59345
59346         Avoid SA_ namespace.
59347         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59348         Reported by Ralf Wildenhues.
59349
59350         Avoid test failure due to SA_RESTORER.
59351         * tests/test-sigaction.c (SA_MASK): New macro.
59352         (main): Avoid failing due to extension flags being set.
59353         Reported by Jim Meyering.
59354
59355         Revert use of sig-handler.h in sigprocmask.c.
59356         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59357         it requires the existence of struct sigaction.
59358         * lib/sigprocmask.c (handler_t): Restore typedef.
59359         (rpl_signal, old_handlers): Use local type.
59360
59361 2008-06-22  Bruno Haible  <bruno@clisp.org>
59362
59363         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59364         conditionally.
59365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59366
59367 2008-06-22  Bruno Haible  <bruno@clisp.org>
59368
59369         * doc/posix-functions/siginterrupt.texi: Move note.
59370
59371         * lib/signal.in.h (SA_RESTART): New macro.
59372         * lib/sigaction.c: Update comment.
59373
59374         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59375
59376         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59377         (gl_PREREQ_SIGPROCMASK): Invoke it.
59378         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59379
59380         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59381
59382         * lib/sigprocmask.c: Update a comment.
59383
59384 2008-06-21  Eric Blake  <ebb9@byu.net>
59385
59386         Use sigaction module rather than signal().
59387         * modules/c-stack (Depends-on): Add sigaction.
59388         * modules/fatal-signal (Depends-on): Likewise.
59389         * modules/nanosleep (Depends-on): Likewise.
59390         * modules/sigprocmask (Files): Add sig-handler.h.
59391         * modules/sigaction (Files): Likewise.
59392         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59393         Eggert.
59394         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59395         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59396         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59397         (init_fatal_signals): Likewise.
59398         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59399         (siginterrupt): Delete fallback.
59400         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59401         instead.
59402         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59403         siginterrupt.
59404
59405         New module sigaction, for mingw.
59406         * modules/sigaction: New module...
59407         * modules/sigaction-tests: ...and its test.
59408         * m4/sigaction.m4: New file.
59409         * lib/sigaction.c: Likewise.
59410         * tests/test-sigaction.c: Likewise.
59411         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59412         * modules/signal (Makefile.am): Likewise.
59413         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59414         needed.
59415         * doc/posix-headers/signal.texi (signal.h): Mention provided
59416         types.
59417         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59418         that sigaction is preferable.
59419         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59420         module.
59421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59422         sigaction.
59423
59424         Improve robustness of sigprocmask by overriding signal.
59425         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59426         is in use.
59427         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59428         (SIGKILL, SIGSTOP): Provide fallbacks.
59429         (rpl_signal): Implement.
59430         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59431         signal can be called inside handlers.
59432
59433         Fix nanosleep module on mingw.
59434         * modules/nanosleep (Depends-on): Add sys_select.
59435         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59436
59437         Fix licensing of sigprocmask.
59438         * modules/raise (License): Relicense as LGPL.
59439
59440 2008-06-21  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59443         result if it contains question marks.
59444         Reported by Michael Geng <linux@michaelgeng.de>.
59445
59446 2008-06-19  Bruno Haible  <bruno@clisp.org>
59447
59448         Fix CVS-ism.
59449         * doc/gnulib.texi: Include updated-stamp.texi.
59450         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59451         (updated-stamp.texi): New rule.
59452         (gnulib.info): Depend on it.
59453         * doc/.gitignore: Add updated-stamp.texi.
59454         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59455
59456 2008-06-19  Bruno Haible  <bruno@clisp.org>
59457
59458         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59459         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59460
59461 2008-06-19  Eric Blake  <ebb9@byu.net>
59462
59463         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59464         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59465         Reported by Stepan Kasal.
59466
59467 2008-06-18  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59470         Reported by Eric Blake.
59471
59472 2008-06-18  Eric Blake  <ebb9@byu.net>
59473
59474         Work around cygwin 1.5.25 strsignal bug.
59475         * tests/test-strsignal.c: Allow for const char *.
59476         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59477
59478 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59479
59480         * users.txt: Update URL to article and add author/date
59481         information.
59482
59483 2008-06-17  Bruno Haible  <bruno@clisp.org>
59484
59485         New macro gl_DISABLE_THREADS.
59486         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59487         if the user did not pass --enable-threads or --disable-threads option.
59488         (gl_DISABLE_THREADS): New macro.
59489         Reported by Eric Blake <ebb9@byu.net>.
59490
59491 2008-06-17  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59494         when the macro ignores it.
59495         Based on a patch by Eric Blake <ebb9@byu.net>.
59496
59497 2008-06-17  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/tls (License): Change to LGPLv2+.
59500         Reported by Eric Blake.
59501
59502 2008-06-17  Eric Blake  <ebb9@byu.net>
59503
59504         Simplify c-stack prerequisites.
59505         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59507         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59508         check.
59509         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59510         <sys/resource.h>.
59511
59512         Move c-stack test into testsuite.
59513         * modules/c-stack-tests: New file.
59514         * lib/c-stack.c [DEBUG]: Move test program...
59515         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59516         fail test if sigaltstack is lacking.
59517         * tests/test-c-stack.sh: New driver file.
59518
59519 2008-06-16  Eric Blake  <ebb9@byu.net>
59520
59521         Use raise module consistently.
59522         * modules/fatal-signal (Depends-on): Add raise.
59523         * modules/sigprocmask (Depends-on): Likewise.
59524         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59525         * lib/sigprocmask.c (sigprocmask): Likewise.
59526         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59527         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59528
59529         Fix compliance bug in sigpending.
59530         * lib/sigprocmask.c (sigpending): Return pending array via
59531         parameter, not return value.
59532
59533 2008-06-14  Eric Blake  <ebb9@byu.net>
59534
59535         Improve obstack-printf test code.
59536         * tests/test-obstack-printf.c (test_function): Fix comment, and
59537         simplify usage of obstack_* in macros.  Add a test for coverage.
59538         Reported by Bruno Haible.
59539
59540 2008-06-14  Bruno Haible  <bruno@clisp.org>
59541
59542         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59543         array size as a constant, not as a const variable.
59544         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59545         AC_USE_SYSTEM_EXTENSIONS.
59546         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59547         Test whether the obstack_printf function actually exists.
59548         * modules/obstack-printf (Depends-on): Add extensions.
59549         (Include): Remove obstack.h.
59550         * modules/obstack-printf-posix (Depends-on): Add extensions.
59551         (Include): Remove obstack.h.
59552
59553 2008-06-13  Eric Blake  <ebb9@byu.net>
59554
59555         Add obstack-printf and obstack-printf-posix modules.
59556         * modules/obstack-printf: New file.
59557         * modules/obstack-printf-posix: Likewise.
59558         * MODULES.html.sh (Misc): Mention them.
59559         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59560         Likewise.
59561         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59562         Likewise.
59563         * modules/stdio (Makefile.am): Accomodate new modules.
59564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59565         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59566         Declare.
59567         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59568         functions.
59569         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59570         (gl_REPLACE_OBSTACK_PRINTF): New macros
59571         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59572         * tests/test-obstack-printf.c: New file.
59573         * modules/obstack-printf-tests: Likewise.
59574         * modules/obstack-printf-posix-tests: Likewise.
59575
59576 2008-06-11  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59579         * lib/open.c: Include errno.h.
59580         (open): Fail when attempting to write to a file that has a trailing
59581         slash.
59582         * tests/test-open.c (main): Test against trailing slash bug.
59583         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59584
59585 2008-06-10  Bruno Haible  <bruno@clisp.org>
59586
59587         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59588         for $? to work inside the trap command, with various /bin/sh-s.
59589         * tests/test-vc-list-files-cvs.sh: Likewise.
59590
59591 2008-06-10  Bruno Haible  <bruno@clisp.org>
59592
59593         * lib/acl-internal.h: Don't include gettext.h here.
59594         * lib/set-mode-acl.c: Include gettext.h here.
59595         * lib/copy-acl.c: Likewise.
59596
59597 2008-06-10  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59600         * lib/wait-process.c (wait_subprocess): Likewise.
59601         * lib/execute.h (execute): Add termsigp argument.
59602         * lib/execute.c (execute): Likewise.
59603         * lib/csharpcomp.c (compile_csharp_using_pnet,
59604         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59605         * lib/csharpexec.c (execute_csharp_using_pnet,
59606         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59607         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59608         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59609         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59610         is_jikes_present): Update.
59611         * lib/javaexec.c (execute_java_class): Update.
59612         * lib/javaversion.c (execute_and_read_line): Update.
59613         * NEWS: Document the changes.
59614         Reported by Eric Blake.
59615
59616 2008-06-10  Eric Blake  <ebb9@byu.net>
59617
59618         Add missing include.
59619         * tests/test-strstr.c (includes): Add <signal.h>.
59620         * tests/test-strcasestr.c (includes): Likewise.
59621         * tests/test-memmem.c (includes): Likewise.
59622
59623 2008-06-10  Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/wait-process.c (wait_subprocess): Add an assertion.
59626
59627 2008-06-10  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59630
59631 2008-06-10  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59634         using alarm().
59635         * tests/test-strcasestr.c (main): Likewise.
59636         * tests/test-strstr.c (main): Likewise.
59637
59638 2008-06-09  Bruno Haible  <bruno@clisp.org>
59639
59640         Work around the Solaris 10 ACE ACLs ABI change.
59641         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59642         declare if ACL_NO_TRIVIAL is present.
59643         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59644         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59645         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59646         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59647         define if ACL_NO_TRIVIAL is present.
59648         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59649         and use the current ABI.
59650         (file_has_acl): Use same #if condition as elsewhere.
59651         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59652         in use, and use the current ABI.
59653         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59654         Reported by Jim Meyering.
59655
59656 2008-06-09  Eric Blake  <ebb9@byu.net>
59657
59658         Work around environments that (stupidly) ignore SIGALRM.
59659         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59660         before using alarm().
59661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59663         Reported by Ian Beckwith <ianb@erislabs.net>.
59664
59665         Produce autobuild blurb earlier in log.
59666         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59667
59668 2008-06-09  Jim Meyering  <meyering@redhat.com>
59669         and Ondřej Vašík  <ovasik@redhat.com>
59670
59671         utimens.c: correct kernel bug work-around
59672         Ondřej Vašík found that the invalid return value of 280 indicates
59673         failure, not success, and the kernel bug we're trying to work
59674         around affects not just the utimensat call, but also the fallback
59675         futimens call.
59676         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59677         not success.
59678         [HAVE_FUTIMENS]: Use the same work-around, here.
59679
59680 2008-06-09  Jim Meyering  <meyering@redhat.com>
59681
59682         add more guards around definition of ACE_-related code
59683         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59684         ALLOW and ACE_OWNER are also defined.
59685
59686 2008-06-08  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/acl-internal.h: Add me as co-author.
59689         * lib/file-has-acl.c: Likewise.
59690         * lib/set-mode-acl.c: Likewise.
59691         * lib/copy-acl.c: Likewise.
59692
59693 2008-06-08  Bruno Haible  <bruno@clisp.org>
59694
59695         Add support for AIX ACLs.
59696         * lib/acl-internal.h (acl_nontrivial): New declaration.
59697         * lib/file-has-acl.c (acl_nontrivial): New function.
59698         (file_has_acl): Add implementation using AIX 4 ACL API.
59699         * lib/set-mode-acl.c (qset_acl): Likewise.
59700         * lib/copy-acl.c (qcopy_acl): Likewise.
59701
59702 2008-06-08  Bruno Haible  <bruno@clisp.org>
59703
59704         Add support for HP-UX ACLs.
59705         * lib/acl-internal.h (acl_nontrivial): New declaration.
59706         * lib/file-has-acl.c (acl_nontrivial): New function.
59707         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59708         * lib/set-mode-acl.c (qset_acl): Likewise.
59709         * lib/copy-acl.c (qcopy_acl): Likewise.
59710
59711 2008-06-08  Bruno Haible  <bruno@clisp.org>
59712
59713         Add support for Cygwin ACLs.
59714         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59715         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59716         the chmod_or_fchmod call.
59717         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59718
59719 2008-06-08  Bruno Haible  <bruno@clisp.org>
59720
59721         Fix bug with setuid modes in Solaris 10+ code.
59722         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59723         succeeded, when the mode contains some special bits.
59724
59725 2008-06-08  Bruno Haible  <bruno@clisp.org>
59726
59727         Add support for Solaris 7..10 ACLs.
59728         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59729         declarations.
59730         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59731         functions.
59732         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59733         * lib/set-mode-acl.c (qset_acl): Likewise.
59734         * lib/copy-acl.c (qcopy_acl): Likewise.
59735
59736 2008-06-08  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59739         declaration.
59740         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59741         (acl_access_nontrivial): Remove MacOS X case.
59742         (file_has_acl): Use acl_extended_nontrivial.
59743         * lib/copy-acl.c (qcopy_acl): Likewise.
59744
59745 2008-06-08  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59748
59749 2008-06-08  Jim Meyering  <meyering@redhat.com>
59750
59751         * modules/acl (Maintainer): Add Bruno Haible.
59752
59753 2008-06-07  Bruno Haible  <bruno@clisp.org>
59754
59755         Improve support for Tru64 ACLs.
59756         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59757         ACL on OSF/1.
59758
59759 2008-06-07  Bruno Haible  <bruno@clisp.org>
59760
59761         Add support for MacOS X ACLs.
59762         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59763         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59764         * lib/set-mode-acl.c (qset_acl): Likewise.
59765         * lib/copy-acl.c (qcopy_acl): Likewise.
59766
59767 2008-06-07  Bruno Haible  <bruno@clisp.org>
59768
59769         Fix memory leak introduced on 2008-05-22.
59770         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59771         use.
59772
59773 2008-06-07  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59776         to construct an empty ACL.
59777
59778 2008-06-07  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59781         precisely.
59782         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59783
59784 2008-06-07  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59787         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59788
59789 2008-06-07  Bruno Haible  <bruno@clisp.org>
59790
59791         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59792         regardless of POSIX.
59793         * doc/posix-functions/_longjmp.texi: Likewise.
59794         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59795         SystemV platform in this case.
59796
59797 2008-06-06  Eric Blake  <ebb9@byu.net>
59798
59799         Document abort() bugs.
59800         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59801
59802         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59803         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59804         sigsetjmp.
59805         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59806         siglongjmp, but only as a macro.
59807         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59808         is obsolete.
59809         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59810
59811         Tweak documentation to cover cygwin argz bugs.
59812         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59813         argz bug fix; no code change needed since no cygwin releases
59814         occurred between the last fix and the bug being tested.
59815         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59816         module and recently fixed cygwin bugs.
59817         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59818         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59819         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59820         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59821         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59822         Likewise.
59823         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59824         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59825         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59826         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59827         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59828         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59829         Likewise.
59830
59831         Avoid gcc warning on cygwin.
59832         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59833         !ACL_NO_TRIVIAL]: Avoid unused variable.
59834
59835 2008-06-05  Eric Blake  <ebb9@byu.net>
59836
59837         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59838         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59839         git-version-gen fails to come up with a version.
59840         Reported by Simon Josefsson.
59841
59842 2008-06-05  Jim Meyering  <meyering@redhat.com>
59843             Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         utimens.c: work around a probable Linux kernel bug
59846         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59847         appears to be a kernel bug that causes utimensat to return 280
59848         instead of 0, indicating success.
59849
59850 2008-06-04  Bruno Haible  <bruno@clisp.org>
59851
59852         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59853         2008-06-01 commit.
59854
59855 2008-06-04  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59858         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59859         (file_has_acl): Use it. Save errno afterwards.
59860         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59861
59862 2008-06-03  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59865         draft code. Simplify #ifs.
59866         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59867         Put Solaris code after POSIX-draft code. Fix comments regarding
59868         Solaris 10, HP-UX. Mention Cygwin.
59869         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59870
59871 2008-06-03  Eric Blake  <ebb9@byu.net>
59872
59873         Provide fallback for older kernels.
59874         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59875         Provide runtime fallback if kernel lacks support.
59876         Reported by Mike Frysinger.
59877
59878 2008-06-02  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59881         it exists.
59882
59883 2008-06-02  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59886         * lib/copy-acl.c (qcopy_acl): Update comment.
59887
59888 2008-06-02  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59891         like ACL APIs.
59892
59893 2008-06-02  Bruno Haible  <bruno@clisp.org>
59894
59895         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59896         * tests/test-set-mode-acl.sh: Likewise.
59897         * tests/test-copy-acl.sh: Likewise.
59898         * tests/test-copy-file.sh: Likewise.
59899
59900 2008-06-02  Bruno Haible  <bruno@clisp.org>
59901
59902         * tests/test-file-has-acl.sh: Remove unused code.
59903
59904 2008-06-01  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59907         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59908         messages.
59909         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59910
59911 2008-06-01  Bruno Haible  <bruno@clisp.org>
59912
59913         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59914         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59915         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59916         APIs.
59917         * modules/acl-tests (configure.ac): Remove tests now contained in
59918         m4/acl.m4.
59919
59920 2008-06-02  Jim Meyering  <meyering@redhat.com>
59921
59922         announce-gen: use a better key-server host name
59923         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59924         it may be more consistently reliable.  Suggested by Werner Koch
59925         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59926
59927 2008-06-01  Bruno Haible  <bruno@clisp.org>
59928
59929         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59930         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59931
59932 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59933
59934         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59935
59936 2008-06-01  Bruno Haible  <bruno@clisp.org>
59937
59938         New ACL tests.
59939         * tests/test-file-has-acl.sh: New file.
59940         * tests/test-file-has-acl.c: New file.
59941         * tests/test-set-mode-acl.sh: New file.
59942         * tests/test-set-mode-acl.c: New file.
59943         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59944         * tests/test-copy-acl.c: New file.
59945         * modules/acl-tests: New file, based on modules/copy-file-tests.
59946         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59947         (Depends-on): Add acl-tests.
59948         (configure.ac): Remove checks.
59949         (Makefile.am): Don't create test-sameacls program here any more.
59950
59951 2008-06-01  Bruno Haible  <bruno@clisp.org>
59952
59953         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59954         * tests/test-sameacls.c: Include progname.h.
59955         (main): Invoke set_program_name. Portability fixes for MacOS X,
59956         Solaris, HP-UX.
59957
59958 2008-06-01  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59961         function.
59962         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59963
59964 2008-06-01  Bruno Haible  <bruno@clisp.org>
59965
59966         * modules/rpmatch (Depends-on): Add strdup.
59967
59968 2008-06-01  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/pipe.c: Include unistd-safer.h.
59971         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59972         * modules/pipe (Depends-on): Add unistd-safer.
59973
59974 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59975
59976         * modules/autobuild (configure.ac): Call AB_INIT.
59977
59978 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59979
59980         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59981         Suggested by Bruno Haible <bruno@clisp.org>.
59982
59983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59984
59985         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59986         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59987         <bruno@clisp.org>.
59988
59989 2008-05-29  Eric Blake  <ebb9@byu.net>
59990
59991         Prefer new POSIX 200x interfaces over futimesat.
59992         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59993         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59994         when available.
59995         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59996
59997 2008-05-28  Bruno Haible  <bruno@clisp.org>
59998
59999         * modules/stpcpy (License): Change to LGPLv2+.
60000         Requested by David Lutterkort <dlutter@redhat.com>.
60001
60002 2008-05-27  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60005         current mingw.
60006         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60007
60008 2008-05-27  Bruno Haible  <bruno@clisp.org>
60009
60010         * modules/iconv_open (Link): New section, from module 'iconv'.
60011         * modules/striconv (Link): Likewise.
60012         * modules/striconveh (Link): Likewise.
60013         * modules/xstriconv (Link): Likewise.
60014         * modules/unicodeio (Link): Likewise.
60015         * modules/propername (Link): Likewise.
60016         Reported by Jim Meyering.
60017
60018 2008-05-26  Jim Meyering  <meyering@redhat.com>
60019
60020         sha256: do not artificially restrict buffer length to be < 2^32
60021         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60022         uint32_t to size_t.
60023         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60024         to match.
60025
60026         avoid unaligned access errors, e.g., on sparc
60027         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60028         direct access through a possibly-unaligned uint64* pointer.
60029         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60030         direct access through a possibly-unaligned uint32* pointer.
60031         Prompted by this patch from Tom "spot" Callaway:
60032         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60033
60034         sha512.c: fix typo in comment
60035         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60036
60037 2008-05-25  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60040         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60041         (Makefile.am): Update lib_SOURCES.
60042
60043 2008-05-25  Bruno Haible  <bruno@clisp.org>
60044
60045         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60046
60047 2008-05-25  Jim Meyering  <meyering@redhat.com>
60048
60049         useless-if-before-free: freed expr may have white-space differences
60050         * build-aux/useless-if-before-free: Recognize cases in which the
60051         freed expression differs from the tested one in embedded white
60052         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60053         $1 was used, so we can't make any regexp shy.  Improved tests now
60054         detect this.
60055
60056         useless-if-before-free: accept white space in the expression.
60057         * build-aux/useless-if-before-free: For now, any white space
60058         in the expression must be identical in the free argument.
60059
60060         useless-if-before-free: efficiency tweak
60061         * build-aux/useless-if-before-free: Make the expression-matching
60062         regexp "shy".
60063         Make the *outer* regexp shy, not the expr-matching one.
60064
60065         update code-in-comment to accept cast of free arg
60066         * build-aux/useless-if-before-free: Update regexp.
60067
60068 2008-05-25  Bruno Haible  <bruno@clisp.org>
60069
60070         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60071         * modules/copy-file-tests (Files, Makefile.am): Update.
60072         * tests/test-copy-file.c (func_test_copy): Update.
60073
60074 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60075
60076         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60077
60078 2008-05-23  Bruno Haible  <bruno@clisp.org>
60079
60080         Improve support for ACLs on OSF/1.
60081         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60082         Remove fallback for unknown flavors of ACLs.
60083
60084 2008-05-22  Bruno Haible  <bruno@clisp.org>
60085
60086         Add support for ACLs on OSF/1.
60087         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60088         replacements.
60089         (acl_free_text): New macro fallback.
60090         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60091         acl_free.
60092         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60093         acl_free_text function. Require AC_C_INLINE.
60094
60095 2008-05-22  Bruno Haible  <bruno@clisp.org>
60096
60097         Make copy_acl work on MacOS X 10.5.
60098         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60099         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60100         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60101         If MODE_INSIDE_ACL, don't assume that every system has the same text
60102         representation for ACLs as FreeBSD.
60103         * lib/copy-acl.c (copy_acl): Add support for platforms with
60104         !MODE_INSIDE_ACL.
60105         * lib/file-has-acl.c (file_has_acl): Likewise.
60106         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60107         FreeBSD, MacOS X, or IRIX, respectively.
60108
60109 2008-05-22  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/acl.h: Don't include <sys/acl.h>.
60112         (GETACLCNT): Move fallback to lib/acl-internal.h.
60113         * lib/acl-internal.h: Include <sys/acl.h> here.
60114         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60115
60116 2008-05-22  Bruno Haible  <bruno@clisp.org>
60117
60118         Split off copy_acl function to separate file.
60119         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60120         * lib/acl.c (copy_acl): Moved function to separate file.
60121         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60122         * modules/acl (Files): Add lib/copy-acl.c.
60123         (Makefiles.am): Augment lib_SOURCES.
60124
60125 2008-05-22  Bruno Haible  <bruno@clisp.org>
60126
60127         * modules/copy-file-tests: New file.
60128         * tests/test-copy-file.sh: New file.
60129         * tests/test-copy-file.c: New file.
60130         * tests/test-copy-file-sameacls.c: New file.
60131
60132 2008-05-22  Eric Blake  <ebb9@byu.net>
60133
60134         Avoid gcc warning.
60135         * tests/test-memcmp.c (main): Pass NULL indirectly.
60136
60137 2008-05-21  Bruno Haible  <bruno@clisp.org>
60138
60139         Add reference doc about ACLs.
60140         * doc/acl-resources.txt: New file.
60141         * doc/acl-cygwin.txt: New file.
60142
60143 2008-05-21  Bruno Haible  <bruno@clisp.org>
60144
60145         Avoid one more warning from gcc.
60146         * lib/vasnprintf.c (IF_LINT): Update comments.
60147         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60148
60149 2008-05-21  Jim Meyering  <meyering@redhat.com>
60150
60151         avoid a warning from gcc
60152         * lib/vasnprintf.c (IF_LINT): Define.
60153         (scale10_round_decimal_long_double):
60154         Use it to avoid a "may be used uninitialized" warning.
60155         (scale10_round_decimal_double): Likewise.
60156
60157 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60158
60159         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60160         declared.
60161
60162 2008-05-20  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60165         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60166
60167 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60168
60169         * modules/memcmp-tests: New file.
60170         * tests/test-memcmp.c: New file.
60171
60172 2008-05-19  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/propername (Notice, configure.ac): Put quoted "..." into
60175         --keyword option.
60176         * lib/propername.h: Update comments accordingly.
60177         Reported by Eric Blake.
60178
60179 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60180
60181         * modules/getpass-gnu (Depends-on): Add fseeko.
60182
60183 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60184
60185         * modules/base64-tests: New file.
60186
60187 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60188
60189         * lib/base64.c (base64_decode_ctx): If a decode context structure
60190         was passed in use it to ignore newlines.  If a context structure
60191         was _not_ passed in, continue to treat newlines as garbage (this
60192         is the historical behavior).  Formerly base64_decode.
60193         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60194         takes a decode context structure.
60195         * lib/base64.h (base64_decode): Macro for four-argument calls.
60196         (base64_decode_alloc): Likewise.
60197         * lib/base64.c (base64_decode_ctx): If a decode context structure
60198         was passed in use it to ignore newlines.  If a context structure
60199         was _not_ passed in, continue to treat newlines as garbage (this
60200         is the historical behavior).  Formerly base64_decode.
60201         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60202         takes a decode context structure.
60203         * lib/base64.h (base64_decode): Macro for four-argument calls.
60204         (base64_decode_alloc): Likewise.
60205
60206 2008-05-19  Jim Meyering  <meyering@redhat.com>
60207
60208         avoid a warning from gcc
60209         * lib/trim.c (IF_LINT): Define.
60210         (trim2): Use it to avoid a "may be used uninitialized" warning.
60211
60212         Fix doc typo.
60213         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60214
60215 2008-05-19  Bruno Haible  <bruno@clisp.org>
60216
60217         * doc/glibc-functions/getpass.texi: Document limits of other
60218         implementations.
60219
60220 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60221             Bruno Haible <bruno@clisp.org>
60222
60223         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60224
60225 2008-05-18  Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/propername: New file, from GNU gettext.
60228         * lib/propername.h: New file, from GNU gettext.
60229         * lib/propername.c: New file, from GNU gettext.
60230         * MODULES.html.sh (Internationalization functions): Add propername.
60231
60232 2008-05-16  Jim Meyering  <meyering@redhat.com>
60233             Bruno Haible  <bruno@clisp.org>
60234
60235         Avoid some warnings from "gcc -Wshadow".
60236         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60237
60238 2008-05-15  Eric Blake  <ebb9@byu.net>
60239
60240         Extend previous patch to cygwin 1.7.0.
60241         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60242         fast implementation in cygwin >= 1.7.0.
60243         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60245
60246 2008-05-15  Bruno Haible  <bruno@clisp.org>
60247
60248         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60249         implementation in glibc >= 2.9.
60250         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60252
60253 2008-05-15  Bruno Haible  <bruno@clisp.org>
60254
60255         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60256         (Unicode string functions): Add unilbrk/*.
60257         Reported by Karl Berry.
60258
60259 2008-05-15  Eric Blake  <ebb9@byu.net>
60260
60261         Fix violation of <stdbool.h> replacement in regex.
60262         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60263         * lib/regexec.c (re_search_internal): Likewise.
60264         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60265
60266 2008-05-15  Jim Meyering  <meyering@redhat.com>
60267
60268         avoid distracting test output when git or cvs is not found
60269         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60270         * tests/test-vc-list-files-git.sh: Likewise.
60271
60272 2008-05-15  Eric Blake  <ebb9@byu.net>
60273
60274         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60275         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60276         glibc version.
60277         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60278         * doc/posix-functions/strstr.texi (strstr): Likewise.
60279         * lib/str-two-way.h (MAX): Sychronize with glibc.
60280
60281 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60282
60283         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60284         opr.ctx_type.
60285         (calc_first): Initialize constraint field.
60286         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60287         Fix grammar.
60288         (duplicate_node): Merge constraint field for all node types.
60289         (calc_eclosure_iter): Look at constraint field for all node types.
60290         * lib/regex_internal.c (create_cd_newstate): Don't look at
60291         opr.ctx_type.
60292
60293 2008-05-14  Bruno Haible  <bruno@clisp.org>
60294
60295         Help GCC to do better code generation.
60296         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60297         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60298         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60299         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60300         Declare with attribute 'malloc' if supported.
60301
60302 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60303
60304         use "echo STR|wc -c" rather than unportable "expr length STR"
60305         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60306         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60307
60308 2008-05-14  Jim Meyering  <meyering@redhat.com>
60309
60310         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60311         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60312         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60313         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60314         via Collin Lasse.
60315
60316 2008-05-14  Eric Blake  <ebb9@byu.net>
60317
60318         Avoid quadratic growth in gl_LIBSOURCES.
60319         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60320         Suggested by Bruno Haible.
60321
60322         Test xmemdup0.
60323         * modules/xmemdup0-tests: New file.
60324         * tests/test-xmemdup0.c: Likewise.
60325
60326 2008-05-13  Eric Blake  <ebb9@byu.net>
60327
60328         Split xmemdup0 into its own module.
60329         * modules/xmemdup0: New file.
60330         * lib/xmemdup0.h: Likewise.
60331         * lib/xmemdup0.c: Likewise.
60332         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60333         * lib/xalloc.h (xmemdup0): Remove.
60334         * lib/xmalloc.c (xmemdup0): Likewise.
60335
60336 2008-05-13  Eric Blake  <ebb9@byu.net>
60337             Bruno Haible  <bruno@clisp.org>
60338
60339         Reduce number of forks required during autoconf.
60340         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60341         and gl_LIBSOURCES_DIR.
60342         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60343         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60344         m4_syscmd per file.
60345         <m4_foreach_w>: Move...
60346         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60347
60348 2008-05-13  Eric Blake  <ebb9@byu.net>
60349
60350         * gnulib-tool: Fix various comment typos.
60351
60352 2008-05-12  Bruno Haible  <bruno@clisp.org>
60353
60354         Tailor the linebreaking algorithm.
60355         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60356
60357 2008-05-12  Bruno Haible  <bruno@clisp.org>
60358
60359         Update to Unicode 5.0.0.
60360         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60361         LBP_JV, LBP_JT. Redistribute values.
60362         (unilbrk_table): Change size.
60363         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60364         Unicode TR#14 rev. 22.
60365         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60366         LBP_JV, LBP_JT. Redistribute values.
60367         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60368         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60369         Update.
60370         * lib/unilbrk/lbrkprop1.h: Regenerated.
60371         * lib/unilbrk/lbrkprop2.h: Regenerated.
60372         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60373         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60374         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60375         Likewise.
60376         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60377         Likewise.
60378         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60379         result.
60380         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60381         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60382         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60383         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60384         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60385         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60386
60387 2008-05-11  Bruno Haible  <bruno@clisp.org>
60388
60389         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60390
60391 2008-05-11  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60394         * modules/unilbrk/gen-lbrk: New file.
60395
60396 2008-05-11  Bruno Haible  <bruno@clisp.org>
60397
60398         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60399         * m4/sha512.m4 (gl_SHA512): Likewise.
60400
60401 2008-05-11  Jim Meyering  <meyering@redhat.com>
60402
60403         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60404         * modules/crypto/sha256: New file.
60405         * modules/crypto/sha512: Likewise.
60406         * lib/sha256.c: Likewise.
60407         * lib/sha256.h: Likewise.
60408         * lib/sha512.c: Likewise.
60409         * lib/sha512.h: Likewise.
60410         * lib/u64.h: Likewise.
60411         * m4/sha256.m4: Likewise.
60412         * m4/sha512.m4: Likewise.
60413         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60414
60415 2008-05-10  Bruno Haible  <bruno@clisp.org>
60416
60417         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60418         (Input/Output <stdio.h>): Add xprintf.
60419         (Signal handling <signal.h>): Add strsignal.
60420         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60421         (Core language properties): Add func.
60422         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60423         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60424         strings.
60425         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60426         (Input/output): New section.
60427         (File system functions): Add openat-die, stat-macros.
60428         (Networking functions): Add sockets.
60429         (Unicode string functions): Add unictype/*.
60430         (Support for building libraries and executables): Add gperf.
60431         (Support for building documentation): Add agpl-3.0.
60432         (Misc): Add nocrash.
60433
60434 2008-05-10  Bruno Haible  <bruno@clisp.org>
60435
60436         * modules/unictype/gen-ctype: New file.
60437
60438 2008-05-10  Jim Meyering  <meyering@redhat.com>
60439
60440         Make chdir-safer.c more efficient on a system with no symlinks.
60441         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60442         also if ELOOP is zero.  Suggested by Bruno Haible.
60443
60444         Make chdir-safer.c slightly safer.
60445         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60446         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60447
60448         Avoid compile failure on systems without ELOOP (like mingw).
60449         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60450         Reported by Bruno Haible.
60451
60452 2008-05-10  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60455         (is_utf8_encoding): Use a case-insensitive comparison.
60456         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60457         streq.
60458
60459 2008-05-10  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60462         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60463         * lib/unilbrk/ulc-common.h (iconv_string_length,
60464         iconv_string_keeping_offsets): Remove declarations.
60465         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60466         Don't include <iconv.h>, streq.h, xsize.h.
60467         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60468         conversion.
60469         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60470         <iconv.h>, streq.h, xsize.h.
60471         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60472         conversion.
60473         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60474         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60475         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60476         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60477
60478 2008-05-10  Bruno Haible  <bruno@clisp.org>
60479
60480         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60481         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60482
60483         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60484         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60485
60486         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60487         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60488
60489         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60490         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60491
60492         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60493         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60494
60495         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60496         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60497
60498         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60499         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60500
60501         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60502         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60503
60504 2008-05-10  Bruno Haible  <bruno@clisp.org>
60505
60506         Split up 'linebreak' module.
60507         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60508         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60509         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60510         modifications.
60511         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60512         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60513         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60514         lib/linebreak.c.
60515         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60516         lib/linebreak.c.
60517         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60518         lib/linebreak.c.
60519         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60520         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60521         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60522         lib/linebreak.c.
60523         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60524         lib/linebreak.c.
60525         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60526         lib/linebreak.c.
60527         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60528         lib/linebreak.c.
60529         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60530         lib/linebreak.c.
60531         * modules/unilbrk/base: New file.
60532         * modules/unilbrk/tables: New file.
60533         * modules/unilbrk/u8-possible-linebreaks: New file.
60534         * modules/unilbrk/u16-possible-linebreaks: New file.
60535         * modules/unilbrk/u32-possible-linebreaks: New file.
60536         * modules/unilbrk/ulc-common: New file.
60537         * modules/unilbrk/ulc-possible-linebreaks: New file.
60538         * modules/unilbrk/u8-width-linebreaks: New file.
60539         * modules/unilbrk/u16-width-linebreaks: New file.
60540         * modules/unilbrk/u32-width-linebreaks: New file.
60541         * modules/unilbrk/ulc-width-linebreaks: New file.
60542         * lib/linebreak.h: Remove file.
60543         * lib/linebreak.c: Remove file.
60544         * m4/linebreak.m4: Remove file.
60545         * modules/linebreak: Remove file.
60546         * NEWS: Mention the changes.
60547
60548 2008-05-09  Eric Blake  <ebb9@byu.net>
60549
60550         Add xmemdup0.
60551         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60552         implementation.
60553         * lib/xmalloc.c (xmemdup0): New C implementation.
60554
60555 2008-05-08  Bruno Haible  <bruno@clisp.org>
60556
60557         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60558
60559 2008-05-07  Eric Blake  <ebb9@byu.net>
60560
60561         Support cross-compilation of <wctype.h>.
60562         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60563         AC_CACHE_CHECK.
60564
60565 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60566
60567         * build-aux/vc-list-files: Add support for bzr.
60568
60569 2008-05-03  Jim Meyering  <meyering@redhat.com>
60570
60571         avoid failed assertion with tight malloc
60572         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60573
60574 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60575
60576         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60577         are needed from arpa/inet.h.
60578         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60579         Reported by Bruno Haible.
60580
60581 2008-05-02  Jim Meyering  <meyering@redhat.com>
60582
60583         avoid compilation error on FreeBSD 6
60584         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60585
60586 2008-05-01  Jim Meyering  <meyering@redhat.com>
60587
60588         useless-if-before-free: correct --help's exit status description
60589         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60590         for one or more matches, etc.  Reported by Bruno Haible.
60591
60592         vc-list-files: make the stand-alone gnulib test work
60593         * modules/vc-list-files-tests (configure.ac):
60594         Define and AC_SUBST abs_aux_dir.
60595         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60596         $(abs_top_srcdir) to each script and having each of them
60597         duplicate the work of setting PATH, set PATH here, using
60598         the new variable, abs_aux_dir instead.
60599         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60600         * tests/test-vc-list-files-git.sh: Likewise.
60601         Reported by Bruno Haible.
60602
60603 2008-05-01  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60606         reallocation. Rename 'done' to 'found_delimiter'.
60607
60608 2008-05-01  Jim Meyering  <meyering@redhat.com>
60609
60610         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60611         * build-aux/vc-list-files: Use `...`, not $(...).
60612
60613 2008-04-30  Jim Meyering  <meyering@redhat.com>
60614
60615         add tests for vc-list-files
60616         * modules/vc-list-files-tests: New module.
60617         * tests/test-vc-list-files-cvs.sh: New file.
60618         * tests/test-vc-list-files-git.sh: New file.
60619
60620         avoid a warning from gcc
60621         * lib/getndelim2.c (IF_LINT): Define.
60622         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60623
60624         vc-list-files: work properly with build-aux/cvsu, too
60625         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60626         to all cvs-based clauses.
60627
60628         vc-list-files: work properly in the CVS+awk case, too
60629         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60630
60631         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60632         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60633         take more than one file argument, so .  Add quotes, just in case $dir
60634         ever contains a shell meta-character.  Prompted by Soren Hansen in
60635         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60636
60637 2008-04-29  Eric Blake  <ebb9@byu.net>
60638
60639         Optimize getndelim2 to use block operations when possible.
60640         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60641         freadseek, and memchr2.
60642         * lib/getndelim2.c (getndelim2): Use them for block reads.
60643
60644 2008-04-29  Bruno Haible  <bruno@clisp.org>
60645
60646         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60647         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60648         * modules/inet_ntop (Depends-on): Add extensions.
60649         * modules/inet_pton (Depends-on): Likewise.
60650         Reported by Simon Josefsson.
60651
60652 2008-04-29  Jim Meyering  <meyering@redhat.com>
60653
60654         When the is more than one match in a block, match all of them.
60655         * build-aux/useless-if-before-free: Iterate through each block
60656         until there are no more matches.
60657
60658         Fix broken useless-if-before-free script.
60659         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60660         the expression to match cast of argument to free-like function.
60661
60662 2008-04-29  Eric Blake  <ebb9@byu.net>
60663
60664         Use new header.
60665         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60666
60667 2008-04-29  Jim Meyering  <meyering@redhat.com>
60668
60669         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60670         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60671         by gnulib to exist and to declare e.g., inet_ntop.
60672         Don't include "inet_ntop.h", now removed.
60673
60674         * m4/arpa_inet_h.m4: Remove trailing blanks.
60675
60676 2008-04-29  Eric Blake  <ebb9@byu.net>
60677
60678         Silence valgrind on safe reads beyond potential array bounds.
60679         * lib/rawmemchr.valgrind: New file.
60680         * lib/strchrnul.valgrind: Likewise.
60681         * modules/rawmemchr (Files): Distribute new file.
60682         * modules/strchrnul (Files): Likewise.
60683         Suggested by Bruno Haible.
60684
60685 2008-04-29  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60688         (inet_ntop, inet_pton): Change portability warning's wording.
60689         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60690         Invoke gl_CHECK_NEXT_HEADERS.
60691         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60692         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60693         set ARPA_INET_H.
60694         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60695         * modules/arpa_inet (Description): No longer only for systems that
60696         lack it.
60697         (Depends-on): Add include_next.
60698         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60699         HAVE_ARPA_INET_H.
60700
60701 2008-04-29  Jim Meyering  <meyering@redhat.com>
60702
60703         * modules/mkdir (License): Re-license as LGPLv2+.
60704
60705 2008-04-29  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/rawmemchr (Maintainer): Set to Eric.
60708         * modules/strchrnul (Maintainer): Likewise.
60709
60710 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60711
60712         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60713         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60714
60715         * modules/arpa_inet (arpa/inet.h): Use them.
60716
60717 2008-04-28  Eric Blake  <ebb9@byu.net>
60718
60719         Test getndelim2.
60720         * modules/getndelim2-tests: New file.
60721         * tests/test-getndelim2.c: Likewise.
60722         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60723         stream.
60724         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60725
60726         * MODULES.html.sh: Document new module.
60727
60728 2008-04-20  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/c-stack.c (die): Use raise.
60731         * modules/c-stack (Depends-on): Add raise.
60732
60733 2008-04-28  Bruno Haible  <bruno@clisp.org>
60734
60735         Expect rpmatch to be declared.
60736         * lib/yesno.c (rpmatch): Remove declaration.
60737
60738         Declare rpmatch.
60739         * lib/stdlib.in.h (rpmatch): New declaration.
60740         * lib/rpmatch.c: Include <stdlib.h> first.
60741         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60742         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60744         HAVE_RPMATCH.
60745         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60746         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60747         (Include): Set to <stdlib.h>.
60748         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60749         HAVE_RPMATCH.
60750         * NEWS: Document the change.
60751
60752 2008-04-28  Bruno Haible  <bruno@clisp.org>
60753
60754         Change rpmatch to use nl_langinfo when appropriate.
60755         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60756         (N_): New macro.
60757         (localized_pattern): New function/macro.
60758         (try): Remove match, nomatch arguments. Copy the pattern into safe
60759         memory before caching it.
60760         (rpmatch): Use localized_pattern. Add translator comments.
60761         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60762         Suggested by Eric Blake.
60763         * modules/rpmatch (Depends-on): Add stdbool.
60764
60765 2008-04-28  Eric Blake  <ebb9@byu.net>
60766
60767         Add rawmemchr module, matching glibc.
60768         * modules/string (Makefile.am): New indicator.
60769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60770         * lib/string.in.h (rawmemchr): Declare when appropriate.
60771         * modules/rawmemchr: New file.
60772         * m4/rawmemchr.m4: Likewise.
60773         * lib/rawmemchr.c: Likewise.
60774         * modules/rawmemchr-tests: Likewise.
60775         * tests/test-rawmemchr.c: Likewise.
60776         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60777         module.
60778         * modules/strchrnul (Depends-on): Add rawmemchr.
60779         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60780
60781         Whitespace cleanup.
60782         * tests/test-strchrnul.c: Reindent.
60783         * lib/strchrnul.c: Likewise.
60784
60785         Optimize and test strchrnul.
60786         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60787         * modules/strchrnul-tests: New file.
60788         * tests/test-strchrnul.c: Likewise.
60789
60790         Remove intprops dependency.
60791         * modules/memchr (Depends-on): Remove intprops.
60792         * modules/memrchr (Depends-on): Likewise.
60793         * modules/memchr2 (Depends-on): Likewise.
60794         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60795         * lib/memrchr.c (__memrchr): Likewise.
60796         * lib/memrchr2.c (memchr2): Likewise.
60797         Reported by Simon Josefsson.
60798
60799 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60800
60801         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60802         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60803
60804 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60805
60806         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60807
60808         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60809
60810         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60811
60812         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60813         declarations.
60814         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60815
60816         * m4/inet_pton.m4: Don't check for header files.
60817
60818         * m4/inet_ntop.m4: Don't check for header files.
60819
60820 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60821
60822         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60823         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60824         trigger for cygwin).
60825         Reported by Bruno Haible  <bruno@clisp.org>.
60826
60827 2008-04-28  Bruno Haible  <bruno@clisp.org>
60828
60829         * doc/posix-functions/strdup.texi: Mention mingw problem.
60830
60831 2008-04-27  Bruno Haible  <bruno@clisp.org>
60832
60833         * modules/stat-time-tests (Depends-on): Add sleep.
60834         * tests/test-stat-time.c (force_unlink): New function.
60835         (cleanup): Use it.
60836         (test_mtime): Remove the ctime related tests.
60837         (test_ctime): New function, containing the ctime related tests.
60838         (main): Call test_ctime, except on native Windows platforms.
60839
60840 2008-04-27  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/rpmatch.c (rpmatch): Add some comments.
60843         Reported by James Youngman <jay@gnu.org>.
60844
60845 2008-04-27  Bruno Haible  <bruno@clisp.org>
60846
60847         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60848         quiet NaNs.
60849
60850 2008-04-27  Bruno Haible  <bruno@clisp.org>
60851
60852         Make test-yesno.sh work on mingw.
60853         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60854         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60855         (main): Set stdin to binary mode.
60856         * modules/yesno-tests (Depends-on): Add binary-io.
60857
60858 2008-04-27  Bruno Haible  <bruno@clisp.org>
60859
60860         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60861         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60862         argument that lie outside the IEEE 854 domain.
60863         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60864         (gl_ISFINITE): Use it.
60865         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60866
60867 2008-04-27  Bruno Haible  <bruno@clisp.org>
60868
60869         Allow local renaming in config.h.
60870         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60871
60872 2008-04-27  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/memchr.c (__memchr): Change type of 'i'.
60875         * lib/memchr2.c (memchr2): Likewise.
60876
60877 2008-04-26  Eric Blake  <ebb9@byu.net>
60878         and Bruno Haible  <bruno@clisp.org>
60879
60880         Optimize and test memrchr.
60881         * modules/memrchr (Depends-on): Add intprops.
60882         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60883         * modules/memrchr-tests: New file.
60884         * tests/test-memrchr.c: New file.
60885
60886 2008-04-26  Bruno Haible  <bruno@clisp.org>
60887
60888         Add tentative support for DragonFly BSD.
60889         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60890         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60891         fp.
60892         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60893         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60894         * lib/fpurge.c (fpurge): Likewise.
60895         * lib/freadable.c (freaadable): Likewise.
60896         * lib/freadahead.c (freadahead): Likewise.
60897         * lib/freading.c (freading): Likewise.
60898         * lib/freadptr.c (freadptr): Likewise.
60899         * lib/freadseek.c (freadptrinc): Likewise.
60900         * lib/fseeko.c (fseeko): Likewise.
60901         * lib/fseterr.c (fseterr): Likewise.
60902         * lib/fwritable.c (fwritable): Likewise.
60903         * lib/fwriting.c (fwriting): Likewise.
60904
60905 2008-04-26  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/stdio-impl.h: New file.
60908         * lib/fbufmode.c: Include stdio-impl.h.
60909         (fbufmode): Use fp_, remove redundant #defines.
60910         * lib/fflush.c: Include stdio-impl.h.
60911         (clear_ungetc_buffer): Remove redundant #defines.
60912         * lib/fpurge.c: Include stdio-impl.h.
60913         (fpurge): Remove redundant #defines.
60914         * lib/freadable.c: Include stdio-impl.h.
60915         (freadable): Remove redundant #defines.
60916         * lib/freadahead.c: Include stdio-impl.h.
60917         (freadahead): Remove redundant #defines.
60918         * lib/freading.c: Include stdio-impl.h.
60919         (freading): Remove redundant #defines.
60920         * lib/freadptr.c: Include stdio-impl.h.
60921         (freadptr): Remove redundant #defines.
60922         * lib/freadseek.c: Include stdio-impl.h.
60923         (freadptrinc): Remove redundant #defines.
60924         * lib/fseeko.c: Include stdio-impl.h.
60925         (rpl_fseeko): Remove redundant #defines.
60926         * lib/fseterr.c: Include stdio-impl.h.
60927         (fseterr): Remove redundant #defines.
60928         * lib/fwritable.c: Include stdio-impl.h.
60929         (fwritable: Remove redundant #defines.
60930         * lib/fwriting.c: Include stdio-impl.h.
60931         (fwriting): Remove redundant #defines.
60932         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60933         * modules/fflush (Files): Likewise.
60934         * modules/fpurge (Files): Likewise.
60935         * modules/freadable (Files): Likewise.
60936         * modules/freadahead (Files): Likewise.
60937         * modules/freading (Files): Likewise.
60938         * modules/freadptr (Files): Likewise.
60939         * modules/freadseek (Files): Likewise.
60940         * modules/fseeko (Files): Likewise.
60941         * modules/fseterr (Files): Likewise.
60942         * modules/fwritable (Files): Likewise.
60943         * modules/fwriting (Files): Likewise.
60944
60945 2008-04-26  Bruno Haible  <bruno@clisp.org>
60946
60947         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60948         restore_seek_optimization, update_fpos_cache): New functions, extracted
60949         from rpl_fflush.
60950         (rpl_fflush): Use them.
60951         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60952         (gl_REPLACE_FFLUSH): Use it.
60953
60954 2008-04-26  Bruno Haible  <bruno@clisp.org>
60955
60956         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60957         on Solaris.
60958         * tests/test-xstrtoimax.sh: Likewise.
60959         * tests/test-xstrtoumax.sh: Likewise.
60960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60961
60962 2008-04-26  Bruno Haible  <bruno@clisp.org>
60963
60964         * modules/memchr-tests: New file.
60965         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60966
60967 2008-04-26  Eric Blake  <ebb9@byu.net>
60968             Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/memchr.c: Include intprops.h.
60971         (__memchr): Optimize parallel detection of matching bytes. Rename local
60972         variables. Add explanatory comments.
60973
60974 2008-04-26  Bruno Haible  <bruno@clisp.org>
60975
60976         Fix module 'memchr', broken since 2000-10-28.
60977         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60978
60979 2008-04-26  Bruno Haible  <bruno@clisp.org>
60980
60981         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60982         comments.
60983
60984 2008-04-25  Eric Blake  <ebb9@byu.net>
60985
60986         Use native fstatat on cygwin 1.7.0.
60987         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60988         first.
60989
60990 2008-04-23  Eric Blake  <ebb9@byu.net>
60991
60992         Improve memchr2 performance.
60993         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60994         NUL bytes.
60995         * modules/memchr2 (Depends-on): Use intprops.h.
60996
60997 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60998
60999         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61000         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61001         <blp@cs.stanford.edu>.
61002
61003 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61004
61005         * lib/arpa_inet.in.h: New file.
61006
61007         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61008         (Makefile.am): Sed in substitute header file.
61009
61010         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61011         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61012
61013         * modules/inet_ntop (configure.ac): Use
61014         gl_ARPA_INET_MODULE_INDICATOR.
61015
61016         * modules/inet_pton (configure.ac): Use
61017         gl_ARPA_INET_MODULE_INDICATOR.
61018
61019 2008-04-22  Jim Meyering  <meyering@redhat.com>
61020
61021         * modules/verify (License): Re-license as LGPLv2+.
61022
61023 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61024
61025         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61026         parameter to void* as per POSIX standard (MinGW uses char*).
61027
61028 2008-04-21  Bruno Haible  <bruno@clisp.org>
61029
61030         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61031         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61032         Define to replacements if REPLACE_ISWCNTRL is 1.
61033         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61034         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61035         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61036         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61037         what it fixes.
61038         * doc/posix-functions/iswalpha.texi: Likewise.
61039         * doc/posix-functions/iswblank.texi: Likewise.
61040         * doc/posix-functions/iswcntrl.texi: Likewise.
61041         * doc/posix-functions/iswdigit.texi: Likewise.
61042         * doc/posix-functions/iswgraph.texi: Likewise.
61043         * doc/posix-functions/iswlower.texi: Likewise.
61044         * doc/posix-functions/iswprint.texi: Likewise.
61045         * doc/posix-functions/iswpunct.texi: Likewise.
61046         * doc/posix-functions/iswspace.texi: Likewise.
61047         * doc/posix-functions/iswupper.texi: Likewise.
61048         * doc/posix-functions/iswxdigit.texi: Likewise.
61049         Reported by Alain Guibert.
61050
61051 2008-04-21  Bruno Haible  <bruno@clisp.org>
61052
61053         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61054         Patch by Alain Guibert.
61055
61056 2008-04-21  Bruno Haible  <bruno@clisp.org>
61057
61058         Fix test failures on mingw.
61059         * tests/test-xstrtol.c (print_no_progname): New function.
61060         (main): Install it in error_print_progname hook.
61061         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61062         * tests/test-xstrtoimax.sh: Likewise.
61063         * tests/test-xstrtoumax.sh: Likewise.
61064
61065 2008-04-21  Bruno Haible  <bruno@clisp.org>
61066
61067         Fix test failure on mingw.
61068         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61069
61070 2008-04-21  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61073         Actually assign a value.
61074
61075 2008-04-20  Bruno Haible  <bruno@clisp.org>
61076
61077         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61078         take 2.
61079         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61080         'canonicalize-lgpl' module is also used.
61081         * lib/canonicalize-lgpl.c: Undo last change.
61082         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61083
61084 2008-04-20  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61087         config.h. Provide _mkdir based fallback for mingw.
61088         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61089         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61090         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61091         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61092         rather than defining mkdir in config.h.
61093         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61094         (gl_SYS_STAT_H_DEFAULTS): New macro.
61095         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61096         HAVE_IO_H any more.
61097         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61098         HAVE_DECL_MKDIR and HAVE_IO_H.
61099
61100 2008-04-20  Bruno Haible  <bruno@clisp.org>
61101
61102         * lib/isapipe.c: Port to native Windows platforms.
61103
61104 2008-04-20  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61107
61108 2008-04-21  Eric Blake  <ebb9@byu.net>
61109
61110         Work around preprocessors that don't handle UINTMAX_MAX.
61111         * lib/memchr2.c (memchr2): Avoid embedded #if.
61112         Reported by Alain Guibert, fix suggested by Bruno Haible.
61113
61114 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61115
61116         * doc/posix-functions/strftime.texi (strftime): Explain better
61117         Windows incompatibility.  Suggested by Micah Cowan
61118         <micah@cowan.name>.
61119
61120 2008-04-20  Bruno Haible  <bruno@clisp.org>
61121
61122         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61123         unistr/u8-mblen.
61124
61125 2008-04-20  Bruno Haible  <bruno@clisp.org>
61126
61127         Fix test failure on platforms with non-GNU iconv.
61128         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61129         (U_TO_U8): Use it, rather than u16_to_u8.
61130         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61131         units at the end of the input string.
61132         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61133
61134 2008-04-20  Bruno Haible  <bruno@clisp.org>
61135
61136         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61137         when the resulting length is 0.
61138         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61139
61140 2008-04-20  Bruno Haible  <bruno@clisp.org>
61141
61142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61143         works.
61144         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61145
61146 2008-04-20  Bruno Haible  <bruno@clisp.org>
61147
61148         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61149         * modules/tsearch-tests (configure.ac): Test for initstate function.
61150
61151 2008-04-20  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61154         for nlink_t if missing.
61155         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61156
61157 2008-04-19  Bruno Haible  <bruno@clisp.org>
61158
61159         Work around snprintf bug on Linux libc5.
61160         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61162         gl_SNPRINTF_SIZE1.
61163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61164         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61165         that test failed.
61166         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61167         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61168         * modules/snprintf (Files): Add m4/printf.m4.
61169         * modules/vsnprintf (Files): Likewise.
61170         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61171         * doc/posix-functions/vsnprintf.texi: Likewise.
61172
61173 2008-04-19  Bruno Haible  <bruno@clisp.org>
61174
61175         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61176         from 0.0058 to less than 10^-7.
61177
61178 2008-04-19  Bruno Haible  <bruno@clisp.org>
61179
61180         Fix rounding when a precision is given.
61181         * lib/vasnprintf.c (is_borderline): New function.
61182         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61183         9...9x.
61184         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61185         %e, %g.
61186         * tests/test-vasprintf-posix.c (test_function): Likewise.
61187         * tests/test-snprintf-posix.h (test_function): Likewise.
61188         * tests/test-sprintf-posix.h (test_function): Likewise.
61189         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61190         * tests/test-printf-posix.h (test_function): Likewise.
61191         * tests/test-printf-posix.output: Update.
61192         Reported by John Darrington <john@darrington.wattle.id.au> via
61193         Ben Pfaff <blp@cs.stanford.edu>.
61194
61195 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61196
61197         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61198         Suggested by Bruno Haible <bruno@clisp.org>.
61199
61200 2008-04-17  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61203         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61204         implementation.
61205         Patch by Bruce Merry <bmerry@gmail.com>.
61206
61207 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61208
61209         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61210         doesn't work under Windows.
61211
61212 2008-04-16  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61215         New macros.
61216         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61217         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61218         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61219         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61220         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61221         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61222         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61223         macros.
61224         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61225         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61226         Northern Sotho, Uighur.
61227
61228 2008-04-16  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61231         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61232         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61233         Reported by Daniel Bergström <daniel@octocode.com>.
61234
61235 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61236             Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61239         function.
61240         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61241         New functions, mostly extracted from gl_locale_name_default.
61242         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61243
61244 2008-04-16  Eric Blake  <ebb9@byu.net>
61245
61246         Adjust strtod detection to catch glibc 2.7 bug.
61247         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61248         Reported by John Gatewood Ham.
61249
61250 2008-04-16  Bruno Haible  <bruno@clisp.org>
61251
61252         Add tentative support for Linux libc5.
61253         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61254         * lib/fpurge.c (fpurge): Likewise.
61255         * lib/freadable.c (freadable): Likewise.
61256         * lib/freadahead.c (freadahead): Likewise.
61257         * lib/freading.c (freading): Likewise.
61258         * lib/freadptr.c (freadptr): Likewise.
61259         * lib/freadseek.c (freadptrinc): Likewise.
61260         * lib/fseeko.c (rpl_fseeko): Likewise.
61261         * lib/fseterr.c (fseterr): Likewise.
61262         * lib/fwritable.c (fwritable): Likewise.
61263         * lib/fwriting.c (fwriting): Likewise.
61264         Reported by Alain Guibert <alguibert+bts@free.fr>.
61265
61266 2008-04-15  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/mathl (configure.ac): Define module indicator.
61269
61270 2008-04-15  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/logl.c (logl): Remove unused variables.
61273
61274 2008-04-15  Bruno Haible  <bruno@clisp.org>
61275
61276         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61277         fails.
61278
61279 2008-04-15  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/trim.c (trim2): Fix argument of isspace() macro.
61282
61283 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61284
61285         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61286         to 0.
61287         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61288
61289 2008-04-14  Bruno Haible  <bruno@clisp.org>
61290
61291         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61292         AC_LANG_PROGRAM argument.
61293         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61294         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61296         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61297         * m4/math_h.m4 (gl_MATH_H): Likewise.
61298         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61300         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61301         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61302         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61303         * m4/regex.m4 (gl_REGEX): Likewise.
61304         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61305         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61307         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61308         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61309         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61312
61313 2008-04-14  Jim Meyering  <meyering@redhat.com>
61314
61315         test-strtod: fix typos: s/abs/fabs/
61316         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61317
61318 2008-04-13  Bruno Haible  <bruno@clisp.org>
61319
61320         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61321         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61322         module is also used and while not building the reloc-wrapper.
61323
61324 2008-04-13  Bruno Haible  <bruno@clisp.org>
61325
61326         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61327
61328 2008-04-13  Bruno Haible  <bruno@clisp.org>
61329
61330         Fix AIX compilation failure introduced on 2008-04-02.
61331         * tests/test-frexp.c (exp): Undefine before redefining.
61332         * tests/test-frexpl.c (exp): Likewise.
61333
61334 2008-04-13  Bruno Haible  <bruno@clisp.org>
61335
61336         Work around a HP-UX stdio bug.
61337         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61338         * tests/test-ftello.c (main): Likewise.
61339         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61340         * doc/posix-functions/ftello.texi: Likewise.
61341
61342 2008-04-13  Bruno Haible  <bruno@clisp.org>
61343
61344         Make test-signbit pass on HP-UX/hppa.
61345         * tests/test-signbit.c (minus_zerol): New variable.
61346         (test_signbitl): Use it.
61347
61348 2008-04-13  Bruno Haible  <bruno@clisp.org>
61349
61350         Make truncl work on OSF/1 4.0.
61351         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61352         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61353         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61355         HAVE_DECL_TRUNCL.
61356         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61357         HAVE_DECL_TRUNCL.
61358         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61359
61360 2008-04-13  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61363
61364 2008-04-13  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61367         expression, so as to avoid HP-UX 11 cc compiler bug.
61368
61369 2008-04-13  Bruno Haible  <bruno@clisp.org>
61370
61371         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61372
61373 2008-04-13  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/git-merge-changelog.c: Remove empty declaration outside of
61376         functions.
61377
61378 2008-04-13  Bruno Haible  <bruno@clisp.org>
61379
61380         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61381
61382 2008-04-13  Bruno Haible  <bruno@clisp.org>
61383
61384         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61385         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61387         also if it exists but lacks definitions of the SHUT_* macros.
61388         * modules/sys_socket (Description): Update.
61389         Reported by Elbert Pol <e.pol@chello.nl>.
61390
61391 2008-04-13  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/localcharset.c (OS2): Don't redefine if already defined.
61394         Reported by Elbert Pol <e.pol@chello.nl>.
61395
61396 2008-04-13  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/binary-io.h [__EMX__]: Include <io.h>.
61399         Reported by Elbert Pol <e.pol@chello.nl>.
61400
61401 2008-04-12  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/fpucw.h: Enable the definitions also for x86_64.
61404         Needed for NetBSD/x86_64.
61405         Reported by Thomas Klausner <tk@giga.or.at>.
61406
61407 2008-04-12  Bruno Haible  <bruno@clisp.org>
61408
61409         * tests/test-strtod.c: Include isnand.h.
61410         (main): Use isnand instead of isnan.
61411         Reported by Jim Meyering.
61412
61413 2008-04-12  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61416         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61417
61418 2008-04-12  Jim Meyering  <meyering@redhat.com>
61419
61420         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61421
61422 2008-04-12  Bruno Haible  <bruno@clisp.org>
61423
61424         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61425         Reported by Elbert Pol <e.pol@chello.nl>.
61426
61427 2008-04-12  Eric Blake  <ebb9@byu.net>
61428
61429         Work around Solaris 10 math.h bug.
61430         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61431         (gl_MATH_H_DEFAULTS): Set up default.
61432         * modules/math (Makefile.am): Replace new indicators.
61433         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61434         * tests/test-math.c (main): Test this.
61435         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61436         * doc/posix-headers/math.texi (math.h): Mention bug.
61437         Reported by Nelson H. F. Beebe and Jim Meyering.
61438
61439 2008-04-11  Bruno Haible  <bruno@clisp.org>
61440
61441         Adapt to future versions of Apple GCC.
61442         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61443         Reported by Peter O'Gorman <peter@pogma.com>.
61444
61445 2008-04-11  Bruno Haible  <bruno@clisp.org>
61446
61447         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61448
61449 2008-04-11  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61452
61453         * modules/getaddrinfo-tests (Makefile.am): Define
61454         test_getaddrinfo_LDADD.
61455
61456 2008-04-11  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61459         (init): Fix syntax error.
61460         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61461         is declared.
61462
61463 2008-04-11  Bruno Haible  <bruno@clisp.org>
61464
61465         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61466         * modules/glob (Depends-on): Add stdbool.
61467
61468 2008-04-11  Bruno Haible  <bruno@clisp.org>
61469
61470         * lib/trim.c: Include <string.h>.
61471
61472 2008-04-11  Eric Blake  <ebb9@byu.net>
61473
61474         Avoid compile failure on OS/2.
61475         * lib/regex_internal.h (internal_function): Disable optimization
61476         on OS/2 (__EMX__), where it caused compiler error.
61477         Reported by Elbert Pol.
61478
61479 2008-04-11  Bruno Haible  <bruno@clisp.org>
61480
61481         Flush the standard error stream before aborting. Needed on mingw.
61482         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61483         * tests/test-array_list.c (ASSERT): Likewise.
61484         * tests/test-array_oset.c (ASSERT): Likewise.
61485         * tests/test-avltree_list.c (ASSERT): Likewise.
61486         * tests/test-avltree_oset.c (ASSERT): Likewise.
61487         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61488         * tests/test-binary-io.c (ASSERT): Likewise.
61489         * tests/test-byteswap.c (ASSERT): Likewise.
61490         * tests/test-c-ctype.c (ASSERT): Likewise.
61491         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61492         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61493         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61494         * tests/test-c-strstr.c (ASSERT): Likewise.
61495         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61496         * tests/test-canonicalize.c (ASSERT): Likewise.
61497         * tests/test-carray_list.c (ASSERT): Likewise.
61498         * tests/test-ceilf1.c (ASSERT): Likewise.
61499         * tests/test-ceilf2.c (ASSERT): Likewise.
61500         * tests/test-ceill.c (ASSERT): Likewise.
61501         * tests/test-count-one-bits.c (ASSERT): Likewise.
61502         * tests/test-fbufmode.c (ASSERT): Likewise.
61503         * tests/test-fflush2.c (ASSERT): Likewise.
61504         * tests/test-floorf1.c (ASSERT): Likewise.
61505         * tests/test-floorf2.c (ASSERT): Likewise.
61506         * tests/test-floorl.c (ASSERT): Likewise.
61507         * tests/test-fopen.c (ASSERT): Likewise.
61508         * tests/test-fpending.c (ASSERT): Likewise.
61509         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61510         * tests/test-fpurge.c (ASSERT): Likewise.
61511         * tests/test-freadable.c (ASSERT): Likewise.
61512         * tests/test-freadahead.c (ASSERT): Likewise.
61513         * tests/test-freading.c (ASSERT): Likewise.
61514         * tests/test-freadptr.c (ASSERT): Likewise.
61515         * tests/test-freadptr2.c (ASSERT): Likewise.
61516         * tests/test-freadseek.c (ASSERT): Likewise.
61517         * tests/test-freopen.c (ASSERT): Likewise.
61518         * tests/test-frexp.c (ASSERT): Likewise.
61519         * tests/test-frexpl.c (ASSERT): Likewise.
61520         * tests/test-fseek.c (ASSERT): Likewise.
61521         * tests/test-fseeko.c (ASSERT): Likewise.
61522         * tests/test-fstrcmp.c (ASSERT): Likewise.
61523         * tests/test-ftell.c (ASSERT): Likewise.
61524         * tests/test-ftello.c (ASSERT): Likewise.
61525         * tests/test-func.c (ASSERT): Likewise.
61526         * tests/test-fwritable.c (ASSERT): Likewise.
61527         * tests/test-fwriting.c (ASSERT): Likewise.
61528         * tests/test-getdelim.c (ASSERT): Likewise.
61529         * tests/test-getline.c (ASSERT): Likewise.
61530         * tests/test-i-ring.c (ASSERT): Likewise.
61531         * tests/test-iconv-utf.c (ASSERT): Likewise.
61532         * tests/test-iconv.c (ASSERT): Likewise.
61533         * tests/test-isfinite.c (ASSERT): Likewise.
61534         * tests/test-isnand.c (ASSERT): Likewise.
61535         * tests/test-isnanf.c (ASSERT): Likewise.
61536         * tests/test-isnanl.h (ASSERT): Likewise.
61537         * tests/test-ldexpl.c (ASSERT): Likewise.
61538         * tests/test-linked_list.c (ASSERT): Likewise.
61539         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61540         * tests/test-localename.c (ASSERT): Likewise.
61541         * tests/test-lseek.c (ASSERT): Likewise.
61542         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61543         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61544         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61545         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61546         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61547         * tests/test-mbschr.c (ASSERT): Likewise.
61548         * tests/test-mbscspn.c (ASSERT): Likewise.
61549         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61550         * tests/test-mbspbrk.c (ASSERT): Likewise.
61551         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61552         * tests/test-mbsrchr.c (ASSERT): Likewise.
61553         * tests/test-mbsspn.c (ASSERT): Likewise.
61554         * tests/test-mbsstr1.c (ASSERT): Likewise.
61555         * tests/test-mbsstr2.c (ASSERT): Likewise.
61556         * tests/test-mbsstr3.c (ASSERT): Likewise.
61557         * tests/test-memchr2.c (ASSERT): Likewise.
61558         * tests/test-memmem.c (ASSERT): Likewise.
61559         * tests/test-open.c (ASSERT): Likewise.
61560         * tests/test-printf-frexp.c (ASSERT): Likewise.
61561         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61562         * tests/test-printf-posix.c (ASSERT): Likewise.
61563         * tests/test-quotearg.c (ASSERT): Likewise.
61564         * tests/test-rbtree_list.c (ASSERT): Likewise.
61565         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61566         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61567         * tests/test-round1.c (ASSERT): Likewise.
61568         * tests/test-roundf1.c (ASSERT): Likewise.
61569         * tests/test-roundl.c (ASSERT): Likewise.
61570         * tests/test-signbit.c (ASSERT): Likewise.
61571         * tests/test-sleep.c (ASSERT): Likewise.
61572         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61573         * tests/test-snprintf.c (ASSERT): Likewise.
61574         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61575         * tests/test-stat-time.c (ASSERT): Likewise.
61576         * tests/test-strcasestr.c (ASSERT): Likewise.
61577         * tests/test-strerror.c (ASSERT): Likewise.
61578         * tests/test-striconv.c (ASSERT): Likewise.
61579         * tests/test-striconveh.c (ASSERT): Likewise.
61580         * tests/test-striconveha.c (ASSERT): Likewise.
61581         * tests/test-strsignal.c (ASSERT): Likewise.
61582         * tests/test-strstr.c (ASSERT): Likewise.
61583         * tests/test-strtod.c (ASSERT): Likewise.
61584         * tests/test-trunc1.c (ASSERT): Likewise.
61585         * tests/test-trunc2.c (ASSERT): Likewise.
61586         * tests/test-truncf1.c (ASSERT): Likewise.
61587         * tests/test-truncf2.c (ASSERT): Likewise.
61588         * tests/test-truncl.c (ASSERT): Likewise.
61589         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61590         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61591         * tests/test-vasnprintf.c (ASSERT): Likewise.
61592         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61593         * tests/test-vasprintf.c (ASSERT): Likewise.
61594         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61595         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61596         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61597         * tests/test-vsnprintf.c (ASSERT): Likewise.
61598         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61599         * tests/test-wcwidth.c (ASSERT): Likewise.
61600         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61601         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61602         * tests/test-xvasprintf.c (ASSERT): Likewise.
61603         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61604         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61605         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61606         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61607         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61608         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61609         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61610         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61611         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61612         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61613         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61614         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61615         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61616         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61617         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61618         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61619         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61620         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61621         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61622         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61623         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61624         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61625         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61626         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61627         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61628         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61629         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61630         * tests/unictype/test-combining.c (ASSERT): Likewise.
61631         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61632         * tests/unictype/test-digit.c (ASSERT): Likewise.
61633         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61634         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61635         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61636         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61637         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61638         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61639         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61640         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61641         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61642         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61643         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61644         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61645         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61646         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61647         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61648         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61649         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61650         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61651         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61652         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61653         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61654         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61655         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61656         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61657         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61658         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61659         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61660         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61661         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61662         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61663         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61664         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61665         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61666         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61667         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61668         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61669         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61670         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61671         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61672         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61673         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61674         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61675         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61676         Reported by Eric Blake.
61677
61678 2008-04-11  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/wchar.in.h: Tweak comment.
61681
61682 2008-04-11  Bruno Haible  <bruno@clisp.org>
61683
61684         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61685         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61686         gl_COMMON.
61687         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61688
61689 2008-04-11  Bruno Haible  <bruno@clisp.org>
61690
61691         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61692
61693 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61694
61695         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61696         of attempting to use non-existing /dev/*random.  Based on patch
61697         from Adam Strzelecki <ono@java.pl> in
61698         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61699
61700 2008-04-08  Bruno Haible  <bruno@clisp.org>
61701
61702         Add tentative support for emx+gcc.
61703         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61704         * lib/fpurge.c (fpurge): Likewise.
61705         * lib/freadable.c (freadable): Likewise.
61706         * lib/freadahead.c (freadahead): Likewise.
61707         * lib/freading.c (freading): Likewise.
61708         * lib/freadptr.c (freadptr): Likewise.
61709         * lib/freadseek.c (freadptrinc): Likewise.
61710         * lib/fseeko.c (rpl_fseeko): Likewise.
61711         * lib/fseterr.c (fseterr): Likewise.
61712         * lib/fwritable.c (fwritable): Likewise.
61713         * lib/fwriting.c (fwriting): Likewise.
61714         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61715
61716 2008-04-09  Eric Blake  <ebb9@byu.net>
61717
61718         Avoid some autoconf warnings.
61719         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61720         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61721         * m4/afs.m4 (gl_AFS): Likewise.
61722         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61723         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61725         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61726         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61727         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61728         (AC_CHECK_DECLS_ONCE): Likewise.
61729         Rename file...
61730         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61731         gnulib-tool requires autoconf 2.59 or better.
61732         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61733
61734 2008-04-08  Eric Blake  <ebb9@byu.net>
61735
61736         Use 'git describe --match' if present (added in git 1.5.5).
61737         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61738         if possible.
61739
61740 2008-04-08  Bruno Haible  <bruno@clisp.org>
61741
61742         Add tentative support for OpenServer.
61743         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61744         _ptr, _cnt.
61745         * lib/fpurge.c (fpurge): Likewise.
61746         * lib/freadable.c (freadable): Likewise.
61747         * lib/freadahead.c (freadahead): Likewise.
61748         * lib/freading.c (freading): Likewise.
61749         * lib/freadptr.c (freadptr): Likewise.
61750         * lib/freadseek.c (freadptrinc): Likewise.
61751         * lib/fseeko.c (rpl_fseeko): Likewise.
61752         * lib/fseterr.c (fseterr): Likewise.
61753         * lib/fwritable.c (fwritable): Likewise.
61754         * lib/fwriting.c (fwriting): Likewise.
61755         Reported by Roger Cornelius <rac@tenzing.org> and
61756         Brian K. White <brian@aljex.com>.
61757
61758 2008-04-06  Jim Meyering  <meyering@redhat.com>
61759
61760         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61761
61762 2008-04-06  Bruno Haible  <bruno@clisp.org>
61763
61764         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61765         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61766         * tests/test-printf-posix.sh: Likewise.
61767         * tests/test-vfprintf-posix.sh: Likewise.
61768         * tests/test-vprintf-posix.sh: Likewise.
61769         * tests/test-xprintf-posix.sh: Likewise.
61770
61771 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61772
61773         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61774         hide error from 'ls', needed on OS/2.
61775         Report by Elbert Pol <elbert.pol@gmail.com>.
61776
61777 2008-04-04  Eric Blake  <ebb9@byu.net>
61778
61779         Make test-fseeko.c failures meaningful.
61780         * tests/test-fseeko.c: Print line number on failure.
61781         * tests/test-fseek.c: Likewise.
61782         Reported by Nelson H. F. Beebe.
61783
61784         Improve strtod bug detection check.
61785         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61786         required for Solaris 10.
61787         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61788
61789 2008-04-04  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61792         by m4/setenv.m4.
61793
61794 2008-04-03  Eric Blake  <ebb9@byu.net>
61795
61796         Ensure sane .version contents.
61797         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61798         version string.
61799         * build-aux/git-version-gen: Improve documentation.
61800
61801         Make GNU make output nicer.
61802         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61803         MAKECMDGOALS to enforce message for all command line targets.  Set
61804         srcdir for use in maint.mk.
61805
61806         Another maintainer tweak.
61807         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61808         a target that regenerates version.
61809
61810 2008-04-03  Jim Meyering  <meyering@redhat.com>
61811
61812         vc-list-files: don't cause coreutils "make po-check" failure
61813         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61814
61815 2008-04-03  Eric Blake  <ebb9@byu.net>
61816
61817         Allow VPATH usage of vc-list-files.
61818         * build-aux/vc-list-files (scriptversion): Add timestamp.
61819         (options): Add --help, --version, -C.
61820         (CVS): Support installed cvsu.
61821
61822 2008-04-02  Bruno Haible  <bruno@clisp.org>
61823
61824         Avoid some "statement with no effect" warnings from gcc.
61825         * tests/test-wctype.c (main): Explicitly ignore unused values.
61826         Reported by Jim Meyering.
61827
61828 2008-04-02  Jim Meyering  <meyering@redhat.com>
61829
61830         Avoid some warnings from "gcc -Wshadow".
61831         * tests/test-frexp.c (exp): Define to a different identifier.
61832         * tests/test-frexpl.c (exp): Likewise.
61833
61834 2008-04-03  Jim Meyering  <meyering@redhat.com>
61835
61836         bootstrap: remove dangling *.[ch] symlinks from lib
61837         * build-aux/bootstrap [dangling symlink removal]: Move find's
61838         -depth option to precede all others, to avoid a warning.
61839         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61840
61841 2008-04-02  Bruno Haible  <bruno@clisp.org>
61842
61843         Avoid some warnings from "gcc -Wshadow".
61844         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61845         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61846         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61847         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61848         Reported by Jim Meyering.
61849
61850 2008-04-01  Bruno Haible  <bruno@clisp.org>
61851
61852         Fix test to work on IRIX 6.5 with cc.
61853         * tests/test-math.c (numeric_equal): New function.
61854         (main): Use it.
61855
61856 2008-04-01  Bruno Haible  <bruno@clisp.org>
61857
61858         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61859
61860 2008-04-01  Bruno Haible  <bruno@clisp.org>
61861
61862         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61863         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61864         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61865         (Depends-on): Remove math.
61866
61867         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61869         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61870         (Depends-on): Remove math.
61871
61872         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61873         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61874         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61875         (Depends-on): Remove math.
61876         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61877         (Depends-on): Remove math.
61878
61879         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61880         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61881         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61882         (Depends-on): Remove math.
61883         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61884         (Depends-on): Remove math.
61885
61886         * tests/test-round1.c: Include nan.h.
61887         (main): Use NaNd instead of NAN.
61888         * modules/round-tests (Files): Add tests/nan.h.
61889
61890         * tests/test-trunc1.c: Include nan.h.
61891         (main): Use NaNd instead of NAN.
61892         * modules/trunc-tests (Files): Add tests/nan.h.
61893
61894         * tests/test-roundf1.c: Include nan.h.
61895         (main): Use NaNf instead of NAN.
61896         * modules/roundf-tests (Files): Add tests/nan.h.
61897
61898         * tests/test-truncf1.c: Include nan.h.
61899         (main): Use NaNf instead of NAN.
61900         * modules/truncf-tests (Files): Add tests/nan.h.
61901
61902         * tests/test-ceilf1.c: Include nan.h.
61903         (main): Use NaNf instead of NAN.
61904         * modules/ceilf-tests (Files): Add tests/nan.h.
61905
61906         * tests/test-floorf1.c: Include nan.h.
61907         (main): Use NaNf instead of NAN.
61908         * modules/floorf-tests (Files): Add tests/nan.h.
61909
61910         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61911         (main): Use NaNf instead of NAN.
61912         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61913
61914         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61915         (main): Use NaNd instead of NAN.
61916         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61917
61918         * tests/test-frexp.c: Include nan.h.
61919         (main): Use NaNd instead of NAN.
61920         * modules/frexp-tests (Files): Add tests/nan.h.
61921
61922         * lib/isnan.c: Don't include <math.h>.
61923         (FUNC): Don't use NAN macro.
61924         * modules/isnand-nolibm (Depends-on): Remove math.
61925         * modules/isnanf-nolibm (Depends-on): Remove math.
61926         * modules/isnanl (Depends-on): Remove math.
61927         * modules/isnanl-nolibm (Depends-on): Remove math.
61928
61929         * tests/nan.h: New file.
61930
61931 2008-04-01  Eric Blake  <ebb9@byu.net>
61932
61933         Fix typos.
61934         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61935         values to be the right type.
61936
61937         For now, cater to gnulib strtod inaccuracies.
61938         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61939         fractional results.  While not as nice from a QoI perspective, it
61940         is a quicker patch than correctly implementing decimal to binary
61941         rounding.
61942
61943 2008-03-31  Eric Blake  <ebb9@byu.net>
61944
61945         Guarantee a definition of NAN.
61946         * lib/math.in.h (NAN): Define if missing.
61947         * tests/test-math.c (main): Test it.
61948         * doc/posix-headers/math.texi (math.h): Document this.
61949         * lib/isnan.c (rpl_isnand): Use it.
61950         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61951         * tests/test-floorf1.c (NaN): Likewise.
61952         * tests/test-frexp.c (NaN): Likewise.
61953         * tests/test-isnand.c (NaN): Likewise.
61954         * tests/test-isnanf.c (NaN): Likewise.
61955         * tests/test-round1.c (NaN): Likewise.
61956         * tests/test-roundf1.c (NaN): Likewise.
61957         * tests/test-snprintf-posix.h (NaN): Likewise.
61958         * tests/test-sprintf-posix.h (NaN): Likewise.
61959         * tests/test-trunc1.c (NaN): Likewise.
61960         * tests/test-truncf1.c (NaN): Likewise.
61961         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61962         * tests/test-vasprintf-posix.c (NaN): Likewise.
61963         * modules/isnand-nolibm (Depends-on): Add math.
61964         * modules/isnanf-nolibm (Depends-on): Likewise.
61965         * modules/isnanl (Depends-on): Likewise.
61966         * modules/isnanl-nolibm (Depends-on): Likewise.
61967         * modules/snprintf-posix-tests (Depends-on): Likewise.
61968         * modules/sprintf-posix-tests (Depends-on): Likewise.
61969         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61970         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61971         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61972         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61973
61974 2008-03-31  Bruno Haible  <bruno@clisp.org>
61975
61976         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61977         * doc/posix-functions/strtod.texi: Likewise.
61978
61979 2008-03-31  Bruno Haible  <bruno@clisp.org>
61980
61981         * tests/test-strtod.c (main): Don't use C99 syntax.
61982
61983 2008-03-31  Bruno Haible  <bruno@clisp.org>
61984
61985         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61986         Reported by Eric Blake.
61987
61988 2008-03-31  Jim Meyering  <meyering@redhat.com>
61989
61990         Don't compare actual signbit return values.
61991         * tests/test-strtod.c (main): Rather, compare only their
61992         zero/non-zero nature.
61993
61994 2008-03-31  Eric Blake  <ebb9@byu.net>
61995
61996         More strtod documentation.
61997         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61998         failures as distinct bugs.
61999
62000 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62003         Problem reported by Erik Benada in
62004         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62005
62006 2008-03-30  Bruno Haible  <bruno@clisp.org>
62007
62008         * tests/test-strtod.c: Add comments about which assertion fails on which
62009         platform.
62010         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62011
62012 2008-03-30  Eric Blake  <ebb9@byu.net>
62013
62014         Test signbit behavior on zeros.
62015         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62016         (test_signbitd, test_signbitl): Likewise.
62017
62018         More strtod touchups.
62019         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62020         sign of negative underflow, for now.  Use .5, not .1.
62021         * doc/posix-functions/strtod.texi (strtod): Mention these
62022         limitations.
62023         Reported by Jim Meyering.
62024
62025 2008-03-30  Bruno Haible  <bruno@clisp.org>
62026
62027         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62028         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62029
62030 2008-03-30  Bruno Haible  <bruno@clisp.org>
62031
62032         Avoid failure when attempting to return empty iconv results on some
62033         platforms.
62034         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62035         allocation, don't report ENOMEM when the resulting string is empty.
62036
62037 2008-03-30  Bruno Haible  <bruno@clisp.org>
62038
62039         Fix buffer overrun.
62040         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62041         Don't consider the width for tmp_length. Check count against tmp_length
62042         before doing the padding. Ensure enough allocation during padding.
62043
62044 2008-03-30  Eric Blake  <ebb9@byu.net>
62045
62046         strtod touchups.
62047         * lib/strtod.c (strtod): Avoid compiler warnings.
62048         Reported by Jim Meyering.
62049
62050 2008-03-30  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62053         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62054         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62055         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62056         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62057         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62058         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62059         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62060
62061         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62062         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62063         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62064         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62065         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62066         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62067         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62068         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62069
62070         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62071         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62072         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62073         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62074         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62075         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62076         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62077         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62078
62079         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62080         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62081
62082         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62083         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62084
62085         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62086         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62087
62088         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62090         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62091
62092         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62094         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62095
62096         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62097         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62098         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62099
62100         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62102         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62103
62104         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62105         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62107         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62108         (Depends-on): Add EOVERFLOW.
62109         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62110         (Depends-on): Add EOVERFLOW.
62111         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62112         (Depends-on): Add EOVERFLOW.
62113         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62114         (Depends-on): Add EOVERFLOW.
62115         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62116         (Depends-on): Add EOVERFLOW.
62117         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62118         (Depends-on): Add EOVERFLOW.
62119         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62120         (Depends-on): Add EOVERFLOW.
62121         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62122         (Depends-on): Add EOVERFLOW.
62123
62124         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62126         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62127
62128         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62130         * modules/snprintf (Depends-on): Add EOVERFLOW.
62131
62132         * lib/poll.c (EOVERFLOW): Remove fallback.
62133         * modules/poll (Depends-on): Add EOVERFLOW.
62134
62135         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62136         * modules/getugroups (Depends-on): Add EOVERFLOW.
62137
62138         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62139         * modules/getdelim (Depends-on): Add EOVERFLOW.
62140
62141         * lib/ftell.c (EOVERFLOW): Remove fallback.
62142         * modules/ftell (Depends-on): Add EOVERFLOW.
62143
62144         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62146         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62147
62148         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62149
62150         * modules/EOVERFLOW-tests: New file.
62151         * tests/test-EOVERFLOW.c: New file.
62152
62153         * modules/EOVERFLOW: New file.
62154         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62155
62156 2008-03-30  Bruno Haible  <bruno@clisp.org>
62157
62158         Fix bug introduced on 2007-06-10.
62159         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62160         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62161
62162 2008-03-30  Bruno Haible  <bruno@clisp.org>
62163
62164         Improve freadseek's efficiency after ungetc.
62165         * lib/freadseek.c: Include freadahead.h.
62166         (freadptrinc): New function, extracted from freadseek.
62167         (freadseek): Use it in a loop. Use freadahead to determine the number
62168         of loop iterations.
62169         * modules/freadseek (Depends-on): Add freadahead.
62170         (configure.ac): Require AC_C_INLINE.
62171
62172 2008-03-30  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/freadseek.c (freadseek): Don't ignore the return value of
62175         freadptr.
62176
62177 2008-03-29  Eric Blake  <ebb9@byu.net>
62178
62179         Add hex float support.
62180         * modules/strtod (Depends-on): Add c-ctype.
62181         (Link): Mention POW_LIB.
62182         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62183         whitespace between 'e' and exponent.
62184         * tests/test-strtod.c (main): Enable hex float tests.
62185         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62186         now provides.
62187
62188         Document various strtod bugs, with some fixes.
62189         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62190         "-0x", "inf", "nan", and hex constants.
62191         * doc/posix-functions/atof.texi (atof): Likewise.
62192         * modules/stdlib (Makefile.am): Support strtod.
62193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62194         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62195         detect additional strtod bugs.
62196         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62197         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62198         bool where appropriate.  Parse 'inf' and 'nan'.
62199         * tests/test-strtod.c: New file.
62200         * modules/strtod (Depends-on): Add stdbool, stdlib.
62201         (configure.ac): Turn on module indicator.
62202         * modules/strtod-tests: New module.
62203
62204 2008-03-29  Eric Blake  <ebb9@byu.net>
62205
62206         Fix ftell on mingw.
62207         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62208         * modules/ftell-tests (Depends-on): Add binary-io.
62209         * modules/ftello-tests (Depends-on): Likewise.
62210         * tests/test-ftell.c (main): Enhance test to cover behavior after
62211         ungetc.  Enforce binary mode.
62212         * tests/test-ftello.c (main): Likewise.
62213
62214         Pass test-freadseek on cygwin.
62215         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62216         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62217         ungetc buffer.
62218
62219         * tests/test-fflush2.c (main): Fix typo.
62220
62221 2008-03-29  Bruno Haible  <bruno@clisp.org>
62222
62223         * tests/test-fflush2.c (main): Temporarily disable the contents of
62224         this test.
62225         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62226         Reported by Eric Blake.
62227
62228 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62229
62230         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62231         (GC_SHA224_DIGEST_SIZE): Add.
62232
62233         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62234         (gc_hash_digest_length): Likewise.
62235         (gc_hash_buffer): Likewise.
62236
62237 2008-03-25  Bruno Haible  <bruno@clisp.org>
62238
62239         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62240         detail which gettext release to use.
62241         Reported by Simon Josefsson.
62242
62243 2008-03-26  Jim Meyering  <meyering@redhat.com>
62244
62245         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62246         * modules/gnumakefile (clean-GNUmakefile): Also, use
62247         test ... && ... || : syntax rather than if-then ... fi.
62248
62249         gnumakefile: Don't double-quote-expand $(VPATH) value.
62250         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62251
62252 2008-03-24  Eric Blake  <ebb9@byu.net>
62253
62254         Alter GNUmakefile to install into top directory.
62255         * modules/maintainer-makefile: Split, and add dependency...
62256         * modules/gnumakefile: to this new module.
62257         * build-aux/GNUmakefile: Move...
62258         * top/GNUmakefile: ...here.
62259         * build-aux/maint.mk: Move...
62260         * top/maint.mk: ...here.
62261         * MODULES.html.sh (Support for maintaining...): Document new
62262         module.
62263
62264 2008-03-23  Bruno Haible  <bruno@clisp.org>
62265
62266         * gnulib-tool: New options --vc-files, --no-vc-files.
62267         (func_usage): Document them.
62268         (vc_files): New variable.
62269         (func_import): Consider vc_files.
62270         (func_create_testdir): Set vc_files to empty.
62271         Suggested by Jim Meyering and Karl Berry.
62272
62273 2008-03-23  Bruno Haible  <bruno@clisp.org>
62274
62275         Fix regex compilation error on HP-UX 11.
62276         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62277         * modules/regex (Files): Add m4/mbstate_t.m4.
62278         Reported by Ton Voon <ton.voon@altinity.com>.
62279
62280 2008-03-23  Bruno Haible  <bruno@clisp.org>
62281
62282         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62283
62284 2008-03-23  Eric Blake  <ebb9@byu.net>
62285             Bruno Haible  <bruno@clisp.org>
62286
62287         Install files from top/ in the destination directory.
62288         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62289         augmentation also for the files from top/.
62290         (func_import, func_create_testdir): Rewrite file names:
62291         top/filename -> filename.
62292
62293 2008-03-23  Bruno Haible  <bruno@clisp.org>
62294
62295         Tweak "gnulib --version" output.
62296         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62297
62298 2008-03-23  Bruno Haible  <bruno@clisp.org>
62299
62300         Tweak "gnulib --version" output.
62301         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62302         rather than contents of ChangeLog, when possible.
62303
62304 2008-03-21  Eric Blake  <ebb9@byu.net>
62305
62306         More --version tweaks.
62307         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62308         date of last ChangeLog entry.
62309
62310 2008-03-21  Jim Meyering  <meyering@redhat.com>
62311
62312         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62313
62314 2008-03-20  Eric Blake  <ebb9@byu.net>
62315
62316         VPATH fix.
62317         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62318
62319 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62320
62321         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62322         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62323
62324 2008-03-20  Eric Blake  <ebb9@byu.net>
62325
62326         Sync GNUmakefile with coreutils.
62327         * build-aux/GNUmakefile (have-Makefile): Rename...
62328         (_have-Makefile): ...to this, for namespace consideration.
62329         (GNUmakefile.cfg): Include, if present.
62330         (_autoreconf): Define a default.
62331         (_is-dist-target): New rule for rebuilds to pick up intra-release
62332         version.
62333         (maint-cfg.mk): Rename...
62334         (cfg.mk): ...to this.
62335
62336 2008-03-18  Jim Meyering  <meyering@redhat.com>
62337
62338         New script and module: mktempd
62339         * MODULES.html.sh (maint+release support): Add mktempd.
62340         * build-aux/mktempd: New file.
62341         * modules/mktempd: New file.
62342
62343 2008-03-15  Jim Meyering  <meyering@redhat.com>
62344
62345         Undo last change.
62346         * lib/sha1.c, lib/md5.c: 63 != ~63.
62347         Reported by Andreas Schwab.
62348
62349         sha1.c, md5.c: Hoist a redundant expression.
62350         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62351         "ctx->buflen" only once, before calling *_process_block.
62352         * lib/md5.c (md5_process_bytes): Likewise.
62353
62354 2008-03-14  Eric Blake  <ebb9@byu.net>
62355
62356         Bump copyright year in files generated by gnulib-tool.
62357         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62358         gnulib-tool, rather than hard-coding it.
62359
62360         Fix 'gnulib-tool --version' output to work with git.
62361         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62362         (startup): ...here.
62363         (func_version): Use it to invoke git-version-gen, rather than
62364         relying on CVS keyword expansion.  Modernize wording.
62365         (cvsdatestamp, last_checkin_date, version): Kill unused
62366         variables.
62367
62368 2008-03-12  Jim Meyering  <meyering@redhat.com>
62369
62370         Recognize optional cast of the argument to free.
62371         * build-aux/useless-if-before-free: Update regexps.
62372
62373         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62374
62375 2008-03-11  Bruno Haible  <bruno@clisp.org>
62376
62377         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62378         by a single package.
62379         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62380         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62381         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62382         Reported by Sam Steingold <sds@gnu.org>.
62383
62384 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62385
62386         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62387         repositories.
62388
62389 2008-03-11  Bruno Haible  <bruno@clisp.org>
62390
62391         Avoid conflicts between local macro definitions.
62392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62393         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62394
62395 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62396             Bruno Haible  <bruno@clisp.org>
62397
62398         Make va_copy work with some version of xlc on AIX 5.1.
62399         * lib/stdarg.in.h: New file.
62400         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62401         On AIX, use a <stdarg.h> file substitute.
62402         * modules/stdarg (Files): Add lib/stdarg.in.h.
62403         (Depends-on): Add include_next.
62404         (Makefile.am): Build a stdarg.h substitute if requested.
62405         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62406
62407 2008-03-10  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62411         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62412
62413 2008-03-10  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/stdlib (Depends-on): Add include_next, remove
62416         absolute-header.
62417
62418 2008-03-09  Bruno Haible  <bruno@clisp.org>
62419
62420         * lib/freadahead.h (freadahead): Document more precisely.
62421         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62422         the sum of both buffer sizes.
62423         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62424         * NEWS: Document the change.
62425
62426 2008-03-09  Bruno Haible  <bruno@clisp.org>
62427
62428         Extend freadptr to return also the buffer size.
62429         * lib/freadptr.h (freadptr): Add sizep argument.
62430         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62431         (freadptr): Add sizep argument. Determine buffer size like freadahead
62432         does.
62433         * tests/test-freadptr.c: Don't include freadahead.h.
62434         (main): Adapt for new calling convention of freadptr.
62435         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62436         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62437         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62438         tests/test-freadptr2.sh.
62439         (Depends): Remove freadahead.
62440         (TESTS): Add test-freadptr2.sh.
62441         (check_PROGRAMS): Add test-freadptr2.
62442
62443 2008-03-09  Bruno Haible  <bruno@clisp.org>
62444
62445         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62446         Report and solution by Simon Josefsson.
62447
62448 2008-03-06  Bruno Haible  <bruno@clisp.org>
62449
62450         Make fflush after ungetc work on BSD platforms.
62451         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62452         * tests/test-fflush2.c: New file.
62453         * tests/test-fflush2.sh: New file.
62454         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62455         tests/test-fflush2.c.
62456         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62457         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62458
62459 2008-03-06  Eric Blake  <ebb9@byu.net>
62460
62461         Likewise for ftello.
62462         * modules/ftello (Dependencies): Add extensions.
62463         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62464
62465 2008-03-06  Bruno Haible  <bruno@clisp.org>
62466
62467         * modules/fseeko (Dependencies): Add extensions.
62468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62469         Needed on glibc systems.
62470
62471 2008-03-06  Bruno Haible  <bruno@clisp.org>
62472
62473         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62474         email address.
62475         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62476
62477 2008-03-06  Bruno Haible  <bruno@clisp.org>
62478
62479         * users.txt: Add libgnupdf.
62480
62481 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62482
62483         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62484         (Header File Substitutes, Function Substitutes,
62485         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62486         (Build robot for gnulib): Fix typo.
62487
62488 2008-03-06  Bruno Haible  <bruno@clisp.org>
62489
62490         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62491         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62492
62493 2008-03-06  Bruno Haible  <bruno@clisp.org>
62494
62495         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62496         * doc/gnulib.texi: Include it.
62497
62498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62499
62500         * modules/func (License): Change license to unlimited; there was
62501         no LGPL parts in the module anyway.
62502
62503 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62504
62505         * modules/__func__: Renamed to modules/func.
62506         * modules/__func__-tests: Renamed to modules/func-tests.
62507         * tests/test-__func__.c: Renamed to tests/test-func.c.
62508         * m4/__func__.m4: Renamed to m4/func.m4.
62509         * doc/gnulib.texi (__func__): Section renamed to func.
62510         Suggested by Eric Blake <ebb9@byu.net>.
62511
62512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62513
62514         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62515         about __func__.  Make example self-contained.  Suggested by Eric
62516         Blake <ebb9@byu.net>.
62517
62518         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62519         Suggested by Eric Blake <ebb9@byu.net>.
62520
62521 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62522
62523         * modules/__func__: New file.
62524         * modules/__func__-tests: New file.
62525         * tests/test-__func__.c: New file.
62526         * m4/__func__.m4: New file.
62527         * doc/gnulib.texi (__func__): Document __func__ module.
62528
62529 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62530
62531         * modules/byteswap (License): Re-license as LGPLv2+.
62532
62533 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62534
62535         * doc/Makefile: Add pdf target.
62536
62537 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62538
62539         * modules/inline (License): Use 'unlimited', since there are only
62540         *.m4 files in this module.
62541
62542 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62543             Bruno Haible  <bruno@clisp.org>
62544
62545         Add support for HP C 7.1 on OpenVMS 8.3.
62546         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62547
62548 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62549
62550         Update VMS specifics.
62551         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62552
62553 2008-03-02  Jim Meyering  <meyering@redhat.com>
62554
62555         Remove the last dependency on the "free" module.
62556         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62557         Reported by Bob Proulx.
62558
62559         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62560
62561         Remove useless "if" tests before free.  Deprecate "free" module.
62562         * doc/posix-functions/free.texi: Mention that this
62563         module is no longer useful.
62564         * modules/free (Notice): Say this module is obsolete.
62565         * modules/readutmp (Depends-on): Remove free.
62566         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62567         * lib/putenv.c (putenv): Likewise.
62568         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62569         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62570         * tests/test-c-strcasestr.c (main): Likewise.
62571         * tests/test-c-strstr.c (main): Likewise.
62572         * tests/test-mbscasestr1.c (main): Likewise.
62573         * tests/test-mbscasestr2.c (main): Likewise.
62574         * tests/test-mbsstr1.c (main): Likewise.
62575         * tests/test-mbsstr2.c (main): Likewise.
62576         * tests/test-memmem.c (main): Likewise.
62577         * tests/test-strcasestr.c (main): Likewise.
62578         * tests/test-striconv.c (main): Likewise.
62579         * tests/test-striconveh.c (main): Likewise.
62580         * tests/test-striconveha.c (main): Likewise.
62581         * tests/test-strstr.c (main): Likewise.
62582
62583         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62584
62585         bootstrap: sync from coreutils again
62586         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62587
62588 2008-03-01  Jim Meyering  <meyering@redhat.com>
62589
62590         bootstrap: sync from coreutils
62591         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62592         also when the target doesn't exist.
62593
62594 2008-03-01  Eric Blake  <ebb9@byu.net>
62595
62596         Fix bugs in last patch.
62597         * lib/memchr2.c (memchr2): Fix typo.
62598         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62599         extension.
62600         Reported by Bruce Korb.
62601
62602         New module 'memchr2'.
62603         * modules/memchr2: New file.
62604         * modules/memchr2-tests: Likewise.
62605         * lib/memchr2.h: Likewise.
62606         * lib/memchr2.c: Likewise, based on memchr.c.
62607         * tests/test-memchr2.c: New test.
62608         * MODULES.html.sh (String handling): Add memchr2.
62609
62610 2008-02-29  Bruno Haible  <bruno@clisp.org>
62611
62612         * modules/freadseek-tests: New file.
62613         * tests/test-freadseek.sh: New file.
62614         * tests/test-freadseek.c: New file.
62615
62616         New module 'freadseek'.
62617         * modules/freadseek: New file.
62618         * lib/freadseek.h: New file.
62619         * lib/freadseek.c: New file.
62620         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62621
62622 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62623
62624         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62625         wydawca.
62626
62627         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62628         program_invocation_name and program_invocation_short_name are
62629         present.
62630
62631 2008-02-28  Bruno Haible  <bruno@clisp.org>
62632
62633         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62634         * tests/test-freadptr.sh: Also test non-seekable stdin.
62635
62636 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62637
62638         * build-aux/bootstrap (source_base, m4_base)
62639         (doc_base, tests_base): New variables.
62640         (gnulib_tool_options): Do not hardcode base directories, use
62641         the above variables instead.
62642
62643 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62644
62645         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62646
62647 2008-02-28  Bruno Haible  <bruno@clisp.org>
62648
62649         * modules/freadptr-tests: New file.
62650         * tests/test-freadptr.sh: New file.
62651         * tests/test-freadptr.c: New file.
62652
62653         New module 'freadptr'.
62654         * modules/freadptr: New file.
62655         * lib/freadptr.h: New file.
62656         * lib/freadptr.c: New file.
62657         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62658
62659 2008-02-26  Karl Berry  <karl@freefriends.org>
62660
62661         Sync from Libtool:
62662         * libltdl/argz.c (argz_add, argz_count): New functions.
62663         * libltdl/argz.in.h: Declare them.
62664         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62665
62666 2008-02-22  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62669         is a pointer type.  Needed for HP-UX 10.
62670         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62671         * doc/posix-functions/gmtime_r.texi: Likewise.
62672         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62673
62674 2008-02-24  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/environ-tests: New file.
62677         * tests/test-environ.c: New file.
62678
62679         New module 'environ'.
62680         * modules/environ: New file.
62681         * lib/unistd.in.h (environ): New declaration.
62682         * m4/environ.m4: New file.
62683         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62684         after use.
62685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62686         HAVE_DECL_ENVIRON.
62687         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62688         HAVE_DECL_ENVIRON.
62689         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62690         wrong claim that 'environ' is missing on some systems.
62691         * modules/execute (Depends-on): Add environ.
62692         * lib/execute.c (environ): Remove fallback declaration.
62693         * modules/pipe (Depends-on): Add environ.
62694         * lib/pipe.c (environ): Remove fallback declaration.
62695         * modules/setenv (Depends-on): Add environ.
62696         * lib/setenv.c (environ): Remove fallback declaration.
62697         * modules/unsetenv (Depends-on): Add environ.
62698         * lib/unsetenv.c (environ): Remove fallback declaration.
62699         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62700         m4/environ.m4.
62701         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62702         (gl_PREREQ_UNSETENV): Likewise.
62703
62704 2008-02-24  Bruno Haible  <bruno@clisp.org>
62705
62706         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62707
62708 2008-02-20  Bob Proulx  <bob@proulx.com>
62709
62710         Enable use of older two part flavor 'git describe'.
62711         * build-aux/git-version-gen: If using the older two part flavor of
62712         git version then recreate the third part now present in the
62713         newer three part flavor of git describe.
62714
62715 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62716
62717         * lib/fts.c (fts_build): Typo correction to comment.
62718
62719 2008-02-17  Bruno Haible  <bruno@clisp.org>
62720
62721         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62722         generating no-op conflicts.
62723
62724 2008-02-17  Bruno Haible  <bruno@clisp.org>
62725
62726         Speed up by 10%.
62727         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62728         result_entries, rather than an index-based loop.
62729
62730 2008-02-17  Bruno Haible  <bruno@clisp.org>
62731
62732         Speed up by 25%.
62733         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62734         'hashcode_cached'.
62735         (entry_create): New function.
62736         (entry_hashcode): Use the cached hashcode if possible.
62737         (read_changelog_file, try_split_merged_entry): Use entry_create.
62738
62739 2008-02-17  Bruno Haible  <bruno@clisp.org>
62740
62741         Speed up from O(n^2) to O(n) for long ChangeLog files.
62742         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62743         (read_changelog_file): Change implementation of entries_reversed list
62744         to rbtreehash.
62745         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62746
62747 2008-02-17  Bruno Haible  <bruno@clisp.org>
62748
62749         New option --split-merged-entry.
62750         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62751         (find_paragraph_end, try_split_merged_entry): New functions.
62752         (long_options): Add option --split-merged-entry.
62753         (usage): Document option --split-merged-entry.
62754         (main): Implement option --split-merged-entry.
62755         Reported by Eric Blake.
62756
62757 2008-02-17  Bruno Haible  <bruno@clisp.org>
62758
62759         * lib/git-merge-changelog.c: Include c-strstr.h.
62760         (main): Support the "git pull --rebase" situation.
62761         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62762         Reported by Eric Blake.
62763
62764 2008-02-16  Eric Blake  <ebb9@byu.net>
62765
62766         Avoid doubling \ in common case of "c-maybe" quoting style.
62767         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62768         eliding outer quotes.
62769         * lib/quotearg.h: Document this.
62770         * tests/test-quotearg.c (result_strings, inputs, results_g)
62771         (flag_results, locale_results): Test it by adding a new string to
62772         each test group.
62773         (compare_strings): Test new string.
62774
62775 2008-02-13  Eric Blake  <ebb9@byu.net>
62776
62777         Avoid trigraph quoting in default output.
62778         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62779         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62780         unless explicitly requested.
62781         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62782
62783 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62784
62785         Don't rely on signed integer overflowing to negative value.
62786         * lib/getugroups.c (getugroups): Include <limits.h>.
62787         Instead, compare against INT_MAX, and increment only if the test passes.
62788
62789 2008-02-13  Jim Meyering  <meyering@redhat.com>
62790         and Eric Blake  <ebb9@byu.net>
62791
62792         Avoid shadowing warning and compile errors on Linux.
62793         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62794         forwarding macros on Linux.
62795         (dcgettext): Define a stub, for Linux.
62796         (results_g, main): Avoid warnings.
62797
62798 2008-02-12  Eric Blake  <ebb9@byu.net>
62799
62800         Silence warning in last patch.
62801         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62802
62803         Quotearg part 4: add tests, fix c-maybe colon quoting.
62804         * lib/quotearg.h: Improve documentation.
62805         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62806         escapes when adding outer quotes.  When quoting trigraphs, use
62807         valid C notation.  When quoting NUL, omit extra characters if next
62808         character is not digit.  Alter prototype.
62809         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62810         callers.
62811         * modules/quotearg-tests: New module.
62812         * tests/test-quotearg.c: New test.
62813
62814 2008-02-07  Eric Blake  <ebb9@byu.net>
62815
62816         Quotearg part 3: add flag to control outer quote elision.
62817         * lib/quotearg.h (c_maybe_quoting_style): New style.
62818         (enum quoting_flags): Better documentation of flags.
62819         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62820         c-maybe style.
62821         (quotearg_buffer_restyled): Handle new flag to elide outer
62822         quotes.
62823
62824         Quotearg part 2: add flag that can control NUL elision.
62825         * lib/quotearg.h (set_quoting_flags): New prototype.
62826         * lib/quotearg.c (struct quoting_options): Add flag field.
62827         (set_quoting_flags): New function.
62828         (quotearg_buffer_restyled): Add flags parameter.
62829         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62830         (quotearg_n_options): Set the flag, since length cannot be
62831         returned.
62832         (quoting_options_from_style): Default flags correctly.
62833
62834         Quotearg part 1: more wrappers, restore quotearg_char state.
62835         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62836         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62837         (quotearg_colon_mem): New wrappers.
62838         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62839         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62840         functions.
62841         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62842         (quotearg_colon_mem): New functions.
62843
62844 2008-02-11  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62847         library in the current directory: it does not work with parallel make.
62848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62849
62850 2008-02-11  Bruno Haible  <bruno@clisp.org>
62851
62852         * .gitattributes: New file.
62853
62854 2008-02-11  Jim Meyering  <meyering@redhat.com>
62855
62856         useless-if-before-free: Fix reversed exit values.
62857         * build-aux/useless-if-before-free: Use correct values
62858         for EXIT_MATCH and EXIT_NO_MATCH.
62859
62860         * build-aux/useless-if-before-free: Close stdout carefully.
62861
62862 2008-02-10  Bruno Haible  <bruno@clisp.org>
62863
62864         New module 'git-merge-changelog'.
62865         * modules/git-merge-changelog: New file.
62866         * lib/git-merge-changelog.c: New file.
62867
62868 2008-02-10  Jim Meyering  <meyering@redhat.com>
62869
62870         useless-if-before-free: New option: --list (-l).
62871
62872         useless-if-before-free: Don't exit immediately upon open failure.
62873         * build-aux/useless-if-before-free: Exit 2 for errors.
62874         Upon failure to open a file, don't exit immediately.
62875         Rather, just warn and continue with any remaining files.
62876
62877 2008-02-10  Bruno Haible  <bruno@clisp.org>
62878
62879         New abstract list operation 'node_set_value'.
62880         * lib/gl_list.h (gl_list_node_set_value): New function.
62881         (struct gl_list_implementation): New field node_set_value.
62882         * lib/gl_list.c (gl_list_node_set_value): New function.
62883         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62884         (gl_array_list_implementation): Update.
62885         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62886         (gl_carray_list_implementation): Update.
62887         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62888         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62889         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62890         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62891         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62892         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62893         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62894         Update.
62895         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62896         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62897         (gl_sublist_list_implementation): Update.
62898
62899 2008-02-10  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62902         Needed when ELEMENT is #defined to 'some_type *'.
62903
62904 2008-02-10  Jim Meyering  <meyering@redhat.com>
62905
62906         New script and module: useless-if-before-free
62907         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62908         * build-aux/useless-if-before-free: New file.
62909         * modules/useless-if-before-free: New file.
62910
62911         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62912
62913         xstrtol_error: Fix typo.
62914         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62915         s/exit_failure/exit_status/.
62916
62917 2008-02-09  Jim Meyering  <meyering@redhat.com>
62918
62919         New script and module: gitlog-to-changelog
62920         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62921         * modules/gitlog-to-changelog: New file.
62922         * build-aux/gitlog-to-changelog: New file.
62923
62924 2008-02-08  Jim Meyering  <meyering@redhat.com>
62925
62926         Avoid two "parameter unused" warnings.
62927         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62928         Mark "st" as used.
62929
62930         Use "git COMMAND", not "git-COMMAND".
62931         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62932         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62933         * build-aux/git-version-gen: Use "git status", not "git-status".
62934
62935 2008-02-07  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62938         Avoids a crash on Windows Vista.
62939         Reported by Adam Strzelecki <ono@java.pl> via
62940         Simon Josefsson <simon@josefsson.org>.
62941
62942 2008-02-06  Bruno Haible  <bruno@clisp.org>
62943
62944         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62945         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62946         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62948         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62949         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62950         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62951         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62956         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62959         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62960         left-adjust flag.
62961         * tests/test-snprintf-posix.h (test_function): Likewise.
62962         * tests/test-sprintf-posix.h (test_function): Likewise.
62963         * tests/test-vasprintf-posix.c (test_function): Likewise.
62964         * doc/posix-functions/fprintf.texi: Update.
62965         * doc/posix-functions/printf.texi: Update.
62966         * doc/posix-functions/snprintf.texi: Update.
62967         * doc/posix-functions/sprintf.texi: Update.
62968         * doc/posix-functions/vfprintf.texi: Update.
62969         * doc/posix-functions/vprintf.texi: Update.
62970         * doc/posix-functions/vsnprintf.texi: Update.
62971         * doc/posix-functions/vsprintf.texi: Update.
62972         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62973
62974 2008-02-06  Bruno Haible  <bruno@clisp.org>
62975
62976         Fix bug introduced on 2008-01-26.
62977         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62978
62979 2008-02-06  Bruno Haible  <bruno@clisp.org>
62980
62981         Fix bug introduced on 2007-06-10.
62982         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62983         !NEED_PRINTF_FLAG_ZERO.
62984
62985 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62986
62987         getloadavg: use libperfstat on AIX5
62988         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62989
62990 2008-02-03  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/diffseq.h: Add comments about required #includes.
62993         Reported by Michael Biggs <gnulib@doubleplum.net>.
62994
62995 2008-02-01  Bruno Haible  <bruno@clisp.org>
62996
62997         * users.txt: Add gnuit.
62998
62999 2008-01-31  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/md4.c (set_uint32): Mark as inline.
63002         * lib/md5.c (set_uint32): Likewise.
63003         * lib/sha1.c (set_uint32): Likewise.
63004         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63005         * m4/md5.m4 (gl_MD5): Likewise.
63006         * m4/sha1.m4 (gl_SHA1): Likewise.
63007
63008 2008-01-31  Jim Meyering  <meyering@redhat.com>
63009
63010         Use "sizeof VAR", rather than a literal "4".
63011         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63012         * lib/md4.c (md4_read_ctx): Likewise.
63013         * lib/sha1.c (sha1_read_ctx): Likewise.
63014
63015 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63016
63017         * tests/test-sha1.c: New file, based on test-md5.c.
63018
63019         * modules/crypto/sha1-tests: New file.
63020
63021 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63022
63023         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63024
63025 2008-01-31  Jim Meyering  <meyering@redhat.com>
63026
63027         Prefer "sizeof v" over the equivalent "4".
63028         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63029         * lib/md5.c (set_uint32): Likewise.
63030         * lib/sha1.c (set_uint32): Likewise.
63031
63032 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63033
63034         * lib/sha1.c (set_uint32): Mark function as static.
63035
63036 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63037
63038         md2: clarify comments to say that alignment is not required.
63039         * lib/md2.h: Remove warning about alignment in comment.
63040         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63041         never been required.
63042
63043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63044
63045         md4: adapt alignment constraint fix from sha1.
63046         * lib/md4.c (set_uint32): New function, from sha1.c
63047         (md4_read_ctx): Use it.
63048         (md4_finish_ctx): Doc fix.
63049         * lib/md4.h: Doc fix.
63050
63051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63052
63053         md5: adapt alignment constraint fix from sha1.
63054         * lib/md5.c (set_uint32): New function, from sha1.c
63055         (md5_read_ctx): Use it.
63056         (md5_finish_ctx): Doc fix.
63057         * lib/md5.h: Doc fix.
63058
63059 2008-01-30  Peter Palfrader  <weasel@debian.org>
63060
63061         sha1: remove the result buffer alignment constraint
63062         * lib/sha1.c (set_uint32): New function.
63063         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63064         constraint.
63065         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63066         * lib/sha1.h: Likewise.
63067
63068 2008-01-30  Andreas Schwab  <schwab@suse.de>
63069             Bruno Haible  <bruno@clisp.org>
63070
63071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63072         correct definition of LDBL_MIN_EXP.
63073
63074 2008-01-30  Karl Berry  <karl@gnu.org>
63075
63076         * config/srclist-update: try to preserve x bit on updates.
63077         * config/srclistvars.sh: update for karl.
63078
63079 2008-01-29  Jim Meyering  <meyering@redhat.com>
63080
63081         vasnprintf.c: Avoid warning about unused label
63082         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63083         "overflow" label definition and associated code with the
63084         same cpp condition that guards the sole use of that label.
63085
63086 2008-01-26  Bruno Haible  <bruno@clisp.org>
63087
63088         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63089         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63090         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63091         * lib/isnanl-nolibm.h (isnanl): Likewise.
63092         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63093
63094 2008-01-26  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63097         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63098
63099 2008-01-26  Bruno Haible  <bruno@clisp.org>
63100
63101         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63102         GCC >= 4.0 built-in.
63103         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63104
63105 2008-01-26  Bruno Haible  <bruno@clisp.org>
63106
63107         Rename isnan, applicable to 'double' only, to isnand.
63108         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63109         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63110         (configure.ac): Update.
63111         (Include): Replace "isnan.h" with "isnand.h".
63112         * m4/isnand.m4: Renamed from m4/isnan.m4.
63113         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63114         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63115         instead of isnan.c.
63116         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63117         instead of HAVE_ISNAN_IN_LIBC.
63118         (isnand): Renamed from isnan.
63119         * lib/isnand.c: New file.
63120         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63121         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63122         (Makefile.am): Update.
63123         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63124         Include isnand.h instead of isnan.h.
63125         (main): Test isnand instead of isnan.
63126         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63127         isnan-nolibm.
63128         * modules/frexp (Depends-on): Likewise.
63129         * modules/frexp-tests (Depends-on): Likewise.
63130         * modules/frexp-nolibm (Depends-on): Likewise.
63131         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63132         * modules/isfinite (Depends-on): Likewise.
63133         * modules/round-tests (Depends-on): Likewise.
63134         * modules/signbit (Depends-on): Likewise.
63135         * modules/signbit-tests (Depends-on): Likewise.
63136         * modules/snprintf-posix (Depends-on): Likewise.
63137         * modules/sprintf-posix (Depends-on): Likewise.
63138         * modules/trunc-tests (Depends-on): Likewise.
63139         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63140         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63141         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63142         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63143         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63144         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63145         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63146         * modules/vasnprintf-posix (Depends-on): Likewise.
63147         * modules/vasprintf-posix (Depends-on): Likewise.
63148         * modules/vfprintf-posix (Depends-on): Likewise.
63149         * modules/vsnprintf-posix (Depends-on): Likewise.
63150         * modules/vsprintf-posix (Depends-on): Likewise.
63151         * lib/frexp.c: Include isnand.h instead of isnan.h.
63152         (ISNAN): Set to isnand instead of isnan.
63153         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63154         (gl_isfinited): Use isnand instead of isnan.
63155         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63156         (gl_signbitd): Use isnand instead of isnan.
63157         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63158         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63159         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63160         (main): Use isnand instead of isnan.
63161         * tests/test-round1.c: Include isnand.h.
63162         (main): Use isnand instead of isnan.
63163         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63164         (ISNAN): Set to isnand instead of isnan.
63165         * tests/test-trunc1.c: Include isnand.h.
63166         (main): Use isnand instead of isnan.
63167         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63168         (equal): Use isnand instead of isnan.
63169         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63170         isnand-nolibm.
63171         * NEWS: Mention the change.
63172
63173 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63174             Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63177         the GCC builtins for signbits are present and set
63178         REPLACE_SIGNBIT_USING_GCC if so.
63179         * lib/math.in.h (signbit): Define using GCC builtins if
63180         REPLACE_SIGNBIT_USING_GCC is set.
63181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63182         REPLACE_SIGNBIT_USING_GCC.
63183         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63184
63185 2008-01-25  Jim Meyering  <meyering@redhat.com>
63186
63187         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63188         * lib/poll.c: Include <config.h>, not "config.h".
63189         * tests/test-getaddrinfo.c: Likewise.
63190
63191 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63192
63193         * modules/sockets-tests: New file.
63194
63195 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63196
63197         * modules/sockets: New module, can be used to call WSA_Startup and
63198         WSA_Cleanup when needed.
63199
63200         * lib/sockets.h, lib/sockets.c: New files.
63201
63202         * m4/sockets.m4: New file.
63203
63204         * tests/test-sockets.c: New file.
63205
63206 2008-01-19  Bruno Haible  <bruno@clisp.org>
63207
63208         * doc/posix-headers: Renamed from doc/headers.
63209         * doc/posix-functions: Renamed from doc/functions.
63210         * doc/gnulib.texi: Update.
63211
63212 2008-01-19  Bruno Haible  <bruno@clisp.org>
63213
63214         * doc/glibc-functions/strcasestr.texi: Include contents of
63215         doc/functions/strcasestr.texi, fixing the list of platforms.
63216         * doc/functions/strcasestr.texi: Remove file.
63217
63218 2008-01-19  Bruno Haible  <bruno@clisp.org>
63219
63220         * doc/glibc-functions/memmem.texi: Include contents of
63221         doc/functions/memmem.texi.
63222         * doc/functions/memmem.texi: Remove file.
63223
63224 2008-01-18  Bruno Haible  <bruno@clisp.org>
63225
63226         * doc/glibc-functions/*.texi: New files.
63227         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63228         to use the new files.
63229
63230 2008-01-17  Bruno Haible  <bruno@clisp.org>
63231
63232         * tests/test-gethostname.c (main): Fix printf statement.
63233
63234 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63235
63236         * modules/gethostname-tests: New file.
63237
63238         * tests/test-gethostname.c: New file.
63239
63240 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63241
63242         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63243         used by the UNAME case.  Reported by Bruno Haible
63244         <bruno@clisp.org>.
63245
63246 2008-01-17  Eric Blake  <ebb9@byu.net>
63247
63248         Convert c-strcasestr to be more efficient.
63249         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63250         (Depends-on): Add c-strcase, remove malloca, strnlen.
63251         * tests/test-c-strcasestr.c (main): Enhance test.
63252         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63253
63254 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63255
63256         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63257         Use it in creating po/Makevars.
63258
63259 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63260
63261         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63262         Applications that requires it should initialize libgcrypt
63263         manually.
63264
63265 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63266
63267         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63268
63269 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         Fix problem with getdate on mingw32 reported by Simon Josefsson
63272         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63273         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63274         tzname", when deciding whether to declare tzname.
63275         * lib/strftime.c (tzname): Likewise.
63276
63277 2008-01-15  Bruno Haible  <bruno@clisp.org>
63278
63279         Work around a MacOS X 10.5 bug in frexpl().
63280         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63281         * doc/functions/frexpl.texi: Document the bug.
63282         Reported by Elias Pipping <pipping@gentoo.org>.
63283
63284 2008-01-14  Eric Blake  <ebb9@byu.net>
63285
63286         Touch up previous patch.
63287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63288         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63289
63290         Convert strcasestr module to use Two-Way algorithm.
63291         * modules/strcasestr-simple: New module, based on the old
63292         strcasestr, but with Two-Way rather than KMP.
63293         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63294         * lib/string.in.h (rpl_strcasestr): Declare.
63295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63296         performance.
63297         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63298         * modules/string (Makefile.am): Support strcasestr.
63299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63300         * modules/strcasestr-tests (Depends-on): Check for alarm.
63301         * tests/test-strcasestr.c: Augment test.
63302         * lib/str-two-way.h: Clean up stray macro.
63303         * NEWS: Document new module.
63304         * MODULES.html.sh (string handling): Likewise.
63305         * doc/functions/strcasestr.texi: New file.
63306         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63307         here, since it is not a POSIX function.
63308
63309 2008-01-14  Colin Watson  <cjwatson@debian.org>
63310             Bruno Haible  <bruno@clisp.org>
63311
63312         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63313         works fine; if not, set REPLACE_STRSIGNAL.
63314         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63316         REPLACE_STRSIGNAL.
63317         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63318         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63319         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63320
63321 2008-01-14  Bruno Haible  <bruno@clisp.org>
63322
63323         * modules/strsignal (Include): Change to <string.h>.
63324
63325 2008-01-14  Colin Watson  <cjwatson@debian.org>
63326
63327         * modules/argp (Notice): Add a notice recommending to change
63328         XGETTEXT_OPTIONS.
63329         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63330
63331 2008-01-13  Colin Watson  <cjwatson@debian.org>
63332
63333         * modules/strsignal-tests: New file.
63334         * tests/test-strsignal.c: New file.
63335
63336         * lib/strsignal.c: New file, from glibc with modifications.
63337         * lib/siglist.h: New file, from glibc with modifications.
63338         * lib/string.in.h (strsignal): New declaration.
63339         * m4/strsignal.m4: New file.
63340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63341         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63342         * modules/strsignal: New file.
63343         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63344         HAVE_DECL_STRSIGNAL.
63345
63346 2008-01-13  Bruno Haible  <bruno@clisp.org>
63347
63348         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63349         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63350         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63351         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63352
63353 2008-01-13  Bruno Haible  <bruno@clisp.org>
63354
63355         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63356         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63357         * lib/argp.h (__attribute__): Likewise.
63358         * lib/c-stack.c (__attribute__): Likewise.
63359         * lib/error.h (__attribute__): Likewise.
63360         * lib/fts.c (__attribute__): Likewise.
63361         * lib/openat.h (__attribute__): Likewise.
63362         * lib/stdio.in.h (__attribute__): Likewise.
63363         * lib/string.in.h (__attribute__): Likewise.
63364         * lib/utimens.c (__attribute__): Likewise.
63365         * lib/vasnprintf.h (__attribute__): Likewise.
63366         * lib/xalloc.h (__attribute__): Likewise.
63367         * lib/xprintf.h (__attribute__): Likewise.
63368         * lib/xstrtol.h (__attribute__): Likewise.
63369         * lib/xvasprintf.h (__attribute__): Likewise.
63370
63371 2008-01-12  Bruno Haible  <bruno@clisp.org>
63372
63373         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63374         * doc/glibc-headers/a.out.texi: New file.
63375         * doc/glibc-headers/aliases.texi: New file.
63376         * doc/glibc-headers/alloca.texi: New file.
63377         * doc/glibc-headers/ar.texi: New file.
63378         * doc/glibc-headers/argp.texi: New file.
63379         * doc/glibc-headers/argz.texi: New file.
63380         * doc/glibc-headers/byteswap.texi: New file.
63381         * doc/glibc-headers/crypt.texi: New file.
63382         * doc/glibc-headers/endian.texi: New file.
63383         * doc/glibc-headers/envz.texi: New file.
63384         * doc/glibc-headers/err.texi: New file.
63385         * doc/glibc-headers/error.texi: New file.
63386         * doc/glibc-headers/execinfo.texi: New file.
63387         * doc/glibc-headers/fpu_control.texi: New file.
63388         * doc/glibc-headers/fstab.texi: New file.
63389         * doc/glibc-headers/fts.texi: New file.
63390         * doc/glibc-headers/getopt.texi: New file.
63391         * doc/glibc-headers/ieee754.texi: New file.
63392         * doc/glibc-headers/ifaddrs.texi: New file.
63393         * doc/glibc-headers/libintl.texi: New file.
63394         * doc/glibc-headers/mcheck.texi: New file.
63395         * doc/glibc-headers/mntent.texi: New file.
63396         * doc/glibc-headers/obstack.texi: New file.
63397         * doc/glibc-headers/paths.texi: New file.
63398         * doc/glibc-headers/printf.texi: New file.
63399         * doc/glibc-headers/pty.texi: New file.
63400         * doc/glibc-headers/resolv.texi: New file.
63401         * doc/glibc-headers/shadow.texi: New file.
63402         * doc/glibc-headers/sysexits.texi: New file.
63403         * doc/glibc-headers/ttyent.texi: New file.
63404
63405 2008-01-12  Jim Meyering  <meyering@redhat.com>
63406
63407         announce-gen: emit Gnulib's git-based version string.
63408         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63409         New option --gnulib-version=V, where V is expected to be
63410         the output of running git describe in the gnulib directory.
63411         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63412         not useful, and plan to stop publishing an xdelta file with each
63413         coreutils release.
63414
63415         * build-aux/announce-gen: Also check for lzma-compressed files.
63416
63417 2008-01-11  Bruno Haible  <bruno@clisp.org>
63418
63419         * tests/test-memmem.c (main): Increase maximum allowed time.
63420         * tests/test-strstr.c (main): Likewise.
63421
63422 2008-01-11  Bruno Haible  <bruno@clisp.org>
63423
63424         * doc/functions/memmem.texi: Add more precisions about platforms.
63425         * doc/functions/strstr.texi: Likewise.
63426
63427 2008-01-10  Eric Blake  <ebb9@byu.net>
63428
63429         * m4/strstr.m4: Delete cruft from copy-n-paste.
63430         Reported by Bruno Haible.
63431
63432 2008-01-10  Bruno Haible  <bruno@clisp.org>
63433
63434         Make c-strstr rely on strstr.
63435         * lib/c-strstr.c: Don't include str-kmp.h.
63436         (c_strstr): Define in terms of strstr.
63437         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63438         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63439
63440 2008-01-10  Bruno Haible  <bruno@clisp.org>
63441
63442         * doc/gnulib.texi (String Functions in C Locale): New section.
63443         * doc/c-ctype.texi: New file.
63444         * doc/c-strcase.texi: New file.
63445         * doc/c-strcaseeq.texi: New file.
63446         * doc/c-strcasestr.texi: New file.
63447         * doc/c-strstr.texi: New file.
63448         * doc/c-strtod.texi: New file.
63449         * doc/c-strtold.texi: New file.
63450
63451 2008-01-10  Eric Blake  <ebb9@byu.net>
63452
63453         * lib/relocatable.h: Fix a comment.
63454
63455 2008-01-10  Eric Blake  <ebb9@byu.net>
63456
63457         Share two-way algorithm.
63458         * lib/str-two-way.h: New file, merged from...
63459         * lib/memmem.c: ...here...
63460         * lib/strstr.c: ...and here.
63461         * modules/memmem (Files): Use it.
63462         * modules/strstr (Files): Likewise.
63463
63464         Avoid quadratic strstr implementations.
63465         * lib/strstr.c: New file.
63466         * m4/strstr.m4: Likewise.
63467         * modules/strstr: Likewise.
63468         * modules/strstr-tests: Likewise.
63469         * tests/test-strstr.c: Likewise.
63470         * lib/string.in.h (rpl_strstr): Declare.
63471         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63473         * modules/string (Makefile.am): Likewise.
63474         * MODULES.html.sh (string handling): Mention new module.
63475         * doc/functions/strstr.texi (strstr): Document the bug.
63476
63477 2008-01-10  Bruno Haible  <bruno@clisp.org>
63478
63479         * lib/relocatable.h (relocate): State whether result is freshly
63480         allocated or not.
63481         * lib/relocatable.c (relocate): Return a freshly allocated string
63482         instead of a pointer to a privately held string.
63483         Reported by Sylvain Beucler <beuc@gnu.org>.
63484
63485 2008-01-10  Colin Watson  <cjwatson@debian.org>
63486
63487         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63488         s/S_ISNLK/S_ISLNK/.
63489
63490 2008-01-09  Bruno Haible  <bruno@clisp.org>
63491
63492         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63493         and other files.
63494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63495         if it's only a guess.
63496         * modules/memmem: Simplify by depending on memmem-simple.
63497
63498 2008-01-09  Bruno Haible  <bruno@clisp.org>
63499
63500         Work around OpenBSD 4.0 tdelete() bug.
63501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63502         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63503         macros and don't redefine the enum values.
63504         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63505         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63506         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63507
63508 2008-01-09  Bruno Haible  <bruno@clisp.org>
63509
63510         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63511         (main): Don't perform the tests if setlocale did not install a UTF-8
63512         locale. Needed on OpenBSD 4.0.
63513         * modules/wcwidth-tests (Depends-on): Add localcharset.
63514
63515 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63518         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63519         * NEWS: announce this.
63520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63521
63522 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63523         and Eric Blake  <ebb9@byu.net>
63524
63525         Add memmem-simple module.
63526         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63527         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63528         * modules/memmem-simple: New file.
63529         * modules/memmem (Description): Tweak.
63530         * MODULES.html.sh (string handling): Mention new module.
63531         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63532         addressed by memmem-simple.
63533         * NEWS: Document the difference.
63534
63535 2008-01-09  Eric Blake  <ebb9@byu.net>
63536
63537         Give gcc some memmem optimization hints.
63538         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63539         (strcasestr): Declare as pure.
63540         * modules/memmem (Maintainer): Claim my implementation.
63541
63542 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63543
63544         Support AIX 6.1 and higher.
63545         * build-aux/config.libpath: Likewise.
63546         * build-aux/config.rpath: Likewise.
63547
63548 2008-01-08  Jim Meyering  <meyering@redhat.com>
63549             Bruno Haible  <bruno@clisp.org>
63550
63551         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63552         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63553         Reported by Peter Fales in
63554         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63555
63556 2008-01-08  Bruno Haible  <bruno@clisp.org>
63557
63558         * modules/unictype/category-of (Depends-on): Add
63559         unictype/category-none.
63560         * modules/unictype/category-and-tests (Depends-on): Add
63561         unictype/category-{L,N,Lu,Nd}.
63562         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63563         * modules/unictype/category-or-tests (Depends-on): Add
63564         unictype/category-{L,N}.
63565         * modules/unictype/category-name-tests (Depends-on): Add
63566         unictype/category-{Z,Nl}.
63567         Reported by Simon Josefsson.
63568
63569 2008-01-08  Bruno Haible  <bruno@clisp.org>
63570
63571         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63572         convention better.
63573         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63574         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63575         Reported by Peter Miller <millerp@canb.auug.org.au>.
63576
63577 2008-01-08  Eric Blake  <ebb9@byu.net>
63578
63579         Rewrite memmem to guarantee linear complexity without malloc.
63580         * lib/memmem.c (memmem): Use Two-Way rather than
63581         Knuth-Morris-Pratt, to allow O(1) space usage.
63582         (critical_factorization, two_way_short_needle)
63583         (two_way_long_needle): New functions.
63584         (knuth_morris_pratt): Delete.
63585         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63586         Add stdint.
63587         * tests/test-memmem.c (main): Add tests for periodic needle and
63588         sublinear performance.
63589         * doc/functions/memmem.texi (memmem): Document other deficiencies
63590         in cygwin and older glibc.
63591
63592 2008-01-08  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63595         augmentation.
63596
63597 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63598
63599         Add a configure time option: --disable-acl.
63600         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63601         AC_ARG_ENABLE(acl).
63602
63603 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63604
63605         * tests/test-localename.c: Don't include obsolete "setenv.h".
63606
63607         * modules/localename-tests (Depends-on): Need unsetenv.
63608
63609 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63610
63611         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63612
63613 2008-01-06  Colin Watson  <cjwatson@debian.org>
63614
63615         * users.txt: Add man-db.
63616
63617 2008-01-07  Bruno Haible  <bruno@clisp.org>
63618
63619         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63620         previous section name.
63621
63622 2008-01-07  Bruno Haible  <bruno@clisp.org>
63623
63624         * lib/progname.c (set_program_name): Don't strip off a leading
63625         "lt-" prefix outside a .libs directory.
63626         Suggested by Paul Eggert.
63627
63628 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63629             Bruno Haible  <bruno@clisp.org>
63630
63631         Improve memory cleanup in 'relocatable' module.
63632         * lib/relocatable.h (compute_curr_prefix): Change return type to
63633         'char *'.
63634         * lib/relocatable.c (compute_curr_prefix): Change return type to
63635         'char *'. Free curr_installdir after use.
63636         (relocate): Free curr_prefix_better after use.
63637         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63638
63639 2008-01-01  Bruno Haible  <bruno@clisp.org>
63640
63641         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63642         failure on older glibc systems.
63643         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63644
63645 2008-01-05  Eric Blake  <ebb9@byu.net>
63646
63647         Avoid quadratic system memmem.
63648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63649         Reported by Ralf Wildenhues.
63650
63651         Fix memmem test for mingw.
63652         * modules/memmem-tests (configure.ac): Check for alarm.
63653         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63654         it.
63655         * doc/functions/memmem.texi: New file.
63656         * doc/gnulib.texi (Function Substitutes): Add memmem.
63657         Reported by Bruno Haible.
63658
63659 2008-01-04  Bruno Haible  <bruno@clisp.org>
63660
63661         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63662         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63663         gl_HEADER_STRING_H_DEFAULTS.
63664
63665 2008-01-04  Eric Blake  <ebb9@byu.net>
63666
63667         Shorten duration of memmem test.
63668         * tests/test-memmem.c (main): Use alarm to declare failure if test
63669         is taking too long.
63670         Reported by Ralf Wildenhues.
63671
63672 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63673
63674         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63675         string, needed by strerror.
63676
63677 2008-01-03  Colin Watson  <cjwatson@debian.org>
63678             Bruno Haible  <bruno@clisp.org>
63679
63680         * doc/gnulib-tool.texi (Localization): New section.
63681
63682 2008-01-02  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63685         variables to 'unsigned char *' type.
63686         Reported by Paul Eggert.
63687
63688 2008-01-02  Jim Meyering  <jim@meyering.net>
63689
63690         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63691
63692 2007-12-31  Jim Meyering  <jim@meyering.net>
63693
63694         Avoid use of private FTS type name.
63695         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63696
63697 2007-12-30  Karl Berry  <karl@gnu.org>
63698
63699         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63700         work around defect in Texinfo and/or the standalone Info browser.
63701
63702 2007-12-30  Bruno Haible  <bruno@clisp.org>
63703
63704         Unify 5 copies of the KMP code.
63705         * lib/str-kmp.h: New file.
63706         * lib/c-strcasestr.c: Include str-kmp.h.
63707         (knuth_morris_pratt): Remove function.
63708         (c_strcasestr): Update.
63709         * lib/c-strstr.c: Include str-kmp.h.
63710         (knuth_morris_pratt): Remove function.
63711         (c_strcasestr): Update.
63712         * lib/mbscasestr.c: Include str-kmp.h.
63713         (knuth_morris_pratt_unibyte): Remove function.
63714         * lib/mbsstr.c: Include str-kmp.h.
63715         (knuth_morris_pratt_unibyte): Remove function.
63716         * lib/strcasestr.c: Include str-kmp.h.
63717         (knuth_morris_pratt): Remove function.
63718         (strcasestr): Update.
63719         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63720         * modules/c-strstr (Files): Likewise.
63721         * modules/mbscasestr (Files): Likewise.
63722         * modules/mbsstr (Files): Likewise.
63723         * modules/strcasestr (Files): Likewise.
63724         Suggested by Paul Eggert.
63725
63726 2007-12-30  Bruno Haible  <bruno@clisp.org>
63727
63728         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63729         defined.
63730
63731 2007-12-30  Bruno Haible  <bruno@clisp.org>
63732
63733         * lib/xmalloca.h: Include xalloc.h.
63734         (xnmalloca): New macro.
63735
63736 2007-12-30  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/malloca.h (nmalloca): New macro.
63739         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63740         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63741         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63742         knuth_morris_pratt_multibyte): Likewise.
63743         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63744         knuth_morris_pratt_multibyte): Likewise.
63745         * lib/memmem.c (knuth_morris_pratt): Likewise.
63746         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63747
63748 2007-12-25  Bruno Haible  <bruno@clisp.org>
63749
63750         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63751         * lib/glob.c: Don't include openat.h.
63752         (link_exists2_p): Add back the code that deals with the
63753         !GLOB_ALTDIRFUNC case.
63754         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63755         let it do the filename concatenation.
63756         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63757         * modules/glob (Depends-on): Remove openat.
63758
63759 2007-12-31  Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/dirfd (License): Change to LGPLv2+.
63762         Approved by Jim Meyering.
63763
63764 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63767         when multiplying M by sizeof (size_t).
63768
63769 2007-12-10  Martin Lambers  <marlam@marlam.de>
63770
63771         Override getpagesize on mingw.
63772         * lib/getpagesize.c: New file.
63773         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63774         * modules/getpagesize (Files): Add lib/getpagesize.c.
63775         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63777         REPLACE_GETPAGESIZE.
63778         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63779
63780 2007-12-25  Bruno Haible  <bruno@clisp.org>
63781
63782         * modules/localcharset (Notice): New field.
63783         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63784         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63785
63786 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63787             Bruno Haible  <bruno@clisp.org>
63788
63789         Avoid using the syntax symbol() in formatted documentation.
63790         * MODULES.html.sh (func_module): When replacing symbol() with a
63791         hyperlink, remove the parentheses. Show an error if some remain.
63792         Recognize and render the '...' syntax.
63793         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63794         Rework. Add paragraph about GCC's inlining.
63795         * doc/alloca.texi: Likewise.
63796         * doc/error.texi: Remove parentheses from symbol reference.
63797         * doc/gnulib-intro.texi: Likewise.
63798         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63799         * modules/fnmatch (Description): Reword to say "the ... function".
63800         * modules/full-read (Description): Likewise.
63801         * modules/full-write (Description): Likewise.
63802         * modules/safe-read (Description): Likewise.
63803         * modules/safe-write (Description): Likewise.
63804         * modules/strchrnul (Description): Likewise.
63805         * modules/trim (Description): Likewise.
63806         * modules/error (Description): Remove parentheses from symbol
63807         references.
63808         * modules/verror (Description): Likewise.
63809         Reported by Karl Berry.
63810
63811 2007-12-25  Bruno Haible  <bruno@clisp.org>
63812
63813         Fixup after 2007-10-16 commit.
63814         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63815
63816 2007-12-24  Bruno Haible  <bruno@clisp.org>
63817
63818         Make --enable-relocatable work with DESTDIR.
63819         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63820         to compute installdir from destprog.
63821         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63822         also set the RELOC_DESTDIR variable.
63823         Reported by Левашев Иван <octagram@bluebottle.com>.
63824
63825 2007-12-24  Bruno Haible  <bruno@clisp.org>
63826
63827         Fix link error due to xalloc_die().
63828         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63829         of xreadlink.
63830         * lib/relocwrapper.c: Update comments.
63831         * build-aux/install-reloc: Remove xreadlink.c from file list.
63832         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63833         xreadlink.c.
63834         Reported by Левашев Иван <octagram@bluebottle.com>.
63835
63836 2007-12-24  Bruno Haible  <bruno@clisp.org>
63837
63838         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63839         * lib/setenv.h: Remove file.
63840         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63841         lib/setenv.h.
63842         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63843         (Depends-on): Add stdlib.
63844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63845         gl_FUNC_UNSETENV.
63846         (Include): Replace setenv.h with <stdlib.h>.
63847         * modules/unsetenv: New file.
63848         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63849         * lib/unsetenv.c: Include <stdlib.h> first.
63850         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63851         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63852         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63853         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63854         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63855         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63857         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63858         * doc/functions/unsetenv.texi: Update.
63859         * modules/xsetenv (Depends-on): Add unsetenv.
63860         * modules/getdate (Depends-on): Likewise.
63861         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63862         * lib/xsetenv.c: Don't include setenv.h.
63863         * lib/getdate.y: Likewise.
63864         * lib/relocwrapper.c: Likewise.
63865         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63866         (Depends-on): Add stdlib.
63867         * NEWS: Mention the changes.
63868         Reported by Левашев Иван <octagram@bluebottle.com>.
63869
63870 2007-12-23  Bruno Haible  <bruno@clisp.org>
63871
63872         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63873         indentation.
63874
63875 2007-12-23  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/c-strcasestr.c: Add more comments.
63878         * lib/c-strstr.c: Likewise.
63879         * lib/mbscasestr.c: Likewise.
63880         * lib/mbsstr.c: Likewise.
63881         * lib/strcasestr.c: Likewise.
63882         * lib/memmem.c: Likewise.
63883
63884 2007-12-23  Bruno Haible  <bruno@clisp.org>
63885
63886         * tests/test-memmem.c: Include <string.h> first.
63887
63888 2007-12-22  Bruno Haible  <bruno@clisp.org>
63889
63890         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63891         the contents of $testsbase.
63892         Reported by Ralf Wildenhues.
63893
63894 2007-12-22  Bruno Haible  <bruno@clisp.org>
63895
63896         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63897         two variables local_ldadd_before, local_ldadd_last.
63898
63899 2007-12-20  Eric Blake  <ebb9@byu.net>
63900
63901         Work around circular library issue when cross-compiling.
63902         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63903         that progname.o does not need to pull in rpl_memcmp.
63904
63905 2007-12-19  Eric Blake  <ebb9@byu.net>
63906
63907         Fix memmem to avoid O(n^2) worst-case complexity.
63908         * lib/memmem.c (knuth_morris_pratt): New function.
63909         (memmem): Use it if first few naive iterations fail.
63910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63911         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63912         * modules/memchr (License): Likewise.
63913         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63914         malloca.
63915         * tests/test-memmem.c: Rewrite, borrowing ideas from
63916         test-mbsstr1.c; the old version wouldn't even compile!
63917         * modules/memmem-tests: New file.
63918         * lib/string.in.h (rpl_memmem): Add declaration.
63919         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63921         REPLACE_MEMMEM.
63922
63923 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63924
63925         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63926         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63927         before any system include files, and undef after them all.  This
63928         should fix a problem on VMS reported by John E. Malmberg in
63929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63930
63931 2007-12-17  Eric Blake  <ebb9@byu.net>
63932
63933         Revert addition of verify, for BSD/OS.
63934         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63935         can't handle large files, for the sake of obsolete platforms.
63936         * modules/fseeko (Depends-on): Remove verify.
63937         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63938         * doc/functions/ftello.texi (ftello): Likewise.
63939         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63940         Reported by Larry Jones.
63941
63942 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63943
63944         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63945         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63946
63947 2007-12-17  Jim Meyering  <meyering@redhat.com>
63948
63949         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63950         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63951         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63952         * modules/getcwd (Depends-on): Add openat.
63953         Reported by Petr Salinger.
63954
63955 2007-12-17  Bruno Haible  <bruno@clisp.org>
63956
63957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63958         avoid a segmentation fault of the configure test on x86_64 systems.
63959
63960 2007-12-15  Jim Meyering  <meyering@redhat.com>
63961
63962         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63963
63964 2007-12-13  Eric Blake  <ebb9@byu.net>
63965
63966         Another fseek test.
63967         * tests/test-fseek.c (main): Also test ungetc handling.
63968         * tests/test-fseeko.c (main): Likewise.
63969         * modules/fseeko (Depends-on): Add verify.
63970         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63971         large.
63972         Reported by Larry Jones.
63973
63974         Fix fseeko on mingw.
63975         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63976         seek.
63977
63978         Beef up fseek tests.
63979         * tests/test-fseek.c (main): Also test eof handling.
63980         * tests/test-fseeko.c (main): Likewise.
63981         Reported by Larry Jones.
63982
63983 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63984
63985         Fix fseeko on BSD-based platforms.
63986         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63987         successful seek.
63988
63989 2007-12-12  Eric Blake  <ebb9@byu.net>
63990
63991         Allow circular dependency of separate libtests.a
63992         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63993         when use_libtests.
63994
63995 2007-12-11  Eric Blake  <ebb9@byu.net>
63996
63997         Fix bug with -0.0L in previous patch.
63998         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63999         * tests/test-isnan.c (main): Also test on zeroes.
64000         * tests/test-isnanf.c (main): Likewise.
64001         * tests/test-isnanl.h (main): Likewise.
64002
64003         Detect pseudo-denormals on x86 even when cross-compiling.
64004         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64005         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64006         invalid bit patterns that happen to satisfy ==.
64007
64008         Avoid link failures with separate libtests.a.
64009         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64010         last, to satisfy circular dependencies.
64011
64012 2007-12-11  Eric Blake  <ebb9@byu.net>
64013         and Bruno Haible  <bruno@clisp.org>
64014
64015         Fix OpenBSD 4.0 <float.h> handling of long double.
64016         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64017         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64018         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64019
64020 2007-12-11  Jim Meyering  <meyering@redhat.com>
64021
64022         * users.txt: Add libvirt.
64023
64024         Support versions of autoconf prior to 2.59c.
64025         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64026         if it is not already defined.
64027
64028 2007-12-09  Bruno Haible  <bruno@clisp.org>
64029
64030         Let 'gnulib-tool --import' collect sources needed for the tests in
64031         tests/ rather than in lib/.
64032         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64033         argument. If true, add rules to generate libtests.a, and put libtests.a
64034         into $(LDADD). Consider source files in subdirectories and set
64035         uses_subdirs.
64036         (func_emit_initmacro_start, func_emit_initmacro_end,
64037         func_emit_initmacro_done): Pass all arguments explicitly.
64038         (func_import): Determine two module lists main_modules,
64039         testsrelated_modules. Determine use_libtests. Determine two variables
64040         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64041         instead of just sed_transform_lib_file. Determine two variables
64042         main_files and testsrelated_files. Compute 'files' as the union of
64043         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64044         func_add_or_update. In the generated gnulib-comp.m4, collect the
64045         object files for tests/ in different variables than those for lib/.
64046         Substitute LIBTESTS_LIBDEPS.
64047         (func_create_testdir): Combine the uses_subdirs results from
64048         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64049
64050 2007-12-09  Bruno Haible  <bruno@clisp.org>
64051
64052         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64053         the build-aux directory.
64054
64055 2007-12-09  Bruno Haible  <bruno@clisp.org>
64056
64057         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64058         introduced on 2006-09-09.
64059
64060 2007-12-07  Jim Meyering  <meyering@redhat.com>
64061
64062         Let these macros work also with autoconf-2.59.
64063         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64064         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64065         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64066
64067 2007-12-06  Jim Meyering  <meyering@redhat.com>
64068
64069         Avoid a configure-time syntax error in gl_FUNC_ACL.
64070         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64071         function in each branch, before testing the cache variable.
64072
64073 2007-12-04  Eric Blake  <ebb9@byu.net>
64074
64075         Make scripts executable.
64076         * build-aux/config.guess: Add execute permissions.
64077         * build-aux/config.sub: Likewise.
64078         * build-aux/gendocs.sh: Likewise.
64079
64080         Fix frexp on mingw.
64081         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64082         cross-compiling.
64083         * doc/functions/frexp.texi (frexp): Document the bug.
64084
64085         Make cygwin fseeko check more reliable.
64086         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64087         version numbers, rather than unrelated feature check.
64088         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64089         * doc/functions/ftello.texi (ftello): Likewise.
64090         Reported by Bruno Haible.
64091
64092         * m4/strerror.m4: Bump version number.
64093
64094 2007-12-03  Bruno Haible  <bruno@clisp.org>
64095
64096         * doc/functions/mprotect.texi: Mention the mingw problem.
64097
64098 2007-12-03  Eric Blake  <ebb9@byu.net>
64099
64100         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64101         REPLACE_STRERROR is initialized before this macro.
64102
64103 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64106         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64107         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64108         put -lsec in even for programs other than 'ls'.  This fixes a problem
64109         for gettext reported by Bruno Haible in
64110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64111         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64112         Add support for Solaris 10.  This isn't efficient, but should get the
64113         job done for now.
64114
64115 2007-12-03  James Youngman  <jay@gnu.org>
64116
64117         * doc/regexprops-generic.texi: change "an close-group" to "a
64118         close-group" and "illegal" to "not allowed".
64119
64120 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64121
64122         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64123         pr_byname.h. Needed for the rare case when the maintainer has done
64124         "make maintainer-clean" in the source directory and then attempts a
64125         build outside the source directory.
64126         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64127         scripts_byname.h.
64128
64129 2007-12-02  Martin Lambers <marlam@marlam.de>
64130             Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/getpagesize.h: Remove file.
64133         * lib/unistd.in.h: Include declaration of getpagesize here.
64134         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64135         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64136         HAVE_SYS_PARAM_H.
64137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64138         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64139         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64140         (Depends-on): Add unistd.
64141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64142         (Include): Use <unistd.h> instead of getpagesize.h.
64143         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64144         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64145         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64146         gl_GETPAGESIZE invocation, already handled by module dependency.
64147         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64148
64149 2007-12-02  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/strings-tests: New file.
64152         * tests/test-strings.c: New file.
64153
64154         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64155         * lib/strings.in.h: New file.
64156         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64157         * m4/strings_h.m4: New file.
64158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64159         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64160         * modules/strings: New file.
64161         * modules/string (Makefile.am): Update.
64162         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64163         Reported by Karl Berry.
64164
64165 2007-12-01  Eric Blake  <ebb9@byu.net>
64166
64167         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64168         accommodate fix in cygwin 1.5.25.
64169
64170 2007-12-01  Jim Meyering  <meyering@redhat.com>
64171
64172         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64173         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64174         that would inhibit utf8-optimization of a regexp containing line-
64175         or buffer-anchors, e.g., `^', `$'.
64176
64177 2007-11-30  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64180         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64181         glthread_recursive_lock_init.
64182         * lib/lock.c (glthread_recursive_lock_init)
64183         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64184         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64185
64186 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         New function qset_acl, like set_acl but with syscall semantics.
64189         * lib/acl.h (qset_acl): New decl.
64190         * lib/acl.c (qset_acl): New function.
64191         (set_acl): Use new function.  Use more-consistent diagnostics.
64192
64193 2007-11-28  Jim Meyering  <meyering@redhat.com>
64194
64195         * modules/physmem (License): Change from GPL to LGPLv2+.
64196
64197 2007-11-26  Bruno Haible  <bruno@clisp.org>
64198
64199         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64200         'long double' type has excess precision.
64201         Reported by Jim Meyering in
64202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64203
64204 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64205
64206         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64207         Sync from <http://gnu.org/licenses>.
64208         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64209         with license text from same location.
64210         * doc/maintain.texi, doc/standards.texi:  Sync from
64211         <http://savannah.gnu.org/projects/gnustandards>.
64212
64213 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64214         and Jim Meyering  <meyering@redhat.com>
64215
64216         Adjust getdate' grammar to accept a slightly more regular language.
64217         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64218         Before, the former was rejected.
64219         * lib/getdate.y (digits_to_date_time): New function, factored
64220         out of ...
64221         (number): ...here.  Just call digits_to_date_time.
64222         (hybrid): New non-terminal to handle an <unsigned number,
64223         signed relative offset> sequence consistently.
64224
64225 2007-11-18  Jim Meyering  <meyering@redhat.com>
64226
64227         Pull my changes from coreutils:
64228         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64229         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64230         use of $gnulib_tool_option_extras, so that it's separated from the
64231         preceding argument.
64232
64233         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64234         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64235         parent destination directories before copying a file into place.
64236
64237 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64238
64239         bootstrap: work also with 4-argument variant of AC_INIT
64240         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64241
64242 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         Port test-getaddrinfo to Solaris.
64245         Problem reported by Bruno Haible in
64246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64247         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64248         explanation of setting 'hints'.
64249         Don't reject an implementation merely because it returns EAI_SERVICE.
64250         (EAI_SERVICE): Define to 0 if not defined.
64251
64252 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         The license of gnu-make and posix-shell is now "GPLed build tool".
64255         * modules/gnu-make (License): Likewise.
64256         * modules/posix-shell (License): Likewise.
64257
64258         New module posix-shell, for determining a POSIX shell
64259         or perhaps something that is close enough to a POSIX shell.
64260         * m4/posix-shell.m4: New file.
64261         * modules/posix-shell: New file.
64262
64263         * MODULES.html.sh: Mention new module.
64264
64265         New module gnu-make, for determining whether we're using GNU Make.
64266         * m4/gnu-make.m4: New file.
64267         * modules/gnu-make: New file.
64268         * MODULES.html.sh: Mention new module.
64269
64270 2007-11-14  Jim Meyering  <meyering@redhat.com>
64271
64272         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64273         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64274         use this macro to create a function _definition_.
64275         Remove useless "#undef ARGMATCH_DIE".
64276
64277 2007-11-14  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/config.charset: Update for OpenBSD 4.1.
64280         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64281
64282 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         Document 64-bit #if problems in stdint.texi.
64285         * doc/headers/stdint.texi (stdint.h): Mention problems with
64286         64-bit-#if, and how to work around them.
64287
64288         Don't insist on 'long long int' support in the preprocessor.  It
64289         breaks too many things.  For example, PRIdMAX still uses a 'long
64290         long int' format with the latest Sun compiler, even though
64291         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64292         preprocessor problem.  This causes the latest coreutils to dump
64293         core on Solaris 10 sparc with the Sun C compiler.
64294         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64295         the troublesome expressions at configure-time, not at #if-time.
64296         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64297         preprocessor.
64298         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64299         compile-time C checks, done at 'configure'-time.
64300         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64301         * modules/inttypes (Makefile): Substitute the new symbols that
64302         gl_INTTYPES_H now generates.
64303         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64304
64305 2007-11-12  Bruno Haible  <bruno@clisp.org>
64306
64307         Tests for Unicode character classification functions.
64308
64309         * modules/unictype/bidicategory-byname-tests: New file.
64310         * modules/unictype/bidicategory-name-tests: New file.
64311         * modules/unictype/bidicategory-of-tests: New file.
64312         * modules/unictype/bidicategory-test-tests: New file.
64313         * modules/unictype/block-list-tests: New file.
64314         * modules/unictype/block-of-tests: New file.
64315         * modules/unictype/block-test-tests: New file.
64316         * modules/unictype/category-C-tests: New file.
64317         * modules/unictype/category-Cc-tests: New file.
64318         * modules/unictype/category-Cf-tests: New file.
64319         * modules/unictype/category-Cn-tests: New file.
64320         * modules/unictype/category-Co-tests: New file.
64321         * modules/unictype/category-Cs-tests: New file.
64322         * modules/unictype/category-L-tests: New file.
64323         * modules/unictype/category-Ll-tests: New file.
64324         * modules/unictype/category-Lm-tests: New file.
64325         * modules/unictype/category-Lo-tests: New file.
64326         * modules/unictype/category-Lt-tests: New file.
64327         * modules/unictype/category-Lu-tests: New file.
64328         * modules/unictype/category-M-tests: New file.
64329         * modules/unictype/category-Mc-tests: New file.
64330         * modules/unictype/category-Me-tests: New file.
64331         * modules/unictype/category-Mn-tests: New file.
64332         * modules/unictype/category-N-tests: New file.
64333         * modules/unictype/category-Nd-tests: New file.
64334         * modules/unictype/category-Nl-tests: New file.
64335         * modules/unictype/category-No-tests: New file.
64336         * modules/unictype/category-P-tests: New file.
64337         * modules/unictype/category-Pc-tests: New file.
64338         * modules/unictype/category-Pd-tests: New file.
64339         * modules/unictype/category-Pe-tests: New file.
64340         * modules/unictype/category-Pf-tests: New file.
64341         * modules/unictype/category-Pi-tests: New file.
64342         * modules/unictype/category-Po-tests: New file.
64343         * modules/unictype/category-Ps-tests: New file.
64344         * modules/unictype/category-S-tests: New file.
64345         * modules/unictype/category-Sc-tests: New file.
64346         * modules/unictype/category-Sk-tests: New file.
64347         * modules/unictype/category-Sm-tests: New file.
64348         * modules/unictype/category-So-tests: New file.
64349         * modules/unictype/category-Z-tests: New file.
64350         * modules/unictype/category-Zl-tests: New file.
64351         * modules/unictype/category-Zp-tests: New file.
64352         * modules/unictype/category-Zs-tests: New file.
64353         * modules/unictype/category-and-not-tests: New file.
64354         * modules/unictype/category-and-tests: New file.
64355         * modules/unictype/category-byname-tests: New file.
64356         * modules/unictype/category-name-tests: New file.
64357         * modules/unictype/category-none-tests: New file.
64358         * modules/unictype/category-of-tests: New file.
64359         * modules/unictype/category-or-tests: New file.
64360         * modules/unictype/category-test-withtable-tests: New file.
64361         * modules/unictype/combining-class-tests: New file.
64362         * modules/unictype/ctype-alnum-tests: New file.
64363         * modules/unictype/ctype-alpha-tests: New file.
64364         * modules/unictype/ctype-blank-tests: New file.
64365         * modules/unictype/ctype-cntrl-tests: New file.
64366         * modules/unictype/ctype-digit-tests: New file.
64367         * modules/unictype/ctype-graph-tests: New file.
64368         * modules/unictype/ctype-lower-tests: New file.
64369         * modules/unictype/ctype-print-tests: New file.
64370         * modules/unictype/ctype-punct-tests: New file.
64371         * modules/unictype/ctype-space-tests: New file.
64372         * modules/unictype/ctype-upper-tests: New file.
64373         * modules/unictype/ctype-xdigit-tests: New file.
64374         * modules/unictype/decimal-digit-tests: New file.
64375         * modules/unictype/digit-tests: New file.
64376         * modules/unictype/mirror-tests: New file.
64377         * modules/unictype/numeric-tests: New file.
64378         * modules/unictype/property-alphabetic-tests: New file.
64379         * modules/unictype/property-ascii-hex-digit-tests: New file.
64380         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64381         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64382         * modules/unictype/property-bidi-block-separator-tests: New file.
64383         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64384         * modules/unictype/property-bidi-common-separator-tests: New file.
64385         * modules/unictype/property-bidi-control-tests: New file.
64386         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64387         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64388         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64389         * modules/unictype/property-bidi-european-digit-tests: New file.
64390         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64391         * modules/unictype/property-bidi-left-to-right-tests: New file.
64392         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64393         * modules/unictype/property-bidi-other-neutral-tests: New file.
64394         * modules/unictype/property-bidi-pdf-tests: New file.
64395         * modules/unictype/property-bidi-segment-separator-tests: New file.
64396         * modules/unictype/property-bidi-whitespace-tests: New file.
64397         * modules/unictype/property-byname-tests: New file.
64398         * modules/unictype/property-combining-tests: New file.
64399         * modules/unictype/property-composite-tests: New file.
64400         * modules/unictype/property-currency-symbol-tests: New file.
64401         * modules/unictype/property-dash-tests: New file.
64402         * modules/unictype/property-decimal-digit-tests: New file.
64403         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64404         * modules/unictype/property-deprecated-tests: New file.
64405         * modules/unictype/property-diacritic-tests: New file.
64406         * modules/unictype/property-extender-tests: New file.
64407         * modules/unictype/property-format-control-tests: New file.
64408         * modules/unictype/property-grapheme-base-tests: New file.
64409         * modules/unictype/property-grapheme-extend-tests: New file.
64410         * modules/unictype/property-grapheme-link-tests: New file.
64411         * modules/unictype/property-hex-digit-tests: New file.
64412         * modules/unictype/property-hyphen-tests: New file.
64413         * modules/unictype/property-id-continue-tests: New file.
64414         * modules/unictype/property-id-start-tests: New file.
64415         * modules/unictype/property-ideographic-tests: New file.
64416         * modules/unictype/property-ids-binary-operator-tests: New file.
64417         * modules/unictype/property-ids-trinary-operator-tests: New file.
64418         * modules/unictype/property-ignorable-control-tests: New file.
64419         * modules/unictype/property-iso-control-tests: New file.
64420         * modules/unictype/property-join-control-tests: New file.
64421         * modules/unictype/property-left-of-pair-tests: New file.
64422         * modules/unictype/property-line-separator-tests: New file.
64423         * modules/unictype/property-logical-order-exception-tests: New file.
64424         * modules/unictype/property-lowercase-tests: New file.
64425         * modules/unictype/property-math-tests: New file.
64426         * modules/unictype/property-non-break-tests: New file.
64427         * modules/unictype/property-not-a-character-tests: New file.
64428         * modules/unictype/property-numeric-tests: New file.
64429         * modules/unictype/property-other-alphabetic-tests: New file.
64430         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64431         * modules/unictype/property-other-grapheme-extend-tests: New file.
64432         * modules/unictype/property-other-id-continue-tests: New file.
64433         * modules/unictype/property-other-id-start-tests: New file.
64434         * modules/unictype/property-other-lowercase-tests: New file.
64435         * modules/unictype/property-other-math-tests: New file.
64436         * modules/unictype/property-other-uppercase-tests: New file.
64437         * modules/unictype/property-paired-punctuation-tests: New file.
64438         * modules/unictype/property-paragraph-separator-tests: New file.
64439         * modules/unictype/property-pattern-syntax-tests: New file.
64440         * modules/unictype/property-pattern-white-space-tests: New file.
64441         * modules/unictype/property-private-use-tests: New file.
64442         * modules/unictype/property-punctuation-tests: New file.
64443         * modules/unictype/property-quotation-mark-tests: New file.
64444         * modules/unictype/property-radical-tests: New file.
64445         * modules/unictype/property-sentence-terminal-tests: New file.
64446         * modules/unictype/property-soft-dotted-tests: New file.
64447         * modules/unictype/property-space-tests: New file.
64448         * modules/unictype/property-terminal-punctuation-tests: New file.
64449         * modules/unictype/property-test-tests: New file.
64450         * modules/unictype/property-titlecase-tests: New file.
64451         * modules/unictype/property-unassigned-code-value-tests: New file.
64452         * modules/unictype/property-unified-ideograph-tests: New file.
64453         * modules/unictype/property-uppercase-tests: New file.
64454         * modules/unictype/property-variation-selector-tests: New file.
64455         * modules/unictype/property-white-space-tests: New file.
64456         * modules/unictype/property-xid-continue-tests: New file.
64457         * modules/unictype/property-xid-start-tests: New file.
64458         * modules/unictype/property-zero-width-tests: New file.
64459         * modules/unictype/scripts-tests: New file.
64460         * modules/unictype/syntax-c-ident-tests: New file.
64461         * modules/unictype/syntax-c-whitespace-tests: New file.
64462         * modules/unictype/syntax-java-ident-tests: New file.
64463         * modules/unictype/syntax-java-whitespace-tests: New file.
64464         * tests/unictype/test-bidi_byname.c: New file.
64465         * tests/unictype/test-bidi_name.c: New file.
64466         * tests/unictype/test-bidi_of.c: New file.
64467         * tests/unictype/test-bidi_test.c: New file.
64468         * tests/unictype/test-block_list.c: New file.
64469         * tests/unictype/test-block_of.c: New file.
64470         * tests/unictype/test-block_test.c: New file.
64471         * tests/unictype/test-categ_and.c: New file.
64472         * tests/unictype/test-categ_and_not.c: New file.
64473         * tests/unictype/test-categ_byname.c: New file.
64474         * tests/unictype/test-categ_name.c: New file.
64475         * tests/unictype/test-categ_none.c: New file.
64476         * tests/unictype/test-categ_of.c: New file.
64477         * tests/unictype/test-categ_or.c: New file.
64478         * tests/unictype/test-categ_test_withtable.c: New file.
64479         * tests/unictype/test-combining.c: New file.
64480         * tests/unictype/test-decdigit.c: New file.
64481         * tests/unictype/test-digit.c: New file.
64482         * tests/unictype/test-mirror.c: New file.
64483         * tests/unictype/test-numeric.c: New file.
64484         * tests/unictype/test-pr_byname.c: New file.
64485         * tests/unictype/test-pr_test.c: New file.
64486         * tests/unictype/test-predicate-part1.h: New file.
64487         * tests/unictype/test-predicate-part2.h: New file.
64488         * tests/unictype/test-scripts.c: New file.
64489         * tests/unictype/test-sy_c_ident.c: New file.
64490         * tests/unictype/test-sy_java_ident.c: New file.
64491
64492         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64493         for Unicode 5.0.0.
64494         * tests/unictype/test-categ_Cc.c: Likewise.
64495         * tests/unictype/test-categ_Cf.c: Likewise.
64496         * tests/unictype/test-categ_Cn.c: Likewise.
64497         * tests/unictype/test-categ_Co.c: Likewise.
64498         * tests/unictype/test-categ_Cs.c: Likewise.
64499         * tests/unictype/test-categ_L.c: Likewise.
64500         * tests/unictype/test-categ_Ll.c: Likewise.
64501         * tests/unictype/test-categ_Lm.c: Likewise.
64502         * tests/unictype/test-categ_Lo.c: Likewise.
64503         * tests/unictype/test-categ_Lt.c: Likewise.
64504         * tests/unictype/test-categ_Lu.c: Likewise.
64505         * tests/unictype/test-categ_M.c: Likewise.
64506         * tests/unictype/test-categ_Mc.c: Likewise.
64507         * tests/unictype/test-categ_Me.c: Likewise.
64508         * tests/unictype/test-categ_Mn.c: Likewise.
64509         * tests/unictype/test-categ_N.c: Likewise.
64510         * tests/unictype/test-categ_Nd.c: Likewise.
64511         * tests/unictype/test-categ_Nl.c: Likewise.
64512         * tests/unictype/test-categ_No.c: Likewise.
64513         * tests/unictype/test-categ_P.c: Likewise.
64514         * tests/unictype/test-categ_Pc.c: Likewise.
64515         * tests/unictype/test-categ_Pd.c: Likewise.
64516         * tests/unictype/test-categ_Pe.c: Likewise.
64517         * tests/unictype/test-categ_Pf.c: Likewise.
64518         * tests/unictype/test-categ_Pi.c: Likewise.
64519         * tests/unictype/test-categ_Po.c: Likewise.
64520         * tests/unictype/test-categ_Ps.c: Likewise.
64521         * tests/unictype/test-categ_S.c: Likewise.
64522         * tests/unictype/test-categ_Sc.c: Likewise.
64523         * tests/unictype/test-categ_Sk.c: Likewise.
64524         * tests/unictype/test-categ_Sm.c: Likewise.
64525         * tests/unictype/test-categ_So.c: Likewise.
64526         * tests/unictype/test-categ_Z.c: Likewise.
64527         * tests/unictype/test-categ_Zl.c: Likewise.
64528         * tests/unictype/test-categ_Zp.c: Likewise.
64529         * tests/unictype/test-categ_Zs.c: Likewise.
64530         * tests/unictype/test-ctype_alnum.c: Likewise.
64531         * tests/unictype/test-ctype_alpha.c: Likewise.
64532         * tests/unictype/test-ctype_blank.c: Likewise.
64533         * tests/unictype/test-ctype_cntrl.c: Likewise.
64534         * tests/unictype/test-ctype_digit.c: Likewise.
64535         * tests/unictype/test-ctype_graph.c: Likewise.
64536         * tests/unictype/test-ctype_lower.c: Likewise.
64537         * tests/unictype/test-ctype_print.c: Likewise.
64538         * tests/unictype/test-ctype_punct.c: Likewise.
64539         * tests/unictype/test-ctype_space.c: Likewise.
64540         * tests/unictype/test-ctype_upper.c: Likewise.
64541         * tests/unictype/test-ctype_xdigit.c: Likewise.
64542         * tests/unictype/test-decdigit.h: Likewise.
64543         * tests/unictype/test-digit.h: Likewise.
64544         * tests/unictype/test-numeric.h: Likewise.
64545         * tests/unictype/test-pr_alphabetic.c: Likewise.
64546         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64547         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64548         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64549         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64550         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64551         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64552         * tests/unictype/test-pr_bidi_control.c: Likewise.
64553         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64554         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64555         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64556         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64557         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64558         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64559         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64560         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64561         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64562         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64563         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64564         * tests/unictype/test-pr_combining.c: Likewise.
64565         * tests/unictype/test-pr_composite.c: Likewise.
64566         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64567         * tests/unictype/test-pr_dash.c: Likewise.
64568         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64569         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64570         * tests/unictype/test-pr_deprecated.c: Likewise.
64571         * tests/unictype/test-pr_diacritic.c: Likewise.
64572         * tests/unictype/test-pr_extender.c: Likewise.
64573         * tests/unictype/test-pr_format_control.c: Likewise.
64574         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64575         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64576         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64577         * tests/unictype/test-pr_hex_digit.c: Likewise.
64578         * tests/unictype/test-pr_hyphen.c: Likewise.
64579         * tests/unictype/test-pr_id_continue.c: Likewise.
64580         * tests/unictype/test-pr_id_start.c: Likewise.
64581         * tests/unictype/test-pr_ideographic.c: Likewise.
64582         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64583         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64584         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64585         * tests/unictype/test-pr_iso_control.c: Likewise.
64586         * tests/unictype/test-pr_join_control.c: Likewise.
64587         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64588         * tests/unictype/test-pr_line_separator.c: Likewise.
64589         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64590         * tests/unictype/test-pr_lowercase.c: Likewise.
64591         * tests/unictype/test-pr_math.c: Likewise.
64592         * tests/unictype/test-pr_non_break.c: Likewise.
64593         * tests/unictype/test-pr_not_a_character.c: Likewise.
64594         * tests/unictype/test-pr_numeric.c: Likewise.
64595         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64596         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64597         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64598         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64599         * tests/unictype/test-pr_other_id_start.c: Likewise.
64600         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64601         * tests/unictype/test-pr_other_math.c: Likewise.
64602         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64603         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64604         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64605         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64606         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64607         * tests/unictype/test-pr_private_use.c: Likewise.
64608         * tests/unictype/test-pr_punctuation.c: Likewise.
64609         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64610         * tests/unictype/test-pr_radical.c: Likewise.
64611         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64612         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64613         * tests/unictype/test-pr_space.c: Likewise.
64614         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64615         * tests/unictype/test-pr_titlecase.c: Likewise.
64616         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64617         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64618         * tests/unictype/test-pr_uppercase.c: Likewise.
64619         * tests/unictype/test-pr_variation_selector.c: Likewise.
64620         * tests/unictype/test-pr_white_space.c: Likewise.
64621         * tests/unictype/test-pr_xid_continue.c: Likewise.
64622         * tests/unictype/test-pr_xid_start.c: Likewise.
64623         * tests/unictype/test-pr_zero_width.c: Likewise.
64624         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64625         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64626
64627 2007-11-12  Bruno Haible  <bruno@clisp.org>
64628
64629         Unicode character classification functions.
64630         * lib/unictype.h: New file.
64631         * modules/unictype/base: New file.
64632         * modules/unictype/category-L: New file.
64633         * modules/unictype/category-Lu: New file.
64634         * modules/unictype/category-Ll: New file.
64635         * modules/unictype/category-Lt: New file.
64636         * modules/unictype/category-Lm: New file.
64637         * modules/unictype/category-Lo: New file.
64638         * modules/unictype/category-M: New file.
64639         * modules/unictype/category-Mn: New file.
64640         * modules/unictype/category-Mc: New file.
64641         * modules/unictype/category-Me: New file.
64642         * modules/unictype/category-N: New file.
64643         * modules/unictype/category-Nd: New file.
64644         * modules/unictype/category-Nl: New file.
64645         * modules/unictype/category-No: New file.
64646         * modules/unictype/category-P: New file.
64647         * modules/unictype/category-Pc: New file.
64648         * modules/unictype/category-Pd: New file.
64649         * modules/unictype/category-Ps: New file.
64650         * modules/unictype/category-Pe: New file.
64651         * modules/unictype/category-Pi: New file.
64652         * modules/unictype/category-Pf: New file.
64653         * modules/unictype/category-Po: New file.
64654         * modules/unictype/category-S: New file.
64655         * modules/unictype/category-Sm: New file.
64656         * modules/unictype/category-Sc: New file.
64657         * modules/unictype/category-Sk: New file.
64658         * modules/unictype/category-So: New file.
64659         * modules/unictype/category-Z: New file.
64660         * modules/unictype/category-Zs: New file.
64661         * modules/unictype/category-Zl: New file.
64662         * modules/unictype/category-Zp: New file.
64663         * modules/unictype/category-C: New file.
64664         * modules/unictype/category-Cc: New file.
64665         * modules/unictype/category-Cf: New file.
64666         * modules/unictype/category-Cs: New file.
64667         * modules/unictype/category-Co: New file.
64668         * modules/unictype/category-Cn: New file.
64669         * modules/unictype/category-or: New file.
64670         * modules/unictype/category-of: New file.
64671         * modules/unictype/category-test: New file.
64672         * modules/unictype/category-test-withtable: New file.
64673         * modules/unictype/category-byname: New file.
64674         * modules/unictype/category-none: New file.
64675         * modules/unictype/category-and: New file.
64676         * modules/unictype/category-and-not: New file.
64677         * modules/unictype/category-name: New file.
64678         * modules/unictype/combining-class: New file.
64679         * modules/unictype/category-all: New file.
64680         * modules/unictype/bidicategory-all: New file.
64681         * modules/unictype/bidicategory-byname: New file.
64682         * modules/unictype/bidicategory-name: New file.
64683         * modules/unictype/bidicategory-of: New file.
64684         * modules/unictype/bidicategory-test: New file.
64685         * modules/unictype/decimal-digit: New file.
64686         * modules/unictype/digit: New file.
64687         * modules/unictype/numeric: New file.
64688         * modules/unictype/mirror: New file.
64689         * modules/unictype/property-white-space: New file.
64690         * modules/unictype/property-alphabetic: New file.
64691         * modules/unictype/property-other-alphabetic: New file.
64692         * modules/unictype/property-not-a-character: New file.
64693         * modules/unictype/property-default-ignorable-code-point: New file.
64694         * modules/unictype/property-other-default-ignorable-code-point: New
64695         file.
64696         * modules/unictype/property-deprecated: New file.
64697         * modules/unictype/property-logical-order-exception: New file.
64698         * modules/unictype/property-variation-selector: New file.
64699         * modules/unictype/property-private-use: New file.
64700         * modules/unictype/property-unassigned-code-value: New file.
64701         * modules/unictype/property-uppercase: New file.
64702         * modules/unictype/property-other-uppercase: New file.
64703         * modules/unictype/property-lowercase: New file.
64704         * modules/unictype/property-other-lowercase: New file.
64705         * modules/unictype/property-titlecase: New file.
64706         * modules/unictype/property-soft-dotted: New file.
64707         * modules/unictype/property-id-start: New file.
64708         * modules/unictype/property-other-id-start: New file.
64709         * modules/unictype/property-id-continue: New file.
64710         * modules/unictype/property-other-id-continue: New file.
64711         * modules/unictype/property-xid-start: New file.
64712         * modules/unictype/property-xid-continue: New file.
64713         * modules/unictype/property-pattern-white-space: New file.
64714         * modules/unictype/property-pattern-syntax: New file.
64715         * modules/unictype/property-join-control: New file.
64716         * modules/unictype/property-grapheme-base: New file.
64717         * modules/unictype/property-grapheme-extend: New file.
64718         * modules/unictype/property-other-grapheme-extend: New file.
64719         * modules/unictype/property-grapheme-link: New file.
64720         * modules/unictype/property-bidi-control: New file.
64721         * modules/unictype/property-bidi-left-to-right: New file.
64722         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64723         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64724         * modules/unictype/property-bidi-european-digit: New file.
64725         * modules/unictype/property-bidi-eur-num-separator: New file.
64726         * modules/unictype/property-bidi-eur-num-terminator: New file.
64727         * modules/unictype/property-bidi-arabic-digit: New file.
64728         * modules/unictype/property-bidi-common-separator: New file.
64729         * modules/unictype/property-bidi-block-separator: New file.
64730         * modules/unictype/property-bidi-segment-separator: New file.
64731         * modules/unictype/property-bidi-whitespace: New file.
64732         * modules/unictype/property-bidi-non-spacing-mark: New file.
64733         * modules/unictype/property-bidi-boundary-neutral: New file.
64734         * modules/unictype/property-bidi-pdf: New file.
64735         * modules/unictype/property-bidi-embedding-or-override: New file.
64736         * modules/unictype/property-bidi-other-neutral: New file.
64737         * modules/unictype/property-hex-digit: New file.
64738         * modules/unictype/property-ascii-hex-digit: New file.
64739         * modules/unictype/property-ideographic: New file.
64740         * modules/unictype/property-unified-ideograph: New file.
64741         * modules/unictype/property-radical: New file.
64742         * modules/unictype/property-ids-binary-operator: New file.
64743         * modules/unictype/property-ids-trinary-operator: New file.
64744         * modules/unictype/property-zero-width: New file.
64745         * modules/unictype/property-space: New file.
64746         * modules/unictype/property-non-break: New file.
64747         * modules/unictype/property-iso-control: New file.
64748         * modules/unictype/property-format-control: New file.
64749         * modules/unictype/property-dash: New file.
64750         * modules/unictype/property-hyphen: New file.
64751         * modules/unictype/property-punctuation: New file.
64752         * modules/unictype/property-line-separator: New file.
64753         * modules/unictype/property-paragraph-separator: New file.
64754         * modules/unictype/property-quotation-mark: New file.
64755         * modules/unictype/property-sentence-terminal: New file.
64756         * modules/unictype/property-terminal-punctuation: New file.
64757         * modules/unictype/property-currency-symbol: New file.
64758         * modules/unictype/property-math: New file.
64759         * modules/unictype/property-other-math: New file.
64760         * modules/unictype/property-paired-punctuation: New file.
64761         * modules/unictype/property-left-of-pair: New file.
64762         * modules/unictype/property-combining: New file.
64763         * modules/unictype/property-composite: New file.
64764         * modules/unictype/property-decimal-digit: New file.
64765         * modules/unictype/property-numeric: New file.
64766         * modules/unictype/property-diacritic: New file.
64767         * modules/unictype/property-extender: New file.
64768         * modules/unictype/property-ignorable-control: New file.
64769         * modules/unictype/property-test: New file.
64770         * modules/unictype/property-byname: New file.
64771         * modules/unictype/property-all: New file.
64772         * modules/unictype/scripts: New file.
64773         * modules/unictype/scripts-all: New file.
64774         * modules/unictype/block-of: New file.
64775         * modules/unictype/block-test: New file.
64776         * modules/unictype/block-list: New file.
64777         * modules/unictype/block-all: New file.
64778         * modules/unictype/syntax-c-whitespace: New file.
64779         * modules/unictype/syntax-java-whitespace: New file.
64780         * modules/unictype/syntax-c-ident: New file.
64781         * modules/unictype/syntax-java-ident: New file.
64782         * modules/unictype/ctype-alnum: New file.
64783         * modules/unictype/ctype-alpha: New file.
64784         * modules/unictype/ctype-cntrl: New file.
64785         * modules/unictype/ctype-digit: New file.
64786         * modules/unictype/ctype-graph: New file.
64787         * modules/unictype/ctype-lower: New file.
64788         * modules/unictype/ctype-print: New file.
64789         * modules/unictype/ctype-punct: New file.
64790         * modules/unictype/ctype-space: New file.
64791         * modules/unictype/ctype-upper: New file.
64792         * modules/unictype/ctype-xdigit: New file.
64793         * modules/unictype/ctype-blank: New file.
64794         * lib/unictype/bidi_byname.c: New file.
64795         * lib/unictype/bidi_name.c: New file.
64796         * lib/unictype/bidi_of.c: New file.
64797         * lib/unictype/bidi_test.c: New file.
64798         * lib/unictype/bitmap.h: New file.
64799         * lib/unictype/block_test.c: New file.
64800         * lib/unictype/blocks.c: New file.
64801         * lib/unictype/categ_C.c: New file.
64802         * lib/unictype/categ_Cc.c: New file.
64803         * lib/unictype/categ_Cf.c: New file.
64804         * lib/unictype/categ_Cn.c: New file.
64805         * lib/unictype/categ_Co.c: New file.
64806         * lib/unictype/categ_Cs.c: New file.
64807         * lib/unictype/categ_L.c: New file.
64808         * lib/unictype/categ_Ll.c: New file.
64809         * lib/unictype/categ_Lm.c: New file.
64810         * lib/unictype/categ_Lo.c: New file.
64811         * lib/unictype/categ_Lt.c: New file.
64812         * lib/unictype/categ_Lu.c: New file.
64813         * lib/unictype/categ_M.c: New file.
64814         * lib/unictype/categ_Mc.c: New file.
64815         * lib/unictype/categ_Me.c: New file.
64816         * lib/unictype/categ_Mn.c: New file.
64817         * lib/unictype/categ_N.c: New file.
64818         * lib/unictype/categ_Nd.c: New file.
64819         * lib/unictype/categ_Nl.c: New file.
64820         * lib/unictype/categ_No.c: New file.
64821         * lib/unictype/categ_P.c: New file.
64822         * lib/unictype/categ_Pc.c: New file.
64823         * lib/unictype/categ_Pd.c: New file.
64824         * lib/unictype/categ_Pe.c: New file.
64825         * lib/unictype/categ_Pf.c: New file.
64826         * lib/unictype/categ_Pi.c: New file.
64827         * lib/unictype/categ_Po.c: New file.
64828         * lib/unictype/categ_Ps.c: New file.
64829         * lib/unictype/categ_S.c: New file.
64830         * lib/unictype/categ_Sc.c: New file.
64831         * lib/unictype/categ_Sk.c: New file.
64832         * lib/unictype/categ_Sm.c: New file.
64833         * lib/unictype/categ_So.c: New file.
64834         * lib/unictype/categ_Z.c: New file.
64835         * lib/unictype/categ_Zl.c: New file.
64836         * lib/unictype/categ_Zp.c: New file.
64837         * lib/unictype/categ_Zs.c: New file.
64838         * lib/unictype/categ_and.c: New file.
64839         * lib/unictype/categ_and_not.c: New file.
64840         * lib/unictype/categ_byname.c: New file.
64841         * lib/unictype/categ_name.c: New file.
64842         * lib/unictype/categ_none.c: New file.
64843         * lib/unictype/categ_of.c: New file.
64844         * lib/unictype/categ_or.c: New file.
64845         * lib/unictype/categ_test.c: New file.
64846         * lib/unictype/combining.c: New file.
64847         * lib/unictype/ctype_alnum.c: New file.
64848         * lib/unictype/ctype_alpha.c: New file.
64849         * lib/unictype/ctype_blank.c: New file.
64850         * lib/unictype/ctype_cntrl.c: New file.
64851         * lib/unictype/ctype_digit.c: New file.
64852         * lib/unictype/ctype_graph.c: New file.
64853         * lib/unictype/ctype_lower.c: New file.
64854         * lib/unictype/ctype_print.c: New file.
64855         * lib/unictype/ctype_punct.c: New file.
64856         * lib/unictype/ctype_space.c: New file.
64857         * lib/unictype/ctype_upper.c: New file.
64858         * lib/unictype/ctype_xdigit.c: New file.
64859         * lib/unictype/decdigit.c: New file.
64860         * lib/unictype/digit.c: New file.
64861         * lib/unictype/identsyntaxmap.h: New file.
64862         * lib/unictype/mirror.c: New file.
64863         * lib/unictype/numeric.c: New file.
64864         * lib/unictype/pr_alphabetic.c: New file.
64865         * lib/unictype/pr_ascii_hex_digit.c: New file.
64866         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64867         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64868         * lib/unictype/pr_bidi_block_separator.c: New file.
64869         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64870         * lib/unictype/pr_bidi_common_separator.c: New file.
64871         * lib/unictype/pr_bidi_control.c: New file.
64872         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64873         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64874         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64875         * lib/unictype/pr_bidi_european_digit.c: New file.
64876         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64877         * lib/unictype/pr_bidi_left_to_right.c: New file.
64878         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64879         * lib/unictype/pr_bidi_other_neutral.c: New file.
64880         * lib/unictype/pr_bidi_pdf.c: New file.
64881         * lib/unictype/pr_bidi_segment_separator.c: New file.
64882         * lib/unictype/pr_bidi_whitespace.c: New file.
64883         * lib/unictype/pr_byname.c: New file.
64884         * lib/unictype/pr_byname.gperf: New file.
64885         * lib/unictype/pr_combining.c: New file.
64886         * lib/unictype/pr_composite.c: New file.
64887         * lib/unictype/pr_currency_symbol.c: New file.
64888         * lib/unictype/pr_dash.c: New file.
64889         * lib/unictype/pr_decimal_digit.c: New file.
64890         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64891         * lib/unictype/pr_deprecated.c: New file.
64892         * lib/unictype/pr_diacritic.c: New file.
64893         * lib/unictype/pr_extender.c: New file.
64894         * lib/unictype/pr_format_control.c: New file.
64895         * lib/unictype/pr_grapheme_base.c: New file.
64896         * lib/unictype/pr_grapheme_extend.c: New file.
64897         * lib/unictype/pr_grapheme_link.c: New file.
64898         * lib/unictype/pr_hex_digit.c: New file.
64899         * lib/unictype/pr_hyphen.c: New file.
64900         * lib/unictype/pr_id_continue.c: New file.
64901         * lib/unictype/pr_id_start.c: New file.
64902         * lib/unictype/pr_ideographic.c: New file.
64903         * lib/unictype/pr_ids_binary_operator.c: New file.
64904         * lib/unictype/pr_ids_trinary_operator.c: New file.
64905         * lib/unictype/pr_ignorable_control.c: New file.
64906         * lib/unictype/pr_iso_control.c: New file.
64907         * lib/unictype/pr_join_control.c: New file.
64908         * lib/unictype/pr_left_of_pair.c: New file.
64909         * lib/unictype/pr_line_separator.c: New file.
64910         * lib/unictype/pr_logical_order_exception.c: New file.
64911         * lib/unictype/pr_lowercase.c: New file.
64912         * lib/unictype/pr_math.c: New file.
64913         * lib/unictype/pr_non_break.c: New file.
64914         * lib/unictype/pr_not_a_character.c: New file.
64915         * lib/unictype/pr_numeric.c: New file.
64916         * lib/unictype/pr_other_alphabetic.c: New file.
64917         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64918         * lib/unictype/pr_other_grapheme_extend.c: New file.
64919         * lib/unictype/pr_other_id_continue.c: New file.
64920         * lib/unictype/pr_other_id_start.c: New file.
64921         * lib/unictype/pr_other_lowercase.c: New file.
64922         * lib/unictype/pr_other_math.c: New file.
64923         * lib/unictype/pr_other_uppercase.c: New file.
64924         * lib/unictype/pr_paired_punctuation.c: New file.
64925         * lib/unictype/pr_paragraph_separator.c: New file.
64926         * lib/unictype/pr_pattern_syntax.c: New file.
64927         * lib/unictype/pr_pattern_white_space.c: New file.
64928         * lib/unictype/pr_private_use.c: New file.
64929         * lib/unictype/pr_punctuation.c: New file.
64930         * lib/unictype/pr_quotation_mark.c: New file.
64931         * lib/unictype/pr_radical.c: New file.
64932         * lib/unictype/pr_sentence_terminal.c: New file.
64933         * lib/unictype/pr_soft_dotted.c: New file.
64934         * lib/unictype/pr_space.c: New file.
64935         * lib/unictype/pr_terminal_punctuation.c: New file.
64936         * lib/unictype/pr_test.c: New file.
64937         * lib/unictype/pr_titlecase.c: New file.
64938         * lib/unictype/pr_unassigned_code_value.c: New file.
64939         * lib/unictype/pr_unified_ideograph.c: New file.
64940         * lib/unictype/pr_uppercase.c: New file.
64941         * lib/unictype/pr_variation_selector.c: New file.
64942         * lib/unictype/pr_white_space.c: New file.
64943         * lib/unictype/pr_xid_continue.c: New file.
64944         * lib/unictype/pr_xid_start.c: New file.
64945         * lib/unictype/pr_zero_width.c: New file.
64946         * lib/unictype/scripts.c: New file.
64947         * lib/unictype/sy_c_ident.c: New file.
64948         * lib/unictype/sy_c_whitespace.c: New file.
64949         * lib/unictype/sy_java_ident.c: New file.
64950         * lib/unictype/sy_java_whitespace.c: New file.
64951
64952         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64953         Unicode 5.0.0.
64954         * lib/unictype/blocks.h: Likewise.
64955         * lib/unictype/categ_C.h: Likewise.
64956         * lib/unictype/categ_Cc.h: Likewise.
64957         * lib/unictype/categ_Cf.h: Likewise.
64958         * lib/unictype/categ_Cn.h: Likewise.
64959         * lib/unictype/categ_Co.h: Likewise.
64960         * lib/unictype/categ_Cs.h: Likewise.
64961         * lib/unictype/categ_L.h: Likewise.
64962         * lib/unictype/categ_Ll.h: Likewise.
64963         * lib/unictype/categ_Lm.h: Likewise.
64964         * lib/unictype/categ_Lo.h: Likewise.
64965         * lib/unictype/categ_Lt.h: Likewise.
64966         * lib/unictype/categ_Lu.h: Likewise.
64967         * lib/unictype/categ_M.h: Likewise.
64968         * lib/unictype/categ_Mc.h: Likewise.
64969         * lib/unictype/categ_Me.h: Likewise.
64970         * lib/unictype/categ_Mn.h: Likewise.
64971         * lib/unictype/categ_N.h: Likewise.
64972         * lib/unictype/categ_Nd.h: Likewise.
64973         * lib/unictype/categ_Nl.h: Likewise.
64974         * lib/unictype/categ_No.h: Likewise.
64975         * lib/unictype/categ_P.h: Likewise.
64976         * lib/unictype/categ_Pc.h: Likewise.
64977         * lib/unictype/categ_Pd.h: Likewise.
64978         * lib/unictype/categ_Pe.h: Likewise.
64979         * lib/unictype/categ_Pf.h: Likewise.
64980         * lib/unictype/categ_Pi.h: Likewise.
64981         * lib/unictype/categ_Po.h: Likewise.
64982         * lib/unictype/categ_Ps.h: Likewise.
64983         * lib/unictype/categ_S.h: Likewise.
64984         * lib/unictype/categ_Sc.h: Likewise.
64985         * lib/unictype/categ_Sk.h: Likewise.
64986         * lib/unictype/categ_Sm.h: Likewise.
64987         * lib/unictype/categ_So.h: Likewise.
64988         * lib/unictype/categ_Z.h: Likewise.
64989         * lib/unictype/categ_Zl.h: Likewise.
64990         * lib/unictype/categ_Zp.h: Likewise.
64991         * lib/unictype/categ_Zs.h: Likewise.
64992         * lib/unictype/categ_of.h: Likewise.
64993         * lib/unictype/combining.h: Likewise.
64994         * lib/unictype/ctype_alnum.h: Likewise.
64995         * lib/unictype/ctype_alpha.h: Likewise.
64996         * lib/unictype/ctype_blank.h: Likewise.
64997         * lib/unictype/ctype_cntrl.h: Likewise.
64998         * lib/unictype/ctype_digit.h: Likewise.
64999         * lib/unictype/ctype_graph.h: Likewise.
65000         * lib/unictype/ctype_lower.h: Likewise.
65001         * lib/unictype/ctype_print.h: Likewise.
65002         * lib/unictype/ctype_punct.h: Likewise.
65003         * lib/unictype/ctype_space.h: Likewise.
65004         * lib/unictype/ctype_upper.h: Likewise.
65005         * lib/unictype/ctype_xdigit.h: Likewise.
65006         * lib/unictype/decdigit.h: Likewise.
65007         * lib/unictype/digit.h: Likewise.
65008         * lib/unictype/mirror.h: Likewise.
65009         * lib/unictype/numeric.h: Likewise.
65010         * lib/unictype/pr_alphabetic.h: Likewise.
65011         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65012         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65013         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65014         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65015         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65016         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65017         * lib/unictype/pr_bidi_control.h: Likewise.
65018         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65019         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65020         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65021         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65022         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65023         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65024         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65025         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65026         * lib/unictype/pr_bidi_pdf.h: Likewise.
65027         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65028         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65029         * lib/unictype/pr_combining.h: Likewise.
65030         * lib/unictype/pr_composite.h: Likewise.
65031         * lib/unictype/pr_currency_symbol.h: Likewise.
65032         * lib/unictype/pr_dash.h: Likewise.
65033         * lib/unictype/pr_decimal_digit.h: Likewise.
65034         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65035         * lib/unictype/pr_deprecated.h: Likewise.
65036         * lib/unictype/pr_diacritic.h: Likewise.
65037         * lib/unictype/pr_extender.h: Likewise.
65038         * lib/unictype/pr_format_control.h: Likewise.
65039         * lib/unictype/pr_grapheme_base.h: Likewise.
65040         * lib/unictype/pr_grapheme_extend.h: Likewise.
65041         * lib/unictype/pr_grapheme_link.h: Likewise.
65042         * lib/unictype/pr_hex_digit.h: Likewise.
65043         * lib/unictype/pr_hyphen.h: Likewise.
65044         * lib/unictype/pr_id_continue.h: Likewise.
65045         * lib/unictype/pr_id_start.h: Likewise.
65046         * lib/unictype/pr_ideographic.h: Likewise.
65047         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65048         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65049         * lib/unictype/pr_ignorable_control.h: Likewise.
65050         * lib/unictype/pr_iso_control.h: Likewise.
65051         * lib/unictype/pr_join_control.h: Likewise.
65052         * lib/unictype/pr_left_of_pair.h: Likewise.
65053         * lib/unictype/pr_line_separator.h: Likewise.
65054         * lib/unictype/pr_logical_order_exception.h: Likewise.
65055         * lib/unictype/pr_lowercase.h: Likewise.
65056         * lib/unictype/pr_math.h: Likewise.
65057         * lib/unictype/pr_non_break.h: Likewise.
65058         * lib/unictype/pr_not_a_character.h: Likewise.
65059         * lib/unictype/pr_numeric.h: Likewise.
65060         * lib/unictype/pr_other_alphabetic.h: Likewise.
65061         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65062         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65063         * lib/unictype/pr_other_id_continue.h: Likewise.
65064         * lib/unictype/pr_other_id_start.h: Likewise.
65065         * lib/unictype/pr_other_lowercase.h: Likewise.
65066         * lib/unictype/pr_other_math.h: Likewise.
65067         * lib/unictype/pr_other_uppercase.h: Likewise.
65068         * lib/unictype/pr_paired_punctuation.h: Likewise.
65069         * lib/unictype/pr_paragraph_separator.h: Likewise.
65070         * lib/unictype/pr_pattern_syntax.h: Likewise.
65071         * lib/unictype/pr_pattern_white_space.h: Likewise.
65072         * lib/unictype/pr_private_use.h: Likewise.
65073         * lib/unictype/pr_punctuation.h: Likewise.
65074         * lib/unictype/pr_quotation_mark.h: Likewise.
65075         * lib/unictype/pr_radical.h: Likewise.
65076         * lib/unictype/pr_sentence_terminal.h: Likewise.
65077         * lib/unictype/pr_soft_dotted.h: Likewise.
65078         * lib/unictype/pr_space.h: Likewise.
65079         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65080         * lib/unictype/pr_titlecase.h: Likewise.
65081         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65082         * lib/unictype/pr_unified_ideograph.h: Likewise.
65083         * lib/unictype/pr_uppercase.h: Likewise.
65084         * lib/unictype/pr_variation_selector.h: Likewise.
65085         * lib/unictype/pr_white_space.h: Likewise.
65086         * lib/unictype/pr_xid_continue.h: Likewise.
65087         * lib/unictype/pr_xid_start.h: Likewise.
65088         * lib/unictype/pr_zero_width.h: Likewise.
65089         * lib/unictype/scripts.h: Likewise.
65090         * lib/unictype/scripts_byname.gperf: Likewise.
65091         * lib/unictype/sy_c_ident.h: Likewise.
65092         * lib/unictype/sy_c_whitespace.h: Likewise.
65093         * lib/unictype/sy_java_ident.h: Likewise.
65094         * lib/unictype/sy_java_whitespace.h: Likewise.
65095
65096         * lib/unictype/Makefile: New file.
65097         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65098         glibc.
65099         * lib/unictype/3level.h: New file, copied from glibc.
65100         * lib/unictype/3levelbit.h: New file.
65101
65102 2007-11-11  Bruno Haible  <bruno@clisp.org>
65103
65104         * modules/gperf: New file.
65105         * modules/iconv_open (Depends-on): Add it.
65106         (Makefile.am): Remove the GPERF definition.
65107
65108 2007-11-11  Bruno Haible  <bruno@clisp.org>
65109
65110         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65111         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65112
65113 2007-11-11  Bruno Haible  <bruno@clisp.org>
65114
65115         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65116         (usage): Remove function.
65117
65118 2007-11-11  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65121         gl_FUNC_CEILF_LIBS.
65122         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65123         gl_FUNC_CEIL_LIBS.
65124         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65125         gl_FUNC_CEILL_LIBS.
65126         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65127         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65128         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65129
65130 2007-11-11  Bruno Haible  <bruno@clisp.org>
65131
65132         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65133         roundf were declared but do not exist on functions.
65134         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65135         roundl were declared but do not exist on functions.
65136         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65137         HAVE_FLOORL_AND_CEILL, respectively.
65138         Needed for Sun C on Solaris 10.
65139
65140 2007-11-11  Bruno Haible  <bruno@clisp.org>
65141
65142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65143         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65144         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65145         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65147         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65148         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65149         HAVE_DECL_ROUNDF.
65150         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65151         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65153         of HAVE_DECL_ROUND*.
65154         * modules/math (Makefile.am): Update.
65155
65156 2007-11-10  Bruno Haible  <bruno@clisp.org>
65157
65158         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65159         ptrdiff_t as m4/intl.m4.
65160
65161 2007-11-10  Jim Meyering  <meyering@redhat.com>
65162
65163         Avoid link failure for the argmatch test.
65164         * tests/test-argmatch.c (usage): Define function to avoid a link
65165         failure: argmatch_die requires a usage function.
65166
65167 2007-11-09  Bruno Haible  <bruno@clisp.org>
65168
65169         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65170         * doc/functions/vsnprintf.texi: Likewise.
65171         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65172         with a size argument < 2.
65173
65174 2007-11-09  Bruno Haible  <bruno@clisp.org>
65175
65176         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65177         buffer. Fixes an inefficiency introduced on 2007-11-03.
65178
65179 2007-11-09  Bruno Haible  <bruno@clisp.org>
65180
65181         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65182         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65183
65184 2007-11-08  Jim Meyering  <meyering@redhat.com>
65185
65186         Change cache variable name prefix "jm_" to "gl_" everywhere.
65187         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65188         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65189         * m4/uptime.m4: s/gl_/jm_/
65190
65191 2007-11-07  Bruno Haible  <bruno@clisp.org>
65192
65193         Update to GNU gettext 0.17.
65194         * m4/intl.m4: Update to GNU gettext 0.17.
65195         * m4/po.m4: Likewise.
65196         * modules/gettext (Files): Remove m4/ulonglong.m4.
65197         (configure.ac): Require gettext infrastructure from version 0.17.
65198
65199 2007-11-06  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65202         symbolic values are not defined in a public header.
65203         * lib/freadable.c (freadable) [QNX]: Likewise.
65204         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65205         * lib/freading.c (freading) [QNX]: Likewise.
65206         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65207         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65208         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65209         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65210         Reported by Alain Magloire.
65211
65212         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65213
65214 2007-11-05  Bruno Haible  <bruno@clisp.org>
65215
65216         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65217         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65218         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65219         Reported by Eric Blake.
65220
65221 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65222             Bruno Haible  <bruno@clisp.org>
65223
65224         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65225         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65226         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65227         (malloc): Undefine also before including <stdlib.h>.
65228         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65229         Needed on OSF/1 4.0.
65230
65231 2007-11-05  Jim Meyering  <meyering@redhat.com>
65232
65233         git-version-gen: sync from coreutils.
65234         * build-aux/git-version-gen: Add comments.
65235         Change the first '-' to '.' in the snapshot version string,
65236         e.g., 6.9-377-08144 -> 6.9.377-08144
65237         Remove first parameter.
65238         Don't declare a version "-dirty" merely because a time
65239         stamp has changed.
65240
65241 2007-11-04  Bruno Haible  <bruno@clisp.org>
65242
65243         * lib/lock.h: Protect all macro definitions containing an 'if'
65244         statement through a "do { ... } while (0)".
65245         * lib/tls.h: Likewise.
65246
65247 2007-11-04  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65250
65251 2007-11-04  Bruno Haible  <bruno@clisp.org>
65252
65253         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65254         * modules/fprintf-posix (Depends-on): Add nocrash.
65255         * modules/snprintf-posix (Depends-on): Likewise.
65256         * modules/sprintf-posix (Depends-on): Likewise.
65257         * modules/vasnprintf-posix (Depends-on): Likewise.
65258         * modules/vasprintf-posix (Depends-on): Likewise.
65259         * modules/vfprintf-posix (Depends-on): Likewise.
65260         * modules/vsnprintf-posix (Depends-on): Likewise.
65261         * modules/vsprintf-posix (Depends-on): Likewise.
65262         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65264         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65267         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65268         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65269
65270 2007-11-04  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/nocrash: New file.
65273         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65274         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65275
65276 2007-11-04  Bruno Haible  <bruno@clisp.org>
65277
65278         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65279         precision handling.
65280         * tests/test-vasprintf-posix.c (test_function): Likewise.
65281         * tests/test-snprintf-posix.h (test_function): Likewise.
65282         * tests/test-sprintf-posix.h (test_function): Likewise.
65283
65284         Fix *printf behaviour for large precisions on mingw and BeOS.
65285         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65286         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65288         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65290         gl_PRINTF_PRECISION and test its result. Invoke
65291         gl_PREREQ_VASNPRINTF_PRECISION.
65292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65294         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65296         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65298         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65299         * doc/functions/fprintf.texi: Update.
65300         * doc/functions/printf.texi: Update.
65301         * doc/functions/snprintf.texi: Update.
65302         * doc/functions/sprintf.texi: Update.
65303         * doc/functions/vfprintf.texi: Update.
65304         * doc/functions/vprintf.texi: Update.
65305         * doc/functions/vsnprintf.texi: Update.
65306         * doc/functions/vsprintf.texi: Update.
65307
65308 2007-11-04  Bruno Haible  <bruno@clisp.org>
65309
65310         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65311
65312 2007-11-04  Bruno Haible  <bruno@clisp.org>
65313
65314         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65315         Reported by Sylvain Beucler <beuc@gnu.org>.
65316
65317 2007-11-03  Bruno Haible  <bruno@clisp.org>
65318
65319         * tests/test-fprintf-posix2.sh: New file.
65320         * tests/test-fprintf-posix2.c: New file.
65321         * modules/fprintf-posix-tests (Files): Add them.
65322         (TESTS): Add test-fprintf-posix2.sh.
65323         (configure.ac): Check for getrlimit and setrlimit.
65324         (check_PROGRAMS): Add test-fprintf-posix2.
65325
65326         * tests/test-printf-posix2.sh: New file.
65327         * tests/test-printf-posix2.c: New file.
65328         * modules/printf-posix-tests (Files): Add them.
65329         (TESTS): Add test-printf-posix2.sh.
65330         (configure.ac): Check for getrlimit and setrlimit.
65331         (check_PROGRAMS): Add test-printf-posix2.
65332
65333         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65334         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65335         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65336         (decode_double): New function, copied from decode_long_double.
65337         (scale10_round_decimal_decoded): New function, extracted from
65338         scale10_round_decimal_long_double.
65339         (scale10_round_decimal_long_double): Use it.
65340         (scale10_round_decimal_double): New function.
65341         (floorlog10): New function.
65342         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65344         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65346         gl_PRINTF_ENOMEM and test its result. Invoke
65347         gl_PREREQ_VASNPRINTF_ENOMEM.
65348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65355         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65356         * modules/snprintf-posix (Depends-on): Likewise.
65357         * modules/sprintf-posix (Depends-on): Likewise.
65358         * modules/vasnprintf-posix (Depends-on): Likewise.
65359         * modules/vasprintf-posix (Depends-on): Likewise.
65360         * modules/vfprintf-posix (Depends-on): Likewise.
65361         * modules/vsnprintf-posix (Depends-on): Likewise.
65362         * modules/vsprintf-posix (Depends-on): Likewise.
65363         * doc/functions/fprintf.texi: Update.
65364         * doc/functions/printf.texi: Update.
65365         * doc/functions/snprintf.texi: Update.
65366         * doc/functions/sprintf.texi: Update.
65367         * doc/functions/vfprintf.texi: Update.
65368         * doc/functions/vprintf.texi: Update.
65369         * doc/functions/vsnprintf.texi: Update.
65370         * doc/functions/vsprintf.texi: Update.
65371
65372 2007-11-03  Bruno Haible  <bruno@clisp.org>
65373
65374         * modules/frexp-nolibm-tests: New file.
65375
65376         * modules/frexp-nolibm: New file.
65377         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65378
65379 2007-11-03  Bruno Haible  <bruno@clisp.org>
65380
65381         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65382         value is C99 compliant.
65383         Needed for OSF/1 5.1.
65384
65385 2007-11-03  Bruno Haible  <bruno@clisp.org>
65386
65387         Fix out-of-memory handling of vasnprintf.
65388         * lib/printf-parse.c: Include <errno.h>.
65389         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65390         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65391         is already set.
65392
65393 2007-11-02  Eric Blake  <ebb9@byu.net>
65394
65395         Fix tests on cygwin.
65396         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65397
65398 2007-11-01  Bruno Haible  <bruno@clisp.org>
65399
65400         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65401         warning.
65402         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65403         needed for POSIX compatibility.
65404
65405 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65406
65407         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65408         for compatibility with GNU.
65409
65410 2007-11-01  Bruno Haible  <bruno@clisp.org>
65411
65412         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65413         (putenv): Renamed from rpl_putenv. Change argument type from
65414         'const char *' to 'char *'.
65415         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65416         of defining putenv in config.h, just set REPLACE_PUTENV.
65417         * modules/putenv (Depends-on): Add stdlib.
65418         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65419         (Include): Use <stdlib.h>.
65420         * lib/stdlib.in.h (putenv): New declaration.
65421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65422         REPLACE_PUTENV.
65423         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65424         REPLACE_PUTENV.
65425         Needed for MacOS X 10.5.0.
65426         Reported by Peter O'Gorman <peter@pogma.com>.
65427
65428 2007-11-01  Jim Meyering  <meyering@redhat.com>
65429
65430         Treat an empty date string exactly like "0".
65431         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65432         if the remaining date string (to be parsed) is empty, use "0".
65433         Reported by Mischa Molhoek and discussed in this thread:
65434         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65435
65436 2007-10-31  Bruno Haible  <bruno@clisp.org>
65437
65438         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65439         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65440         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65441         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65442         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65443         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65444
65445 2007-10-31  Bruno Haible  <bruno@clisp.org>
65446
65447         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65448         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65449         (AC_TYPE_LONG_LONG_INT): Use it.
65450         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65451         it as well.
65452         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65453         to m4/longlong.m4.
65454         * modules/stdint (Files): Remove m4/ulonglong.m4.
65455         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65456         m4/ulonglong.m4.
65457         * modules/strtoumax (Files): Likewise.
65458
65459 2007-10-30  Bruno Haible  <bruno@clisp.org>
65460
65461         * modules/xvasprintf-posix: New file.
65462         Suggested by Eric Blake.
65463
65464 2007-10-30  Bruno Haible  <bruno@clisp.org>
65465
65466         * modules/xprintf-posix-tests: New file.
65467         * tests/test-xprintf-posix.sh: New file.
65468         * tests/test-xprintf-posix.c: New file.
65469         * tests/test-xfprintf-posix.c: New file.
65470
65471         * modules/xprintf-posix: New file.
65472
65473 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65474
65475         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65476         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65477         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65478
65479 2007-10-29  Bruno Haible  <bruno@clisp.org>
65480
65481         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65482         contain the special marker '_cv_'.
65483         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65484         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65485         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65486         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65487         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65488         Reported by Ralf Wildenhues.
65489
65490 2007-10-29  Bruno Haible  <bruno@clisp.org>
65491
65492         * gnulib-tool (func_import): When --lgpl is not specified, set
65493         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65494         GPLv3.
65495         Reported by Simon Josefsson.
65496
65497 2007-10-28  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65500         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65501         HAVE_DECL_ISFINITE.
65502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65503         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65504         HAVE_DECL_ISFINITE.
65505
65506 2007-10-28  Bruno Haible  <bruno@clisp.org>
65507
65508         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65509         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65510
65511 2007-10-28  Bruno Haible  <bruno@clisp.org>
65512
65513         Fix link errors with Sun C 5.0 on Solaris 10.
65514         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65515         function is declared but not present in the compiler's libm.
65516         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65517         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65518         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65519         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65520         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65521         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65522         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65524         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65525         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65526         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65527         HAVE_DECL_FLOORL.
65528
65529 2007-10-28  Bruno Haible  <bruno@clisp.org>
65530
65531         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65532         gl_FUNC_FLOORL. Cache the result.
65533         (gl_FUNC_FLOORL): Use it.
65534         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65535         gl_FUNC_CEILL. Cache the result.
65536         (gl_FUNC_CEILL): Use it.
65537
65538         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65539         gl_FUNC_FLOOR. Cache the result.
65540         (gl_FUNC_FLOOR): Use it.
65541         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65542         gl_FUNC_CEIL. Cache the result.
65543         (gl_FUNC_CEIL): Use it.
65544
65545         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65546         gl_FUNC_FLOORF. Cache the result.
65547         (gl_FUNC_FLOORF): Use it.
65548         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65549         gl_FUNC_CEILF. Cache the result.
65550         (gl_FUNC_CEILF): Use it.
65551
65552 2007-10-28  Bruno Haible  <bruno@clisp.org>
65553
65554         * gnulib-tool: Allow specifying the LGPL version number through
65555         --lgpl=2 or --lgpl=3.
65556         (func_usage): Document --lgpl with argument.
65557         Handle --lgpl=... arguments.
65558         (func_import): Recognize also gl_LGPL calls with an argument. When
65559         --lgpl=2 is used and the module's license is just LGPL, report an
65560         error. Set sed_transform_lib_file according to the lgpl variable. In
65561         the generated files, use --lgpl or gl_LGPL invocations with argument,
65562         if necessary.
65563         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65564         an LGPv2+ license.
65565         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65566         gl_LGPL macro.
65567
65568 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65569             Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65572         (u16_uctomb_aux): Likewise.
65573         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65574         !HAVE_INLINE.
65575         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65576
65577 2007-10-28  Bruno Haible  <bruno@clisp.org>
65578
65579         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65580         Invoke AM_GETTEXT_OPTION if it exists.
65581         * modules/vasprintf: Likewise.
65582         * modules/verror: Likewise.
65583         * modules/xprintf: Likewise.
65584         * modules/xvasprintf: Likewise.
65585
65586 2007-10-27  Ben Pfaff  <blp@gnu.org>
65587
65588         * lib/math.in.h: Define isfinite macro and prototypes for
65589         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65590         implementations.
65591         * m4/math_h.m4: New substitutions for isfinite module.
65592         * lib/isfinite.c: New file.
65593         * m4/isfinite.m4: New file.
65594         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65595         * modules/isfinite: New file.
65596         * modules/isfinite-tests: New file.
65597         * tests/tests-isfinite.c: New file.
65598         * doc/functions/isfinite.texi: Mention isfinite module.
65599         * MODULES.html.sh: Mention new module.
65600
65601 2007-10-27  Ben Pfaff  <blp@gnu.org>
65602
65603         Ralf Wildenhues reported that Tru64 4.0D declares the round
65604         functions but does not have definitions.
65605         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65606         cannot be found in any library, set the output variable to
65607         "missing" instead of "".
65608         * m4/round.m4: Also use our substitute if we cannot find round in
65609         any library, even if it is declared.
65610         * m4/roundf.m4: Likewise for roundf.
65611         * m4/roundl.m4: Likewise for roundl.
65612         * lib/math.in.h: Undefine roundf, round, roundl before defining
65613         their replacements, to allow for hypothetical systems where these
65614         may be defined as macros but not available in libraries.
65615
65616 2007-10-27  Bruno Haible  <bruno@clisp.org>
65617
65618         * doc/gnulib.texi: Invoke @firstparagraphindent.
65619         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65620         changes in gnulib.
65621         (Source changes): New section.
65622
65623 2007-10-26  Bruno Haible  <bruno@clisp.org>
65624
65625         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65626         borrowed from autoconf.
65627
65628 2007-10-26  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65631         strerror returned the empty string. Needed on HP-UX 11.00.
65632
65633 2007-10-24  Micah Cowan  <micah@cowan.name>
65634
65635         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65636         * build-aux/bootstrap: Remove support for now-unnecessary option,
65637         --cvs-user, and envvars CVS_USER, CVS_RSH.
65638
65639 2007-10-24  Jim Meyering  <meyering@redhat.com>
65640
65641         Avoid diagnostics from sha1sum when there is no cached checksum.
65642         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65643         if the po.s1 file hasn't been created yet.
65644
65645         * build-aux/bootstrap: Sync from coreutils:
65646         2007-10-24  Jim Meyering  <meyering@redhat.com>
65647         Get gnulib from the git repository, not from an obsolete cvs one.
65648         * build-aux/bootstrap: Suggestion from Micah Cowan.
65649         2007-10-04  Jim Meyering  <jim@meyering.net>
65650         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65651         (update_po_files): Work also when there are no .po files in po/.
65652
65653 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * README: Append ".git" to git and cg examples.
65656         Problem reported by Benoit Sigoure.
65657
65658 2007-10-23  Micah Cowan  <micah@cowan.name>
65659
65660         * users.txt: Add wget.
65661
65662 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65663
65664         Fix linking of some unistdio tests on FreeBSD.
65665         * modules/unistdio/u16-vsnprintf-tests
65666         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65667         * modules/unistdio/u16-vsprintf-tests
65668         (test_u16_vsnprintf1_LDADD): Likewise.
65669         * modules/unistdio/u32-vsnprintf-tests
65670         (test_u32_vsnprintf1_LDADD): Likewise.
65671         * modules/unistdio/u32-vsprintf-tests
65672         (test_u32_vsprintf1_LDADD): Likewise.
65673         * modules/unistdio/u8-vsnprintf-tests
65674         (test_u8_vsnprintf1_LDADD): Likewise.
65675         * modules/unistdio/u8-vsprintf-tests
65676         (test_u8_vsprintf1_LDADD): Likewise.
65677         * modules/unistdio/ulc-vsnprintf-tests
65678         (test_ulc_vsnprintf1_LDADD): Likewise.
65679         * modules/unistdio/ulc-vsprintf-tests
65680         (test_ulc_vsprintf1_LDADD): Likewise.
65681
65682         Fix linking of some uniconv tests on FreeBSD.
65683         * modules/uniconv/u16-conv-from-enc-tests
65684         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65685         * modules/uniconv/u16-conv-to-enc-tests
65686         (test_u16_conv_to_enc_LDADD): Likewise.
65687         * modules/uniconv/u16-strconv-from-enc-tests
65688         (test_u16_strconv_from_enc_LDADD): Likewise.
65689         * modules/uniconv/u16-strconv-to-enc-tests
65690         (test_u16_strconv_to_enc_LDADD): Likewise.
65691         * modules/uniconv/u32-conv-from-enc-tests
65692         (test_u32_conv_from_enc_LDADD): Likewise.
65693         * modules/uniconv/u32-conv-to-enc-tests
65694         (test_u32_conv_to_enc_LDADD): Likewise.
65695         * modules/uniconv/u32-strconv-from-enc-tests
65696         (test_u32_strconv_from_enc_LDADD): Likewise.
65697         * modules/uniconv/u32-strconv-to-enc-tests
65698         (test_u32_strconv_to_enc_LDADD): Likewise.
65699         * modules/uniconv/u8-conv-from-enc-tests
65700         (test_u8_conv_from_enc_LDADD): Likewise.
65701         * modules/uniconv/u8-conv-to-enc-tests
65702         (test_u8_conv_to_enc_LDADD): Likewise.
65703         * modules/uniconv/u8-strconv-from-enc-tests
65704         (test_u8_strconv_from_enc_LDADD): Likewise.
65705         * modules/uniconv/u8-strconv-to-enc-tests
65706         (test_u8_strconv_to_enc_LDADD): Likewise.
65707
65708 2007-10-22  Bruno Haible  <bruno@clisp.org>
65709
65710         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65711         size.
65712
65713 2007-10-22  Eric Blake  <ebb9@byu.net>
65714
65715         Tweak x*printf documentation.
65716         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65717         variable name and comments.
65718         Suggested by Bruno Haible.
65719
65720 2007-10-22  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/acl.c (copy_acl): Fix file name in comment.
65723
65724 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         Fix Tru64 problem with stdbool.h.
65727         * lib/stdbool.in.h (false, true):
65728         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65729         Don't declare as an enum in this situation; it runs afoul of Tru64.
65730         Problem reported by Steven M. Schweda in
65731         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65732
65733 2007-10-22  Eric Blake  <ebb9@byu.net>
65734
65735         Also wrap vf?printf.
65736         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65737         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65738         (xvprintf, xvfprintf): New functions.
65739
65740 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65741
65742         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65743         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65744
65745         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65746         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65747
65748 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65751         by Bruno Haible.
65752
65753 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65754
65755         * lib/getloadavg.c
65756         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65757         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65758
65759         * tests/test-i-ring.c: Work for C89.
65760
65761 2007-10-22  Bruno Haible  <bruno@clisp.org>
65762
65763         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65764         -1u, in preprocessor expression, so that we don't test for the bug
65765         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65767
65768 2007-10-22  Eric Blake  <ebb9@byu.net>
65769
65770         * tests/test-yesno.sh: Silence stderr during test.
65771
65772 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65773
65774         * modules/crypto/gc-camellia: New file.
65775
65776         * m4/gc-camellia.m4: New file.
65777
65778         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65779
65780         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65781
65782 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65783
65784         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65785         --help to stdout.  Reported by sms@antinode.org (Steven
65786         M. Schweda).
65787
65788 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65789
65790         * users.txt: Fix link to libksba.
65791
65792 2007-10-21  Ben Pfaff  <blp@gnu.org>
65793
65794         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65795         round.c roundf implementation that depends on floorf and ceilf to
65796         be tested unconditionally.
65797
65798 2007-10-21  Ben Pfaff  <blp@gnu.org>
65799
65800         * m4/check-libm-func.m4: Removed.
65801         * m4/check-math-lib.m4: New file.
65802         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65803         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65804         definition and lack of AC_LIBOBJ([roundf]).
65805         * m4/roundl.m4: Ditto, and similarly for roundl.
65806         * modules/round: Reference new m4 file.
65807         * modules/roundf: Ditto.
65808         * modules/roundl: Ditto.
65809         * tests/test-round2.c (main): Use ROUND instead of round.
65810         Bug report from Bruno Haible.
65811
65812 2007-10-21  Bruno Haible  <bruno@clisp.org>
65813
65814         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65815         context.
65816
65817 2007-10-21  Bruno Haible  <bruno@clisp.org>
65818
65819         * tests/test-wcwidth.c (main): Allow negative result for some control
65820         characters.
65821
65822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65823         Needed on OSF/1 5.1.
65824
65825 2007-10-21  Bruno Haible  <bruno@clisp.org>
65826
65827         * tests/test-floorf1.c: Include isnanf.h.
65828         (main): Use isnanf() instead of isnan().
65829         * tests/test-ceilf1.c: Include isnanf.h.
65830         (main): Use isnanf() instead of isnan().
65831         * tests/test-truncf1.c: Include isnanf.h.
65832         (main): Use isnanf() instead of isnan().
65833         * tests/test-roundf1.c: Include isnanf.h.
65834         (main): Use isnanf() instead of isnan().
65835
65836 2007-10-21  Eric Blake  <ebb9@byu.net>
65837
65838         * users.txt: Update URL for m4.
65839
65840 2007-10-21  Bruno Haible  <bruno@clisp.org>
65841
65842         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65843
65844 2007-10-21  Bruno Haible  <bruno@clisp.org>
65845
65846         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65847         Git's management files if the CVS files are not present.
65848
65849 2007-10-20  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65852         gcc-3.4.x.
65853
65854 2007-10-20  Ben Pfaff  <blp@gnu.org>
65855
65856         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65857         implementations.
65858         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65859         * lib/round.c: New file.
65860         * lib/roundf.c: New file.
65861         * lib/roundl.c: New file.
65862         * m4/round.m4: New file.
65863         * m4/roundf.m4: New file.
65864         * m4/roundl.m4: New file.
65865         * m4/check-libm-func-m4: New file.
65866         * modules/math: Replace round, roundf, roundl related @VARS@ in
65867         math.in.h.
65868         * modules/round: New file.
65869         * modules/round-tests: New file.
65870         * modules/roundf: New file.
65871         * modules/roundf-tests: New file.
65872         * modules/roundl: New file.
65873         * modules/roundl-tests: New file.
65874         * tests/test-round1.c: New file.
65875         * tests/test-round2.c: New file.
65876         * tests/test-roundf1.c: New file.
65877         * tests/test-roundf2.c: New file.
65878         * tests/test-roundl.c: New file.
65879         * doc/functions/round.texi: Mention round module.
65880         * doc/functions/roundf.texi: Mention roundf module.
65881         * doc/functions/roundl.texi: Mention roundl module.
65882         * MODULES.html.sh: Mention new modules.
65883         Thanks to Bruno Haible for suggestions.
65884
65885 2007-10-20  Jim Meyering  <meyering@redhat.com>
65886
65887         * lib/xprintf.c: Include <config.h> unconditionally.
65888
65889         Change xprintf's license to GPL.
65890         * modules/xprintf (License): s/LGPL/GPL/, since this module
65891         depends on modules (exit and exitfail) which are GPL.
65892         Suggestion from Bruno Haible.
65893
65894         xprintf fixes.
65895         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65896         Use a clearer diagnostic.
65897         Patch from Bruno Haible.
65898
65899 2007-10-20  Bruno Haible  <bruno@clisp.org>
65900
65901         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65902         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65904
65905 2007-10-20  Bruno Haible  <bruno@clisp.org>
65906
65907         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65908         precision in the comparison result > x - 1 or similar.
65909         * tests/test-ceilf2.c (correct_result_p): Likewise.
65910         * tests/test-truncf2.c (correct_result_p): Likewise.
65911         * tests/test-trunc2.c (correct_result_p): Likewise.
65912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65913
65914 2007-10-20  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/ceil: New file.
65917         * m4/ceil.m4: New file.
65918         * doc/functions/ceil.texi: Mention the 'ceil' module.
65919
65920 2007-10-20  Bruno Haible  <bruno@clisp.org>
65921
65922         * modules/floor: New file.
65923         * m4/floor.m4: New file.
65924         * doc/functions/floor.texi: Mention the 'floor' module.
65925
65926 2007-10-20  Bruno Haible  <bruno@clisp.org>
65927
65928         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65929         of %a.
65930         * modules/floorf-tests (Depends-on): Likewise.
65931         * modules/truncf-tests (Depends-on): Likewise.
65932         * modules/trunc-tests (Depends-on): Likewise.
65933         Reported by Ben Pfaff.
65934
65935 2007-10-19  Jim Meyering  <meyering@redhat.com>
65936
65937         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65938         Don't bother testing specific errno values.  Just test ferror.
65939
65940         New module: xprintf
65941         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65942
65943 2007-10-19  Bruno Haible  <bruno@clisp.org>
65944
65945         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65946         syntax.
65947         * modules/javaexec (Makefile.am): Likewise.
65948         * modules/relocatable-prog (Makefile.am): Likewise.
65949         Suggested by Jim Meyering.
65950
65951 2007-10-18  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65954         Reported by Jim Meyering.
65955
65956 2007-10-18  Eric Blake  <ebb9@byu.net>
65957
65958         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65959
65960 2007-10-18  Bruno Haible  <bruno@clisp.org>
65961
65962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65963         the format string into writable memory. Needed in Fortify conditions.
65964
65965 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65966             Bruno Haible  <bruno@clisp.org>
65967
65968         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65969         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65970         * modules/trim (Depends-on): Add mbchar.
65971         (configure.ac): Add gl_FUNC_MBRTOWC.
65972         (Makefile.am): Augment lib_SOURCES.
65973
65974 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         Modify glob.c to use fstatat and dirfd, to simplify it.
65977         Suggested by Eric Blake.
65978         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65979         Don't include <stdbool.h>; not used.
65980         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65981         (link_exists_p): Simplify implementation, since we can now assume
65982         dirfd and fstatat.
65983         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65984
65985 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65986
65987         * gnulib-tool (func_get_dependencies): Fix sed script to
65988         match only tests.
65989
65990 2007-10-17  Bruno Haible  <bruno@clisp.org>
65991
65992         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65993         allow locale names without encoding suffix.
65994         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65995         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65996
65997 2007-10-16  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66000         * lib/getgroups.c (getgroups): Likewise.
66001         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66002
66003 2007-10-16  Bruno Haible  <bruno@clisp.org>
66004
66005         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66006         * modules/malloc-posix (License): Likewise.
66007         * modules/realloc-posix (License): Likewise.
66008         * modules/calloc-posix (License): Likewise.
66009         * modules/intprops (License): Change from GPL to LGPL, with
66010         Paul Eggert's approval.
66011
66012 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66013
66014         Merge glibc changes into lib/glob.c.
66015
66016         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66017         2007-10-15 04:59:03 UTC.  Here are the changes:
66018
66019         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66020
66021         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66022
66023         * lib/glob.c: Add some branch prediction throughout.
66024
66025         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66026
66027         [BZ #5103]
66028         * lib/glob.c (glob): Recognize patterns starting \/.
66029
66030         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66031
66032         [BZ #3996]
66033         * lib/glob.c (attribute_hidden): Define if not defined.
66034         (glob): Unescape dirname, filename or username when needed and not
66035         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66036         is NULL.  Handle unescaped [ in pattern without closing ].
66037         Don't pass GLOB_CHECK down to recursive glob for directories.
66038         (__glob_pattern_type): New function.
66039         (__glob_pattern_p): Implement using __glob_pattern_type.
66040         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66041         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66042         Remove unreachable code.
66043
66044         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66045
66046         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66047         explain why there are no leaks.
66048
66049         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66050
66051         [BZ #3253]
66052         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66053         time, rather allocate increasingly bigger arrays of pointers, if
66054         possible with alloca, if too large with malloc.
66055
66056 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66059         Problem reported by H.Merijn Brand in
66060         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66061         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66062         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66063
66064 2007-10-15  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66067         with explicit rpl_ prefix.
66068         * lib/fopen.c (fopen): Likewise.
66069         * lib/freopen.c (freopen): Likewise.
66070         * lib/iconv.c (iconv): Likewise.
66071         * lib/iconv_close.c (iconv_close): Likewise.
66072
66073 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66074
66075         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66076
66077 2007-10-15  Bruno Haible  <bruno@clisp.org>
66078
66079         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66080         <stddef.h> instead of <stdlib.h> since we only need NULL.
66081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66082
66083 2007-10-15  Bruno Haible  <bruno@clisp.org>
66084
66085         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66086         Replace paragraph talking about LIBOBJS.
66087         Reported by Colin Watson <cjwatson@debian.org>.
66088
66089 2007-10-15  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66092         <stdlib.h> before using NULL.
66093
66094 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66095
66096         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66097         Reported by Albert Chin <china@thewrittenword.com>.
66098
66099 2007-10-14  Bruno Haible  <bruno@clisp.org>
66100
66101         * modules/iconv_open-utf-tests: New file.
66102         * tests/test-iconv-utf.c: New file.
66103
66104         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66105         * modules/iconv_open-utf: New file.
66106         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66107         (iconv, iconv_close): New declarations.
66108         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66109         be defined.
66110         (iconv_open): Add special handling of conversion between UTF-8 and
66111         UTF-{16,32}{BE,LE}.
66112         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66113         * lib/iconv_close.c: New file.
66114         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66115         gl_FUNC_ICONV_OPEN.
66116         (gl_FUNC_ICONV_OPEN): Use it.
66117         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66118         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66119         and REPLACE_ICONV_UTF.
66120         * modules/iconv_open (Depends-on): Add c-strcase.
66121         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66122         ICONV_CONST.
66123         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66124
66125 2007-10-13  Albert Chin  <china@thewrittenword.com>
66126             Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66129         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66130
66131 2007-10-13  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66134         defined, use the ISO C99 inline semantics.
66135         * lib/argp.h (ARGP_EI): Likewise.
66136
66137 2007-10-13  Bruno Haible  <bruno@clisp.org>
66138
66139         Handle 'inline' change in gcc 4.3.0.
66140         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66141         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66142         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66143         argp_fmtstream_point): Disable 'extern' declaration if the function
66144         definition is going to be provided inline.
66145         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66146         semantics, not the ISO C99 inline semantics.
66147         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66148         'extern' declaration if the function definition is going to be provided
66149         inline.
66150         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66151         the GNU C inline semantics, not the ISO C99 inline semantics. With
66152         GCC 4.2, avoid a warning.
66153
66154 2007-10-13  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/freading.h (freading): Enable the use of __freading for
66157         glibc >= 2.7.
66158         * lib/freading.c (freading): Likewise.
66159
66160 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66163         "warning: C99 inline functions are not supported; using GNU89".
66164
66165 2007-10-12  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66168         of 2.
66169         * tests/test-ceilf2.c: New file.
66170         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66171
66172         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66173         * modules/ceilf-tests: Update.
66174
66175 2007-10-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66178         of 2.
66179         * tests/test-floorf2.c: New file.
66180         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66181
66182         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66183         * modules/floorf-tests: Update.
66184
66185 2007-10-12  Bruno Haible  <bruno@clisp.org>
66186
66187         * tests/test-trunc2.c: New file.
66188         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66189
66190         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66191         * modules/trunc-tests: Update.
66192
66193 2007-10-12  Bruno Haible  <bruno@clisp.org>
66194
66195         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66196         of 2.
66197         * tests/test-truncf2.c: New file.
66198         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66199
66200         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66201         * modules/truncf-tests: Update.
66202
66203 2007-10-11  Eric Blake  <ebb9@byu.net>
66204
66205         Don't claim strerror is broken on Interix.
66206         * doc/functions/strerror.texi (strerror): Known broken systems are
66207         now Solaris 8, and not Interix.
66208         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66209         Interix on cross-compile.
66210         Reported by Martin Koeppe in
66211         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66212
66213 2007-10-11  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/i-ring-tests: New file.
66216         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66217         instead of assert.
66218
66219 2007-10-11  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/filenamecat-tests: New file.
66222         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66223         * lib/filenamecat.c: Remove test code.
66224
66225 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66226
66227         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66228
66229         * lib/strerror.c: Include <string.h> always, to test interface,
66230         and to remove the need for the dummy.
66231         Include intprops.h to compute width instead of doing it ourselves
66232         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66233         (strerror): Define it to return NULL if there's no system strerror.
66234         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66235         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66236         ancient pre-strerror Unix systems well any more.  Saying "unknown
66237         system error" is enough.
66238         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66239         simpler strerror.c implementation.
66240         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66241         Simplify the tests to reflect the simpler strerror implementation.
66242         * modules/strerror (Depends-on): Add intprops.
66243
66244 2007-10-09  Eric Blake  <ebb9@byu.net>
66245
66246         Silence test-fpending.
66247         * modules/fpending-tests (Files): Add wrapper script.
66248         * tests/test-fpending.sh: New file.
66249
66250 2007-10-09  Bruno Haible  <bruno@clisp.org>
66251
66252         * MODULES.html.sh (func_module): Don't create a hyperlink for
66253         function names like 'printf_frexp'.
66254         (Misc): Add crc, memxor.
66255         (Characteristics of floating types): New section.
66256         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66257         isnanf-nolibm, signbit, trunc, truncf, truncl.
66258         (Enhancements for ISO C 99 functions): New subsection Input/output.
66259         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66260         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66261         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66262         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66263         (Enhancements for POSIX:2001 functions): Add chdir-long.
66264         (File system functions): Add areadlink, chdir-safer, read-file.
66265         Remove cycle-check.
66266         (File system as inode set): New section.
66267         (Date and time): Add gethrxtime.
66268         (Multithreading): Add openmp.
66269         (Internationalization functions): Add localename.
66270         (Unicode string functions): Add unistr/u*-mbsnlen.
66271         (Support for maintaining and releasing projects): Add git-version-gen.
66272         (Lone files): Remove directories.
66273
66274 2007-10-08  Ben Pfaff  <blp@gnu.org>
66275
66276         * lib/xmalloca.h: Fix typo in comment.
66277
66278 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66281         when avoiding problems with integer overflow.  Use a portable test
66282         instead.
66283
66284 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66285
66286         * modules/dummy (License): Change to LGPLv2+.
66287         * modules/float (License): Likewise
66288         * modules/realloc (License): Likewise
66289         * modules/stdlib (License): Likewise
66290
66291 2007-10-07  Bruno Haible  <bruno@clisp.org>
66292
66293         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66294         * floor.c (TWO_MANT_DIG): Likewise.
66295         * ceil.c (TWO_MANT_DIG): Likewise.
66296         Reported by Ben Pfaff.
66297
66298 2007-10-07  Bruno Haible  <bruno@clisp.org>
66299
66300         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66301         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66302         * lib/frexp.c (FUNC): Likewise.
66303         * lib/printf-frexp.h (printf_frexp): Likewise.
66304         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66305         * lib/printf-frexp.c (FUNC): Likewise.
66306         Suggested by Jim Meyering.
66307
66308 2007-10-07  Jim Meyering  <meyering@redhat.com>
66309
66310         Make xnanosleep's integer overflow test more robust.
66311         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66312         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66313
66314 2007-10-07  Bruno Haible  <bruno@clisp.org>
66315
66316         * NEWS: Mention the license change.
66317
66318         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66319         abbreviations in the modules files.
66320
66321         Change copyright notice from GPLv2+ to GPLv3+.
66322         * README: Change copyright notice.
66323         * MODULES.html.sh: Likewise.
66324         * build-aux/bootstrap.conf: Likewise.
66325         * build-aux/config.libpath: Likewise.
66326         * build-aux/csharpcomp.sh.in: Likewise.
66327         * build-aux/csharpexec.sh.in: Likewise.
66328         * build-aux/install-reloc: Likewise.
66329         * build-aux/javacomp.sh.in: Likewise.
66330         * build-aux/javaexec.sh.in: Likewise.
66331         * build-aux/ldd.sh.in: Likewise.
66332         * build-aux/reloc-ldflags: Likewise.
66333         * build-aux/relocatable.sh.in: Likewise.
66334         * build-aux/x-to-1.in: Likewise.
66335         * check-module: Likewise.
66336         * config/srclistvars.sh: Likewise.
66337         * gnulib-tool: Likewise.
66338         * lib/acl-internal.h: Likewise.
66339         * lib/acl.c: Likewise.
66340         * lib/acl.h: Likewise.
66341         * lib/acl_entries.c: Likewise.
66342         * lib/areadlink-with-size.c: Likewise.
66343         * lib/areadlink.c: Likewise.
66344         * lib/areadlink.h: Likewise.
66345         * lib/argmatch.c: Likewise.
66346         * lib/argmatch.h: Likewise.
66347         * lib/argp-ba.c: Likewise.
66348         * lib/argp-eexst.c: Likewise.
66349         * lib/argp-fmtstream.c: Likewise.
66350         * lib/argp-fmtstream.h: Likewise.
66351         * lib/argp-fs-xinl.c: Likewise.
66352         * lib/argp-help.c: Likewise.
66353         * lib/argp-namefrob.h: Likewise.
66354         * lib/argp-parse.c: Likewise.
66355         * lib/argp-pin.c: Likewise.
66356         * lib/argp-pv.c: Likewise.
66357         * lib/argp-pvh.c: Likewise.
66358         * lib/argp-xinl.c: Likewise.
66359         * lib/argp.h: Likewise.
66360         * lib/at-func.c: Likewise.
66361         * lib/atanl.c: Likewise.
66362         * lib/backupfile.c: Likewise.
66363         * lib/backupfile.h: Likewise.
66364         * lib/basename.c: Likewise.
66365         * lib/binary-io.h: Likewise.
66366         * lib/byteswap.in.h: Likewise.
66367         * lib/c-stack.c: Likewise.
66368         * lib/c-stack.h: Likewise.
66369         * lib/c-strcasestr.c: Likewise.
66370         * lib/c-strcasestr.h: Likewise.
66371         * lib/c-strstr.c: Likewise.
66372         * lib/c-strstr.h: Likewise.
66373         * lib/c-strtod.c: Likewise.
66374         * lib/calloc.c: Likewise.
66375         * lib/canon-host.c: Likewise.
66376         * lib/canon-host.h: Likewise.
66377         * lib/canonicalize-lgpl.c: Likewise.
66378         * lib/canonicalize.c: Likewise.
66379         * lib/canonicalize.h: Likewise.
66380         * lib/ceil.c: Likewise.
66381         * lib/ceilf.c: Likewise.
66382         * lib/ceill.c: Likewise.
66383         * lib/chdir-long.c: Likewise.
66384         * lib/chdir-long.h: Likewise.
66385         * lib/chdir-safer.c: Likewise.
66386         * lib/chdir-safer.h: Likewise.
66387         * lib/chown.c: Likewise.
66388         * lib/classpath.c: Likewise.
66389         * lib/classpath.h: Likewise.
66390         * lib/clean-temp.c: Likewise.
66391         * lib/clean-temp.h: Likewise.
66392         * lib/cloexec.c: Likewise.
66393         * lib/close-stream.c: Likewise.
66394         * lib/closein.c: Likewise.
66395         * lib/closein.h: Likewise.
66396         * lib/closeout.c: Likewise.
66397         * lib/closeout.h: Likewise.
66398         * lib/concat-filename.c: Likewise.
66399         * lib/copy-file.c: Likewise.
66400         * lib/copy-file.h: Likewise.
66401         * lib/count-one-bits.h: Likewise.
66402         * lib/crc.c: Likewise.
66403         * lib/crc.h: Likewise.
66404         * lib/creat-safer.c: Likewise.
66405         * lib/csharpcomp.c: Likewise.
66406         * lib/csharpcomp.h: Likewise.
66407         * lib/csharpexec.c: Likewise.
66408         * lib/csharpexec.h: Likewise.
66409         * lib/cycle-check.c: Likewise.
66410         * lib/cycle-check.h: Likewise.
66411         * lib/diacrit.c: Likewise.
66412         * lib/diacrit.h: Likewise.
66413         * lib/diffseq.h: Likewise.
66414         * lib/dirchownmod.c: Likewise.
66415         * lib/dirent.in.h: Likewise.
66416         * lib/dirfd.c: Likewise.
66417         * lib/dirfd.h: Likewise.
66418         * lib/dirname.c: Likewise.
66419         * lib/dirname.h: Likewise.
66420         * lib/dummy.c: Likewise.
66421         * lib/dup-safer.c: Likewise.
66422         * lib/dup2.c: Likewise.
66423         * lib/eealloc.h: Likewise.
66424         * lib/error.c: Likewise.
66425         * lib/error.h: Likewise.
66426         * lib/euidaccess.c: Likewise.
66427         * lib/exclude.c: Likewise.
66428         * lib/exclude.h: Likewise.
66429         * lib/execute.c: Likewise.
66430         * lib/execute.h: Likewise.
66431         * lib/exitfail.c: Likewise.
66432         * lib/exitfail.h: Likewise.
66433         * lib/expl.c: Likewise.
66434         * lib/fatal-signal.c: Likewise.
66435         * lib/fatal-signal.h: Likewise.
66436         * lib/fbufmode.c: Likewise.
66437         * lib/fbufmode.h: Likewise.
66438         * lib/fchdir.c: Likewise.
66439         * lib/fchmodat.c: Likewise.
66440         * lib/fchownat.c: Likewise.
66441         * lib/fcntl--.h: Likewise.
66442         * lib/fcntl-safer.h: Likewise.
66443         * lib/fcntl.in.h: Likewise.
66444         * lib/fd-safer.c: Likewise.
66445         * lib/fflush.c: Likewise.
66446         * lib/file-has-acl.c: Likewise.
66447         * lib/file-set.c: Likewise.
66448         * lib/file-type.c: Likewise.
66449         * lib/file-type.h: Likewise.
66450         * lib/fileblocks.c: Likewise.
66451         * lib/filemode.c: Likewise.
66452         * lib/filemode.h: Likewise.
66453         * lib/filename.h: Likewise.
66454         * lib/filenamecat.c: Likewise.
66455         * lib/filenamecat.h: Likewise.
66456         * lib/findprog.c: Likewise.
66457         * lib/findprog.h: Likewise.
66458         * lib/float.in.h: Likewise.
66459         * lib/floor.c: Likewise.
66460         * lib/floorf.c: Likewise.
66461         * lib/floorl.c: Likewise.
66462         * lib/fopen-safer.c: Likewise.
66463         * lib/fopen.c: Likewise.
66464         * lib/fpending.c: Likewise.
66465         * lib/fpending.h: Likewise.
66466         * lib/fprintf.c: Likewise.
66467         * lib/fprintftime.h: Likewise.
66468         * lib/fpucw.h: Likewise.
66469         * lib/fpurge.c: Likewise.
66470         * lib/fpurge.h: Likewise.
66471         * lib/freadable.c: Likewise.
66472         * lib/freadable.h: Likewise.
66473         * lib/freadahead.c: Likewise.
66474         * lib/freadahead.h: Likewise.
66475         * lib/freading.c: Likewise.
66476         * lib/freading.h: Likewise.
66477         * lib/free.c: Likewise.
66478         * lib/freopen.c: Likewise.
66479         * lib/frexp.c: Likewise.
66480         * lib/frexpl.c: Likewise.
66481         * lib/fseek.c: Likewise.
66482         * lib/fseterr.c: Likewise.
66483         * lib/fseterr.h: Likewise.
66484         * lib/fstatat.c: Likewise.
66485         * lib/fstrcmp.c: Likewise.
66486         * lib/fstrcmp.h: Likewise.
66487         * lib/fsusage.c: Likewise.
66488         * lib/fsusage.h: Likewise.
66489         * lib/ftell.c: Likewise.
66490         * lib/ftello.c: Likewise.
66491         * lib/fts-cycle.c: Likewise.
66492         * lib/fts.c: Likewise.
66493         * lib/fts_.h: Likewise.
66494         * lib/full-read.c: Likewise.
66495         * lib/full-read.h: Likewise.
66496         * lib/full-write.c: Likewise.
66497         * lib/full-write.h: Likewise.
66498         * lib/fwritable.c: Likewise.
66499         * lib/fwritable.h: Likewise.
66500         * lib/fwriteerror.c: Likewise.
66501         * lib/fwriteerror.h: Likewise.
66502         * lib/fwriting.c: Likewise.
66503         * lib/fwriting.h: Likewise.
66504         * lib/gcd.c: Likewise.
66505         * lib/gcd.h: Likewise.
66506         * lib/getcwd.c: Likewise.
66507         * lib/getdate.h: Likewise.
66508         * lib/getdate.y: Likewise.
66509         * lib/getdomainname.c: Likewise.
66510         * lib/getdomainname.h: Likewise.
66511         * lib/getgroups.c: Likewise.
66512         * lib/gethostname.c: Likewise.
66513         * lib/gethrxtime.c: Likewise.
66514         * lib/gethrxtime.h: Likewise.
66515         * lib/getloadavg.c: Likewise.
66516         * lib/getndelim2.c: Likewise.
66517         * lib/getndelim2.h: Likewise.
66518         * lib/getnline.c: Likewise.
66519         * lib/getnline.h: Likewise.
66520         * lib/getopt.c: Likewise.
66521         * lib/getopt.in.h: Likewise.
66522         * lib/getopt1.c: Likewise.
66523         * lib/getopt_int.h: Likewise.
66524         * lib/getpagesize.h: Likewise.
66525         * lib/getsubopt.c: Likewise.
66526         * lib/gettime.c: Likewise.
66527         * lib/getugroups.c: Likewise.
66528         * lib/getugroups.h: Likewise.
66529         * lib/getusershell.c: Likewise.
66530         * lib/gl_anyavltree_list1.h: Likewise.
66531         * lib/gl_anyavltree_list2.h: Likewise.
66532         * lib/gl_anyhash_list1.h: Likewise.
66533         * lib/gl_anyhash_list2.h: Likewise.
66534         * lib/gl_anylinked_list1.h: Likewise.
66535         * lib/gl_anylinked_list2.h: Likewise.
66536         * lib/gl_anyrbtree_list1.h: Likewise.
66537         * lib/gl_anyrbtree_list2.h: Likewise.
66538         * lib/gl_anytree_list1.h: Likewise.
66539         * lib/gl_anytree_list2.h: Likewise.
66540         * lib/gl_anytree_oset.h: Likewise.
66541         * lib/gl_anytreehash_list1.h: Likewise.
66542         * lib/gl_anytreehash_list2.h: Likewise.
66543         * lib/gl_array_list.c: Likewise.
66544         * lib/gl_array_list.h: Likewise.
66545         * lib/gl_array_oset.c: Likewise.
66546         * lib/gl_array_oset.h: Likewise.
66547         * lib/gl_avltree_list.c: Likewise.
66548         * lib/gl_avltree_list.h: Likewise.
66549         * lib/gl_avltree_oset.c: Likewise.
66550         * lib/gl_avltree_oset.h: Likewise.
66551         * lib/gl_avltreehash_list.c: Likewise.
66552         * lib/gl_avltreehash_list.h: Likewise.
66553         * lib/gl_carray_list.c: Likewise.
66554         * lib/gl_carray_list.h: Likewise.
66555         * lib/gl_linked_list.c: Likewise.
66556         * lib/gl_linked_list.h: Likewise.
66557         * lib/gl_linkedhash_list.c: Likewise.
66558         * lib/gl_linkedhash_list.h: Likewise.
66559         * lib/gl_list.c: Likewise.
66560         * lib/gl_list.h: Likewise.
66561         * lib/gl_oset.c: Likewise.
66562         * lib/gl_oset.h: Likewise.
66563         * lib/gl_rbtree_list.c: Likewise.
66564         * lib/gl_rbtree_list.h: Likewise.
66565         * lib/gl_rbtree_oset.c: Likewise.
66566         * lib/gl_rbtree_oset.h: Likewise.
66567         * lib/gl_rbtreehash_list.c: Likewise.
66568         * lib/gl_rbtreehash_list.h: Likewise.
66569         * lib/gl_sublist.c: Likewise.
66570         * lib/gl_sublist.h: Likewise.
66571         * lib/group-member.c: Likewise.
66572         * lib/group-member.h: Likewise.
66573         * lib/hard-locale.c: Likewise.
66574         * lib/hard-locale.h: Likewise.
66575         * lib/hash-pjw.c: Likewise.
66576         * lib/hash-pjw.h: Likewise.
66577         * lib/hash-triple.c: Likewise.
66578         * lib/hash.c: Likewise.
66579         * lib/hash.h: Likewise.
66580         * lib/human.c: Likewise.
66581         * lib/human.h: Likewise.
66582         * lib/i-ring.c: Likewise.
66583         * lib/i-ring.h: Likewise.
66584         * lib/idcache.c: Likewise.
66585         * lib/imaxabs.c: Likewise.
66586         * lib/imaxdiv.c: Likewise.
66587         * lib/inet_pton.c: Likewise.
66588         * lib/inet_pton.h: Likewise.
66589         * lib/intprops.h: Likewise.
66590         * lib/inttostr.c: Likewise.
66591         * lib/inttostr.h: Likewise.
66592         * lib/inttypes.in.h: Likewise.
66593         * lib/isapipe.c: Likewise.
66594         * lib/isdir.c: Likewise.
66595         * lib/isnan.c: Likewise.
66596         * lib/isnan.h: Likewise.
66597         * lib/isnanf.c: Likewise.
66598         * lib/isnanf.h: Likewise.
66599         * lib/isnanl-nolibm.h: Likewise.
66600         * lib/isnanl.c: Likewise.
66601         * lib/isnanl.h: Likewise.
66602         * lib/javacomp.c: Likewise.
66603         * lib/javacomp.h: Likewise.
66604         * lib/javaexec.c: Likewise.
66605         * lib/javaexec.h: Likewise.
66606         * lib/javaversion.c: Likewise.
66607         * lib/javaversion.h: Likewise.
66608         * lib/javaversion.java: Likewise.
66609         * lib/lbrkprop.h: Likewise.
66610         * lib/lchmod.h: Likewise.
66611         * lib/lchown.c: Likewise.
66612         * lib/ldexpl.c: Likewise.
66613         * lib/linebreak.c: Likewise.
66614         * lib/linebreak.h: Likewise.
66615         * lib/linebuffer.c: Likewise.
66616         * lib/linebuffer.h: Likewise.
66617         * lib/locale.in.h: Likewise.
66618         * lib/logl.c: Likewise.
66619         * lib/long-options.c: Likewise.
66620         * lib/long-options.h: Likewise.
66621         * lib/lstat.c: Likewise.
66622         * lib/lstat.h: Likewise.
66623         * lib/math.in.h: Likewise.
66624         * lib/mbchar.c: Likewise.
66625         * lib/mbchar.h: Likewise.
66626         * lib/mbfile.h: Likewise.
66627         * lib/mbiter.h: Likewise.
66628         * lib/mbscasecmp.c: Likewise.
66629         * lib/mbscasestr.c: Likewise.
66630         * lib/mbschr.c: Likewise.
66631         * lib/mbscspn.c: Likewise.
66632         * lib/mbslen.c: Likewise.
66633         * lib/mbsncasecmp.c: Likewise.
66634         * lib/mbsnlen.c: Likewise.
66635         * lib/mbspbrk.c: Likewise.
66636         * lib/mbspcasecmp.c: Likewise.
66637         * lib/mbsrchr.c: Likewise.
66638         * lib/mbssep.c: Likewise.
66639         * lib/mbsspn.c: Likewise.
66640         * lib/mbsstr.c: Likewise.
66641         * lib/mbstok_r.c: Likewise.
66642         * lib/mbswidth.c: Likewise.
66643         * lib/mbswidth.h: Likewise.
66644         * lib/mbuiter.h: Likewise.
66645         * lib/memcasecmp.c: Likewise.
66646         * lib/memcasecmp.h: Likewise.
66647         * lib/memchr.c: Likewise.
66648         * lib/memcmp.c: Likewise.
66649         * lib/memcoll.c: Likewise.
66650         * lib/memcoll.h: Likewise.
66651         * lib/memcpy.c: Likewise.
66652         * lib/memrchr.c: Likewise.
66653         * lib/mkancesdirs.c: Likewise.
66654         * lib/mkdir-p.c: Likewise.
66655         * lib/mkdir-p.h: Likewise.
66656         * lib/mkdir.c: Likewise.
66657         * lib/mkdirat.c: Likewise.
66658         * lib/mkdtemp.c: Likewise.
66659         * lib/mkstemp-safer.c: Likewise.
66660         * lib/mkstemp.c: Likewise.
66661         * lib/modechange.c: Likewise.
66662         * lib/modechange.h: Likewise.
66663         * lib/mountlist.c: Likewise.
66664         * lib/mountlist.h: Likewise.
66665         * lib/mpsort.c: Likewise.
66666         * lib/nanosleep.c: Likewise.
66667         * lib/obstack.c: Likewise.
66668         * lib/obstack.h: Likewise.
66669         * lib/open-safer.c: Likewise.
66670         * lib/open.c: Likewise.
66671         * lib/openat-die.c: Likewise.
66672         * lib/openat-priv.h: Likewise.
66673         * lib/openat-proc.c: Likewise.
66674         * lib/openat.c: Likewise.
66675         * lib/openat.h: Likewise.
66676         * lib/pagealign_alloc.c: Likewise.
66677         * lib/pagealign_alloc.h: Likewise.
66678         * lib/physmem.c: Likewise.
66679         * lib/physmem.h: Likewise.
66680         * lib/pipe-safer.c: Likewise.
66681         * lib/pipe.c: Likewise.
66682         * lib/pipe.h: Likewise.
66683         * lib/posixtm.c: Likewise.
66684         * lib/posixtm.h: Likewise.
66685         * lib/posixver.c: Likewise.
66686         * lib/printf-frexp.c: Likewise.
66687         * lib/printf-frexp.h: Likewise.
66688         * lib/printf-frexpl.c: Likewise.
66689         * lib/printf-frexpl.h: Likewise.
66690         * lib/printf.c: Likewise.
66691         * lib/progname.c: Likewise.
66692         * lib/progname.h: Likewise.
66693         * lib/progreloc.c: Likewise.
66694         * lib/putenv.c: Likewise.
66695         * lib/quote.c: Likewise.
66696         * lib/quote.h: Likewise.
66697         * lib/quotearg.c: Likewise.
66698         * lib/quotearg.h: Likewise.
66699         * lib/raise.c: Likewise.
66700         * lib/readline.c: Likewise.
66701         * lib/readline.h: Likewise.
66702         * lib/readlink.c: Likewise.
66703         * lib/readtokens.c: Likewise.
66704         * lib/readtokens.h: Likewise.
66705         * lib/readtokens0.c: Likewise.
66706         * lib/readtokens0.h: Likewise.
66707         * lib/readutmp.c: Likewise.
66708         * lib/readutmp.h: Likewise.
66709         * lib/realloc.c: Likewise.
66710         * lib/relocwrapper.c: Likewise.
66711         * lib/rename-dest-slash.c: Likewise.
66712         * lib/rename.c: Likewise.
66713         * lib/rmdir.c: Likewise.
66714         * lib/rpmatch.c: Likewise.
66715         * lib/safe-read.c: Likewise.
66716         * lib/safe-read.h: Likewise.
66717         * lib/safe-write.c: Likewise.
66718         * lib/safe-write.h: Likewise.
66719         * lib/same-inode.h: Likewise.
66720         * lib/same.c: Likewise.
66721         * lib/same.h: Likewise.
66722         * lib/save-cwd.c: Likewise.
66723         * lib/save-cwd.h: Likewise.
66724         * lib/savedir.c: Likewise.
66725         * lib/savedir.h: Likewise.
66726         * lib/savewd.c: Likewise.
66727         * lib/savewd.h: Likewise.
66728         * lib/search.in.h: Likewise.
66729         * lib/setenv.c: Likewise.
66730         * lib/setenv.h: Likewise.
66731         * lib/settime.c: Likewise.
66732         * lib/sh-quote.c: Likewise.
66733         * lib/sh-quote.h: Likewise.
66734         * lib/sig2str.c: Likewise.
66735         * lib/sig2str.h: Likewise.
66736         * lib/signal.in.h: Likewise.
66737         * lib/signbitd.c: Likewise.
66738         * lib/signbitf.c: Likewise.
66739         * lib/signbitl.c: Likewise.
66740         * lib/sigprocmask.c: Likewise.
66741         * lib/sincosl.c: Likewise.
66742         * lib/sleep.c: Likewise.
66743         * lib/sprintf.c: Likewise.
66744         * lib/sqrtl.c: Likewise.
66745         * lib/stat-time.h: Likewise.
66746         * lib/stdio--.h: Likewise.
66747         * lib/stdio-safer.h: Likewise.
66748         * lib/stdlib--.h: Likewise.
66749         * lib/stdlib-safer.h: Likewise.
66750         * lib/stdlib.in.h: Likewise.
66751         * lib/stpcpy.c: Likewise.
66752         * lib/stpncpy.c: Likewise.
66753         * lib/strchrnul.c: Likewise.
66754         * lib/strcspn.c: Likewise.
66755         * lib/strerror.c: Likewise.
66756         * lib/strftime.c: Likewise.
66757         * lib/strftime.h: Likewise.
66758         * lib/striconveh.c: Likewise.
66759         * lib/striconveh.h: Likewise.
66760         * lib/striconveha.c: Likewise.
66761         * lib/striconveha.h: Likewise.
66762         * lib/stripslash.c: Likewise.
66763         * lib/strnlen1.c: Likewise.
66764         * lib/strnlen1.h: Likewise.
66765         * lib/strtod.c: Likewise.
66766         * lib/strtoimax.c: Likewise.
66767         * lib/strtok_r.c: Likewise.
66768         * lib/strtol.c: Likewise.
66769         * lib/strtoll.c: Likewise.
66770         * lib/strtoul.c: Likewise.
66771         * lib/strtoull.c: Likewise.
66772         * lib/sysexits.in.h: Likewise.
66773         * lib/tempname.c: Likewise.
66774         * lib/tempname.h: Likewise.
66775         * lib/timespec.h: Likewise.
66776         * lib/tls.c: Likewise.
66777         * lib/tls.h: Likewise.
66778         * lib/tmpdir.c: Likewise.
66779         * lib/tmpdir.h: Likewise.
66780         * lib/tmpfile-safer.c: Likewise.
66781         * lib/tmpfile.c: Likewise.
66782         * lib/trigl.c: Likewise.
66783         * lib/trigl.h: Likewise.
66784         * lib/trim.c: Likewise.
66785         * lib/trim.h: Likewise.
66786         * lib/trunc.c: Likewise.
66787         * lib/truncf.c: Likewise.
66788         * lib/truncl.c: Likewise.
66789         * lib/tsearch.c: Likewise.
66790         * lib/unicodeio.c: Likewise.
66791         * lib/unicodeio.h: Likewise.
66792         * lib/unistd--.h: Likewise.
66793         * lib/unistd-safer.h: Likewise.
66794         * lib/unistdio/ulc-fprintf.c: Likewise.
66795         * lib/unistdio/ulc-vfprintf.c: Likewise.
66796         * lib/unlinkdir.c: Likewise.
66797         * lib/unlinkdir.h: Likewise.
66798         * lib/unlocked-io.h: Likewise.
66799         * lib/unsetenv.c: Likewise.
66800         * lib/userspec.c: Likewise.
66801         * lib/utime.c: Likewise.
66802         * lib/utimecmp.c: Likewise.
66803         * lib/utimecmp.h: Likewise.
66804         * lib/utimens.c: Likewise.
66805         * lib/verify.h: Likewise.
66806         * lib/verror.c: Likewise.
66807         * lib/verror.h: Likewise.
66808         * lib/version-etc-fsf.c: Likewise.
66809         * lib/version-etc.c: Likewise.
66810         * lib/version-etc.h: Likewise.
66811         * lib/vfprintf.c: Likewise.
66812         * lib/vprintf.c: Likewise.
66813         * lib/vsprintf.c: Likewise.
66814         * lib/w32spawn.h: Likewise.
66815         * lib/wait-process.c: Likewise.
66816         * lib/wait-process.h: Likewise.
66817         * lib/wcwidth.c: Likewise.
66818         * lib/write-any-file.c: Likewise.
66819         * lib/xalloc-die.c: Likewise.
66820         * lib/xalloc.h: Likewise.
66821         * lib/xasprintf.c: Likewise.
66822         * lib/xgetcwd.c: Likewise.
66823         * lib/xgetcwd.h: Likewise.
66824         * lib/xgetdomainname.c: Likewise.
66825         * lib/xgetdomainname.h: Likewise.
66826         * lib/xgethostname.c: Likewise.
66827         * lib/xmalloc.c: Likewise.
66828         * lib/xmalloca.c: Likewise.
66829         * lib/xmalloca.h: Likewise.
66830         * lib/xmemcoll.c: Likewise.
66831         * lib/xnanosleep.c: Likewise.
66832         * lib/xreadlink.c: Likewise.
66833         * lib/xreadlink.h: Likewise.
66834         * lib/xsetenv.c: Likewise.
66835         * lib/xsetenv.h: Likewise.
66836         * lib/xstriconv.c: Likewise.
66837         * lib/xstriconv.h: Likewise.
66838         * lib/xstrndup.c: Likewise.
66839         * lib/xstrndup.h: Likewise.
66840         * lib/xstrtod.c: Likewise.
66841         * lib/xstrtod.h: Likewise.
66842         * lib/xstrtol-error.c: Likewise.
66843         * lib/xstrtol.c: Likewise.
66844         * lib/xstrtol.h: Likewise.
66845         * lib/xtime.h: Likewise.
66846         * lib/xvasprintf.c: Likewise.
66847         * lib/xvasprintf.h: Likewise.
66848         * lib/yesno.c: Likewise.
66849         * lib/yesno.h: Likewise.
66850         * posix-modules: Likewise.
66851         * tests/test-alloca-opt.c: Likewise.
66852         * tests/test-arcfour.c: Likewise.
66853         * tests/test-arctwo.c: Likewise.
66854         * tests/test-argmatch.c: Likewise.
66855         * tests/test-argp-2.sh: Likewise.
66856         * tests/test-argp.c: Likewise.
66857         * tests/test-arpa_inet.c: Likewise.
66858         * tests/test-array_list.c: Likewise.
66859         * tests/test-array_oset.c: Likewise.
66860         * tests/test-atexit.c: Likewise.
66861         * tests/test-avltree_list.c: Likewise.
66862         * tests/test-avltree_oset.c: Likewise.
66863         * tests/test-avltreehash_list.c: Likewise.
66864         * tests/test-base64.c: Likewise.
66865         * tests/test-binary-io.c: Likewise.
66866         * tests/test-byteswap.c: Likewise.
66867         * tests/test-c-ctype.c: Likewise.
66868         * tests/test-c-strcasecmp.c: Likewise.
66869         * tests/test-c-strcasestr.c: Likewise.
66870         * tests/test-c-strncasecmp.c: Likewise.
66871         * tests/test-c-strstr.c: Likewise.
66872         * tests/test-canonicalize-lgpl.c: Likewise.
66873         * tests/test-canonicalize.c: Likewise.
66874         * tests/test-carray_list.c: Likewise.
66875         * tests/test-ceilf.c: Likewise.
66876         * tests/test-ceill.c: Likewise.
66877         * tests/test-count-one-bits.c: Likewise.
66878         * tests/test-crc.c: Likewise.
66879         * tests/test-dirname.c: Likewise.
66880         * tests/test-fbufmode.c: Likewise.
66881         * tests/test-fcntl.c: Likewise.
66882         * tests/test-fflush.c: Likewise.
66883         * tests/test-floorf.c: Likewise.
66884         * tests/test-floorl.c: Likewise.
66885         * tests/test-fopen.c: Likewise.
66886         * tests/test-fprintf-posix.c: Likewise.
66887         * tests/test-fprintf-posix.h: Likewise.
66888         * tests/test-fpurge.c: Likewise.
66889         * tests/test-freadable.c: Likewise.
66890         * tests/test-freadahead.c: Likewise.
66891         * tests/test-freading.c: Likewise.
66892         * tests/test-freopen.c: Likewise.
66893         * tests/test-frexp.c: Likewise.
66894         * tests/test-frexpl.c: Likewise.
66895         * tests/test-fseek.c: Likewise.
66896         * tests/test-fseeko.c: Likewise.
66897         * tests/test-fseterr.c: Likewise.
66898         * tests/test-fstrcmp.c: Likewise.
66899         * tests/test-ftell.c: Likewise.
66900         * tests/test-ftello.c: Likewise.
66901         * tests/test-fwritable.c: Likewise.
66902         * tests/test-fwriting.c: Likewise.
66903         * tests/test-getaddrinfo.c: Likewise.
66904         * tests/test-getpass.c: Likewise.
66905         * tests/test-gettimeofday.c: Likewise.
66906         * tests/test-hmac-md5.c: Likewise.
66907         * tests/test-hmac-sha1.c: Likewise.
66908         * tests/test-iconv.c: Likewise.
66909         * tests/test-iconvme.c: Likewise.
66910         * tests/test-inttypes.c: Likewise.
66911         * tests/test-isnan.c: Likewise.
66912         * tests/test-isnanf.c: Likewise.
66913         * tests/test-isnanl-nolibm.c: Likewise.
66914         * tests/test-isnanl.c: Likewise.
66915         * tests/test-isnanl.h: Likewise.
66916         * tests/test-ldexpl.c: Likewise.
66917         * tests/test-linked_list.c: Likewise.
66918         * tests/test-linkedhash_list.c: Likewise.
66919         * tests/test-locale.c: Likewise.
66920         * tests/test-localename.c: Likewise.
66921         * tests/test-lock.c: Likewise.
66922         * tests/test-lseek.c: Likewise.
66923         * tests/test-malloca.c: Likewise.
66924         * tests/test-math.c: Likewise.
66925         * tests/test-mbscasecmp.c: Likewise.
66926         * tests/test-mbscasestr1.c: Likewise.
66927         * tests/test-mbscasestr2.c: Likewise.
66928         * tests/test-mbscasestr3.c: Likewise.
66929         * tests/test-mbscasestr4.c: Likewise.
66930         * tests/test-mbschr.c: Likewise.
66931         * tests/test-mbscspn.c: Likewise.
66932         * tests/test-mbsncasecmp.c: Likewise.
66933         * tests/test-mbspbrk.c: Likewise.
66934         * tests/test-mbspcasecmp.c: Likewise.
66935         * tests/test-mbsrchr.c: Likewise.
66936         * tests/test-mbsspn.c: Likewise.
66937         * tests/test-mbsstr1.c: Likewise.
66938         * tests/test-mbsstr2.c: Likewise.
66939         * tests/test-mbsstr3.c: Likewise.
66940         * tests/test-md5.c: Likewise.
66941         * tests/test-memmem.c: Likewise.
66942         * tests/test-netinet_in.c: Likewise.
66943         * tests/test-open.c: Likewise.
66944         * tests/test-printf-frexp.c: Likewise.
66945         * tests/test-printf-frexpl.c: Likewise.
66946         * tests/test-printf-posix.c: Likewise.
66947         * tests/test-printf-posix.h: Likewise.
66948         * tests/test-rbtree_list.c: Likewise.
66949         * tests/test-rbtree_oset.c: Likewise.
66950         * tests/test-rbtreehash_list.c: Likewise.
66951         * tests/test-read-file.c: Likewise.
66952         * tests/test-rijndael.c: Likewise.
66953         * tests/test-search.c: Likewise.
66954         * tests/test-signbit.c: Likewise.
66955         * tests/test-sleep.c: Likewise.
66956         * tests/test-snprintf-posix.c: Likewise.
66957         * tests/test-snprintf-posix.h: Likewise.
66958         * tests/test-snprintf.c: Likewise.
66959         * tests/test-sprintf-posix.c: Likewise.
66960         * tests/test-sprintf-posix.h: Likewise.
66961         * tests/test-stat-time.c: Likewise.
66962         * tests/test-stdbool.c: Likewise.
66963         * tests/test-stdint.c: Likewise.
66964         * tests/test-stdio.c: Likewise.
66965         * tests/test-stdlib.c: Likewise.
66966         * tests/test-stpncpy.c: Likewise.
66967         * tests/test-strcasestr.c: Likewise.
66968         * tests/test-striconv.c: Likewise.
66969         * tests/test-striconveh.c: Likewise.
66970         * tests/test-striconveha.c: Likewise.
66971         * tests/test-string.c: Likewise.
66972         * tests/test-sys_select.c: Likewise.
66973         * tests/test-sys_socket.c: Likewise.
66974         * tests/test-sys_stat.c: Likewise.
66975         * tests/test-sys_time.c: Likewise.
66976         * tests/test-sysexits.c: Likewise.
66977         * tests/test-time.c: Likewise.
66978         * tests/test-tls.c: Likewise.
66979         * tests/test-trunc.c: Likewise.
66980         * tests/test-truncf.c: Likewise.
66981         * tests/test-truncl.c: Likewise.
66982         * tests/test-unistd.c: Likewise.
66983         * tests/test-vasnprintf-posix.c: Likewise.
66984         * tests/test-vasnprintf-posix2.c: Likewise.
66985         * tests/test-vasnprintf.c: Likewise.
66986         * tests/test-vasprintf-posix.c: Likewise.
66987         * tests/test-vasprintf.c: Likewise.
66988         * tests/test-verify.c: Likewise.
66989         * tests/test-vfprintf-posix.c: Likewise.
66990         * tests/test-vprintf-posix.c: Likewise.
66991         * tests/test-vsnprintf-posix.c: Likewise.
66992         * tests/test-vsnprintf.c: Likewise.
66993         * tests/test-vsprintf-posix.c: Likewise.
66994         * tests/test-wchar.c: Likewise.
66995         * tests/test-wctype.c: Likewise.
66996         * tests/test-wcwidth.c: Likewise.
66997         * tests/test-xstrtol.c: Likewise.
66998         * tests/test-xvasprintf.c: Likewise.
66999         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67000         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67001         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67002         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67003         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67004         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67005         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67006         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67007         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67008         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67009         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67010         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67011         * tests/uniname/test-uninames.c: Likewise.
67012         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67013         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67014         * tests/unistdio/test-u16-printf1.h: Likewise.
67015         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67016         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67017         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67018         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67019         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67020         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67021         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67022         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67023         * tests/unistdio/test-u32-printf1.h: Likewise.
67024         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67025         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67026         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67027         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67028         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67029         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67030         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67031         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67032         * tests/unistdio/test-u8-printf1.h: Likewise.
67033         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67034         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67035         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67036         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67037         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67038         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67039         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67040         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67041         * tests/unistdio/test-ulc-printf1.h: Likewise.
67042         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67043         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67044         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67045         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67046         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67047         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67048         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67049         * tests/uniwidth/test-u16-width.c: Likewise.
67050         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67051         * tests/uniwidth/test-u32-width.c: Likewise.
67052         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67053         * tests/uniwidth/test-u8-width.c: Likewise.
67054         * tests/uniwidth/test-uc_width.c: Likewise.
67055         * config/srclist-update: Likewise.
67056         (fixlicense): Update to GPLv3+.
67057
67058         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67059         * tests/test-tsearch.c: Change copyright notice.
67060
67061         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67062         * lib/c-strcaseeq.h: Change copyright notice.
67063         * lib/streq.h: Likewise.
67064         * lib/uniconv.h: Likewise.
67065         * lib/uniconv/u-conv-from-enc.h: Likewise.
67066         * lib/uniconv/u-conv-to-enc.h: Likewise.
67067         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67068         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67069         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67070         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67071         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67072         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67073         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67074         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67075         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67076         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67077         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67078         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67079         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67080         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67081         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67082         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67083         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67084         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67085         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67086         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67087         * lib/uniname.h: Likewise.
67088         * lib/uniname/uniname.c: Likewise.
67089         * lib/unistdio.h: Likewise.
67090         * lib/unistdio/u-asnprintf.h: Likewise.
67091         * lib/unistdio/u-asprintf.h: Likewise.
67092         * lib/unistdio/u-printf-args.c: Likewise.
67093         * lib/unistdio/u-printf-args.h: Likewise.
67094         * lib/unistdio/u-printf-parse.h: Likewise.
67095         * lib/unistdio/u-snprintf.h: Likewise.
67096         * lib/unistdio/u-sprintf.h: Likewise.
67097         * lib/unistdio/u-vasprintf.h: Likewise.
67098         * lib/unistdio/u-vsnprintf.h: Likewise.
67099         * lib/unistdio/u-vsprintf.h: Likewise.
67100         * lib/unistdio/u16-asnprintf.c: Likewise.
67101         * lib/unistdio/u16-asprintf.c: Likewise.
67102         * lib/unistdio/u16-printf-parse.c: Likewise.
67103         * lib/unistdio/u16-snprintf.c: Likewise.
67104         * lib/unistdio/u16-sprintf.c: Likewise.
67105         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67106         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67107         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67108         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67109         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67110         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67111         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67112         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67113         * lib/unistdio/u16-vasnprintf.c: Likewise.
67114         * lib/unistdio/u16-vasprintf.c: Likewise.
67115         * lib/unistdio/u16-vsnprintf.c: Likewise.
67116         * lib/unistdio/u16-vsprintf.c: Likewise.
67117         * lib/unistdio/u32-asnprintf.c: Likewise.
67118         * lib/unistdio/u32-asprintf.c: Likewise.
67119         * lib/unistdio/u32-printf-parse.c: Likewise.
67120         * lib/unistdio/u32-snprintf.c: Likewise.
67121         * lib/unistdio/u32-sprintf.c: Likewise.
67122         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67123         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67124         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67125         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67126         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67127         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67128         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67129         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67130         * lib/unistdio/u32-vasnprintf.c: Likewise.
67131         * lib/unistdio/u32-vasprintf.c: Likewise.
67132         * lib/unistdio/u32-vsnprintf.c: Likewise.
67133         * lib/unistdio/u32-vsprintf.c: Likewise.
67134         * lib/unistdio/u8-asnprintf.c: Likewise.
67135         * lib/unistdio/u8-asprintf.c: Likewise.
67136         * lib/unistdio/u8-printf-parse.c: Likewise.
67137         * lib/unistdio/u8-snprintf.c: Likewise.
67138         * lib/unistdio/u8-sprintf.c: Likewise.
67139         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67140         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67141         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67142         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67143         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67144         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67145         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67146         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67147         * lib/unistdio/u8-vasnprintf.c: Likewise.
67148         * lib/unistdio/u8-vasprintf.c: Likewise.
67149         * lib/unistdio/u8-vsnprintf.c: Likewise.
67150         * lib/unistdio/u8-vsprintf.c: Likewise.
67151         * lib/unistdio/ulc-asnprintf.c: Likewise.
67152         * lib/unistdio/ulc-asprintf.c: Likewise.
67153         * lib/unistdio/ulc-printf-parse.c: Likewise.
67154         * lib/unistdio/ulc-snprintf.c: Likewise.
67155         * lib/unistdio/ulc-sprintf.c: Likewise.
67156         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67157         * lib/unistdio/ulc-vasprintf.c: Likewise.
67158         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67159         * lib/unistdio/ulc-vsprintf.c: Likewise.
67160         * lib/unistr.h: Likewise.
67161         * lib/unistr/u-cpy-alloc.h: Likewise.
67162         * lib/unistr/u-cpy.h: Likewise.
67163         * lib/unistr/u-endswith.h: Likewise.
67164         * lib/unistr/u-move.h: Likewise.
67165         * lib/unistr/u-set.h: Likewise.
67166         * lib/unistr/u-startswith.h: Likewise.
67167         * lib/unistr/u-stpcpy.h: Likewise.
67168         * lib/unistr/u-stpncpy.h: Likewise.
67169         * lib/unistr/u-strcat.h: Likewise.
67170         * lib/unistr/u-strcpy.h: Likewise.
67171         * lib/unistr/u-strcspn.h: Likewise.
67172         * lib/unistr/u-strdup.h: Likewise.
67173         * lib/unistr/u-strlen.h: Likewise.
67174         * lib/unistr/u-strncat.h: Likewise.
67175         * lib/unistr/u-strncpy.h: Likewise.
67176         * lib/unistr/u-strnlen.h: Likewise.
67177         * lib/unistr/u-strpbrk.h: Likewise.
67178         * lib/unistr/u-strspn.h: Likewise.
67179         * lib/unistr/u-strstr.h: Likewise.
67180         * lib/unistr/u-strtok.h: Likewise.
67181         * lib/unistr/u16-check.c: Likewise.
67182         * lib/unistr/u16-chr.c: Likewise.
67183         * lib/unistr/u16-cmp.c: Likewise.
67184         * lib/unistr/u16-cpy-alloc.c: Likewise.
67185         * lib/unistr/u16-cpy.c: Likewise.
67186         * lib/unistr/u16-endswith.c: Likewise.
67187         * lib/unistr/u16-mblen.c: Likewise.
67188         * lib/unistr/u16-mbsnlen.c: Likewise.
67189         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67190         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67191         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67192         * lib/unistr/u16-mbtouc.c: Likewise.
67193         * lib/unistr/u16-mbtoucr.c: Likewise.
67194         * lib/unistr/u16-move.c: Likewise.
67195         * lib/unistr/u16-next.c: Likewise.
67196         * lib/unistr/u16-prev.c: Likewise.
67197         * lib/unistr/u16-set.c: Likewise.
67198         * lib/unistr/u16-startswith.c: Likewise.
67199         * lib/unistr/u16-stpcpy.c: Likewise.
67200         * lib/unistr/u16-stpncpy.c: Likewise.
67201         * lib/unistr/u16-strcat.c: Likewise.
67202         * lib/unistr/u16-strchr.c: Likewise.
67203         * lib/unistr/u16-strcmp.c: Likewise.
67204         * lib/unistr/u16-strcpy.c: Likewise.
67205         * lib/unistr/u16-strcspn.c: Likewise.
67206         * lib/unistr/u16-strdup.c: Likewise.
67207         * lib/unistr/u16-strlen.c: Likewise.
67208         * lib/unistr/u16-strmblen.c: Likewise.
67209         * lib/unistr/u16-strmbtouc.c: Likewise.
67210         * lib/unistr/u16-strncat.c: Likewise.
67211         * lib/unistr/u16-strncmp.c: Likewise.
67212         * lib/unistr/u16-strncpy.c: Likewise.
67213         * lib/unistr/u16-strnlen.c: Likewise.
67214         * lib/unistr/u16-strpbrk.c: Likewise.
67215         * lib/unistr/u16-strrchr.c: Likewise.
67216         * lib/unistr/u16-strspn.c: Likewise.
67217         * lib/unistr/u16-strstr.c: Likewise.
67218         * lib/unistr/u16-strtok.c: Likewise.
67219         * lib/unistr/u16-to-u32.c: Likewise.
67220         * lib/unistr/u16-to-u8.c: Likewise.
67221         * lib/unistr/u16-uctomb-aux.c: Likewise.
67222         * lib/unistr/u16-uctomb.c: Likewise.
67223         * lib/unistr/u32-check.c: Likewise.
67224         * lib/unistr/u32-chr.c: Likewise.
67225         * lib/unistr/u32-cmp.c: Likewise.
67226         * lib/unistr/u32-cpy-alloc.c: Likewise.
67227         * lib/unistr/u32-cpy.c: Likewise.
67228         * lib/unistr/u32-endswith.c: Likewise.
67229         * lib/unistr/u32-mblen.c: Likewise.
67230         * lib/unistr/u32-mbsnlen.c: Likewise.
67231         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67232         * lib/unistr/u32-mbtouc.c: Likewise.
67233         * lib/unistr/u32-mbtoucr.c: Likewise.
67234         * lib/unistr/u32-move.c: Likewise.
67235         * lib/unistr/u32-next.c: Likewise.
67236         * lib/unistr/u32-prev.c: Likewise.
67237         * lib/unistr/u32-set.c: Likewise.
67238         * lib/unistr/u32-startswith.c: Likewise.
67239         * lib/unistr/u32-stpcpy.c: Likewise.
67240         * lib/unistr/u32-stpncpy.c: Likewise.
67241         * lib/unistr/u32-strcat.c: Likewise.
67242         * lib/unistr/u32-strchr.c: Likewise.
67243         * lib/unistr/u32-strcmp.c: Likewise.
67244         * lib/unistr/u32-strcpy.c: Likewise.
67245         * lib/unistr/u32-strcspn.c: Likewise.
67246         * lib/unistr/u32-strdup.c: Likewise.
67247         * lib/unistr/u32-strlen.c: Likewise.
67248         * lib/unistr/u32-strmblen.c: Likewise.
67249         * lib/unistr/u32-strmbtouc.c: Likewise.
67250         * lib/unistr/u32-strncat.c: Likewise.
67251         * lib/unistr/u32-strncmp.c: Likewise.
67252         * lib/unistr/u32-strncpy.c: Likewise.
67253         * lib/unistr/u32-strnlen.c: Likewise.
67254         * lib/unistr/u32-strpbrk.c: Likewise.
67255         * lib/unistr/u32-strrchr.c: Likewise.
67256         * lib/unistr/u32-strspn.c: Likewise.
67257         * lib/unistr/u32-strstr.c: Likewise.
67258         * lib/unistr/u32-strtok.c: Likewise.
67259         * lib/unistr/u32-to-u16.c: Likewise.
67260         * lib/unistr/u32-to-u8.c: Likewise.
67261         * lib/unistr/u32-uctomb.c: Likewise.
67262         * lib/unistr/u8-check.c: Likewise.
67263         * lib/unistr/u8-chr.c: Likewise.
67264         * lib/unistr/u8-cmp.c: Likewise.
67265         * lib/unistr/u8-cpy-alloc.c: Likewise.
67266         * lib/unistr/u8-cpy.c: Likewise.
67267         * lib/unistr/u8-endswith.c: Likewise.
67268         * lib/unistr/u8-mblen.c: Likewise.
67269         * lib/unistr/u8-mbsnlen.c: Likewise.
67270         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67271         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67272         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67273         * lib/unistr/u8-mbtouc.c: Likewise.
67274         * lib/unistr/u8-mbtoucr.c: Likewise.
67275         * lib/unistr/u8-move.c: Likewise.
67276         * lib/unistr/u8-next.c: Likewise.
67277         * lib/unistr/u8-prev.c: Likewise.
67278         * lib/unistr/u8-set.c: Likewise.
67279         * lib/unistr/u8-startswith.c: Likewise.
67280         * lib/unistr/u8-stpcpy.c: Likewise.
67281         * lib/unistr/u8-stpncpy.c: Likewise.
67282         * lib/unistr/u8-strcat.c: Likewise.
67283         * lib/unistr/u8-strchr.c: Likewise.
67284         * lib/unistr/u8-strcmp.c: Likewise.
67285         * lib/unistr/u8-strcpy.c: Likewise.
67286         * lib/unistr/u8-strcspn.c: Likewise.
67287         * lib/unistr/u8-strdup.c: Likewise.
67288         * lib/unistr/u8-strlen.c: Likewise.
67289         * lib/unistr/u8-strmblen.c: Likewise.
67290         * lib/unistr/u8-strmbtouc.c: Likewise.
67291         * lib/unistr/u8-strncat.c: Likewise.
67292         * lib/unistr/u8-strncmp.c: Likewise.
67293         * lib/unistr/u8-strncpy.c: Likewise.
67294         * lib/unistr/u8-strnlen.c: Likewise.
67295         * lib/unistr/u8-strpbrk.c: Likewise.
67296         * lib/unistr/u8-strrchr.c: Likewise.
67297         * lib/unistr/u8-strspn.c: Likewise.
67298         * lib/unistr/u8-strstr.c: Likewise.
67299         * lib/unistr/u8-strtok.c: Likewise.
67300         * lib/unistr/u8-to-u16.c: Likewise.
67301         * lib/unistr/u8-to-u32.c: Likewise.
67302         * lib/unistr/u8-uctomb-aux.c: Likewise.
67303         * lib/unistr/u8-uctomb.c: Likewise.
67304         * lib/unitypes.h: Likewise.
67305         * lib/uniwidth.h: Likewise.
67306         * lib/uniwidth/cjk.h: Likewise.
67307         * lib/uniwidth/u16-strwidth.c: Likewise.
67308         * lib/uniwidth/u16-width.c: Likewise.
67309         * lib/uniwidth/u32-strwidth.c: Likewise.
67310         * lib/uniwidth/u32-width.c: Likewise.
67311         * lib/uniwidth/u8-strwidth.c: Likewise.
67312         * lib/uniwidth/u8-width.c: Likewise.
67313         * lib/uniwidth/width.c: Likewise.
67314
67315 2007-10-07  Bruno Haible  <bruno@clisp.org>
67316
67317         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67318         The file is still under LGPL (see modules/inttypes).
67319
67320 2007-10-06  Bruno Haible  <bruno@clisp.org>
67321
67322         * modules/trunc (Dependencies): Add 'extensions'.
67323         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67324         Reported by Ben Pfaff <blp@gnu.org>.
67325
67326 2007-10-06  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/freopen-tests: New file.
67329         * tests/test-freopen.c: New file.
67330
67331         * modules/fopen-tests: New file.
67332         * tests/test-fopen.c: New file.
67333
67334         * modules/fopen: New file.
67335         * lib/fopen.c: New file.
67336         * m4/fopen.m4: New file.
67337         * modules/freopen: New file.
67338         * lib/freopen.c: New file.
67339         * m4/freopen.m4: New file.
67340         * lib/stdio.in.h (fopen, freopen): New declarations.
67341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67342         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67343         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67344         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67345         * doc/functions/fopen.texi: Mention the 'fopen' module.
67346         * doc/functions/freopen.texi: Mention the 'freopen' module.
67347
67348 2007-10-06  Bruno Haible  <bruno@clisp.org>
67349
67350         * modules/open-tests: New file.
67351         * tests/test-open.c: New file.
67352
67353         * modules/open: New file.
67354         * lib/open.c: New file.
67355         * m4/open.m4: New file.
67356         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67357         lib/open.c does.
67358         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67359         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67360         macros.
67361         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67362         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67363         REPLACE_OPEN.
67364         * doc/functions/open.texi: Mention the 'open' module.
67365
67366 2007-10-04  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/ceill-tests: New file.
67369         * tests/test-ceill.c: New file.
67370
67371         * modules/ceill: New file.
67372         * lib/ceill.c: Replace entire file.
67373         * m4/ceill.m4: New file.
67374         * lib/math.in.h (ceill): Replace declaration.
67375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67376         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67377         * doc/functions/ceill.texi: Mention the 'ceill' module.
67378         * modules/mathl (Files): Remove lib/ceill.c.
67379         (Depends-on): Add ceill.
67380
67381 2007-10-04  Bruno Haible  <bruno@clisp.org>
67382
67383         * modules/ceilf-tests: New file.
67384         * tests/test-ceilf.c: New file.
67385
67386         * modules/ceilf: New file.
67387         * lib/ceil.c: New file.
67388         * lib/ceilf.c: New file.
67389         * m4/ceilf.m4: New file.
67390         * lib/math.in.h (ceilf): New declaration.
67391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67392         HAVE_DECL_CEILF.
67393         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67394         HAVE_DECL_CEILF.
67395         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67396
67397 2007-10-04  Bruno Haible  <bruno@clisp.org>
67398
67399         * modules/floorl-tests: New file.
67400         * tests/test-floorl.c: New file.
67401
67402         * modules/floorl: New file.
67403         * lib/floorl.c: Replace entire file.
67404         * m4/floorl.m4: New file.
67405         * lib/math.in.h (floorl): Replace declaration.
67406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67407         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67408         * doc/functions/floorl.texi: Mention the 'floorl' module.
67409         * modules/mathl (Files): Remove lib/floorl.c.
67410         (Depends-on): Add floorl.
67411
67412 2007-10-04  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/floorf-tests: New file.
67415         * tests/test-floorf.c: New file.
67416
67417         * modules/floorf: New file.
67418         * lib/floor.c: New file.
67419         * lib/floorf.c: New file.
67420         * m4/floorf.m4: New file.
67421         * lib/math.in.h (floorf): New declaration.
67422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67423         HAVE_DECL_FLOORF.
67424         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67425         HAVE_DECL_FLOORF.
67426         * doc/functions/floorf.texi: Mention the 'floorf' module.
67427
67428 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67429             Bruno Haible  <bruno@clisp.org>
67430
67431         Advertise for the Git server instead of the CVS server.
67432         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67433         repository instead of the CVS one.
67434         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67435         about all VCS systems generically.
67436         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67437
67438 2007-10-04  Bruno Haible  <bruno@clisp.org>
67439
67440         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67441         means.
67442         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67443
67444 2007-10-04  Bruno Haible  <bruno@clisp.org>
67445
67446         * modules/truncl-tests: New file.
67447         * tests/test-truncl.c: New file.
67448
67449         * modules/truncl: New file.
67450         * lib/truncl.c: New file.
67451         * m4/truncl.m4: New file.
67452         * lib/math.in.h (truncl): New declaration.
67453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67454         HAVE_DECL_TRUNCL.
67455         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67456         HAVE_DECL_TRUNCL.
67457         * doc/functions/truncl.texi: Mention the 'truncl' module.
67458
67459 2007-10-04  Bruno Haible  <bruno@clisp.org>
67460
67461         * modules/truncf-tests: New file.
67462         * tests/test-truncf.c: New file.
67463
67464         * modules/truncf: New file.
67465         * lib/trunc.c: Make paramerizable through USE_* macros.
67466         * lib/truncf.c: New file.
67467         * m4/truncf.m4: New file.
67468         * lib/math.in.h (truncf): New declaration.
67469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67470         HAVE_DECL_TRUNCF.
67471         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67472         HAVE_DECL_TRUNCF.
67473         * doc/functions/truncf.texi: Mention the 'truncf' module.
67474
67475 2007-10-03  Bruno Haible  <bruno@clisp.org>
67476
67477         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67478         augmentation also for tests modules.
67479         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67480         * modules/atexit-tests (Makefile.am): Likewise.
67481         * modules/binary-io-tests (Makefile.am): Likewise.
67482         * modules/c-strcase-tests (Makefile.am): Likewise.
67483         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67484         * modules/canonicalize-tests (Makefile.am): Likewise.
67485         * modules/closein-tests (Makefile.am): Likewise.
67486         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67487         * modules/freadahead-tests (Makefile.am): Likewise.
67488         * modules/fseek-tests (Makefile.am): Likewise.
67489         * modules/fseeko-tests (Makefile.am): Likewise.
67490         * modules/ftell-tests (Makefile.am): Likewise.
67491         * modules/ftello-tests (Makefile.am): Likewise.
67492         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67493         * modules/isnanl-tests (Makefile.am): Likewise.
67494         * modules/lseek-tests (Makefile.am): Likewise.
67495         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67496         * modules/mbscasestr-tests (Makefile.am): Likewise.
67497         * modules/mbschr-tests (Makefile.am): Likewise.
67498         * modules/mbscspn-tests (Makefile.am): Likewise.
67499         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67500         * modules/mbspbrk-tests (Makefile.am): Likewise.
67501         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67502         * modules/mbsrchr-tests (Makefile.am): Likewise.
67503         * modules/mbsspn-tests (Makefile.am): Likewise.
67504         * modules/mbsstr-tests (Makefile.am): Likewise.
67505         * modules/printf-posix-tests (Makefile.am): Likewise.
67506         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67507         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67508         * modules/tsearch-tests (Makefile.am): Likewise.
67509         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67510         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67511         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67512         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67513         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67514         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67515         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67516         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67517         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67518         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67519         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67520         * modules/xstrtol-tests (Makefile.am): Likewise.
67521         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67522         * modules/yesno-tests (Makefile.am): Likewise.
67523
67524 2007-10-03  Bruno Haible  <bruno@clisp.org>
67525
67526         * modules/trunc-tests: New file.
67527         * tests/test-trunc.c: New file.
67528
67529         * modules/trunc: New file.
67530         * lib/trunc.c: New file.
67531         * m4/trunc.m4: New file.
67532         * lib/math.in.h (trunc): New declaration.
67533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67534         HAVE_DECL_TRUNC.
67535         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67536         HAVE_DECL_TRUNC.
67537         * doc/functions/trunc.texi: Mention the 'trunc' module.
67538
67539 2007-10-03  Bruno Haible  <bruno@clisp.org>
67540
67541         * tests/test-fpending.c: New file, mostly copied
67542         from coreutils/lib/t-fpending.c.
67543         * modules/fpending-tests: New file.
67544
67545 2007-10-03  Bruno Haible  <bruno@clisp.org>
67546
67547         Port the stdio extensions to QNX (untested).
67548         * lib/fseterr.c (fseterr): Add support for QNX.
67549         * lib/fbufmode.c (fbufmode): Likewise.
67550         * lib/freadable.c (freadable): Likewise.
67551         * lib/fwritable.c (fwritable): Likewise.
67552         * lib/freading.c (freading): Likewise.
67553         * lib/fwriting.c (fwriting): Likewise.
67554         * lib/freadahead.c (freadahed): Likewise.
67555         * lib/fpurge.c (fpurge): Likewise.
67556         * lib/fseeko.c (rpl_fseeko): Likewise.
67557
67558 2007-10-03  Bruno Haible  <bruno@clisp.org>
67559             Jim Meyering  <jim@meyering.net>
67560             Eric Blake  <ebb9@byu.net>
67561
67562         * doc/relocatable.texi: Use @command instead of @program.
67563
67564 2007-10-02  Jim Meyering  <jim@meyering.net>
67565
67566         Perform one more "_.h" -> ".in.h" substitution.
67567         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67568         instead of unistd_.h here, too.
67569
67570 2007-10-01  Bruno Haible  <bruno@clisp.org>
67571
67572         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67573         Needed for the alloca-opt module.
67574
67575 2007-09-30  Bruno Haible  <bruno@clisp.org>
67576
67577         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67578         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67579         alloca_.h.
67580         * lib/argz.in.h: Renamed from lib/argz_.h.
67581         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67582         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67583         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67584         byteswap_.h.
67585         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67586         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67587         dirent_.h.
67588         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67589         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67590         fcntl_.h.
67591         * lib/float.in.h: Renamed from lib/float_.h.
67592         * modules/float (Files, Makefile.am): Use float.in.h instead of
67593         float_.h.
67594         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67595         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67596         fnmatch_.h.
67597         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67598         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67599         getopt_.h.
67600         * lib/glob.in.h: Renamed from lib/glob_.h.
67601         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67602         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67603         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67604         iconv_.h.
67605         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67606         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67607         inttypes_.h.
67608         * lib/locale.in.h: Renamed from lib/locale_.h.
67609         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67610         locale_.h.
67611         * lib/math.in.h: Renamed from lib/math_.h.
67612         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67613         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67614         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67615         of netinet_in_.h. Add dependency.
67616         * lib/poll.in.h: Renamed from lib/poll_.h.
67617         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67618         * lib/search.in.h: Renamed from lib/search_.h.
67619         * modules/search (Files, Makefile.am): Use search.in.h instead of
67620         search_.h.
67621         * lib/signal.in.h: Renamed from lib/signal_.h.
67622         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67623         _signal.h.
67624         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67625         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67626         stdbool_.h.
67627         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67628         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67629         stdint_.h.
67630         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67631         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67632         stdio_.h.
67633         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67634         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67635         stdlib_.h.
67636         * lib/string.in.h: Renamed from lib/string_.h.
67637         * modules/string (Files, Makefile.am): Use string.in.h instead of
67638         string_.h.
67639         * doc/gnulib-tool.texi (Initial import): Update.
67640         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67641         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67642         of sys_select_.h. Add dependency.
67643         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67644         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67645         of sys_socket_.h.
67646         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67647         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67648         sys_stat_.h.
67649         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67650         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67651         sys_time_.h.
67652         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67653         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67654         sysexits_.h.
67655         * lib/time.in.h: Renamed from lib/time_.h.
67656         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67657         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67658         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67659         unistd_.h.
67660         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67661         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67662         wchar_.h.
67663         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67664         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67665         wctype_.h.
67666         * build-aux/bootstrap (slurp): Update.
67667         * lib/.cppi-disable: Update.
67668
67669 2007-09-30  Bruno Haible  <bruno@clisp.org>
67670
67671         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67672         Needed on BeOS.
67673
67674 2007-09-30  Bruno Haible  <bruno@clisp.org>
67675
67676         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67677
67678 2007-09-29  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67681
67682 2007-09-29  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67685         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67686         * build-aux/install-reloc: Compile also areadlink.c.
67687         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67688
67689 2007-09-29  Bruno Haible  <bruno@clisp.org>
67690
67691         * gnulib-tool (func_emit_initmacro_done): Indentation.
67692
67693 2007-09-29  Bruno Haible  <bruno@clisp.org>
67694
67695         * README: Add CVS checkout update instructions.
67696         Info from Bob Proulx <bob@proulx.com>.
67697
67698 2007-09-28  Eric Blake  <ebb9@byu.net>
67699
67700         Provide move-if-change.
67701         * build-aux/move-if-change: New file, based on best practice
67702         rather than any canonical upstream location.
67703
67704 2007-09-28  Jim Meyering  <jim@meyering.net>
67705
67706         Fix canonicalize loop-detection corner case.
67707         Do not attempt to stat the symlink values stored via seen_triple.
67708         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67709         on linux-2.6.18, (but not 2.6.22).
67710         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67711         triple_compare.  The former compares dev,ino,filename, while the latter
67712         would actually stat dirname(filename) when dev and ino were equal.
67713         * lib/hash-triple.c: Install <string.h>.
67714         (STREQ): Define.
67715         (triple_compare_ino_str): New function.
67716         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67717
67718 2007-09-28  Eric Blake  <ebb9@byu.net>
67719
67720         Enforce that AC_REPLACE_FUNCS files exist.
67721         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67722         override check for typos.
67723
67724         Fix test-closein on Solaris 10.
67725         * tests/test-closein.c (main): Don't assume stdin can be inherited
67726         closed on all systems.
67727         * tests/test-closein.sh: Likewise.
67728         Reported by Piotr Tarnowski.
67729
67730 2007-09-28  Jim Meyering  <jim@meyering.net>
67731
67732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67733
67734 2007-09-27  Jim Meyering  <jim@meyering.net>
67735
67736         canonicalize: Avoid a false-positive cycle failure.
67737         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67738         Sort.  Remove cycle-check.
67739         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67740         not cycle-check.h.
67741         (seen_triple): New function.
67742         (canonicalize_filename_mode): Use it instead of cycle-check.
67743         * tests/test-canonicalize.c: Add a test for this bug.
67744         * tests/test-canonicalize.sh: Set up and run the test.
67745
67746         New module, file-set, from coreutils.
67747         * modules/file-set: Define it.
67748         * lib/file-set.c, lib/file-set.h: Implement.
67749
67750         New module, hash-triple, from coreutils.
67751         * modules/hash-triple: Define it.
67752         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67753
67754 2007-09-25  Eric Blake  <ebb9@byu.net>
67755
67756         Fix strerror on Interix.
67757         * lib/string_.h (strerror): Declare replacement.
67758         * doc/functions/strerror.texi (strerror): Document the Interix
67759         shortcoming.
67760         * modules/string (Makefile.am): Support new hooks.
67761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67762         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67763         gl_FUNC_STRERROR_SEPARATE.
67764         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67765         * lib/strerror.c (rpl_strerror): Provide replacement.
67766         * modules/strerror (Depends-on): Add string.
67767         (configure.ac): Detect use of module.
67768         * tests/test-strerror.c: New file.
67769         * modules/strerror-tests: New test module.
67770         * modules/argp (Depends-on): Add strerror.
67771         * modules/error (Depends-on): Likewise.
67772         Reported by Martin Koeppe.
67773
67774 2007-09-24  Bruno Haible  <bruno@clisp.org>
67775
67776         * README: Update git instructions.
67777
67778 2007-09-24  Eric Blake  <ebb9@byu.net>
67779
67780         Revert fpending breakage from 2007-09-08.
67781         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67782         __fpending.c.
67783
67784 2007-09-24  Jim Meyering  <jim@meyering.net>
67785
67786         filenamecat.c: Add a test.
67787         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67788         showing how the function works when DIR is the empty string.
67789
67790 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67791
67792         * tests/test-canonicalize.sh: Turn on executable bit.
67793
67794 2007-09-19  Eric Blake  <ebb9@byu.net>
67795
67796         * README: Update CVS instructions.
67797
67798 2007-09-18  Bruno Haible  <bruno@clisp.org>
67799
67800         * modules/areadlink: New file.
67801         * lib/areadlink.h (areadlink): New declaration.
67802         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67803
67804 2007-09-17  Jim Meyering  <jim@meyering.net>
67805
67806         * lib/savewd.c (ESTALE) [!defined]: Define.
67807         Reported to be required on Interix by Martin Koeppe.
67808
67809 2007-09-17  Bruno Haible  <bruno@clisp.org>
67810
67811         * gnulib-tool (func_version): Use $version.
67812
67813 2007-09-16  Bruno Haible  <bruno@clisp.org>
67814
67815         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67816         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67817         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67818         Reported by Greg Schafer <gschafer@zip.com.au>.
67819
67820 2007-09-15  Bruno Haible  <bruno@clisp.org>
67821
67822         * gnulib-tool (sed): Try a little harder to make bash understand the
67823         alias.
67824         Reported by Bruce Korb <bruce.korb@gmail.com>.
67825
67826 2007-09-13  Eric Blake  <ebb9@byu.net>
67827
67828         * ChangeLog: Remove conflict markers.
67829
67830 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67831
67832         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67833         Reported by Bruno Haible <bruno@clisp.org>.
67834
67835 2007-09-12  Bruno Haible  <bruno@clisp.org>
67836
67837         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67838         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67839         is not defined.
67840
67841 2007-09-12  Eric Blake  <ebb9@byu.net>
67842
67843         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67844         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67845         Autoconf definition.
67846         * modules/euidaccess (Depends-on): Add extensions, for
67847         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67848         * modules/fnmatch (Depends-on): Likewise.
67849         * modules/getaddrinfo (Depends-on): Likewise.
67850         * modules/getdelim (Depends-on): Likewise.
67851         * modules/getline (Depends-on): Likewise.
67852         * modules/getsubopt (Depends-on): Likewise.
67853         * modules/gettext (Depends-on): Likewise.
67854         * modules/group-member (Depends-on): Likewise.
67855         * modules/mbchar (Depends-on): Likewise.
67856         * modules/memmem (Depends-on): Likewise.
67857         * modules/mempcpy (Depends-on): Likewise.
67858         * modules/memrchr (Depends-on): Likewise.
67859         * modules/pagealign_alloc (Depends-on): Likewise.
67860         * modules/readutmp (Depends-on): Likewise.
67861         * modules/stpcpy (Depends-on): Likewise.
67862         * modules/stpncpy (Depends-on): Likewise.
67863         * modules/strchrnul (Depends-on): Likewise.
67864         * modules/strndup (Depends-on): Likewise.
67865         * modules/strsep (Depends-on): Likewise.
67866         * modules/strverscmp (Depends-on): Likewise.
67867         * modules/vasprintf (Depends-on): Likewise.
67868         * modules/wcwidth (Depends-on): Likewise.
67869         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67870         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67871         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67874         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67875         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67876         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67877         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67878         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67880         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67881         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67882         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67883         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67884         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67885         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67886         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67888         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67889         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67891         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67892         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67893         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67895         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67896         so that lock.m4 can be used in gettext without extensions module.
67897
67898 2007-09-11  Bruno Haible  <bruno@clisp.org>
67899
67900         * m4/isc-posix.m4: Remove file.
67901         Suggested by Eric Blake.
67902
67903 2007-09-11  Eric Blake  <ebb9@byu.net>
67904
67905         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67906
67907 2007-09-10  Bruno Haible  <bruno@clisp.org>
67908
67909         * posix-modules: Fix typo in error message.
67910         Reported by Matt <mkraai@beckman.com>.
67911
67912 2007-09-09  Bruno Haible  <bruno@clisp.org>
67913
67914         * doc/functions/getdelim.texi: Update list of platforms lacking the
67915         function.
67916         * doc/functions/getline.texi: Likewise.
67917
67918 2007-09-09  Jim Meyering  <jim@meyering.net>
67919
67920         * lib/hash.c (hash_initialize): Detect calloc failure.
67921         Reported by Bruno Haible.
67922
67923 2007-09-09  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67926         malloc or realloc fails.
67927
67928 2007-09-09  Bruno Haible  <bruno@clisp.org>
67929
67930         * modules/getcwd (Depends-on): Add malloc-posix.
67931         * modules/glob (Depends-on): Likewise.
67932         * modules/putenv (Depends-on): Likewise.
67933         * modules/strdup (Depends-on): Likewise.
67934         * modules/getdelim (Depends-on): Add realloc-posix.
67935         * modules/read-file (Depends-on): Likewise.
67936
67937 2007-09-09  Bruno Haible  <bruno@clisp.org>
67938
67939         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67940         (gl_FUNC_MALLOC_POSIX): Require it.
67941         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67942         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67943         * modules/realloc (Files): Add m4/malloc.m4.
67944         * modules/calloc (Files): Likewise.
67945
67946 2007-09-09  Bruno Haible  <bruno@clisp.org>
67947
67948         * modules/malloc-posix: New file.
67949         * modules/malloc (Depends-on): Add malloc-posix.
67950         * lib/malloc.c: Include errno.h.
67951         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67952         and a POSIX-compatible malloc into a single function. Set ENOMEM
67953         when returning NULL.
67954         * m4/malloc.m4: New file.
67955         * doc/functions/malloc.texi: Mention the malloc-posix module.
67956         * lib/stdlib_.h (malloc): New declaration.
67957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67958         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67959         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67960         and HAVE_MALLOC_POSIX.
67961
67962 2007-09-09  Bruno Haible  <bruno@clisp.org>
67963
67964         * modules/realloc-posix: New file.
67965         * modules/realloc (Depends-on): Add realloc-posix.
67966         * lib/realloc.c: Include errno.h.
67967         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67968         and a POSIX-compatible realloc into a single function. Set ENOMEM
67969         when returning NULL.
67970         * m4/realloc.m4: New file.
67971         * doc/functions/realloc.texi: Mention the realloc-posix module.
67972         * lib/stdlib_.h (realloc): New declaration.
67973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67974         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67975         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67976         and HAVE_REALLOC_POSIX.
67977
67978 2007-09-09  Bruno Haible  <bruno@clisp.org>
67979
67980         * modules/calloc-posix: New file.
67981         * modules/calloc (Depends-on): Add calloc-posix.
67982         * lib/calloc.c: Include errno.h.
67983         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67984         and a POSIX-compatible calloc into a single function. Set ENOMEM
67985         when returning NULL.
67986         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67987         * doc/functions/calloc.texi: Mention the calloc-posix module.
67988         * lib/stdlib_.h (calloc): New declaration.
67989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67990         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67991         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67992         and HAVE_CALLOC_POSIX.
67993
67994 2007-09-09  Bruno Haible  <bruno@clisp.org>
67995
67996         Allow for modules to show an arbitrary notice.
67997         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67998         * gnulib-tool: New option --extract-notice.
67999         (func_usage): Document it.
68000         (sed_extract_prog): Update.
68001         (func_get_notice): New function.
68002         (func_modules_notice): New function.
68003         (func_import, func_create_testdir): Invoke it.
68004         Suggested by Jim Meyering.
68005
68006 2007-09-09  Bruno Haible  <bruno@clisp.org>
68007
68008         * gnulib-tool: New options --verbose, --quiet.
68009         (func_usage): Document them.
68010         (verbose): New variable.
68011         (func_execute_command): New function.
68012         (func_import): Don't show the module list and the file list if
68013         $verbose < 0.
68014         (func_create_testdir): Likewise. Use func_execute_command.
68015         (func_create_megatestdir): Use func_execute_command.
68016
68017 2007-09-08  Bruno Haible  <bruno@clisp.org>
68018
68019         * gnulib-tool (func_import): Prefer rsync over wget when available,
68020         for fetching the PO files.
68021
68022 2007-09-08  Bruno Haible  <bruno@clisp.org>
68023
68024         * posix-modules: New file. Portions copied from gnulib-tool.
68025         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68026
68027 2007-09-08  Jim Meyering  <jim@meyering.net>
68028
68029         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68030         * lib/fpending.h: Rename from __fpending.h.
68031         * lib/fpending.c: Rename from __fpending.c.
68032         Include "fpending.h", not "__fpending.h".
68033         * lib/__fpending.h, lib/__fpending.c: Remove files.
68034         * modules/fpending (Files): Reflect new file names.
68035         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68036
68037 2007-09-08  Bruno Haible  <bruno@clisp.org>
68038
68039         * m4/inttypes-h.m4: Remove stub file.
68040
68041 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68042
68043         * doc/headers/stdint.texi: Discuss #include_next issue.
68044
68045 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68048
68049 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68050
68051         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68052         in variable name.
68053
68054 2007-09-03  Jim Meyering  <jim@meyering.net>
68055
68056         New module: git-version-gen.
68057         * modules/git-version-gen: New file.
68058
68059         Import changes from coreutils for bootstrap script.
68060
68061         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68062
68063         bootstrap: uses rsync to download the .po files
68064         * build-aux/bootstrap (po_download_command_format): New global.
68065         (download_po_files): Use rsync.
68066         (update_po_files): Don't remove .po files after download,
68067         so future rsync runs can take advantage of the copies.
68068
68069         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68070
68071         Solve the unnecessary-.po-file-regeneration problem once and for all.
68072         * build-aux/bootstrap (download_po_files): New function, renamed from
68073         get_translations.  Now, downloads, but doesn't update LINGUAS.
68074         (update_po_files): New function.
68075
68076         bootstrap: Ignore more.
68077         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68078         uniwidth to e.g., lib/.gitignore.
68079         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68080
68081         * build-aux/bootstrap: New setting: vc_ignore.
68082         (insert_sorted_if_absent): Create $file if absent.
68083         Adapt to new, possibly empty, list: $vc_ignore.
68084
68085         bootstrap: generate more ignorable names
68086         * build-aux/bootstrap (slurp): When generating ignorable names,
68087         also map .sin to .sed, .gperf to .c, and .y to .c.
68088
68089 2007-09-03  Jim Meyering  <jim@meyering.net>
68090
68091         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68092         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68093
68094 2007-09-02  Bruno Haible  <bruno@clisp.org>
68095
68096         Fix mis-recognition of 'mcs' on QNX 6.
68097         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68098         output contains the string "Mono".
68099         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68100         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68101
68102 2007-09-01  Bruno Haible  <bruno@clisp.org>
68103
68104         Fix collision between uniwidth/* and linebreak modules.
68105         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68106         u32_width): Remove declarations.
68107         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68108         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68109         streq3, streq2, streq1, streq0): Remove functions.
68110         (STREQ): Remove macro.
68111         (is_cjk_encoding): Remove function.
68112         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68113         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68114         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68115         * NEWS: Document the change.
68116
68117 2007-09-01  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/streq.h: Add double-inclusion guard.
68120
68121 2007-09-01  Karl Berry  <karl@gnu.org>
68122
68123         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68124
68125 2007-08-28  Jim Meyering  <jim@meyering.net>
68126
68127         Rename mreadlink_with_size to areadlink_with_size.
68128         * NEWS: Document the change.
68129         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68130         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68131         * lib/mreadlink.h: Rename this to...
68132         * lib/areadlink.h: ...this.
68133         * modules/mreadlink-with-size: Rename this to...
68134         * modules/areadlink-with-size: ...this.
68135         * lib/canonicalize.c: Reflect the renaming.
68136         * modules/canonicalize: Likewise.
68137
68138 2007-08-26  Bruno Haible  <bruno@clisp.org>
68139
68140         * gnulib-tool (func_import): When deciding which files to remove,
68141         consider also dangling symbolic links.
68142         Reported by Eric Blake.
68143
68144 2007-08-26  Bruno Haible  <bruno@clisp.org>
68145
68146         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68147
68148 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68149
68150         * lib/readline.c: Don't include getline.h, the prototype is now
68151         found in stdio.h.
68152
68153 2007-08-23  Jim Meyering  <jim@meyering.net>
68154
68155         Getdelim touchup.
68156         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68157         around the funlockfile call, since funlockfile never sets errno.
68158         Don't set errno upon failed realloc.
68159
68160 2007-08-22  Eric Blake  <ebb9@byu.net>
68161
68162         Getline touchups.
68163         * lib/getdelim.c (getdelim): Revert regression that required *n to
68164         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68165         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68166         getdelim, rather than whether implementation is missing.
68167         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68168         * lib/stdio_.h (getline): Also declare if replacement is
68169         required.
68170         * doc/functions/getdelim.texi: New file.
68171         * doc/functions/getline.texi: Likewise.
68172         * doc/gnulib.texi (Function Substitutes): Add new files.
68173         Reported by Bruno Haible.
68174
68175 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68176
68177         * users.txt: Add Guile.
68178
68179 2007-08-22  Eric Blake  <ebb9@byu.net>
68180
68181         * tests/test-getdelim.c (main): Use remove, not unlink.
68182         * tests/test-getline.c (main): Likewise.
68183
68184         Move getline and getdelim into stdio.h, per POSIX 200x.
68185         * modules/getline (Files): Remove getline.h.
68186         (Depends-on): Add stdio.
68187         (configure.ac): Add module indicator.
68188         * modules/getdelim (Files): Remove getdelim.h.
68189         (Depends-on): Add stdio.
68190         (configure.ac): Add module indicator.
68191         * modules/stdio (Makefile.am): Work with new indicators.
68192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68194         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68195         * lib/getdelim.h: Delete.
68196         * lib/getline.h: Delete.
68197         * lib/stdio_.h (getdelim, getline): Declare.
68198         * modules/getdelim-tests: New module.
68199         * modules/getline-tests: Likewise.
68200         * tests/test-getdelim.c: New file.
68201         * tests/test-getline.c: Likewise.
68202         * NEWS: Document the change.
68203         * lib/getline.c: Update choice of header.
68204         * lib/csharpcomp.c: Likewise.
68205         * lib/getpass.c: Likewise.
68206         * lib/javacomp.c: Likewise.
68207         * lib/javaversion.c: Likewise.
68208         * lib/yesno.c: Likewise.
68209         * lib/getdelim.c: Likewise.
68210         (getdelim): Set errno on failure, and avoid memory leak.
68211
68212 2007-08-19  Bruno Haible  <bruno@clisp.org>
68213
68214         * modules/closein (Depends-on): Add freadahead.
68215         * lib/closein.c: Include freadahead.h.
68216         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68217         is zero.
68218
68219 2007-08-19  Bruno Haible  <bruno@clisp.org>
68220
68221         * modules/freadahead-tests: New file.
68222         * tests/test-freadahead.sh: New file.
68223         * tests/test-freadahead.c: New file.
68224
68225         * modules/freadahead: New file.
68226         * lib/freadahead.h: New file.
68227         * lib/freadahead.c: New file.
68228         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68229         fbufmode, fpurge, freadable, fwritable.
68230
68231 2007-08-19  Eric Blake  <ebb9@byu.net>
68232
68233         Test yesno in combination with closein.
68234         * lib/yesno.c (yesno): Document use of stdin.
68235         * modules/yesno-tests (Files): New module.
68236         * tests/test-yesno.c (main): New file.
68237         * tests/test-yesno.sh: Likewise.
68238
68239 2007-08-19  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68242         * lib/fseeko.c (rpl_fseeko): Likewise.
68243         * lib/fseterr.c (fseterr): Likewise.
68244
68245 2007-08-19  Bruno Haible  <bruno@clisp.org>
68246
68247         * tests/test-lseek.c (main): Disable a test for BeOS.
68248         * doc/functions/lseek.texi: Document the BeOS bug.
68249
68250 2007-08-19  Bruno Haible  <bruno@clisp.org>
68251             Eric Blake  <ebb9@byu.net>
68252
68253         * lib/lseek.c: Include <sys/stat.h>.
68254         (rpl_lseek): Add workaround code also for Unix platforms.
68255         Needed for BeOS.
68256         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68257         * doc/functions/lseek.texi: Document BeOS definiency.
68258
68259 2007-08-18  Bruno Haible  <bruno@clisp.org>
68260
68261         * modules/fstrcmp-tests: New file.
68262         * tests/test-fstrcmp.c: New file.
68263
68264 2007-08-18  Bruno Haible  <bruno@clisp.org>
68265
68266         * modules/fstrcmp: New file, from GNU gettext with modifications.
68267         * lib/fstrcmp.h: New file, from GNU gettext.
68268         * lib/fstrcmp.c: New file, from GNU gettext.
68269         * MODULES.html.sh (String handling): Add fstrcmp.
68270
68271 2007-08-18  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68274         'bool'.
68275         (diag, compareseq): Remove const from the ctxt argument.
68276         (USE_HEURISTIC): Undefine at the end.
68277
68278 2007-08-18  Jim Meyering  <jim@meyering.net>
68279
68280         New file: lib/idcache.h
68281         * NEWS: Mention the addition.
68282         * modules/idcache (Files): Add lib/idcache.h
68283         * lib/idcache.c: Include "idcache.h".
68284         Don't include <sys/types.h>.
68285         Add a FIXME comment.
68286         Move file-scoped "static" declarations to the top.
68287         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68288
68289 2007-08-17  Bruno Haible  <bruno@clisp.org>
68290         and Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * MODULES.html.sh: Add diffseq.
68293         * modules/diffseq: New file.
68294         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68295         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68296
68297 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         Import changes from coreutils for bootstrap script.
68300
68301         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * build-aux/bootstrap (slurp): Work even in environments where
68304         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68305         current code does not slurp files whose names start with ".", and
68306         this looks like it might be a troublesome area.
68307
68308         2007-07-11  Jim Meyering  <jim@meyering.net>
68309
68310         If there's a GPL vN copyright comment, require that N == 3.
68311
68312         2007-07-08  Jim Meyering  <jim@meyering.net>
68313
68314         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68315         * build-aux/bootstrap (mam_template): Move definition out of loop.
68316
68317         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68318
68319         * build-aux/bootstrap (symlink_to_dir): Rename function from
68320         symlink_to_gnulib.  Add a directory parameter.  Update all
68321         callers.
68322         (cp_mark_as_generated): Also check for -- and link to -- files in
68323         gl/.
68324
68325         2007-07-08  Jim Meyering  <jim@meyering.net>
68326
68327         Adapt to deeper hierarchy in gnulib.
68328         * build-aux/bootstrap (symlink_to_dir): If the destination
68329         directory doesn't exist, create it. This is required at least for
68330         "lib/uniwidth/cjk.h".
68331
68332         2007-05-15  Jim Meyering  <jim@meyering.net>
68333
68334         * build-aux/bootstrap: Now that generated Makefile.am files
68335         are no longer under version control, they must be created at
68336         bootstrap time.
68337
68338 2007-08-14  Ben Pfaff  <blp@gnu.org>
68339
68340         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68341
68342 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68345         given the changes below.
68346         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68347         even on hosts that have padding bits beyond the supported 64.
68348
68349 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68352         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68353         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68354         depends on it.
68355         (xstrtol_error): Remove.
68356         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68357         but with a different signature.
68358         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68359         * lib/xstrtol-error.c: Include exitfail.h.
68360         (xstrtol_fatal): New function, with a different signature from the
68361         old xstrtol_error, so that the caller need not worry about passing
68362         in an exit status, or about storage management of the option argument.
68363         (xstrtol_error): Now a static function.  Redo signature to
68364         implement xstrtol_fatal.  Output the correct number of hyphens in
68365         front of the option so that the caller need not worry about
68366         storage management.
68367         (N_): New macro.
68368         (_): Remove; not used now.
68369         * modules/xstrtol: Depend on getopt.
68370         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68371         of old STRTOL_FATAL_ERROR macro.
68372         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68373         of test program.
68374         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68375         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68376
68377 2007-08-08  Eric Blake  <ebb9@byu.net>
68378
68379         * lib/xstrtol-error.c: Add missing include.
68380
68381         Move xstrtol messages into gnulib domain, when --pobase is used.
68382         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68383         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68384         * modules/xstrtol (Files): Distribute new file.
68385         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68386         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68387         * tests/test-xstrtol.c: ...into new file.
68388         * tests/test-xstrtoul.c: Also test xstrtoul.
68389         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68390         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68391         * tests/test-xstrtol.sh: Drive the tests.
68392         * tests/test-xstrtoimax.sh: Likewise.
68393         * tests/test-xstrtoumax.sh: Likewise.
68394         * modules/xstrtol-tests: New module.
68395         * modules/xstrtoimax-tests: Likewise.
68396         * modules/xstrtoumax-tests: Likewise.
68397
68398 2007-08-08  Jim Meyering  <jim@meyering.net>
68399
68400         New function: mfile_name_concat.
68401         * lib/filenamecat.c (mfile_name_concat): New function, just like
68402         file_name_concat, but return NULL upon failure rather than exiting
68403         with a diagnostic.
68404         * lib/filenamecat.h: Declare it.
68405
68406 2007-08-07  Bruno Haible  <bruno@clisp.org>
68407
68408         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68409         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68410         warning from gcc.
68411         Reported by Eric Blake.
68412
68413 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68414
68415         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68416         * modules/crypto/arcfour (License): Likewise.
68417         * modules/crypto/des-tests (License): Likewise.
68418         * modules/crypto/gc-arctwo-tests (License): Likewise.
68419         * modules/crypto/gc-des-tests (License): Likewise.
68420         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68421         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68422         * modules/crypto/gc-md2-tests (License): Likewise.
68423         * modules/crypto/gc-md4-tests (License): Likewise.
68424         * modules/crypto/gc-md5-tests (License): Likewise.
68425         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68426         * modules/crypto/gc-rijndael-tests (License): Likewise.
68427         * modules/crypto/gc-sha1-tests (License): Likewise.
68428         * modules/crypto/gc-tests (License): Likewise.
68429         * modules/crypto/hmac-md5 (License): Likewise.
68430         * modules/crypto/hmac-sha1 (License): Likewise.
68431         * modules/crypto/md2-tests (License): Likewise.
68432         * modules/crypto/md4-tests (License): Likewise.
68433         * modules/crypto/md5 (License): Likewise.
68434         * modules/crypto/rijndael (License): Likewise.
68435         * modules/crypto/sha1 (License): Likewise.
68436         * modules/memxor (License): Likewise.
68437
68438 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68439         and Bruno Haible  <bruno@clisp.org>
68440
68441         * NEWS: Describe interface changes to human, xstrtol.
68442         * lib/human.h: Include <xstrtol.h>.
68443         (human_options): Return enum strtol_error, not int.  Remove
68444         bool arg; take int * instead.
68445         * lib/human.c: Don't include "gettext.h".
68446         (_): Remove; no longer used.
68447         Don't include <xstrtol.h>, since human.h does it.
68448         (human_options): Adjust to abovementioned interface changes.
68449         Do not report error to stderr; that's now the caller's
68450         responsibility.
68451         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68452         interface change.
68453         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68454         Str, Argument_type_string.  All uses changed.  Put " argument"
68455         in diagnostics to make them clearer.  Change wording of suffix
68456         message for clarity.
68457         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68458         Argument_type_string.
68459         (STRTOL_FATAL_WARN): Remove; no longer used.
68460         * modules/human (Depends-on): Remove gettext-h.
68461
68462 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68463
68464         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68465
68466 2007-07-31  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68469         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68470         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68471
68472 2007-07-31  Bruno Haible  <bruno@clisp.org>
68473
68474         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68475         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68476
68477 2007-07-30  Bruno Haible  <bruno@clisp.org>
68478
68479         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68480         * modules/c-ctype (License): Likewise.
68481         * modules/c-strcase (License): Likewise.
68482         * modules/check-version (License): Likewise.
68483         * modules/iconv (License): Likewise.
68484         * modules/iconv_open (License): Likewise.
68485         * modules/read-file (License): Likewise.
68486         * modules/striconv (License): Likewise.
68487         * modules/strverscmp (License): Likewise.
68488         * modules/vasprintf (License): Likewise.
68489         * modules/crypto/des (License): Likewise.
68490         * modules/crypto/gc (License): Likewise.
68491         * modules/crypto/gc-arcfour (License): Likewise.
68492         * modules/crypto/gc-arctwo (License): Likewise.
68493         * modules/crypto/gc-des (License): Likewise.
68494         * modules/crypto/gc-hmac-md5 (License): Likewise.
68495         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68496         * modules/crypto/gc-md2 (License): Likewise.
68497         * modules/crypto/gc-md4 (License): Likewise.
68498         * modules/crypto/gc-md5 (License): Likewise.
68499         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68500         * modules/crypto/gc-random (License): Likewise.
68501         * modules/crypto/gc-rijndael (License): Likewise.
68502         * modules/crypto/gc-sha1 (License): Likewise.
68503         * modules/crypto/md2 (License): Likewise.
68504         * modules/crypto/md4 (License): Likewise.
68505
68506 2007-07-30  Jim Meyering  <jim@meyering.net>
68507
68508         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68509         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68510         it has valid stat data.  This bug would cause du not to count the
68511         sizes of inaccessible directories.
68512         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68513         in <http://bugzilla.redhat.com/250077>.
68514
68515 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68516             Bruno Haible  <bruno@clisp.org>
68517
68518         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68519         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68520         #include_next, gives a diagnostic about it, but reports no error in
68521         the exit code.
68522         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68523
68524 2007-07-24  Ben Pfaff  <blp@gnu.org>
68525
68526         Improve name: "count-one-bits" is better than "popcount".
68527         * MODULES.html.sh: Update name.
68528         * lib/popcount.h: Renamed lib/count-one-bits.h.
68529         (popcount): Renamed count_one_bits.
68530         (popcountl): Renamed count_one_bits_l.
68531         (popcountll): Renamed count_one_bits_ll.
68532         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68533         * modules/popcount: Renamed module/count-one-bits.
68534         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68535         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68536
68537 2007-07-23  Ben Pfaff  <blp@gnu.org>
68538
68539         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68540         better code generation, and add U to large constants to avoid
68541         warnings, in non-GCC case.
68542         Suggested by Bruno Haible.
68543
68544 2007-07-23  Ben Pfaff  <blp@gnu.org>
68545
68546         * lib/popcount.h: Use verify_true instead of if...abort.
68547         * modules/popcount: Depend on verify module.
68548         Suggested by Jim Meyering.
68549
68550 2007-07-23  Bruno Haible  <bruno@clisp.org>
68551
68552         * gnulib-tool (func_import): Create a .cvsignore file also when the
68553         directory is not yet in CVS but the toplevel directory is. When
68554         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68555         Reported by Karl Berry.
68556
68557 2007-07-22  Ben Pfaff  <blp@gnu.org>
68558
68559         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68560         case.
68561         Suggested by Eric Blake.
68562
68563 2007-07-22  Ben Pfaff  <blp@gnu.org>
68564
68565         New module: popcount.
68566         * MODULES.html.sh: Add popcount.
68567         * modules/popcount: New file.
68568         * modules/popcount-tests: New file.
68569         * tests/test-popcount.c: New file.
68570         * lib/popcount.h: New file.
68571         * m4/popcount.m4: New file.
68572
68573 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * build-aux/announce-gen: Update to GPLv3.
68576
68577         * build-aux/config.guess: Update from config.
68578
68579 2007-07-21  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68582         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68583
68584 2007-07-20  Jim Meyering  <jim@meyering.net>
68585
68586         * check-module: Diagnose a self-dependency.
68587
68588 2007-07-19  Bruno Haible  <bruno@clisp.org>
68589
68590         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68591         empty.
68592         Reported by Eric Blake.
68593
68594 2007-07-18  Bruno Haible  <bruno@clisp.org>
68595
68596         * gnulib-tool: New options --po-base, --po-domain.
68597         (func_usage): Document them.
68598         (pobase, po_domain): New variables.
68599         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68600         DEFAULT_TEXT_DOMAIN.
68601         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68602         (func_import): Consider pobase and po_domain. Create a po/ directory.
68603         (func_create_testdir): Set pobase and po_domain to empty.
68604         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68605         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68606
68607 2007-07-18  Bruno Haible  <bruno@clisp.org>
68608
68609         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68610         EXTRA_DIST augmentation for files in build-aux/.
68611
68612 2007-07-16  Bruno Haible  <bruno@clisp.org>
68613
68614         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68615         * modules/getdelim (License): Likewise.
68616
68617 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68618
68619         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68620         * modules/d-type (License): Likewise.
68621         * modules/extensions (License): Likewise.
68622         * modules/fnmatch (License): Likewise.
68623         * modules/fseeko (License): Likewise.
68624         * modules/getaddrinfo (License): Likewise.
68625         * modules/getline (License): Likewise.
68626         * modules/getlogin_r (License): Likewise.
68627         * modules/getpass (License): Likewise.
68628         * modules/gettimeofday (License): Likewise.
68629         * modules/glob (License): Likewise.
68630         * modules/inet_ntop (License): Likewise.
68631         * modules/malloc (License): Likewise.
68632         * modules/malloca (License): Likewise.
68633         * modules/memmem (License): Likewise.
68634         * modules/mempcpy (License): Likewise.
68635         * modules/memset (License): Likewise.
68636         * modules/minmax (License): Likewise.
68637         * modules/mktime (License): Likewise.
68638         * modules/netinet_in (License): Likewise.
68639         * modules/pathmax (License): Likewise.
68640         * modules/poll (License): Likewise.
68641         * modules/regex (License): Likewise.
68642         * modules/snprintf (License): Likewise.
68643         * modules/stdbool (License): Likewise.
68644         * modules/stdint (License): Likewise.
68645         * modules/stdio (License): Likewise.
68646         * modules/strcase (License): Likewise.
68647         * modules/strcasestr (License): Likewise.
68648         * modules/strdup (License): Likewise.
68649         * modules/string (License): Likewise.
68650         * modules/strndup (License): Likewise.
68651         * modules/strnlen (License): Likewise.
68652         * modules/strpbrk (License): Likewise.
68653         * modules/strptime (License): Likewise.
68654         * modules/strsep (License): Likewise.
68655         * modules/sys_select (License): Likewise.
68656         * modules/sys_socket (License): Likewise.
68657         * modules/sys_stat (License): Likewise.
68658         * modules/sys_time (License): Likewise.
68659         * modules/time (License): Likewise.
68660         * modules/time_r (License): Likewise.
68661         * modules/timegm (License): Likewise.
68662         * modules/unistd (License): Likewise.
68663         * modules/vsnprintf (License): Likewise.
68664         * modules/wctype (License): Likewise.
68665
68666 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68667
68668         * modules/argz (License): LGPLv2+.
68669
68670 2007-07-15  Karl Berry  <karl@gnu.org>
68671
68672         * doc/gnulib.texi: revise node structure per new fdl.texi.
68673
68674 2007-07-14  Bruno Haible  <bruno@clisp.org>
68675
68676         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68677         the output file.
68678         * lib/uniname/uninames.h: Regenerated.
68679
68680 2007-07-14  Karl Berry  <karl@gnu.org>
68681
68682         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68683         omitting sectioning and index commands.
68684
68685 2007-07-13  Bruno Haible  <bruno@clisp.org>
68686
68687         New gnulib-tool option --more-symlinks.
68688         * gnulib-tool (func_usage): Document --more-symlinks.
68689         (do_copyrights): New variable.
68690         Recognize option --more-symlinks.
68691         (func_import): Don't add a copyright notice transform to
68692         sed_transform_lib_file if do_copyrights is empty.
68693
68694 2007-07-13  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/vasnprintf.c (decimal_point_char): Define also if
68697         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68698         && !NEED_PRINTF_DIRECTIVE_A.
68699         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68700         Gary V. Vaughan <gary@gnu.org>.
68701
68702 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * lib/inttypes_.h: Undo previous change, since it was fixed
68705         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68706
68707 2007-07-13  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68710         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68711
68712 2007-07-13  Jim Meyering  <jim@meyering.net>
68713
68714         df: Don't fail for Tru64's "file-on-file mount".
68715         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68716         so we fall through and use statfs instead.  Details here:
68717         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68718         Reported by Albert Chin.
68719
68720 2007-07-13  Bruno Haible  <bruno@clisp.org>
68721
68722         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68723         * modules/configmake (License): Likewise.
68724         * modules/gettext (License): Likewise.
68725         * modules/gettext-h (License): Likewise.
68726         * modules/include_next (License): Likewise.
68727         * modules/link-warning (License): Likewise.
68728         * modules/localcharset (License): Likewise.
68729         * modules/localename (License): Likewise.
68730         * modules/lock (License): Likewise.
68731         * modules/relocatable-lib-lgpl (License): Likewise.
68732         * modules/size_max (License): Likewise.
68733         * modules/vasnprintf (License): Likewise.
68734         * modules/wchar (License): Likewise.
68735         * modules/xsize (License): Likewise.
68736
68737 2007-07-13  Bruno Haible  <bruno@clisp.org>
68738
68739         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68740         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68741
68742 2007-07-12  Bruno Haible  <bruno@clisp.org>
68743
68744         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68745         in the modules files.
68746
68747 2007-07-11  Karl Berry  <karl@gnu.org>
68748
68749         * MODULES.html.sh (func_module): use
68750          sed -e '\|^'"${includefile}"'$|d'
68751          instead of /.../d, to avoid errors on $includefile's containing /.
68752
68753 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68754
68755         * gnulib-tool (func_import): Avoid duplication of --avoid
68756         statements
68757         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68758         names to `_' in variable names.
68759
68760 2007-07-10  Eric Blake  <ebb9@byu.net>
68761
68762         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68763         * NEWS: Document this change.
68764
68765 2007-07-08  Bruno Haible  <bruno@clisp.org>
68766
68767         Update to Unicode 5.0.
68768         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68769         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68770         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68771         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68772         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68773         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68774         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68775         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68776         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68777         U+10A3F, U+1D242..U+1D244.
68778         (nonspacing_table_ind): Update.
68779         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68780         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68781
68782 2007-07-08  Bruno Haible  <bruno@clisp.org>
68783
68784         Update to Unicode 5.0.
68785         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68786         code transform. Extend the name index field of unicode_name_to_code and
68787         unicode_code_to_name from 16 to 24 bits.
68788         * lib/uniname/uniname.c (unicode_character_name,
68789         unicode_name_character): Add the range 0x12xxx to the code transform.
68790         * lib/uniname/uninames.h: Regenerated.
68791         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68792
68793 2007-07-07  Bruno Haible  <bruno@clisp.org>
68794
68795         * modules/wcwidth-tests: New file.
68796         * tests/test-wcwidth.c: New file.
68797
68798         Work around MacOS X wcwidth() bug.
68799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68800         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68801         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68802         original wcwidth in non-UTF-8 locales.
68803         * modules/wcwidth (Depends-on): Add localcharset, streq,
68804         uniwidth/width.
68805         * doc/functions/wcwidth.texi: Update.
68806
68807 2007-07-07  Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68810         (wcwidth): New declaration.
68811         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68812         macros.
68813         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68814         here. Prepare for creating <wchar.h> unconditionally.
68815         * modules/wchar (Depends-on): Add link-warning.
68816         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68817         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68818         * lib/wcwidth.h: Remove file.
68819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68820         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68821         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68822         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68823         (Include): Replace wcwidth.h with <wchar.h>.
68824         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68825         * lib/mbchar.h: Don't include wcwidth.h.
68826         * lib/mbswidth.c: Likewise.
68827         * NEWS: Mention the change.
68828
68829 2007-07-07  Bruno Haible  <bruno@clisp.org>
68830
68831         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68832         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68833         definition with an external declaration.
68834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68835         defined as a function. Remove AC_C_INLINE requirement.
68836         * modules/wcwidth (Files): Add lib/wcwidth.c.
68837         (Makefile.am): Remove redundant statement.
68838
68839 2007-07-07  Bruno Haible  <bruno@clisp.org>
68840
68841         * MODULES.html.sh (Unicode string functions): Add the new modules.
68842
68843         * tests/uniwidth/test-u32-strwidth.c: New file.
68844         * modules/uniwidth/u32-strwidth-tests: New file.
68845
68846         * lib/uniwidth/u32-strwidth.c: New file.
68847         * modules/uniwidth/u32-strwidth: New file.
68848
68849         * tests/uniwidth/test-u16-strwidth.c: New file.
68850         * modules/uniwidth/u16-strwidth-tests: New file.
68851
68852         * lib/uniwidth/u16-strwidth.c: New file.
68853         * modules/uniwidth/u16-strwidth: New file.
68854
68855         * tests/uniwidth/test-u8-strwidth.c: New file.
68856         * modules/uniwidth/u8-strwidth-tests: New file.
68857
68858         * lib/uniwidth/u8-strwidth.c: New file.
68859         * modules/uniwidth/u8-strwidth: New file.
68860
68861         * tests/uniwidth/test-u32-width.c: New file.
68862         * modules/uniwidth/u32-width-tests: New file.
68863
68864         * lib/uniwidth/u32-width.c: New file.
68865         * modules/uniwidth/u32-width: New file.
68866
68867         * tests/uniwidth/test-u16-width.c: New file.
68868         * modules/uniwidth/u16-width-tests: New file.
68869
68870         * lib/uniwidth/u16-width.c: New file.
68871         * modules/uniwidth/u16-width: New file.
68872
68873         * tests/uniwidth/test-u8-width.c: New file.
68874         * modules/uniwidth/u8-width-tests: New file.
68875
68876         * lib/uniwidth/u8-width.c: New file.
68877         * modules/uniwidth/u8-width: New file.
68878
68879         * tests/uniwidth/test-uc_width.c: New file.
68880         * modules/uniwidth/width-tests: New file.
68881
68882         * lib/uniwidth/width.c: New file, from GNU libiconv.
68883         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68884         * modules/uniwidth/width: New file.
68885
68886         * lib/uniwidth.h: New file, from GNU libiconv.
68887         * modules/uniwidth/base: New file.
68888
68889 2007-07-07  Bruno Haible  <bruno@clisp.org>
68890
68891         * lib/uniname.h: New file, from GNU gettext.
68892         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68893         * lib/uniname/uninames.h: New file, from GNU gettext.
68894         * lib/uniname/uniname.c: New file, from GNU gettext.
68895         * tests/uniname/test-uninames.sh: New file.
68896         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68897         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68898         * modules/uniname/base: New file.
68899         * modules/uniname/uniname: New file.
68900         * modules/uniname/uniname-tests: New file.
68901         * MODULES.html.sh (Unicode string functions): Add the new modules.
68902
68903 2007-07-06  Bruno Haible  <bruno@clisp.org>
68904
68905         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68906
68907 2007-07-06  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68910         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68911         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68912         include <sys/time.h>.
68913         Reported by Eric Blake.
68914
68915 2007-07-06  Eric Blake  <ebb9@byu.net>
68916
68917         Fix testing canonicalize on cygwin.
68918         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68919         Revert patch from 2007-06-19.
68920         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68921         canonicalize module is also in use.
68922         * tests/test-canonicalize.c: New file.
68923         * tests/test-canonicalize.sh: Likewise.
68924         * modules/canonicalize-tests: Likewise.
68925
68926 2007-07-06  Jim Meyering  <jim@meyering.net>
68927
68928         * lib/getugroups.c (getugroups): Detect getgrent failure.
68929         Adjust comment to reflect reality: this function may return -1.
68930
68931 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68932
68933         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68934         the new TP address.
68935         (usage): Fix typo
68936         (gnulib_mk): New variable.
68937
68938 2007-07-05  Jim Meyering  <jim@meyering.net>
68939
68940         Don't let endgrent clobber errno, no matter how improbable.
68941         * lib/getugroups.c (getugroups): Save and restore errno around
68942         endgrent call.
68943
68944         Close the group DB even when failing with 2^31 or more members.
68945         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68946
68947 2007-07-04  Jim Meyering  <jim@meyering.net>
68948
68949         * lib/getugroups.h: New file.
68950         * lib/getugroups.c: Include "getugroups.h".
68951         Remove uses of "register" keyword.
68952         Move local variable, "cp", down into scope where used.
68953         Give "username" parameter the "const" attribute.
68954         * modules/getugroups (Files): Add lib/getugroups.h
68955
68956 2007-07-04  Karl Berry  <karl@gnu.org>
68957
68958         * MODULES.html.sh (func_all_modules): Complete rename of
68959         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68960
68961 2007-07-02  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68964         mode, when inttypes.h comes from gnulib.
68965         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68966
68967 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68968
68969         * NEWS: Mention lgpl module name change.
68970
68971         * modules/lgpl-2.1: Renamed from lgpl.
68972
68973         * NEWS: Mention gpl module name change.
68974
68975         * modules/gpl-3.0: New file, based on gpl-2.0.
68976
68977         * modules/gpl-2.0: Renamed from gpl.
68978
68979         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68980         doc/gpl-2.0.texi.
68981
68982 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68985         #define __STDC_LIMIT_MACROS temporarily while including
68986         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68987         Problem reported by Joel E. Denny in
68988         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68989
68990 2007-07-01  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/unistdio.h: New file.
68993         * lib/unistdio/u-asnprintf.h: New file.
68994         * lib/unistdio/u-asprintf.h: New file.
68995         * lib/unistdio/u-printf-args.c: New file.
68996         * lib/unistdio/u-printf-args.h: New file.
68997         * lib/unistdio/u-printf-parse.h: New file.
68998         * lib/unistdio/u-snprintf.h: New file.
68999         * lib/unistdio/u-sprintf.h: New file.
69000         * lib/unistdio/u-vasprintf.h: New file.
69001         * lib/unistdio/u-vsnprintf.h: New file.
69002         * lib/unistdio/u-vsprintf.h: New file.
69003         * lib/unistdio/ulc-asnprintf.c: New file.
69004         * lib/unistdio/ulc-asprintf.c: New file.
69005         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69006         * lib/unistdio/ulc-printf-parse.c: New file.
69007         * lib/unistdio/ulc-snprintf.c: New file.
69008         * lib/unistdio/ulc-sprintf.c: New file.
69009         * lib/unistdio/ulc-vasnprintf.c: New file.
69010         * lib/unistdio/ulc-vasprintf.c: New file.
69011         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69012         * lib/unistdio/ulc-vsnprintf.c: New file.
69013         * lib/unistdio/ulc-vsprintf.c: New file.
69014         * lib/unistdio/u8-asnprintf.c: New file.
69015         * lib/unistdio/u8-asprintf.c: New file.
69016         * lib/unistdio/u8-printf-parse.c: New file.
69017         * lib/unistdio/u8-snprintf.c: New file.
69018         * lib/unistdio/u8-sprintf.c: New file.
69019         * lib/unistdio/u8-vasnprintf.c: New file.
69020         * lib/unistdio/u8-vasprintf.c: New file.
69021         * lib/unistdio/u8-vsnprintf.c: New file.
69022         * lib/unistdio/u8-vsprintf.c: New file.
69023         * lib/unistdio/u8-u8-asnprintf.c: New file.
69024         * lib/unistdio/u8-u8-asprintf.c: New file.
69025         * lib/unistdio/u8-u8-snprintf.c: New file.
69026         * lib/unistdio/u8-u8-sprintf.c: New file.
69027         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69028         * lib/unistdio/u8-u8-vasprintf.c: New file.
69029         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69030         * lib/unistdio/u8-u8-vsprintf.c: New file.
69031         * lib/unistdio/u16-asnprintf.c: New file.
69032         * lib/unistdio/u16-asprintf.c: New file.
69033         * lib/unistdio/u16-printf-parse.c: New file.
69034         * lib/unistdio/u16-snprintf.c: New file.
69035         * lib/unistdio/u16-sprintf.c: New file.
69036         * lib/unistdio/u16-vasnprintf.c: New file.
69037         * lib/unistdio/u16-vasprintf.c: New file.
69038         * lib/unistdio/u16-vsnprintf.c: New file.
69039         * lib/unistdio/u16-vsprintf.c: New file.
69040         * lib/unistdio/u16-u16-asnprintf.c: New file.
69041         * lib/unistdio/u16-u16-asprintf.c: New file.
69042         * lib/unistdio/u16-u16-snprintf.c: New file.
69043         * lib/unistdio/u16-u16-sprintf.c: New file.
69044         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69045         * lib/unistdio/u16-u16-vasprintf.c: New file.
69046         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69047         * lib/unistdio/u16-u16-vsprintf.c: New file.
69048         * lib/unistdio/u32-asnprintf.c: New file.
69049         * lib/unistdio/u32-asprintf.c: New file.
69050         * lib/unistdio/u32-printf-parse.c: New file.
69051         * lib/unistdio/u32-snprintf.c: New file.
69052         * lib/unistdio/u32-sprintf.c: New file.
69053         * lib/unistdio/u32-vasnprintf.c: New file.
69054         * lib/unistdio/u32-vasprintf.c: New file.
69055         * lib/unistdio/u32-vsnprintf.c: New file.
69056         * lib/unistdio/u32-vsprintf.c: New file.
69057         * lib/unistdio/u32-u32-asnprintf.c: New file.
69058         * lib/unistdio/u32-u32-asprintf.c: New file.
69059         * lib/unistdio/u32-u32-snprintf.c: New file.
69060         * lib/unistdio/u32-u32-sprintf.c: New file.
69061         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69062         * lib/unistdio/u32-u32-vasprintf.c: New file.
69063         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69064         * lib/unistdio/u32-u32-vsprintf.c: New file.
69065         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69066         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69067         * tests/unistdio/test-ulc-printf1.h: New file.
69068         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69069         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69070         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69071         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69072         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69073         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69074         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69075         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69076         * tests/unistdio/test-u8-asnprintf1.c: New file.
69077         * tests/unistdio/test-u8-asnprintf1.h: New file.
69078         * tests/unistdio/test-u8-printf1.h: New file.
69079         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69080         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69081         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69082         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69083         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69084         * tests/unistdio/test-u8-vasprintf1.c: New file.
69085         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69086         * tests/unistdio/test-u8-vsprintf1.c: New file.
69087         * tests/unistdio/test-u16-asnprintf1.c: New file.
69088         * tests/unistdio/test-u16-asnprintf1.h: New file.
69089         * tests/unistdio/test-u16-printf1.h: New file.
69090         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69091         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69092         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69093         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69094         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69095         * tests/unistdio/test-u16-vasprintf1.c: New file.
69096         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69097         * tests/unistdio/test-u16-vsprintf1.c: New file.
69098         * tests/unistdio/test-u32-asnprintf1.c: New file.
69099         * tests/unistdio/test-u32-asnprintf1.h: New file.
69100         * tests/unistdio/test-u32-printf1.h: New file.
69101         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69102         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69103         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69104         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69105         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69106         * tests/unistdio/test-u32-vasprintf1.c: New file.
69107         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69108         * tests/unistdio/test-u32-vsprintf1.c: New file.
69109         * modules/unistdio/base: New file.
69110         * modules/unistdio/u-printf-args: New file.
69111         * modules/unistdio/ulc-asnprintf: New file.
69112         * modules/unistdio/ulc-asprintf: New file.
69113         * modules/unistdio/ulc-fprintf: New file.
69114         * modules/unistdio/ulc-printf-parse: New file.
69115         * modules/unistdio/ulc-snprintf: New file.
69116         * modules/unistdio/ulc-sprintf: New file.
69117         * modules/unistdio/ulc-vasnprintf: New file.
69118         * modules/unistdio/ulc-vasprintf: New file.
69119         * modules/unistdio/ulc-vfprintf: New file.
69120         * modules/unistdio/ulc-vsnprintf: New file.
69121         * modules/unistdio/ulc-vsprintf: New file.
69122         * modules/unistdio/u8-asnprintf: New file.
69123         * modules/unistdio/u8-asprintf: New file.
69124         * modules/unistdio/u8-printf-parse: New file.
69125         * modules/unistdio/u8-snprintf: New file.
69126         * modules/unistdio/u8-sprintf: New file.
69127         * modules/unistdio/u8-vasnprintf: New file.
69128         * modules/unistdio/u8-vasprintf: New file.
69129         * modules/unistdio/u8-vsnprintf: New file.
69130         * modules/unistdio/u8-vsprintf: New file.
69131         * modules/unistdio/u8-u8-asnprintf: New file.
69132         * modules/unistdio/u8-u8-asprintf: New file.
69133         * modules/unistdio/u8-u8-snprintf: New file.
69134         * modules/unistdio/u8-u8-sprintf: New file.
69135         * modules/unistdio/u8-u8-vasnprintf: New file.
69136         * modules/unistdio/u8-u8-vasprintf: New file.
69137         * modules/unistdio/u8-u8-vsnprintf: New file.
69138         * modules/unistdio/u8-u8-vsprintf: New file.
69139         * modules/unistdio/u16-asnprintf: New file.
69140         * modules/unistdio/u16-asprintf: New file.
69141         * modules/unistdio/u16-printf-parse: New file.
69142         * modules/unistdio/u16-snprintf: New file.
69143         * modules/unistdio/u16-sprintf: New file.
69144         * modules/unistdio/u16-vasnprintf: New file.
69145         * modules/unistdio/u16-vasprintf: New file.
69146         * modules/unistdio/u16-vsnprintf: New file.
69147         * modules/unistdio/u16-vsprintf: New file.
69148         * modules/unistdio/u16-u16-asnprintf: New file.
69149         * modules/unistdio/u16-u16-asprintf: New file.
69150         * modules/unistdio/u16-u16-snprintf: New file.
69151         * modules/unistdio/u16-u16-sprintf: New file.
69152         * modules/unistdio/u16-u16-vasnprintf: New file.
69153         * modules/unistdio/u16-u16-vasprintf: New file.
69154         * modules/unistdio/u16-u16-vsnprintf: New file.
69155         * modules/unistdio/u16-u16-vsprintf: New file.
69156         * modules/unistdio/u32-asnprintf: New file.
69157         * modules/unistdio/u32-asprintf: New file.
69158         * modules/unistdio/u32-printf-parse: New file.
69159         * modules/unistdio/u32-snprintf: New file.
69160         * modules/unistdio/u32-sprintf: New file.
69161         * modules/unistdio/u32-vasnprintf: New file.
69162         * modules/unistdio/u32-vasprintf: New file.
69163         * modules/unistdio/u32-vsnprintf: New file.
69164         * modules/unistdio/u32-vsprintf: New file.
69165         * modules/unistdio/u32-u32-asnprintf: New file.
69166         * modules/unistdio/u32-u32-asprintf: New file.
69167         * modules/unistdio/u32-u32-snprintf: New file.
69168         * modules/unistdio/u32-u32-sprintf: New file.
69169         * modules/unistdio/u32-u32-vasnprintf: New file.
69170         * modules/unistdio/u32-u32-vasprintf: New file.
69171         * modules/unistdio/u32-u32-vsnprintf: New file.
69172         * modules/unistdio/u32-u32-vsprintf: New file.
69173         * modules/unistdio/ulc-asnprintf-tests: New file.
69174         * modules/unistdio/ulc-vasnprintf-tests: New file.
69175         * modules/unistdio/ulc-vasprintf-tests: New file.
69176         * modules/unistdio/ulc-vsnprintf-tests: New file.
69177         * modules/unistdio/ulc-vsprintf-tests: New file.
69178         * modules/unistdio/u8-asnprintf-tests: New file.
69179         * modules/unistdio/u8-vasnprintf-tests: New file.
69180         * modules/unistdio/u8-vasprintf-tests: New file.
69181         * modules/unistdio/u8-vsnprintf-tests: New file.
69182         * modules/unistdio/u8-vsprintf-tests: New file.
69183         * modules/unistdio/u16-asnprintf-tests: New file.
69184         * modules/unistdio/u16-vasnprintf-tests: New file.
69185         * modules/unistdio/u16-vasprintf-tests: New file.
69186         * modules/unistdio/u16-vsnprintf-tests: New file.
69187         * modules/unistdio/u16-vsprintf-tests: New file.
69188         * modules/unistdio/u32-asnprintf-tests: New file.
69189         * modules/unistdio/u32-vasnprintf-tests: New file.
69190         * modules/unistdio/u32-vasprintf-tests: New file.
69191         * modules/unistdio/u32-vsnprintf-tests: New file.
69192         * modules/unistdio/u32-vsprintf-tests: New file.
69193         * MODULES.html.sh (Unicode string functions): Add the new modules.
69194
69195 2007-07-01  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/sprintf.c (sprintf): Limit the available length estimation,
69198         to avoid address wraparound.
69199         * lib/vsprintf.c (vsprintf): Likewise.
69200         * modules/sprintf-posix (Dependencies): Add stdint.
69201         * modules/vsprintf-posix (Dependencies): Likewise.
69202
69203 2007-07-01  Bruno Haible  <bruno@clisp.org>
69204
69205         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69206         Windows PATH as well. Conservative double-quoting. Comments.
69207
69208 2007-07-01  Bruno Haible  <bruno@clisp.org>
69209             Eric Blake  <ebb9@byu.net>
69210             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69211
69212         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69213         empty components in $PATH, denoting '.'.
69214
69215 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69216
69217         * gnulib-tool: Fix indentation.
69218         (func_create_megatestdir): Likewise.
69219         Report by Bruno Haible.
69220
69221 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69222
69223         Sync from Automake.
69224         * build-aux/gnupload: Fix shell portability issues with for loops.
69225         Report by Karl Berry.
69226
69227 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69228
69229         * build-aux/maint.mk (POURL): Use translationproject.org.
69230
69231 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69232             Bruno Haible  <bruno@clisp.org>
69233
69234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69235         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69236         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69237         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69238         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69239
69240 2007-06-27  Bruno Haible  <bruno@clisp.org>
69241
69242         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69243         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69244
69245 2007-06-26  Karl Berry  <karl@gnu.org>
69246
69247         * MODULES.html.sh: remove xreadlink-with-size.
69248
69249 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69250
69251         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69252         method that I hope also handles the double-include problem noted
69253         by Bruno Haible in
69254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69255
69256 2007-06-23  Bruno Haible  <bruno@clisp.org>
69257
69258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69259         Don't let the 'mostlyclean' target fail if the last subdirectory could
69260         not be removed.
69261         Reported by Karl Berry.
69262
69263 2007-06-23  Bruno Haible  <bruno@clisp.org>
69264
69265         * gnulib-tool (echo): Add a speedier workaround for ksh.
69266         * tests/test-echo.sh: Likewise.
69267
69268 2007-06-23  Bruno Haible  <bruno@clisp.org>
69269
69270         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69271         * tests/test-echo.sh: Likewise.
69272
69273 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69274
69275         * gnulib-tool (IFS): Initialize early, so we don't set it to
69276         empty later.
69277         (self_abspathname): Rewrite algorithm to set it, reindent.
69278         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69279         (func_create_megatestdir): Merge some sed scripts.
69280
69281 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69282
69283         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69284         exposed by Sun Studio 11 cc on Solaris 8.
69285
69286 2007-06-22  Bruno Haible  <bruno@clisp.org>
69287
69288         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69289         backslashes.
69290         * tests/test-echo.sh: New file.
69291
69292 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69293
69294         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69295         simplify `sed_replace_build_aux' scripts, they are portable but
69296         echoing them with `echo' is not.
69297         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69298
69299 2007-06-21  Karl Berry  <karl@gnu.org>
69300
69301         * config/srclist.txt: guess we can't handle the licenses via
69302         srclist at the moment.
69303
69304 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * MODULES.html.sh: Add include_next.
69307         * modules/include_next: New file.
69308
69309 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69312         INCLUDE_NEXT.
69313         (gl_CHECK_NEXT_HEADERS): New macro.
69314         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69315         the obsolescent gl_ABSOLUTE_HEADER.
69316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69317         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69318         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69319         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69320         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69321         * m4/math_h.m4 (gl_MATH_H): Likewise.
69322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69323         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69324         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69325         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69326         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69327         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69328         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69331         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69333         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69334         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69335         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69336         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69337         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69338         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69339         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69340         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69341         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69342         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69343         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69344         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69345         * lib/float_.h: Likewise.
69346         * lib/inttypes_.h: Likewise.
69347         * lib/math_.h: Likewise.
69348         * lib/search_.h: Likewise.
69349         * lib/signal_.h: Likewise.
69350         * lib/stdint_.h: Likewise.
69351         * lib/stdio_.h: Likewise.
69352         * lib/stdlib_.h: Likewise.
69353         * lib/string_.h: Likewise.
69354         * lib/sys_stat_.h: Likewise.
69355         * lib/sys_time_.h: Likewise.
69356         * lib/time_.h: Likewise.
69357         * lib/unistd_.h: Likewise.
69358         * lib/wchar_.h: Likewise.
69359         * lib/wctype_.h: Likewise.
69360         * lib/dirent_.h: Likewise.
69361         * lib/iconv_.h: Likewise.
69362         * lib/locale_.h: Likewise.
69363         * lib/netinet_in_.h: Likewise.
69364         * lib/sys_select_.h: Likewise.
69365         * lib/sys_socket_.h: Likewise.
69366         * lib/sysexits_.h: Likewise.
69367         * modules/fcntl (Depends-on): Depend on include_next, not
69368         absolute_header.
69369         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69370         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69371         * modules/fchdir: Likewise.
69372         * modules/float: Likewise.
69373         * modules/iconv_open: Likewise.
69374         * modules/inttypes: Likewise.
69375         * modules/locale: Likewise.
69376         * modules/math: Likewise.
69377         * modules/netinet_in: Likewise.
69378         * modules/search: Likewise.
69379         * modules/signal: Likewise.
69380         * modules/stdint: Likewise.
69381         * modules/stdio: Likewise.
69382         * modules/stdlib: Likewise.
69383         * modules/string: Likewise.
69384         * modules/sys_select: Likewise.
69385         * modules/sys_socket: Likewise.
69386         * modules/sys_stat: Likewise.
69387         * modules/sys_time: Likewise.
69388         * modules/sysexits: Likewise.
69389         * modules/time: Likewise.
69390         * modules/unistd: Likewise.
69391         * modules/wchar: Likewise.
69392         * modules/wctype: Likewise.
69393         * modules/sys_stat: Change maintainer to "all".
69394         * modules/unistd: Likewise.
69395
69396 2007-06-20  Karl Berry  <karl@gnu.org>
69397
69398         * config/srclist.txt: track www changes in license files.
69399
69400 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69401
69402         * build-aux/bootstrap: Remove stray dot.
69403         Make sure build_aux settings are honored when linking
69404         gnulib_extra_files.
69405
69406 2007-06-19  Eric Blake  <ebb9@byu.net>
69407
69408         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69409         Allow compilation on cygwin.
69410
69411 2007-06-19  Jim Meyering  <jim@meyering.net>
69412
69413         xreadlink-with-size: Remove module.  No longer used.
69414         Ex-callers now use xreadlink or mreadlink-with-size.
69415         * modules/xreadlink-with-size: Remove module.
69416         * lib/xreadlink-with-size.c: Remove file.
69417         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69418         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69419         just before the function definition *is* accurate.
69420
69421         Eliminate one way canonicalize_filename_mode could exit.
69422         * lib/canonicalize.c (canonicalize_filename_mode):
69423         Use mreadlink_with_size, not xreadlink_with_size.
69424
69425 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         Detect porting problems to FreeBSD/arm, which has time_t wider than
69428         long int.  Original problem reported for GNU diff by Xin Li in
69429         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69430         * modules/getdate (Depends-on): Add intprops, verify.
69431         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69432         is an integer type no wider than long int.
69433
69434 2007-06-18  Jim Meyering  <jim@meyering.net>
69435
69436         New module: mreadlink-with-size.
69437         * MODULES.html.sh: Add mreadlink-with-size.
69438         * modules/mreadlink-with-size: New module
69439         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69440         not xreadlink-with-size.
69441         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69442
69443 2007-06-16  Bruno Haible  <bruno@clisp.org>
69444
69445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69446         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69447         Reported by Gary V. Vaughan <gary@gnu.org>.
69448
69449 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         Revamp lchown so that it lives in unistd.h where it belongs.
69452         * lib/lchown.h: Remove.
69453         * lib/dirchownmod.c: Don't include lib/lchown.h.
69454         * lib/fchownat.c: Likewise.
69455         * lib/openat.c: Likewise.
69456         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69457         does not follow symlinks.
69458         (EOPNOTSUPP): Define if not defined.
69459         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69460         is defined to 0.
69461         (lchown): New decl.
69462         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69463         Do not check for lchown decl.
69464         Set REPLACE_LCHOWN.
69465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69466         REPLACE_LCHOWN.
69467         * modules/chown: Make it clear it follows symlinks.
69468         * modules/lchown: Make it clear it doesn't follow symlinks.
69469         (Files): Remove lib/lchown.h
69470         (Depends-on): Add unistd.
69471         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69472         (Include): Include <unistd.h>, not "lchown.h".
69473         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69474         REPLACE_LCHOWN.
69475
69476 2007-06-15  Jim Meyering  <jim@meyering.net>
69477
69478         Change license (GPL to LGPL) of fsusage and dependents.
69479         * modules/fsusage (License): Change to LGPL.
69480         * modules/full-read (License): Likewise.
69481         * modules/full-write (License): Likewise.
69482         * modules/safe-read (License): Likewise.
69483         * modules/safe-write (License): Likewise.
69484
69485 2007-06-14  Ben Pfaff  <blp@gnu.org>
69486
69487         Missing part of allocsa -> malloca transition.
69488         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69489         gl_MALLOCA.
69490
69491 2007-06-12  Bruno Haible  <bruno@clisp.org>
69492
69493         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69494         to ia64, x86_64, i386.
69495         Reported by Eric Blake.
69496
69497 2007-06-12  Bruno Haible  <bruno@clisp.org>
69498
69499         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69500         cross-compiling to x86_64.
69501
69502 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69505         glitch reported by Ralf Wildenhues in
69506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69507
69508         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69509         Vin Shelton.
69510
69511 2007-06-11  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69514         replacement string.
69515         Reported by Eric Blake.
69516
69517 2007-06-10  Bruno Haible  <bruno@clisp.org>
69518
69519         Prepare vasnprintf code for use with Unicode strings.
69520         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69521         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69522         TYPE_U32_STRING.
69523         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69524         a_u32_string variants.
69525         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69526         * lib/printf-args.c: Don't include config.h and the specification
69527         header if PRINTF_FETCHARGS is already defined.
69528         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69529         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69530         TYPE_U16_STRING, TYPE_U32_STRING.
69531         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69532         u16_directive, u16_directives, u32_directive, u32_directives): New
69533         types.
69534         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69535         New declarations.
69536         * lib/printf-parse.c: Don't include config.h and the specification
69537         header if PRINTF_PARSE is already defined. Eliminate the set of
69538         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69539         them now. Include c-ctype.h.
69540         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69541         directive and CHAR_T_ONLY_ASCII.
69542         * lib/vasnprintf.c: Don't include config.h and the specification header
69543         if VASNPRINTF is already defined.
69544         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69545         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69546         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69547         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69548         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69549         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69550         code accordingly.
69551         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69552         pad_ourselves also in this case, with the 'c' and 's' directives, and
69553         with a different notion of "width".
69554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69555
69556 2007-06-10  Bruno Haible  <bruno@clisp.org>
69557
69558         * modules/unistr/u32-mbsnlen: New file.
69559         * lib/unistr/u32-mbsnlen.c: New file.
69560
69561         * modules/unistr/u16-mbsnlen: New file.
69562         * lib/unistr/u16-mbsnlen.c: New file.
69563
69564         * modules/unistr/u8-mbsnlen: New file.
69565         * lib/unistr/u8-mbsnlen.c: New file.
69566
69567         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69568         declarations.
69569
69570 2007-06-10  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/string_.h (mbsnlen): New declaration.
69573         * lib/mbsnlen.c: New file.
69574         * m4/mbsnlen.m4: New file.
69575         * modules/mbsnlen: New file.
69576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69577         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69578         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69579
69580 2007-06-10  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69583
69584 2007-06-10  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69587         * lib/mbuiter.h: Likewise.
69588
69589 2007-06-10  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69592         declaration.
69593
69594 2007-06-10  Karl Berry  <karl@gnu.org>
69595
69596         * config/srclist.txt: remove gettext entries, Bruno prefers
69597         to update individually.
69598
69599 2007-06-10  Bruno Haible  <bruno@clisp.org>
69600
69601         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69602         'maxlen'. Ensure only length + width bytes are allocated, not
69603         length + 1 + width.
69604
69605 2007-06-09  Bruno Haible  <bruno@clisp.org>
69606
69607         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69608         (CHAR_T): Remove macro.
69609         (VASNPRINTF): Update.
69610
69611 2007-06-09  Bruno Haible  <bruno@clisp.org>
69612
69613         * MODULES.html.sh (Unicode string functions): Add the new modules.
69614
69615         * modules/uniconv/u32-conv-to-enc: New file.
69616         * lib/uniconv/u32-conv-to-enc.c: New file.
69617         * modules/uniconv/u32-conv-to-enc-tests: New file.
69618         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69619
69620         * modules/uniconv/u16-conv-to-enc: New file.
69621         * lib/uniconv/u16-conv-to-enc.c: New file.
69622         * lib/uniconv/u-conv-to-enc.h: New file.
69623         * modules/uniconv/u16-conv-to-enc-tests: New file.
69624         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69625
69626         * modules/uniconv/u8-conv-to-enc: New file.
69627         * lib/uniconv/u8-conv-to-enc.c: New file.
69628         * modules/uniconv/u8-conv-to-enc-tests: New file.
69629         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69630
69631         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69632         u32_conv_to_encoding): New declarations.
69633
69634 2007-06-09  Bruno Haible  <bruno@clisp.org>
69635
69636         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69637
69638 2007-06-09  Bruno Haible  <bruno@clisp.org>
69639
69640         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69641         * modules/malloca: Renamed from modules/allocsa, updated.
69642         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69643         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69644         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69645         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69646         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69647         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69648         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69649         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69650         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69651         * modules/c-strcasestr (Depends-on): Update.
69652         * lib/c-strcasestr.c: Update.
69653         * modules/c-strstr (Depends-on): Update.
69654         * lib/c-strstr.c: Update.
69655         * modules/canonicalize-lgpl (Depends-on): Update.
69656         * lib/canonicalize-lgpl.c: Update.
69657         * modules/clean-temp (Depends-on): Update.
69658         * lib/clean-temp.c: Update.
69659         * modules/csharpcomp (Depends-on): Update.
69660         * lib/csharpcomp.c: Update.
69661         * modules/csharpexec (Depends-on): Update.
69662         * lib/csharpexec.c: Update.
69663         * modules/javacomp (Depends-on): Update.
69664         * lib/javacomp.c: Update.
69665         * modules/javaexec (Depends-on): Update.
69666         * lib/javaexec.c: Update.
69667         * modules/mbscasestr (Depends-on): Update.
69668         * lib/mbscasestr.c: Update.
69669         * modules/mbsstr (Depends-on): Update.
69670         * lib/mbsstr.c: Update.
69671         * modules/setenv (Depends-on): Update.
69672         * lib/setenv.c: Update.
69673         * modules/strcasestr (Depends-on): Update.
69674         * lib/strcasestr.c: Update.
69675         * modules/striconveha (Depends-on): Update.
69676         * lib/striconveha.c: Update.
69677         * modules/relocatable-prog-wrapper (Files): Update.
69678         * lib/relocwrapper.c: Update.
69679         * build-aux/install-reloc: Update.
69680         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69681
69682 2007-06-08  Bruno Haible  <bruno@clisp.org>
69683
69684         Port to uClibc.
69685         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69686         * lib/fpurge.c (fpurge): Likewise.
69687         * lib/freading.c (freading): Likewise.
69688         * lib/fseeko.c (rpl_fseeko): Likewise.
69689         * lib/fseterr.c (fseterr): Likewise.
69690         * lib/fwriting.c (fwriting): Likewise.
69691         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69692
69693 2007-06-08  Bruno Haible  <bruno@clisp.org>
69694
69695         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69696         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69697         * modules/gettext (Files): Add m4/intlmacosx.m4.
69698
69699 2007-06-07  Bruno Haible  <bruno@clisp.org>
69700
69701         * modules/localename-tests: New file.
69702         * tests/test-localename.c: New file.
69703
69704         New module 'localename'.
69705         * lib/localename.h: New file.
69706         * lib/localename.c: New file, from GNU gettext.
69707         * m4/localename.m4: New file.
69708         * modules/localename: New file.
69709
69710 2007-06-07  Bruno Haible  <bruno@clisp.org>
69711
69712         Work around the lack of <wchar.h> on some builds of uClibc.
69713         * doc/headers/wchar.texi: Update.
69714         * lib/wchar_.h: Include <wchar.h> only if it exists.
69715         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69716         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69717         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69718         doesn't exist.
69719         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69720         * modules/mbfile (Depends-on): Add wchar.
69721         * modules/mbiter (Depends-on): Likewise.
69722         * modules/mbuiter (Depends-on): Likewise.
69723         Reported by Simon Josefsson.
69724
69725 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         Work around problem reported by Steven M. Schweda in
69728         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69729         Tru64 5.1B with the Compaq compiler environment installed declares
69730         an 'isblank' function but does not define it in the C library.
69731         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69732         * lib/regex_internal.h (isblank): Likewise.
69733         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69734         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69735
69736 2007-06-05  Bruno Haible  <bruno@clisp.org>
69737
69738         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69739         ia64.
69740         * modules/printf-safe: New file.
69741         * modules/fprintf-posix (Depends-on): Add printf-safe.
69742         * modules/printf-posix (Depends-on): Likewise.
69743         * modules/snprintf-posix (Depends-on): Likewise.
69744         * modules/sprintf-posix (Depends-on): Likewise.
69745         * modules/vasnprintf-posix (Depends-on): Likewise.
69746         * modules/vasprintf-posix (Depends-on): Likewise.
69747         * modules/vfprintf-posix (Depends-on): Likewise.
69748         * modules/vprintf-posix (Depends-on): Likewise.
69749         * modules/vsnprintf-posix (Depends-on): Likewise.
69750         * modules/vsprintf-posix (Depends-on): Likewise.
69751         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69752         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69753         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69754         "no" on i386, x86_64, ia64.
69755         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69756         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69757         on i386, x86_64, ia64.
69758         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69759         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69760         on i386, x86_64, ia64.
69761         * tests/test-vasnprintf-posix.c: Include float.h.
69762         (LDBL80_WORDS): New macro.
69763         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69764         on i386, x86_64, ia64.
69765         * tests/test-vasprintf-posix.c: Include float.h.
69766         (LDBL80_WORDS): New macro.
69767         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69768         on i386, x86_64, ia64.
69769         * tests/test-snprintf-posix.c: Include float.h.
69770         * tests/test-sprintf-posix.c: Likewise.
69771         * tests/test-vsnprintf-posix.c: Likewise.
69772         * tests/test-vsprintf-posix.c: Likewise.
69773
69774 2007-06-05  Bruno Haible  <bruno@clisp.org>
69775
69776         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69778         non-IEEE numbers on i386, x86_64, ia64.
69779         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69780         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69781         * tests/test-isnanl.h: Include float.h.
69782         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69783
69784 2007-06-05  Bruno Haible  <bruno@clisp.org>
69785
69786         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69787         also the %a / %A. Handle the %a / %A code before this extra handling.
69788
69789 2007-06-05  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69792         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69793
69794 2007-06-05  Bruno Haible  <bruno@clisp.org>
69795
69796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69797         typo in variable name.
69798
69799 2007-06-05  Eric Blake  <ebb9@byu.net>
69800
69801         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69802         Reported by Simon Josefsson.
69803
69804 2007-06-04  Bruno Haible  <bruno@clisp.org>
69805
69806         Avoid test failures on some PowerPC platforms.
69807         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69808         Define differently for PowerPC.
69809         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69810         Reported by Gary V. Vaughan <gary@gnu.org>.
69811
69812 2007-06-02  Bruno Haible  <bruno@clisp.org>
69813
69814         Fix test-stdint failure on FreeBSD/ia64.
69815         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69816         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69817         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69818         * doc/headers/stdint.texi: Update.
69819
69820 2007-06-01  Bruno Haible  <bruno@clisp.org>
69821
69822         * tests/test-binary-io.c (main): Pass a third argument to open().
69823         Reported by Gary V. Vaughan <gary@gnu.org>.
69824
69825 2007-06-01  Bruno Haible  <bruno@clisp.org>
69826
69827         * doc/functions/frexpl.texi: Update for mingw.
69828
69829 2007-06-01  Bruno Haible  <bruno@clisp.org>
69830
69831         * tests/test-lseek.c (main): Disable test of errno for invalid third
69832         argument.
69833         * doc/functions/lseek.texi: Update.
69834         Reported by Gary V. Vaughan <gary@gnu.org>.
69835
69836 2007-05-28  Bruno Haible  <bruno@clisp.org>
69837
69838         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69839
69840 2007-05-31  Eric Blake  <ebb9@byu.net>
69841
69842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69843         cross compiling.
69844
69845 2007-05-30  Eric Blake  <ebb9@byu.net>
69846         and Bruno Haible  <bruno@clisp.org>
69847
69848         Work around mingw test failures exposed by m4-1.4.9b.
69849         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69850         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69851         moment.
69852
69853 2007-05-30  Bruno Haible  <bruno@clisp.org>
69854
69855         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69856         assuming that they are closed. Needed on HP-UX 11.
69857
69858 2007-05-29  Bruno Haible  <bruno@clisp.org>
69859
69860         Fix a problem with #include_next.
69861         * lib/dirent_.h: Split the double-inclusion guard.
69862         * lib/fcntl_.h: Likewise.
69863         * lib/float_.h: Likewise.
69864         * lib/iconv_.h: Likewise.
69865         * lib/inttypes_.h: Likewise.
69866         * lib/locale_.h: Likewise.
69867         * lib/math_.h: Likewise.
69868         * lib/netinet_in_.h: Likewise.
69869         * lib/search_.h: Likewise.
69870         * lib/signal_.h: Likewise.
69871         * lib/stdint_.h: Likewise.
69872         * lib/stdio_.h: Likewise.
69873         * lib/stdlib_.h: Likewise.
69874         * lib/string_.h: Likewise.
69875         * lib/sys_select_.h: Likewise.
69876         * lib/sys_socket_.h: Likewise.
69877         * lib/sys_stat_.h: Likewise.
69878         * lib/sys_time_.h: Likewise.
69879         * lib/sysexits_.h: Likewise.
69880         * lib/time_.h: Likewise.
69881         * lib/unistd_.h: Likewise.
69882         * lib/wchar_.h: Likewise.
69883         * lib/wctype_.h: Likewise.
69884
69885 2007-05-29  Bruno Haible  <bruno@clisp.org>
69886
69887         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69888         for the moment.
69889
69890 2007-05-29  Bruno Haible  <bruno@clisp.org>
69891
69892         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69893         invocation.
69894         Reported by Eric Blake.
69895
69896 2007-05-29  Bruno Haible  <bruno@clisp.org>
69897
69898         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69899         compiling case.
69900
69901 2007-05-29  Eric Blake  <ebb9@byu.net>
69902             Bruno Haible  <bruno@clisp.org>
69903
69904         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69905         cross compiles.
69906
69907 2007-05-28  Eric Blake  <ebb9@byu.net>
69908
69909         * modules/closein-tests (test_closein_LDADD): Support test on
69910         cygwin with libtool.
69911
69912 2007-05-28  Bruno Haible  <bruno@clisp.org>
69913
69914         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69915         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69916         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69917         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69918         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69919         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69920         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69921         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69922         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69923
69924 2007-05-28  Eric Blake  <ebb9@byu.net>
69925
69926         Unconditionally include <config.h> in unit tests.
69927         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69928         * tests/test-allocsa.c, tests/test-arcfour.c,
69929         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69930         tests/test-array_list.c, tests/test-array_oset.c,
69931         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69932         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69933         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69934         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69935         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69936         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69937         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69938         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69939         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69940         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69941         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69942         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69943         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69944         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69945         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69946         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69947         test-md5.c, test-memmem.c, test-printf-posix.c,
69948         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69949         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69950         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69951         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69952         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69953         test-vasnprintf-posix2.c, test-vasnprintf.c,
69954         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69955         test-vfprintf-posix.c, test-vprintf-posix.c,
69956         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69957         test-xvasprintf.c: Likewise.
69958
69959 2007-05-28  Bruno Haible  <bruno@clisp.org>
69960
69961         * gnulib-tool (func_import): Remember the --with-tests command-line
69962         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69963         Reported by Eric Blake.
69964
69965 2007-05-28  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/ftell-tests: New file.
69968         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69969         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69970
69971         * lib/ftell.c: New file.
69972         * modules/ftell: New file.
69973         * m4/ftell.m4: New file.
69974         * doc/functions/ftell.texi: Update.
69975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69976         REPLACE_FTELL.
69977         * lib/stdio_.h (rpl_ftell): New declaration.
69978         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69979         REPLACE_FTELL.
69980
69981 2007-05-28  Eric Blake  <ebb9@byu.net>
69982
69983         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69984
69985 2007-05-28  Bruno Haible  <bruno@clisp.org>
69986
69987         * modules/fseek-tests: New file.
69988         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69989         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69990
69991         * lib/fseek.c: New file.
69992         * modules/fseek: New file.
69993         * m4/fseek.m4: New file.
69994         * doc/functions/fseek.texi: Update.
69995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69996         REPLACE_FSEEK.
69997         * lib/stdio_.h (rpl_fseek): New declaration.
69998         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69999         REPLACE_FSEEK.
70000
70001 2007-05-28  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/stdio_.h (fflush): More comments.
70004
70005 2007-05-28  Bruno Haible  <bruno@clisp.org>
70006
70007         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70008         runtime test.
70009
70010 2007-05-28  Eric Blake  <ebb9@byu.net>
70011
70012         Improve lseek module.
70013         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70014         * lib/unistd_.h (lseek): Scale back link warning message.
70015         * tests/test-lseek.c: Beef up test.
70016         * tests/test-lseek.sh: Exercise more facets of lseek.
70017         Reported by Bruno Haible.
70018
70019 2007-05-28  Bruno Haible  <bruno@clisp.org>
70020
70021         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70022         to define.
70023
70024 2007-05-27  Bruno Haible  <bruno@clisp.org>
70025
70026         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70027
70028 2007-05-27  Bruno Haible  <bruno@clisp.org>
70029
70030         * modules/openmp: New file.
70031         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70032         Noah Misch.
70033
70034 2007-05-26  Bruno Haible  <bruno@clisp.org>
70035
70036         * modules/chdir-long (Depends-on): Add fchdir.
70037         * modules/chdir-safer (Depends-on): Likewise.
70038         * modules/fts (Depends-on): Likewise.
70039         * modules/fts-lgpl (Depends-on): Likewise.
70040         * modules/openat (Depends-on): Likewise.
70041         * modules/savewd (Depends-on): Likewise.
70042
70043 2007-05-24  Eric Blake  <ebb9@byu.net>
70044
70045         Fix lseek on mingw.
70046         * modules/lseek: New module.
70047         * m4/lseek.m4: New file.
70048         * lib/lseek.c: New file.
70049         * modules/lseek-tests: New file.
70050         * tests/test-lseek.c: New file.
70051         * tests/test-lseek.sh: New file.
70052         * MODULES.html.sh: Document lseek module.
70053         * modules/fflush (Depends-on): Add lseek, fseeko.
70054         * modules/fseeko (Depends-on): Likewise.
70055         * modules/ftello (Depends-on): Likewise.
70056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70057         broken.
70058         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70059         broken.
70060         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70061         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70062         * lib/ftello.c (rpl_ftello): Likewise.
70063         * tests/test-fseeko.c (main): Test this.
70064         * tests/test-fseeko.sh: Likewise.
70065         * tests/test-ftello.c (main): Likewise.
70066         * tests/test-ftello.sh: Likewise.
70067         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70068         implies replacing fseek.
70069         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70070         HAVE_FTELLO.
70071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70072         * modules/unistd (Makefile.am): Likewise.
70073         * lib/unistd_.h (lseek): Declare a replacement.
70074         * doc/functions/lseek.texi (lseek): Document this fix.
70075         * doc/functions/fseek.texi (fseek): Likewise.
70076         * doc/functions/ftell.texi (ftell): Likewise.
70077
70078 2007-05-24  Bruno Haible  <bruno@clisp.org>
70079
70080         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70081         in the printed representation of a NaN.
70082         * tests/test-vasprintf-posix.c (test_function): Likewise.
70083         * tests/test-snprintf-posix.h (test_function): Likewise.
70084         * tests/test-sprintf-posix.h (test_function): Likewise.
70085         Reported by Eric Blake.
70086
70087 2007-05-23  Eric Blake  <ebb9@byu.net>
70088
70089         Fix fseeko/ftello on cygwin 1.5.24.
70090         * doc/functions/fseeko.texi (fseeko): Document the fix.
70091         * doc/functions/ftello.texi (ftello): Document the fix.
70092         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70093         * doc/functions/stdout.text (stdout): New file.
70094         * doc/functions/stderr.text (stderr): New file.
70095         * doc/gnulib.texi (Function Substitutes): Use new files.
70096         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70097         prior to 1.7.0.
70098         * tests/test-ftello.c (main): Likewise for ftello.
70099         * tests/test-fseeko.sh: New file.
70100         * tests/test-ftello.sh: New file.
70101         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70102         with seekable stdin.
70103         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70105         (gl_REPLACE_FSEEKO): New macro.
70106         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70107         * modules/fseeko (Files): Distribute fseeko.c.
70108         * modules/ftello (Files): Distribute ftello.c.
70109         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70110         mode.
70111         * lib/ftello.c (rpl_ftello): New file.
70112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70113         fseeko, ftello.
70114         (gl_STDIN_LARGE_OFFSET): New macro.
70115         * modules/stdio (Makefile.am): Perform the replacement.
70116         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70117
70118 2007-05-23  Bruno Haible  <bruno@clisp.org>
70119
70120         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70121         GNULIB_POSIXCHECK is defined.
70122
70123 2007-05-21  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70126         Check also the output for NaN arguments. When cross-compiling, guess
70127         no on IRIX.
70128         * lib/vasnprintf.c: Update comments.
70129         * tests/test-vasnprintf-posix.c (strisnan): New function.
70130         (test_function): Use it.
70131         * tests/test-vasprintf-posix.c (strisnan): New function.
70132         (test_function): Use it.
70133         * tests/test-snprintf-posix.h (strisnan): New function.
70134         (test_function): Use it.
70135         * tests/test-sprintf-posix.h (strisnan): New function.
70136         (test_function): Use it.
70137         Reported by Eric Blake.
70138
70139 2007-05-20  Bruno Haible  <bruno@clisp.org>
70140
70141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70142         numbers that fails on BeOS.
70143         * doc/functions/frexpl.texi: Update.
70144
70145 2007-05-20  Jim Meyering  <jim@meyering.net>
70146
70147         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70148         forced upon us by glibc-2.6.
70149
70150 2007-05-20  Bruno Haible  <bruno@clisp.org>
70151
70152         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70153         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70154         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70155         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70156         NEED_PRINTF_INFINITE.
70157         (is_infinitel): New function.
70158         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70160         gl_PREREQ_VASNPRINTF_INFINITE.
70161         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70163         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70164         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70165         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70166         gl_PREREQ_VASNPRINTF_INFINITE.
70167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70174         * doc/functions/fprintf.texi: Update.
70175         * doc/functions/printf.texi: Update.
70176         * doc/functions/snprintf.texi: Update.
70177         * doc/functions/sprintf.texi: Update.
70178         * doc/functions/vfprintf.texi: Update.
70179         * doc/functions/vprintf.texi: Update.
70180         * doc/functions/vsnprintf.texi: Update.
70181         * doc/functions/vsprintf.texi: Update.
70182
70183 2007-05-20  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70186         was not found in libc.
70187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70188
70189 2007-05-20  Bruno Haible  <bruno@clisp.org>
70190
70191         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70192         printed as "-nan" instead of "nan".
70193         * tests/test-vasprintf-posix.c (test_function): Likewise.
70194         * tests/test-snprintf-posix.h (test_function): Likewise.
70195         * tests/test-sprintf-posix.h (test_function): Likewise.
70196         Needed for HP-UX 11.
70197
70198 2007-05-20  Jim Meyering  <jim@meyering.net>
70199
70200         Fix buggy test for the fchownat-deref bug.
70201         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70202         symlink required for the run-test.  Without it, this test would
70203         always declare that fchownat doesn't work, and client code would
70204         unnecessarily use the replacement function with fixed libc.
70205         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70206         Reported by Greg Schafer.
70207
70208 2007-05-19  Bruno Haible  <bruno@clisp.org>
70209
70210         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70211         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70212         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70213         Needed for IRIX 6.5 and Solaris 2.5.1.
70214
70215 2007-05-19  Bruno Haible  <bruno@clisp.org>
70216
70217         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70218         (test_function): Skip tests involving -0.0 on platforms where
70219         -0.0 = 0.0.
70220         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70221         (test_function): Skip tests involving -0.0 on platforms where
70222         -0.0 = 0.0.
70223         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70224         (test_function): Skip tests involving -0.0 on platforms where
70225         -0.0 = 0.0.
70226         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70227         (test_function): Skip tests involving -0.0 on platforms where
70228         -0.0 = 0.0.
70229         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70230         tests.
70231         * tests/test-printf-posix.h (test_function): Likewise.
70232         * tests/test-printf-posix.output: Remove all -0.0 related results.
70233         Needed for IRIX 6.5.
70234
70235 2007-05-19  Bruno Haible  <bruno@clisp.org>
70236
70237         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70238         printed as "nan0x7fffffff" instead of "nan".
70239         * tests/test-vasprintf-posix.c (test_function): Likewise.
70240         * tests/test-snprintf-posix.h (test_function): Likewise.
70241         * tests/test-sprintf-posix.h (test_function): Likewise.
70242         * tests/test-fprintf-posix.h (NaN): Remove macro.
70243         (test_function): Remove all NaN related tests.
70244         * tests/test-printf-posix.h (NaN): Remove macro.
70245         (test_function): Remove all NaN related tests.
70246         * tests/test-printf-posix.output: Remove all NaN related results.
70247         Needed for IRIX 6.5.
70248
70249 2007-05-19  Bruno Haible  <bruno@clisp.org>
70250
70251         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70252         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70253
70254 2007-05-19  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/float_.h: New file.
70257         * m4/float_h.m4: New file.
70258         * modules/float: New file.
70259         * modules/isnanl (Dependencies): Add float.
70260         * modules/isnanl-nolibm (Dependencies): Likewise.
70261         * modules/mathl (Dependencies): Likewise.
70262         * modules/printf-frexpl (Dependencies): Likewise.
70263         * modules/signbit (Dependencies): Likewise.
70264         * modules/vasnprintf (Dependencies): Likewise.
70265         * doc/headers/float.texi: Update.
70266
70267 2007-05-19  Jim Meyering  <jim@meyering.net>
70268
70269         * lib/utimens.c (gl_futimens): Rename from futimens,
70270         now that glibc-2.6 declares futimens.
70271         * lib/utimens.h: Likewise.
70272
70273 2007-05-19  Bruno Haible  <bruno@clisp.org>
70274
70275         Avoid test failures on mingw.
70276         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70277         * tests/test-printf-posix.sh: Likewise.
70278         * tests/test-vfprintf-posix.sh: Likewise.
70279         * tests/test-vprintf-posix.sh: Likewise.
70280
70281 2007-05-19  Bruno Haible  <bruno@clisp.org>
70282
70283         Fix *printf result for NaN, Inf, -0.0 on mingw.
70284         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70285         * lib/vasnprintf.c: Include math.h and isnan.h.
70286         (is_infinite_or_zero): New function.
70287         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70288         values in the %f, %F, %e, %E, %g, %G directives.
70289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70291         gl_PRINTF_INFINITE and test its result. Invoke
70292         gl_PREREQ_VASNPRINTF_INFINITE.
70293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70300         * doc/functions/fprintf.texi: Update.
70301         * doc/functions/printf.texi: Update.
70302         * doc/functions/snprintf.texi: Update.
70303         * doc/functions/sprintf.texi: Update.
70304         * doc/functions/vfprintf.texi: Update.
70305         * doc/functions/vprintf.texi: Update.
70306         * doc/functions/vsnprintf.texi: Update.
70307         * doc/functions/vsprintf.texi: Update.
70308
70309 2007-05-19  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70312         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70313         Instead of multiplying with 10^k, set extra_zeroes to k.
70314         (scale10_round_long_double): Remove function.
70315
70316 2007-05-18  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70319         introduced on 2007-05-06.
70320
70321 2007-05-18  Bruno Haible  <bruno@clisp.org>
70322
70323         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70324         %g directives.
70325         * tests/test-vasprintf-posix.c (test_function): Likewise.
70326         * tests/test-snprintf-posix.h (test_function): Likewise.
70327         * tests/test-sprintf-posix.h (test_function): Likewise.
70328
70329 2007-05-18  Bruno Haible  <bruno@clisp.org>
70330
70331         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70332         (strmatch): New function.
70333         (test_function): Test the %f directive on numbers of various exponents.
70334         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70335         (strmatch): New function.
70336         (test_function): Test the %f directive on numbers of various exponents.
70337         * tests/test-snprintf-posix.h (strmatch): New function.
70338         (test_function): Test the %f directive on numbers of various exponents.
70339         * tests/test-sprintf-posix.h (strmatch): New function.
70340         (test_function): Test the %f directive on numbers of various exponents.
70341         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70342         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70343         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70344         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70345
70346 2007-05-18  Bruno Haible  <bruno@clisp.org>
70347
70348         Add support for 'long double' number output.
70349         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70350         * lib/vasnprintf.c: Include math.h and float+.h.
70351         (mp_limb_t): New type.
70352         (GMP_LIMB_BITS): New macro.
70353         (mp_twolimb_t): New type.
70354         (GMP_TWOLIMB_BITS): New macro.
70355         (mpn_t): New type.
70356         (multiply, divide, convert_to_decimal, decode_long_double,
70357         scale10_round_long_double, scale10_round_decimal_long_double,
70358         floorlog10l): New functions.
70359         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70360         for the %f, %F, %e, %E, %g, %G directives.
70361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70362         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70363         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70364         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70368         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70372         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70373         * modules/snprintf-posix (Depends-on): Likewise.
70374         * modules/sprintf-posix (Depends-on): Likewise.
70375         * modules/vasnprintf-posix (Depends-on): Likewise.
70376         * modules/vasprintf-posix (Depends-on): Likewise.
70377         * modules/vfprintf-posix (Depends-on): Likewise.
70378         * modules/vsnprintf-posix (Depends-on): Likewise.
70379         * modules/vsprintf-posix (Depends-on): Likewise.
70380         * modules/vasnprintf (Files): Add lib/float+.h.
70381         * doc/functions/fprintf.texi: Update.
70382         * doc/functions/printf.texi: Update.
70383         * doc/functions/snprintf.texi: Update.
70384         * doc/functions/sprintf.texi: Update.
70385         * doc/functions/vfprintf.texi: Update.
70386         * doc/functions/vprintf.texi: Update.
70387         * doc/functions/vsnprintf.texi: Update.
70388         * doc/functions/vsprintf.texi: Update.
70389
70390 2007-05-18  Bruno Haible  <bruno@clisp.org>
70391
70392         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70393
70394 2007-05-18  Bruno Haible  <bruno@clisp.org>
70395
70396         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70397         for printing 64-bit integers. Needed for mingw.
70398
70399 2007-05-18  Bruno Haible  <bruno@clisp.org>
70400
70401         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70402         gl_FUNC_FREXPL_WORKS.
70403         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70404
70405 2007-05-18  Bruno Haible  <bruno@clisp.org>
70406
70407         * modules/frexpl-nolibm-tests: New file.
70408
70409         * modules/frexpl-nolibm: New file.
70410         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70411
70412 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70415         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70416         GCC 4.2, which otherwise issues a lot of warnings.
70417         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70418         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70419         Likewise.
70420         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70421         * modules/iconv_open (iconv.h): Likewise.
70422         * modules/locale (locale.h): Likewise.
70423         * modules/netinet_in (netinet/in.h): Likewise.
70424         * modules/sys_select (sys_select.h): Likewise.
70425         * modules/sys_socket (sys/socket.h): Likewise.
70426         * modules/sys_stat (sys/stat.h): Likewise.
70427         * modules/sysexits (sysexits.h): Likewise.
70428         * modules/unistd (unistd.h): Likewise.
70429
70430 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70431
70432         * modules/closein-tests (Makefile.am): Distribute
70433         `test-closein.sh'.
70434
70435 2007-05-17  Bruno Haible  <bruno@clisp.org>
70436
70437         * tests/test-printf-posix.output: Renamed from
70438         tests/test-fprintf-posix.out.
70439         * modules/fprintf-posix-tests: Update.
70440         * modules/printf-posix-tests: Update.
70441         * modules/vfprintf-posix-tests: Update.
70442         * modules/vprintf-posix-tests: Update.
70443         * tests/test-fprintf-posix.sh: Update.
70444         * tests/test-printf-posix.sh: Update.
70445         * tests/test-vfprintf-posix.sh: Update.
70446         * tests/test-vprintf-posix.sh: Update.
70447         Reported by Ralf Wildenhues.
70448
70449 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70452         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70453         GCC 4.2, which otherwise issues a lot of warnings.
70454         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70455         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70456         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70457         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70458         it should no longer be needed.
70459         * lib/string_.h: Likewise.
70460         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70461         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70462         * modules/inttypes (inttypes.h): Likewise.
70463         * modules/math (math.h): Likewise.
70464         * modules/search (search.h): Likewise.
70465         * modules/signal (signal.h): Likewise.
70466         * modules/stdint (stdint.h): Likewise.
70467         * modules/stdio (stdio.h): Likewise.
70468         * modules/stdlib (stdlib.h): Likewise.
70469         * modules/string (string.h): Likewise.
70470         * modules/sys_time (sys/time.h): Likewise.
70471         * modules/time (time.h): Likewise.
70472         * modules/wchar (wchar.h): Likewise.
70473         * modules/wctype (wtype.h): Likewise.
70474
70475 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70476
70477         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70478
70479 2007-05-13  Bruno Haible  <bruno@clisp.org>
70480
70481         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70482         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70483         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70484         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70485         (gl_PREREQ_STRTOK_R): Don't require it here.
70486
70487 2007-05-13  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70490         when used in C++ mode.
70491
70492 2007-05-12  Bruno Haible  <bruno@clisp.org>
70493
70494         * lib/linebuffer.h: Tweak doc.
70495         * lib/linebuffer.c: Likewise.
70496
70497 2007-05-12  James Youngman  <jay@gnu.org>
70498
70499         * lib/linebuffer.c (readlinebuffer_delim): New function,
70500         like readlinebuffer, but use a caller-specified delimiter.
70501         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70502         as the delimiter.
70503         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70504
70505 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70506
70507         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70508         * modules/openat (Files): Remove openat-die.c.
70509         (Depends-on): Add openat-die.
70510         * modules/openat-die: New module.
70511
70512 2007-05-06  Bruno Haible  <bruno@clisp.org>
70513
70514         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70515         Update with info about Cygwin.
70516         * doc/functions/fprintf.texi: Update.
70517         * doc/functions/printf.texi: Update.
70518         * doc/functions/snprintf.texi: Update.
70519         * doc/functions/sprintf.texi: Update.
70520         * doc/functions/vfprintf.texi: Update.
70521         * doc/functions/vprintf.texi: Update.
70522         * doc/functions/vsnprintf.texi: Update.
70523         * doc/functions/vsprintf.texi: Update.
70524         Reported by Eric Blake.
70525
70526 2007-05-06  Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70529         padding ourselves for the floating-point directives.
70530         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70533         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70534         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70542         * tests/test-snprintf-posix.h (test_function): Also check the width
70543         and some flags in the %f directive.
70544         * tests/test-sprintf-posix.h (test_function): Likewise.
70545         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70546         * tests/test-vasprintf-posix.c (test_function): Likewise.
70547         * doc/functions/fprintf.texi: Update.
70548         * doc/functions/printf.texi: Update.
70549         * doc/functions/snprintf.texi: Update.
70550         * doc/functions/sprintf.texi: Update.
70551         * doc/functions/vfprintf.texi: Update.
70552         * doc/functions/vprintf.texi: Update.
70553         * doc/functions/vsnprintf.texi: Update.
70554         * doc/functions/vsprintf.texi: Update.
70555
70556 2007-05-06  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70559         pass the ' flag character to sprintf or snprintf.
70560         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70563         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70564         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70572         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70573         flag.
70574         * tests/test-sprintf-posix.h (test_function): Likewise.
70575         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70576         * tests/test-vasprintf-posix.c (test_function): Likewise.
70577         * doc/functions/fprintf.texi: Update.
70578         * doc/functions/printf.texi: Update.
70579         * doc/functions/snprintf.texi: Update.
70580         * doc/functions/sprintf.texi: Update.
70581         * doc/functions/vfprintf.texi: Update.
70582         * doc/functions/vprintf.texi: Update.
70583         * doc/functions/vsnprintf.texi: Update.
70584         * doc/functions/vsprintf.texi: Update.
70585
70586 2007-05-01  Bruno Haible  <bruno@clisp.org>
70587
70588         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70589
70590 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70593         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70594
70595 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70598         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70600
70601 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70602
70603         * lib/argp-help.c (struct hol_entry): New member `ord'.
70604         (HOL_ENTRY_PTRCMP): Use ord for comparison
70605         (hol_sort): Initialize ord.
70606
70607 2007-05-01  Bruno Haible  <bruno@clisp.org>
70608
70609         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70610         Reported by Eric Blake.
70611         * doc/gnulib.texi (Function Substitutes): Update.
70612
70613 2007-05-01  Bruno Haible  <bruno@clisp.org>
70614
70615         * doc/functions.texi: Remove file, now redundant through
70616         doc/functions/*.texi.
70617
70618 2007-05-01  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/argp (Depends-on): Add sleep.
70621
70622 2007-05-01  Bruno Haible  <bruno@clisp.org>
70623
70624         * modules/sleep-tests: New file.
70625         * tests/test-sleep.c: New file.
70626
70627         * modules/sleep: New file.
70628         * lib/sleep.c: New file.
70629         * m4/sleep.m4: New file.
70630         * lib/unistd_.h (sleep): New declaration.
70631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70632         HAVE_SLEEP.
70633         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70634         * doc/functions/sleep.texi: Document the sleep module.
70635
70636 2007-05-01  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/sigprocmask.h: Remove file.
70639         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70640         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70641         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70642         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70643         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70644         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70645         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70646         HAVE_SIGSET_T as a shell variable.
70647         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70648         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70649         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70650         (Depends-on): Add signal. Remove verify.
70651         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70652         (Include): Mention <signal.h> instead of sigprocmask.h.
70653         * NEWS: Mention the change.
70654         * lib/fatal-signal.c: Don't include sigprocmask.h.
70655
70656 2007-05-01  Bruno Haible  <bruno@clisp.org>
70657
70658         * modules/signal: New file.
70659         * lib/signal_.h: New file.
70660         * m4/signal_h.m4: New file.
70661
70662 2007-05-01  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70665         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70666         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70667         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70668
70669 2007-05-01  Bruno Haible  <bruno@clisp.org>
70670
70671         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70672         configure time.
70673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70674         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70675         * modules/sys_stat (Makefile.am): Substitute their values into
70676         sys/stat.h.
70677
70678 2007-05-01  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70681         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70682         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70683
70684 2007-05-01  Bruno Haible  <bruno@clisp.org>
70685
70686         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70687         'assert' module here.
70688
70689 2007-05-01  Bruno Haible  <bruno@clisp.org>
70690
70691         * doc/functions/*.texi: New files.
70692         * doc/functions/google-ranking.txt: New file.
70693         * doc/gnulib.texi (Function Substitutes): New chapter.
70694         (ctime, inet_ntoa): Remove sections.
70695         * doc/ctime.texi: Remove file.
70696         * doc/inet_ntoa.texi: Remove file.
70697         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70698         dependencies.
70699         (%.info): New rule, specifying a --reference-limit.
70700
70701 2007-05-01  Bruno Haible  <bruno@clisp.org>
70702
70703         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70704
70705 2007-05-01  Bruno Haible  <bruno@clisp.org>
70706
70707         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70708         the portability of 'mkdir' to mingw systems.
70709
70710 2007-05-01  Bruno Haible  <bruno@clisp.org>
70711
70712         * doc/headers/google-ranking.txt: New file.
70713
70714 2007-04-30  Eric Blake  <ebb9@byu.net>
70715
70716         Prefer fseeko to fseek.
70717         * modules/getpass (Depends-on): Add fseeko.
70718         * lib/getpass.c (getpass): Use fseeko, not fseek.
70719
70720 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70721
70722         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70723         assumes the sorting is stable, while most qsort implementations
70724         are not.  Use argument addresses to ensure they never compare as
70725         equal.
70726
70727         * tests/test-argp-2.sh (usage-indent test): Fix output
70728         (func_compare): Restore diff options
70729         * tests/test-argp.c: Restore #include "progname.h"
70730
70731 2007-04-29  Bruno Haible  <bruno@clisp.org>
70732
70733         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70735         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70737         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70738         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70739         (TESTS, check_PROGRAMS): Add test-snprintf.
70740         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70741         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70742         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70743         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70744         assertions that fail on HP-UX, OSF/1, or IRIX.
70745         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70746
70747 2007-04-29  Bruno Haible  <bruno@clisp.org>
70748
70749         * MODULES.html.sh (posix_functions): Remove 'contents'.
70750
70751 2007-04-29  Karl Berry  <karl@gnu.org>
70752
70753         * config/srclist.txt (gendocs_template_min): new entry.
70754
70755 2007-04-29  Bruno Haible  <bruno@clisp.org>
70756
70757         Work around fpurge bug on BSD systems.
70758         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70759         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70760         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70761         fpurge to rpl_fpurge if the system already has this function.
70762         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70763         the case where the system already has this function. Correct invariants
70764         on BSD systems.
70765         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70766         BSD systems.
70767
70768 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70769
70770         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70771         proposed by Sven Verdoolaege.
70772
70773         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70774         options.
70775         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70776         (usage and help tests): Update
70777
70778 2007-04-29  Bruno Haible  <bruno@clisp.org>
70779
70780         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70781         Print more information in case of failure. Disable a test on BeOS.
70782
70783 2007-04-29  Bruno Haible  <bruno@clisp.org>
70784
70785         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70786         This helps debugging on systems on which no gdb is available.
70787
70788 2007-04-29  Bruno Haible  <bruno@clisp.org>
70789
70790         * lib/freading.h: Improve comments.
70791         * lib/fwriting.h: Likewise.
70792         * tests/test-freading.c (main): Don't check freading immediately after
70793         repositioning. Needed for glibc.
70794
70795 2007-04-29  Bruno Haible  <bruno@clisp.org>
70796
70797         * lib/freading.c (freading): Trivial simplification.
70798
70799 2007-04-28  Bruno Haible  <bruno@clisp.org>
70800
70801         * tests/test-fwriting.c (main): Also test the interaction between
70802         fflush and fwriting.
70803         * modules/fwriting-tests (Depends-on): Add fflush.
70804
70805         * tests/test-freading.c (main): Also test the interaction between
70806         fflush and freading.
70807         * modules/freading-tests (Depends-on): Add fflush.
70808
70809 2007-04-28  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70812         fseeko and ftello.
70813         Suggested by Eric Blake.
70814
70815 2007-04-28  Jim Meyering  <jim@meyering.net>
70816
70817         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70818         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70819         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70820
70821 2007-04-27  Eric Blake  <ebb9@byu.net>
70822
70823         * doc/headers/assert.texi (assert.h): Document assert module use.
70824
70825 2007-04-27  Bruno Haible  <bruno@clisp.org>
70826
70827         * doc/headers/*.texi: New files.
70828         * doc/gnulib.texi (Header File Substitutes): New chapter.
70829         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70830         dependencies.
70831         (standards.info ,standards.html, standards.dvi): Update dependencies.
70832         (mostlyclean, clean): New targets.
70833
70834 2007-04-27  Bruno Haible  <bruno@clisp.org>
70835
70836         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70837         * modules/sysexits (Files, Makefile.am): Update.
70838
70839         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70840         * modules/sys_socket (Files, Makefile.am): Update.
70841
70842         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70843         * modules/sys_stat (Files, Makefile.am): Update.
70844
70845 2007-04-27  Eric Blake  <ebb9@byu.net>
70846
70847         * lib/freading.h: Improve comments.
70848         * lib/fwriting.h: Likewise.
70849         * lib/fflush.c: Likewise.
70850
70851         Fix closein for mingw.
70852         * modules/closein-tests: Add tests for closein.
70853         * tests/test-closein.c: New file.
70854         * tests/test-closein.sh: Likewise.
70855         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70856         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70857
70858 2007-04-27  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70861         version is < 6.
70862         * lib/math_.h [__DECC]: Likewise.
70863         * lib/stdio_.h [__DECC]: Likewise.
70864         * lib/stdlib_.h [__DECC]: Likewise.
70865         * lib/string_.h [__DECC]: Likewise.
70866         * lib/time_.h [__DECC]: Likewise.
70867         * lib/wchar_.h [__DECC]: Likewise.
70868         * lib/wctype_.h [__DECC]: Likewise.
70869
70870 2007-04-27  Bruno Haible  <bruno@clisp.org>
70871
70872         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70873
70874 2007-04-27  Bruno Haible  <bruno@clisp.org>
70875
70876         * lib/fflush.c: Add comments.
70877         * modules/fpurge-tests (Depends-on): Add fflush.
70878         * modules/freadable-tests (Depends-on): Likewise.
70879         * modules/fwritable-tests (Depends-on): Likewise.
70880
70881 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70882
70883         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70884         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70885         Report by Bruno Haible <bruno@clisp.org>.
70886
70887 2007-04-26  Eric Blake  <ebb9@byu.net>
70888
70889         Fix fflush on mingw.
70890         * modules/fflush (Depends-on): Add freading.
70891         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70892         but unread data.
70893
70894 2007-04-26  Eric Blake  <ebb9@byu.net>
70895         and Bruno Haible  <bruno@clisp.org>
70896
70897         Implement freading and fwriting.
70898         * lib/freading.c: New file.
70899         * lib/freading.h: Likewise.
70900         * m4/freading.m4: Likewise.
70901         * modules/freading: Likewise.
70902         * modules/freading-tests: Likewise.
70903         * tests/test-freading.c: Likewise.
70904         * lib/fwriting.c: New file.
70905         * lib/fwriting.h: Likewise.
70906         * m4/fwriting.m4: Likewise.
70907         * modules/fwriting: Likewise.
70908         * modules/fwriting-tests: Likewise.
70909         * tests/test-fwriting.c: Likewise.
70910         * MODULES.html.sh (File stream based Input/Output): Mention them.
70911
70912 2007-04-26  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70915         'long' when we assume it.
70916         Suggested by Eric Blake.
70917
70918 2007-04-26  Bruno Haible  <bruno@clisp.org>
70919
70920         Ensure fseeko, ftello are declared on glibc systems.
70921         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70922         * modules/fseeko (configure.ac-early): Likewise.
70923         * modules/ftello (configure.ac-early): Likewise.
70924         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70925         AC_FUNC_FSEEKO for this.
70926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70927         (gl_CHECK_FSEEKO): Remove macro.
70928
70929 2007-04-26  Bruno Haible  <bruno@clisp.org>
70930
70931         * tests/test-fflush.c (main): Also check the ftell result after
70932         fflush and fseek/fseeko.
70933         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70934         file descriptor position cache in the stream.
70935         * lib/fseeko.c (rpl_fseeko): Likewise.
70936
70937 2007-04-26  Bruno Haible  <bruno@clisp.org>
70938
70939         * modules/fflush-tests (Depends-on): Add fseeko.
70940
70941 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70942             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70943
70944         * lib/argz_.h: ensure error_t definition is obtained in same
70945         mechanism system argz.h would have.
70946         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70947         argz facilities are known bad.  Err on the side of caution if
70948         cross-compiling.
70949
70950 2007-04-25  Eric Blake  <ebb9@byu.net>
70951
70952         * lib/fpurge.c (includes): Use stdlib.h for free.
70953         * tests/test-fflush.c (main): Also test fflush-fseeko.
70954
70955 2007-04-25  Bruno Haible  <bruno@clisp.org>
70956
70957         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70958         * lib/fseeko.c: New file.
70959         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70960         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70961         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70962         gl_FUNC_FSEEKO.
70963         (gl_FUNC_FSEEKO): Invoke it.
70964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70965         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70966         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70967
70968 2007-04-25  Bruno Haible  <bruno@clisp.org>
70969
70970         * modules/fflush (Depends-on): Add ftello.
70971
70972 2007-04-25  Bruno Haible  <bruno@clisp.org>
70973
70974         * modules/ftello-tests: New file.
70975         * tests/test-ftello.c: New file.
70976
70977         * modules/ftello: New file.
70978         * m4/ftello.m4: New file.
70979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70980         HAVE_FTELLO.
70981         * lib/stdio_.h (ftello): New declaration.
70982         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70983         HAVE_FTELLO.
70984
70985 2007-04-25  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/fseeko-tests: New file.
70988         * tests/test-fseeko.c: New file.
70989
70990         * modules/fseeko: New file.
70991         * m4/fseeko.m4: New file.
70992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70993         HAVE_FSEEKO.
70994         * lib/stdio_.h (fseeko): New declaration.
70995         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70996         HAVE_FSEEKO.
70997
70998 2007-04-25  Bruno Haible  <bruno@clisp.org>
70999
71000         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71001
71002 2007-04-25  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71005         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71006         * tests/test-unistd.c: Likewise.
71007         * tests/test-fcntl.c: Likewise.
71008
71009 2007-04-23  Eric Blake  <ebb9@byu.net>
71010
71011         * lib/fflush.c: Fix missing include.
71012         Reported by Bruno Haible.
71013
71014 2007-04-23  Bruno Haible  <bruno@clisp.org>
71015
71016         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71017         Reported by Eric Blake.
71018
71019 2007-04-23  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71022
71023 2007-04-23  Bruno Haible  <bruno@clisp.org>
71024
71025         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71026
71027 2007-04-23  Bruno Haible  <bruno@clisp.org>
71028
71029         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71030         Needed on HP-UX 11.
71031
71032 2007-04-16  Eric Blake  <ebb9@byu.net>
71033
71034         Make fflush rely on fpurge.
71035         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71036         open coding all variants.
71037         * modules/fflush (Depends-on): Add fpurge and unistd.
71038         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71039         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71040
71041         Fix --with-tests compilation on cygwin.
71042         * modules/argmatch-tests (Makefile.am): List gnulib library first
71043         in LDADD.
71044         * modules/argp-tests (Makefile.am): Likewise.
71045         * modules/array-list-tests (Makefile.am): Likewise.
71046         * modules/array-oset-tests (Makefile.am): Likewise.
71047         * modules/avltree-list-tests (Makefile.am): Likewise.
71048         * modules/avltree-oset-tests (Makefile.am): Likewise.
71049         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71050         * modules/carray-list-tests (Makefile.am): Likewise.
71051         * modules/dirname-tests (Makefile.am): Likewise.
71052         * modules/frexp-tests (Makefile.am): Likewise.
71053         * modules/isnanl-tests (Makefile.am): Likewise.
71054         * modules/linked-list-tests (Makefile.am): Likewise.
71055         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71056         * modules/lock-tests (Makefile.am): Likewise.
71057         * modules/rbtree-list-tests (Makefile.am): Likewise.
71058         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71059         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71060         * modules/tls-tests (Makefile.am): Likewise.
71061         * modules/tsearch-tests (Makefile.am): Likewise.
71062         * modules/xvasprintf-tests (Makefile.am): Likewise.
71063
71064         Fix fpurge for cygwin.
71065         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71066         value.
71067         * modules/fpurge-tests (Depends-on): Clean up trash.
71068
71069 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71070
71071         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71072
71073         * m4/autobuild.m4: Re-indent.
71074
71075 2007-04-13  Bruno Haible  <bruno@clisp.org>
71076
71077         * modules/fpurge-tests: New file.
71078         * tests/test-fpurge.c: New file.
71079
71080         * modules/fpurge: New file.
71081         * lib/fpurge.h: New file.
71082         * lib/fpurge.c: New file.
71083         * m4/fpurge.m4: New file.
71084
71085 2007-04-13  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/fbufmode-tests: New file.
71088         * tests/test-fbufmode.c: New file.
71089
71090         * modules/fbufmode: New file.
71091         * lib/fbufmode.h: New file.
71092         * lib/fbufmode.c: New file.
71093         * m4/fbufmode.m4: New file.
71094
71095 2007-04-13  Bruno Haible  <bruno@clisp.org>
71096
71097         * modules/fwritable-tests: New file.
71098         * tests/test-fwritable.c: New file.
71099
71100         * modules/fwritable: New file.
71101         * lib/fwritable.h: New file.
71102         * lib/fwritable.c: New file.
71103         * m4/fwritable.m4: New file.
71104
71105 2007-04-13  Bruno Haible  <bruno@clisp.org>
71106
71107         * modules/freadable-tests: New file.
71108         * tests/test-freadable.c: New file.
71109
71110         * modules/freadable: New file.
71111         * lib/freadable.h: New file.
71112         * lib/freadable.c: New file.
71113         * m4/freadable.m4: New file.
71114
71115 2007-04-13  Bruno Haible  <bruno@clisp.org>
71116
71117         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71118         MOSTLYCLEANFILES.
71119
71120 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71123         gzip bootstrap.conf to avoid dragging in i18n machinery.
71124         (gnulib_tool_option): Use it.
71125
71126 2007-04-13  Bruno Haible  <bruno@clisp.org>
71127
71128         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71129         %F directives.
71130         * tests/test-vasprintf-posix.c (test_function): Likewise.
71131         * tests/test-snprintf-posix.h (test_function): Likewise.
71132         * tests/test-sprintf-posix.h (test_function): Likewise.
71133         * tests/test-fprintf-posix.h (test_function): Likewise.
71134         * tests/test-printf-posix.h (test_function): Likewise.
71135         * tests/test-fprintf-posix.out: Likewise.
71136
71137 2007-04-13  Bruno Haible  <bruno@clisp.org>
71138
71139         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71140         * modules/tls-tests (configure.ac): Likewise.
71141         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71142
71143 2007-04-13  Bruno Haible  <bruno@clisp.org>
71144
71145         * lib/tls.c (glthread_tls_get): Fix return type.
71146         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71147
71148 2007-04-12  Eric Blake  <ebb9@byu.net>
71149
71150         * modules/gettime (Depends-on): Remove gettime.
71151         Reported by Dmitry V. Levin.
71152
71153 2007-04-12  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/fflush (Include): Mention <stdio.h>.
71156         * modules/strtoimax (Include): Mention <inttypes.h>.
71157         * modules/strtoumax (Include): Likewise.
71158
71159 2007-04-12  Eric Blake  <ebb9@byu.net>
71160
71161         * .cvsignore: New file.
71162         * .gitignore: Likewise.
71163
71164 2007-04-12  Bruno Haible  <bruno@clisp.org>
71165
71166         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71167         not before, since $(LDADD) often contains libgnu.a.
71168         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71169         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71170         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71171         Needed on Cygwin.
71172
71173 2007-04-12  Eric Blake  <ebb9@byu.net>
71174
71175         Work around glibc's failure to flush stdin on fclose.
71176         * lib/closein.c (close_stdin): Flush stdin before closing.
71177
71178         Work around glibc's failure to reset seekable stdin on exit.
71179         * modules/closein: New module.
71180         * lib/closein.c: New file.
71181         * lib/closein.h: Likewise.
71182         * m4/closein.m4: Likewise.
71183         * MODULES.html.sh (File stream based Input/Output): Document it.
71184
71185 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71186
71187         * gnulib-tool: Rename generated 'autobuild' script to
71188         'do-autobuild' in --create-megatestdir output.
71189
71190         * doc/gnulib.texi (Build robot for gnulib): Fix.
71191
71192 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71193
71194         * modules/sysexits (Depends-on): Add absolute-header.
71195
71196 2007-04-12  Eric Blake  <ebb9@byu.net>
71197
71198         No need to preserve errno on success.
71199         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71200         Reported by Bruno Haible.
71201
71202 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71203
71204         * MODULES.html.sh (Support for maintaining and releasing
71205         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71206
71207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71208
71209         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71210
71211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71212
71213         * modules/autobuild: New module.
71214
71215         * m4/autobuild.m4: New file.
71216
71217 2007-04-11  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71220         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71224         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71225         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71247         Reported by Eric Blake.
71248
71249 2007-04-11  Bruno Haible  <bruno@clisp.org>
71250
71251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71252
71253 2007-04-10  Bruno Haible  <bruno@clisp.org>
71254
71255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71256         for NaN and Infinity. Needed on FreeBSD 6.1.
71257         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71258         regarding results for "%010a" of Infinity and NaN.
71259         * tests/test-vasprintf-posix.c (test_function): Likewise.
71260         * tests/test-snprintf-posix.h (test_function): Likewise.
71261         * tests/test-sprintf-posix.h (test_function): Likewise.
71262         * tests/test-fprintf-posix.h (test_function): Likewise.
71263         * tests/test-printf-posix.h (test_function): Likewise.
71264         * tests/test-fprintf-posix.out: Likewise.
71265
71266 2007-04-10  Bruno Haible  <bruno@clisp.org>
71267
71268         * modules/locale-tests: New file.
71269         * tests/test-locale.c: New file.
71270
71271         * modules/locale: New file.
71272         * lib/locale_.h: New file.
71273         * m4/locale_h.m4: New file.
71274
71275 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71276             Bruno Haible  <bruno@clisp.org>
71277
71278         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71279         be determined, test for availability of the copysignf, copysign,
71280         copysignl functions.
71281         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71282         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71283         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71284
71285 2007-04-09  Eric Blake  <ebb9@byu.net>
71286
71287         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71288         * modules/stdio (Makefile.am): Support fflush.
71289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71290         * modules/fflush: New file.
71291         * lib/fflush.c: Likewise.
71292         * m4/fflush.m4: Likewise.
71293         * modules/fflush-tests: New test.
71294         * tests/test-fflush.c: Likewise.
71295         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71296
71297 2007-04-06  Bruno Haible  <bruno@clisp.org>
71298
71299         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71300         (VASNPRINTF): Use signbit for faster determination whether to print a
71301         minus sign.
71302         * modules/vasnprintf (Files): Remove lib/float+.h.
71303         * modules/fprintf-posix (Depends-on): Add signbit.
71304         * modules/snprintf-posix (Depends-on): Likewise.
71305         * modules/sprintf-posix (Depends-on): Likewise.
71306         * modules/vasnprintf-posix (Depends-on): Likewise.
71307         * modules/vasprintf-posix (Depends-on): Likewise.
71308         * modules/vfprintf-posix (Depends-on): Likewise.
71309         * modules/vsnprintf-posix (Depends-on): Likewise.
71310         * modules/vsprintf-posix (Depends-on): Likewise.
71311
71312 2007-04-06  Bruno Haible  <bruno@clisp.org>
71313
71314         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71315         * tests/test-frexpl.c (main): Likewise.
71316         * tests/test-ldexpl.c (main): Likewise.
71317         * modules/frexp-tests (Depends-on): Add signbit.
71318         * modules/frexpl-tests (Depdends-on): Likewise.
71319         * modules/ldexpl-tests (Depdends-on): Likewise.
71320
71321 2007-04-06  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/signbit-tests: New file.
71324         * tests/test-signbit.c: New file.
71325
71326         * modules/signbit: New file.
71327         * lib/signbitf.c: New file.
71328         * lib/signbitd.c: New file.
71329         * lib/signbitl.c: New file.
71330         * m4/signbit.m4: New file.
71331         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71332         (signbit): New macro.
71333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71334         REPLACE_SIGNBIT.
71335         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71336         REPLACE_FREXPL into math.h.
71337
71338 2007-04-06  Bruno Haible  <bruno@clisp.org>
71339
71340         * modules/isnanf-nolibm-tests: New file.
71341         * tests/test-isnanf.c: New file.
71342
71343         * modules/isnanf-nolibm: New file.
71344         * lib/isnanf.h: New file.
71345         * lib/isnanf.c: New file.
71346         * lib/isnan.c: Consider the USE_FLOAT macro.
71347         * m4/isnanf.m4: New file.
71348
71349 2007-04-06  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71352         (Link): New section.
71353
71354         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71355
71356 2007-04-06  Bruno Haible  <bruno@clisp.org>
71357
71358         Assume the 'long double' type.
71359         * m4/longdouble.m4: Remove file.
71360         * config/srclist.txt: Don't mention longdouble.m4.
71361         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71362         * lib/float+.h: Likewise.
71363         * lib/frexp.c: Likewise.
71364         * lib/printf-args.h: Likewise.
71365         * lib/printf-args.c: Likewise.
71366         * lib/printf-frexp.c: Likewise.
71367         * lib/printf-parse.c: Likewise.
71368         * lib/vasnprintf.c: Likewise.
71369         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71370         * m4/intl.m4: Likewise.
71371         * m4/isnanl.m4: Likewise.
71372         * m4/printf.m4: Likewise.
71373         * m4/printf-frexpl.m4: Likewise.
71374         * m4/vasnprintf.m4: Likewise.
71375         * modules/allocsa (Files): Remove m4/longdouble.m4.
71376         * modules/gettext (Files): Likewise.
71377         * modules/relocatable-prog-wrapper (Files): Likewise.
71378         * modules/vasnprintf (Files): Likewise.
71379         * modules/isnanl (Files): Likewise.
71380         (Include): Simplify.
71381         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71382         (Include): Simplify.
71383         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71384         (Include): Simplify.
71385         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71386         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71387         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71388         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71389         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71390         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71391         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71392         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71393         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71394         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71395         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71396         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71397         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71398         * tests/test-isnanl.c: Likewise.
71399         * tests/test-snprintf-posix.h: Likewise.
71400         * tests/test-sprintf-posix.h: Likewise.
71401         * tests/test-vasnprintf-posix.c: Likewise.
71402         * tests/test-vasnprintf-posix2.c: Likewise.
71403         * tests/test-vasprintf-posix.c: Likewise.
71404
71405 2007-04-06  Bruno Haible  <bruno@clisp.org>
71406
71407         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71408         * lib/math_.h [__DECC]: Include the overridden include file through
71409         #include_next, outside the double-inclusion guard.
71410         * lib/stdio_.h [__DECC]: Likewise.
71411         * lib/stdlib_.h [__DECC]: Likewise.
71412         * lib/string_.h [__DECC]: Likewise.
71413         * lib/time_.h [__DECC]: Likewise.
71414         * lib/wchar_.h [__DECC]: Likewise.
71415         * lib/wctype_.h [__DECC]: Likewise.
71416         * lib/inttypes_.h [__DECC]: Likewise.
71417         Reported by Albert Chin <china@thewrittenword.com> in
71418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71419
71420 2007-04-04  Eric Blake  <ebb9@byu.net>
71421
71422         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71423         1.5.x.
71424
71425 2007-04-04  Bruno Haible  <bruno@clisp.org>
71426
71427         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71428         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71429
71430 2007-04-04  Bruno Haible  <bruno@clisp.org>
71431
71432         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71433         results for "%010a" of Infinity and NaN.
71434         * tests/test-vasprintf-posix.c (test_function): Likewise.
71435         * tests/test-snprintf-posix.h (test_function): Likewise.
71436         * tests/test-sprintf-posix.h (test_function): Likewise.
71437         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71438         * tests/test-printf-posix.h (test_function): Likewise.
71439         * tests/test-fprintf-posix.out: Update.
71440         Needed for FreeBSD 6.1.
71441
71442 2007-04-04  Bruno Haible  <bruno@clisp.org>
71443
71444         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71445         directly used by the gnulib modules nor by gnulib-tool.
71446
71447 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * DEPENDENCIES: Give overall description of version dependency
71450         desirability.  Use more-typical names for apps.
71451         Add shell, coreutils, diffutils, grep, tar, gzip.
71452
71453 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71454
71455         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71456
71457 2007-04-04  Karl Berry  <karl@gnu.org>
71458
71459         * MODULES.html.sh (func_module): missing '.
71460
71461 2007-04-03  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/argmatch-tests (Makefile.am): New variable
71464         test_argmatch_LDADD.
71465         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71466         * modules/array-list-tests (Makefile.am): New variable
71467         test_array_list_LDADD.
71468         * modules/array-oset-tests (Makefile.am): New variable
71469         test_array_oset_LDADD.
71470         * modules/avltree-list-tests (Makefile.am): New variable
71471         test_avltree_list_LDADD.
71472         * modules/avltree-oset-tests (Makefile.am): New variable
71473         test_avltree_oset_LDADD.
71474         * modules/avltreehash-list-tests (Makefile.am): New variable
71475         test_avltreehash_list_LDADD.
71476         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71477         test_canonicalize_lgpl_LDADD.
71478         * modules/carray-list-tests (Makefile.am): New variable
71479         test_carray_list_LDADD.
71480         * modules/dirname-tests (Makefile.am): New variable
71481         test_dirname_LDADD.
71482         * modules/linked-list-tests (Makefile.am): New variable
71483         test_linked_list_LDADD.
71484         * modules/linkedhash-list-tests (Makefile.am): New variable
71485         test_linkedhash_list_LDADD.
71486         * modules/rbtree-list-tests (Makefile.am): New variable
71487         test_rbtree_list_LDADD.
71488         * modules/rbtree-oset-tests (Makefile.am): New variable
71489         test_rbtree_oset_LDADD.
71490         * modules/rbtreehash-list-tests (Makefile.am): New variable
71491         test_rbtreehash_list_LDADD.
71492         * modules/xvasprintf-tests (Makefile.am): New variable
71493         test_xvasprintf_LDADD.
71494         Reported by Eric Blake.
71495
71496 2007-04-03  Eric Blake  <ebb9@byu.net>
71497
71498         * DEPENDENCIES: Weaken m4 requirements.
71499
71500 2007-04-03  Bruno Haible  <bruno@clisp.org>
71501
71502         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71503         * modules/isnanl-tests (configure.ac): Likewise.
71504
71505 2007-04-03  Ben Pfaff  <blp@gnu.org>
71506
71507         * modules/iconv_open: Add $(srcdir)/ to source directory
71508         references in Makefile fragments that call gperf, to fix VPATH
71509         builds.
71510
71511 2007-04-03  Bruno Haible  <bruno@clisp.org>
71512
71513         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71514         * lib/ldexpl.c: Undo last change.
71515
71516 2007-04-03  Bruno Haible  <bruno@clisp.org>
71517
71518         * modules/printf-frexpl (Depends-on): Undo last change.
71519         (Files): Add m4/ldexpl.m4.
71520
71521 2007-04-03  Bruno Haible  <bruno@clisp.org>
71522
71523         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71524         * modules/isnanl (Link): New section.
71525
71526         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71527         * modules/frexp (Link): New section.
71528
71529         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71530         * modules/frexpl (Link): New section.
71531
71532         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71533         * modules/ldexpl (Link): New section.
71534
71535 2007-04-03  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/TEMPLATE-EXTENDED: New file.
71538         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71539
71540 2007-04-03  Bruno Haible  <bruno@clisp.org>
71541
71542         * DEPENDENCIES: New file.
71543         Suggested by Simon Josefsson.
71544
71545 2007-04-03  Bruno Haible  <bruno@clisp.org>
71546
71547         * doc/gnulib.texi: Escape @.
71548
71549 2007-04-03  James Youngman  <jay@gnu.org>
71550         and Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71553         birthtime on all systems that have birthtime, not just those which
71554         use st_birthtimensec rather than st_birthtim.  Putting zero in
71555         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71556         that the birth time is not available for files on an NFS mount.
71557
71558 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71559
71560         * modules/memxor: Move back from crypto/, suggested by Bruno.
71561         * modules/crypto/hmac-sha1: Fix memxor dependency.
71562
71563         * modules/crypto/gc: Moved from ../.
71564
71565 2007-04-02  Eric Blake  <ebb9@byu.net>
71566
71567         * lib/ldexpl.c (includes): Avoid libm.
71568
71569         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71570
71571 2007-04-02  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71574         on IRIX.
71575
71576 2007-04-02  Bruno Haible  <bruno@clisp.org>
71577
71578         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71579         x86 or x86_64 platforms running MacOS X.
71580         Reported by Ryan Schmidt <@ryandesign.com>.
71581
71582 2007-04-02  Bruno Haible  <bruno@clisp.org>
71583
71584         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71585         i386.
71586
71587 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71588
71589         * modules/crypto/arcfour: Moved from ../.
71590         * modules/crypto/arcfour-tests: Moved from ../.
71591         * modules/crypto/arctwo: Moved from ../.
71592         * modules/crypto/arctwo-tests: Moved from ../.
71593         * modules/crypto/des: Moved from ../.
71594         * modules/crypto/des-tests: Moved from ../.
71595         * modules/crypto/gc-arcfour: Moved from ../.
71596         * modules/crypto/gc-arcfour-tests: Moved from ../.
71597         * modules/crypto/gc-arctwo: Moved from ../.
71598         * modules/crypto/gc-arctwo-tests: Moved from ../.
71599         * modules/crypto/gc-des: Moved from ../.
71600         * modules/crypto/gc-des-tests: Moved from ../.
71601         * modules/crypto/gc-hmac-md5: Moved from ../.
71602         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71603         * modules/crypto/gc-hmac-sha1: Moved from ../.
71604         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71605         * modules/crypto/gc-md2: Moved from ../.
71606         * modules/crypto/gc-md2-tests: Moved from ../.
71607         * modules/crypto/gc-md4: Moved from ../.
71608         * modules/crypto/gc-md4-tests: Moved from ../.
71609         * modules/crypto/gc-md5: Moved from ../.
71610         * modules/crypto/gc-md5-tests: Moved from ../.
71611         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71612         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71613         * modules/crypto/gc-random: Moved from ../.
71614         * modules/crypto/gc-rijndael: Moved from ../.
71615         * modules/crypto/gc-rijndael-tests: Moved from ../.
71616         * modules/crypto/gc-sha1: Moved from ../.
71617         * modules/crypto/gc-sha1-tests: Moved from ../.
71618         * modules/crypto/gc-tests: Moved from ../.
71619         * modules/crypto/hmac-md5: Moved from ../.
71620         * modules/crypto/hmac-md5-tests: Moved from ../.
71621         * modules/crypto/hmac-sha1: Moved from ../.
71622         * modules/crypto/hmac-sha1-tests: Moved from ../.
71623         * modules/crypto/md2: Moved from ../.
71624         * modules/crypto/md2-tests: Moved from ../.
71625         * modules/crypto/md4: Moved from ../.
71626         * modules/crypto/md4-tests: Moved from ../.
71627         * modules/crypto/md5: Moved from ../.
71628         * modules/crypto/md5-tests: Moved from ../.
71629         * modules/crypto/memxor: Moved from ../.
71630         * modules/crypto/rijndael: Moved from ../.
71631         * modules/crypto/rijndael-tests: Moved from ../.
71632         * modules/crypto/sha1: Moved from ../.
71633
71634 2007-03-30  James Youngman  <jay@gnu.org>
71635
71636         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71637         rename() to change the ctime of a file (because ctime is unaffected
71638         by rename on jfs2 on AIX 5.1).
71639         (main): Start by doing cleanup, in case a previous run failed leaving
71640         test files behind.
71641
71642 2007-03-31  Bruno Haible  <bruno@clisp.org>
71643
71644         Support old proprietary implementations of iconv.
71645         * modules/iconv_open: New file.
71646         * lib/iconv_.h: New file.
71647         * m4/iconv_h.m4: New file.
71648         * lib/iconv_open.c: New file.
71649         * lib/iconv_open-aix.gperf: New file.
71650         * lib/iconv_open-hpux.gperf: New file.
71651         * lib/iconv_open-irix.gperf: New file.
71652         * lib/iconv_open-osf.gperf: New file.
71653         * m4/iconv_open.m4: New file.
71654         * modules/linebreak (Depends-on): Add iconv_open.
71655         * modules/striconv (Depends-on): Likewise.
71656         * modules/striconveh (Depends-on): Likewise.
71657         * modules/unicodeio (Depends-on): Likewise.
71658         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71659         (iconv_t)(-1).
71660         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71661         conversion if cd is (iconv_t)(-1).
71662         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71663         is not possible.
71664
71665 2007-03-31  Bruno Haible  <bruno@clisp.org>
71666
71667         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71668         work on Solaris either. Protect also second use of "autodetect_jp".
71669
71670 2007-03-31  Bruno Haible  <bruno@clisp.org>
71671
71672         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71673         the function is not present.
71674
71675 2007-03-31  Bruno Haible  <bruno@clisp.org>
71676
71677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71678         the function is not present.
71679
71680 2007-03-31  Bruno Haible  <bruno@clisp.org>
71681
71682         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71683         a bug in HP-UX iconv_open().
71684
71685 2007-03-31  Bruno Haible  <bruno@clisp.org>
71686
71687         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71688         (Mathematics <math.h>): New section, add fpieee.
71689         (Input/output <stdio.h>): Add fseterr.
71690         (Mathematics <math.h>): New section, add printf-frexp.
71691         (Container data structures): Add sublist.
71692         (Core language properties): Add fpucw, inline.
71693         (Functions for greatest-width integer types <inttypes.h>): Add
71694         imaxabs, imaxdiv, inttypes.
71695         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71696         isnanl-nolibm, ldexp.
71697         (Mathematics <math.h>): New section, add printf-frexpl.
71698         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71699         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71700         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71701         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71702         (Unicode string functions): Add unistr/u*-mbtoucr.
71703         (Java): Add javacomp-script, javaexec-script.
71704         (C#): Add csharpcomp-script, csharpexec-script.
71705         (Support for building libraries and executables): Add havelib,
71706         relocatable-*.
71707         (Support for maintaining and releasing projects): Renamed from
71708         'Support for maintaining and release projects'. Add announce-gen.
71709
71710 2007-03-31  Bruno Haible  <bruno@clisp.org>
71711
71712         * README: Talk primarily about git.
71713         (git and CVS): Renamed from CVS.
71714         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71715         gnulib is available through git.
71716         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71717
71718 2007-03-30  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71721         * lib/poll_.h: Likewise.
71722         * lib/stat_.h: Likewise.
71723         * lib/sys_time_.h: Likewise.
71724         * lib/sysexit_.h: Likewise.
71725         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71726         * lib/stdbool_.h: Likewise.
71727         * lib/byteswap_.h: Add double-inclusion guard.
71728
71729 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71730
71731         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71732
71733 2007-03-30  Karl Berry  <karl@gnu.org>
71734
71735         * config/srclist-update: double space after USA in the license
71736         substitution, since that's how it's usually (?) written.
71737
71738 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71741         reported by Bruno Haible.
71742
71743 2007-03-29  Bruno Haible  <bruno@clisp.org>
71744
71745         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71746         a bug in AIX iconv().
71747
71748 2007-03-29  Bruno Haible  <bruno@clisp.org>
71749
71750         * modules/ldexpl-tests: New file.
71751         * tests/test-ldexpl.c: New file.
71752
71753 2007-03-29  Bruno Haible  <bruno@clisp.org>
71754
71755         * lib/ldexpl.c: Include fpucw.h.
71756         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71757         multiplication.
71758         * modules/ldexpl (Depends-on): Add fpucw.
71759
71760 2007-03-29  Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/ldexpl: New file.
71763         * m4/ldexpl.m4: New file.
71764         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71765         set.
71766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71767         REPLACE_LDEXPL.
71768         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71769         REPLACE_LDEXPL.
71770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71771         gl_FUNC_LDEXPL_WORKS.
71772         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71773         * modules/mathl (Files): Remove lib/ldexpl.c.
71774         (Depends-on): Add ldexpl.
71775
71776 2007-03-29  Bruno Haible  <bruno@clisp.org>
71777
71778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71779
71780 2007-03-29  Bruno Haible  <bruno@clisp.org>
71781
71782         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71783         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71784         and possibly also HP-UX.
71785         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71786         work on AIX, IRIX, HP-UX, OSF/1.
71787         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71788         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71789         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71790         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71791         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71792         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71793
71794 2007-03-29  Bruno Haible  <bruno@clisp.org>
71795
71796         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71797
71798 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71801         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71802
71803 2007-03-29  Eric Blake  <ebb9@byu.net>
71804
71805         * lib/acl-internal.h: Remove redundant include.
71806         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71807         Cygwin when a file is locked.
71808
71809 2007-03-29  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71812         file.
71813         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71814
71815 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71818         try to remove a parent directory if the child couldn't be removed
71819         (except for the first rmdir, which could fail because the child
71820         doesn't exist).  Problem reported by Jeff Blaine in
71821         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71822
71823 2007-03-28  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/striconveh.c (utf8conv_carefully): New function.
71826         (mem_cd_iconveh_internal): Invoke it.
71827
71828 2007-03-28  Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71831         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71832         input.
71833         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71834         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71835         unistr/u8-uctomb.
71836
71837 2007-03-28  Bruno Haible  <bruno@clisp.org>
71838
71839         * modules/unistr/u8-mbtoucr: New file.
71840         * lib/unistr/u8-mbtoucr.c: New file.
71841         * modules/unistr/u16-mbtoucr: New file.
71842         * lib/unistr/u16-mbtoucr.c: New file.
71843         * modules/unistr/u16-mbtoucr: New file.
71844         * lib/unistr/u16-mbtoucr.c: New file.
71845         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71846
71847 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71848             Bruno Haible  <bruno@clisp.org>
71849
71850         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71851         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71852         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71853
71854         * m4/stdio_h.m4: Add stubs for vasprintf too.
71855
71856         * modules/stdio: Support vasprintf in sed command.
71857
71858         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71859         vasprintf.h.  Add stdio module indicator.
71860
71861         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71862         vasprintf.h.
71863
71864         * lib/vasprintf.h: File removed.
71865
71866         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71867         * lib/vasprintf.c: Ditto.
71868         * lib/xvasprintf.c: Ditto.
71869         * tests/test-vasprintf-posix.c: Ditto.
71870         * tests/test-vasprintf.c: Ditto.
71871
71872 2007-03-27  Bruno Haible  <bruno@clisp.org>
71873
71874         Make vasnprintf multithread-safe.
71875         * lib/vasnprintf.c (decimal_point_char): New function.
71876         (VASNPRINTF): Use it.
71877         Suggested by Simon Josefsson.
71878
71879 2007-03-27  Eric Blake  <ebb9@byu.net>
71880
71881         Support sub-second birthtime on cygwin.
71882         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71883         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71884         (get_stat_birthtime): Also work with st_birthtim.
71885
71886 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71889         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71890         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71891         (get_stat_birthtime_ns): Simplify compile-time tests.
71892         (get_stat_birthtime): Change the API to look like
71893         get_stat_mtime etc., except return a negative tv_nsec on error.
71894         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71895         Don't check for "spare" fields.
71896         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71897         or for struct stat.st_birthtime, as these tests aren't used.
71898         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71899
71900 2007-03-27  Bruno Haible  <bruno@clisp.org>
71901
71902         * lib/stat-time.h: Include <sys/stat.h>.
71903
71904 2007-03-27  James Youngman  <jay@gnu.org>
71905
71906         * lib/stat-time.h (get_stat_birthtime): New function for
71907           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71908         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71909           and its variants.
71910         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71911         * modules/stat-time-test: New file.
71912         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71913
71914 2007-03-26  Bruno Haible  <bruno@clisp.org>
71915
71916         Better support of signalling NaNs.
71917         * lib/atanl.c: Include isnanl.h.
71918         (atanl): Perform test for NaN at the beginning of the function and
71919         through a call to isnanl.
71920         * lib/cosl.c: Include isnanl.h.
71921         (cosl): Perform test for NaN at the beginning of the function and
71922         through a call to isnanl.
71923         * lib/ldexpl.c: Include isnanl.h.
71924         (ldexpl): Perform test for NaN through a call to isnanl.
71925         * lib/logl.c: Include isnanl.h.
71926         (logl): Perform test for NaN at the beginning of the function and
71927         through a call to isnanl.
71928         * lib/sinl.c: Include isnanl.h.
71929         (sinl): Perform test for NaN at the beginning of the function and
71930         through a call to isnanl.
71931         * lib/sqrtl.c: Include isnanl.h.
71932         (sqrtl): Perform test for NaN at the beginning of the function and
71933         through a call to isnanl.
71934         * lib/tanl.c: Include isnanl.h.
71935         (tanl): Perform test for NaN at the beginning of the function and
71936         through a call to isnanl.
71937         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71938         * modules/mathl (Depends-on): Add isnanl.
71939
71940 2007-03-26  Eric Blake  <ebb9@byu.net>
71941
71942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71943         regression in logic sense of previous patch.
71944
71945 2007-03-26  Bruno Haible  <bruno@clisp.org>
71946
71947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71948         unportable shell command "if ! ...".
71949         Reported by Ralf Wildenhues.
71950
71951 2007-03-25  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71954         <sysexits.h> file, and only add EX_CONFIG.
71955         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71956         absolute file name and whether it is sufficient. Substitute also
71957         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71958         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71959         ABSOLUTE_SYSEXITS_H into sysexits.h.
71960
71961 2007-03-25  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71964         hints is NULL.
71965
71966 2007-03-25  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71969         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71970
71971 2007-03-25  Bruno Haible  <bruno@clisp.org>
71972
71973         * lib/vasnprintf.c: Include langinfo.h.
71974         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71975         multithread-safe.
71976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71985         Reported by Simon Josefsson.
71986
71987 2007-03-25  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71990         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71991         * modules/vasnprintf (Depends-on): Add stdint.
71992
71993 2007-03-25  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/fpieee: New file.
71996         * m4/fpieee.m4: New file.
71997         * modules/isnan-nolibm (Depends-on): Add fpieee.
71998         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71999         * modules/isnanl (Depends-on): Add fpieee.
72000
72001 2007-03-25  Bruno Haible  <bruno@clisp.org>
72002
72003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72004
72005 2007-03-25  Bruno Haible  <bruno@clisp.org>
72006
72007         Avoid test failures on IRIX 6.5.
72008         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72009         (main): Use it.
72010         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72011         macros.
72012         (main): Use them.
72013
72014 2007-03-25  Bruno Haible  <bruno@clisp.org>
72015
72016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72017         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72018         exists but doesn't work.
72019         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72020         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72022         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72023         math.h.
72024
72025 2007-03-25  Bruno Haible  <bruno@clisp.org>
72026
72027         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72028         returns inf. Needed on IRIX 6.5.
72029
72030 2007-03-25  Bruno Haible  <bruno@clisp.org>
72031
72032         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72033         (main): Use isnanl instead of x != x idiom.
72034         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72035
72036         * tests/test-frexp.c: Include isnan.h.
72037         (main): Use isnan instead of x != x idiom.
72038         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72039
72040 2007-03-25  Bruno Haible  <bruno@clisp.org>
72041
72042         * tests/test-frexp.c (NaN): New function/macro.
72043         (main): Use it instead of 0.0 / 0.0.
72044         * tests/test-isnan.c (NaN): New function/macro.
72045         (main): Use it instead of 0.0 / 0.0.
72046         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72047         (test_function): Use it instead of 0.0 / 0.0.
72048         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72049         (test_function): Use it instead of 0.0 / 0.0.
72050         * tests/test-snprintf-posix.h (NaN): New function/macro.
72051         (test_function): Use it instead of 0.0 / 0.0.
72052         * tests/test-sprintf-posix.h (NaN): New function/macro.
72053         (test_function): Use it instead of 0.0 / 0.0.
72054         * tests/test-fprintf-posix.h (NaN): New function/macro.
72055         (test_function): Use it instead of 0.0 / 0.0.
72056         * tests/test-printf-posix.h (NaN): New function/macro.
72057         (test_function): Use it instead of 0.0 / 0.0.
72058
72059         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72060
72061 2007-03-25  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72064
72065 2007-03-25  Bruno Haible  <bruno@clisp.org>
72066
72067         * lib/regexec.c (merge_state_with_log): Make static.
72068
72069 2007-03-25  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/trigl.c (kernel_rem_pio2): Make static.
72072
72073 2007-03-25  Bruno Haible  <bruno@clisp.org>
72074
72075         * lib/sincosl.c (sincosl_table): Make static.
72076
72077 2007-03-25  Bruno Haible  <bruno@clisp.org>
72078
72079         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72080         if the compiler does not support C99.
72081
72082 2007-03-25  Bruno Haible  <bruno@clisp.org>
72083
72084         * modules/time (Makefile.am): Ensure all rule action lines start with a
72085         tab.
72086
72087 2007-03-24  Bruno Haible  <bruno@clisp.org>
72088
72089         * modules/tsearch-tests: New file.
72090         * tests/test-tsearch.sh: New file.
72091         * tests/test-tsearch.c: New file, mostly copied from glibc.
72092
72093         * modules/search-tests: New file.
72094         * tests/test-search.c: New file.
72095
72096         * modules/search: New file.
72097         * lib/search_.h: New file, incorporating lib/tsearch.h.
72098         * m4/search_h.m4: New file.
72099         * lib/tsearch.h: Remove file.
72100         * lib/tsearch.c: Include search.h instead of tsearch.h.
72101         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72102         HAVE_TSEARCH.
72103         * modules/tsearch (Files): Remove lib/tsearch.h.
72104         (Depends-on): Add search.
72105         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72106         (Include): Change tsearch.h into search.h.
72107
72108 2007-03-24  Bruno Haible  <bruno@clisp.org>
72109
72110         * modules/fpucw: New file.
72111         * lib/fpucw.h: New file.
72112         * lib/frexp.c: Include fpucw.h.
72113         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72114         (FUNC): Use them.
72115         * lib/printf-frexp.c: Include fpucw.h.
72116         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72117         (FUNC): Use them.
72118         * lib/vasnprintf.c: Include fpucw.h.
72119         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72120         'long double' calculations.
72121         * tests/test-frexpl.c: Include fpucw.h.
72122         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72123         * tests/test-printf-frexpl.c: Include fpucw.h.
72124         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72125         * modules/frexpl (Depends-on): Add fpucw.
72126         * modules/printf-frexpl (Depends-on): Likewise.
72127         * modules/fprintf-posix (Depends-on): Likewise.
72128         * modules/snprintf-posix (Depends-on): Likewise.
72129         * modules/sprintf-posix (Depends-on): Likewise.
72130         * modules/vasnprintf-posix (Depends-on): Likewise.
72131         * modules/vasprintf-posix (Depends-on): Likewise.
72132         * modules/vfprintf-posix (Depends-on): Likewise.
72133         * modules/vsnprintf-posix (Depends-on): Likewise.
72134         * modules/vsprintf-posix (Depends-on): Likewise.
72135         * modules/frexpl-tests (Depends-on): Likewise.
72136         * modules/printf-frexpl-tests (Depends-on): Likewise.
72137
72138 2007-03-24  Bruno Haible  <bruno@clisp.org>
72139
72140         * lib/float+.h: New file.
72141         * lib/isnan.c: Include float+.h.
72142         (SIZE): New macro.
72143         (FUNC): Compare only SIZE bytes of the value.
72144         * lib/vasnprintf.c: Include float+.h.
72145         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72146         SIZEOF_LDBL or SIZEOF_DBL bytes.
72147         * modules/isnan-nolibm (Files): Add lib/float+.h.
72148         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72149         * modules/isnanl (Files): Add lib/float+.h.
72150         * modules/vasnprintf (Files): Add lib/float+.h.
72151
72152 2007-03-24  Bruno Haible  <bruno@clisp.org>
72153
72154         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72155         include isnanl-nolibm.h.
72156
72157 2007-03-24  Bruno Haible  <bruno@clisp.org>
72158
72159         * tests/test-read-file.c (main): Don't produce spurious output for
72160         expected situations. Make the test fail if it encountered unexpected
72161         results.
72162
72163 2007-03-24  Bruno Haible  <bruno@clisp.org>
72164
72165         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72166         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72167
72168 2007-03-24  Bruno Haible  <bruno@clisp.org>
72169
72170         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72171
72172 2007-03-24  Bruno Haible  <bruno@clisp.org>
72173
72174         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72175         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72176
72177         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72178         * modules/utf8-ucs4: Turn into a symbolic link to module
72179         unistr/u8-mbtouc.
72180
72181         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72182         utf8-ucs4-unsafe.
72183         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72184         unistr/u8-mbtouc-unsafe.
72185
72186         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72187         * modules/utf16-ucs4: Turn into a symbolic link to module
72188         unistr/u16-mbtouc.
72189
72190         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72191         utf16-ucs4-unsafe.
72192         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72193         unistr/u16-mbtouc-unsafe.
72194
72195         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72196         * modules/ucs4-utf8: Turn into a symbolic link to module
72197         unistr/u8-ubtomb.
72198
72199         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72200         * modules/ucs4-utf16: Turn into a symbolic link to module
72201         unistr/u16-ubtomb.
72202
72203 2007-03-24  Bruno Haible  <bruno@clisp.org>
72204
72205         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72206         Enable the function only if HAVE_INLINE.
72207         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72208         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72209         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72210         Enable the function only if HAVE_INLINE.
72211         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72212         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72213         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72214         Enable the function only if HAVE_INLINE.
72215         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72216         Enable the function only if HAVE_INLINE.
72217         * modules/utf8-ucs4: Update.
72218         * modules/utf8-ucs4-unsafe: Update.
72219         * modules/utf16-ucs4: Update.
72220         * modules/utf16-ucs4-unsafe: Update.
72221         * modules/ucs4-utf8: Update.
72222         * modules/ucs4-utf16: Update.
72223
72224 2007-03-24  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/utf8-ucs4.h: Remove file.
72227         * lib/utf8-ucs4-unsafe.h: Remove file.
72228         * lib/utf16-ucs4.h: Remove file.
72229         * lib/utf16-ucs4-unsafe.h: Remove file.
72230         * lib/ucs4-utf8.h: Remove file.
72231         * lib/ucs4-utf16.h: Remove file.
72232         * lib/unistr.h: Include their previous contents.
72233         * m4/utf-ucs4.m4: Remove file.
72234         * m4/ucs4-utf.m4: Remove file.
72235         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72236         (Depends-on): Add unistr/base.
72237         (configure.ac): Remove gl_UTF_UCS4.
72238         (Makefile.am): Update.
72239         (Include): Change to unistr.h.
72240         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72241         (Depends-on): Add unistr/base.
72242         (configure.ac): Remove gl_UTF_UCS4.
72243         (Makefile.am): Update.
72244         (Include): Change to unistr.h.
72245         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72246         (Depends-on): Add unistr/base.
72247         (configure.ac): Remove gl_UTF_UCS4.
72248         (Makefile.am): Update.
72249         (Include): Change to unistr.h.
72250         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72251         (Depends-on): Add unistr/base.
72252         (configure.ac): Remove gl_UTF_UCS4.
72253         (Makefile.am): Update.
72254         (Include): Change to unistr.h.
72255         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72256         (Depends-on): Add unistr/base.
72257         (configure.ac): Remove gl_UCS4_UTF.
72258         (Makefile.am): Update.
72259         (Include): Change to unistr.h.
72260         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72261         (Depends-on): Add unistr/base.
72262         (configure.ac): Remove gl_UCS4_UTF.
72263         (Makefile.am): Update.
72264         (Include): Change to unistr.h.
72265         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72266         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72267         utf8-ucs4-unsafe.h.
72268         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72269         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72270         utf16-ucs4-unsafe.h.
72271         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72272         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72273         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72274         * lib/unistr/u8-strchr.c: Likewise.
72275         * lib/unistr/u8-strrchr.c: Likewise.
72276         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72277         * lib/unistr/u16-strchr.c: Likewise.
72278         * lib/unistr/u16-strrchr.c: Likewise.
72279         * lib/striconveh.c: Update.
72280         * lib/linebreak.c: Update.
72281
72282 2007-03-24  Bruno Haible  <bruno@clisp.org>
72283
72284         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72285         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72286
72287 2007-03-22  Bruno Haible  <bruno@clisp.org>
72288
72289         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72290
72291 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * MODULES.html.sh (File system functions): New module write-any-file.
72294         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72295         * m4/write-any-file.m4: New files.
72296
72297 2007-03-23  Eric Blake  <ebb9@byu.net>
72298
72299         * gnulib-tool: Rearrange space-tab sequences, since some editors
72300         like to eat them.
72301
72302 2007-03-23  Eric Blake  <ebb9@byu.net>
72303
72304         * lib/version-etc.c (version_etc_va): Update license wording to
72305         be more concise.  Recommended by Richard Stallman.
72306
72307 2007-03-22  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/poll.c (MSG_PEEK): New fallback definition.
72310
72311 2007-03-22  Bruno Haible  <bruno@clisp.org>
72312
72313         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72314         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72315         (main): Update.
72316         Fixes a compilation error on BeOS.
72317
72318 2007-03-22  Bruno Haible  <bruno@clisp.org>
72319
72320         * modules/frexpl-tests: New file.
72321         * tests/test-frexpl.c: New file.
72322
72323         * modules/frexpl: New file.
72324         * m4/frexpl.m4: New file.
72325         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72326         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72328         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72329         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72330         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72331
72332 2007-03-22  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/frexpl.c: Share code with lib/frexp.c.
72335         * modules/mathl (Files): Add lib/frexp.c.
72336         (Depends-on): Add isnanl-nolibm.
72337
72338 2007-03-22  Bruno Haible  <bruno@clisp.org>
72339
72340         * modules/printf-frexp (Files): Add m4/frexp.m4.
72341         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72342         only if the found frexp function actually works.
72343
72344 2007-03-22  Bruno Haible  <bruno@clisp.org>
72345
72346         * lib/frexp.c: Remove older implementation that uses divisions.
72347
72348 2007-03-21  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/frexp-tests: New file.
72351         * tests/test-frexp.c: New file.
72352
72353         * modules/frexp: New file.
72354         * lib/frexp.c: New file.
72355         * m4/frexp.m4: New file.
72356         * lib/math_.h (frexp): New declaration.
72357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72358         REPLACE_FREXP.
72359         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72360
72361 2007-03-21  Bruno Haible  <bruno@clisp.org>
72362
72363         * modules/isnanl-tests: New file.
72364         * tests/test-isnanl.c: New file.
72365
72366         * modules/isnanl: New file.
72367         * lib/isnanl.h: New file.
72368         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72369         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72370         gl_FUNC_ISNANL_WORKS.
72371         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72372         New macros.
72373
72374 2007-03-21  Bruno Haible  <bruno@clisp.org>
72375
72376         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72377         lib/isnanl.h.
72378         (Include): Update.
72379         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72380         * lib/vasnprintf.c: Update.
72381         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72382         tests/test-isnanl.h, remove tests/test-isnanl.c.
72383         (Makefile.am): Update.
72384         * tests/test-isnanl-nolibm.c: New file.
72385         * tests/test-isnanl.h: New file.
72386         * tests/test-isnanl.c: Remove file.
72387
72388 2007-03-21  Jim Meyering  <jim@meyering.net>
72389
72390         When trying to open ".", treat ESTALE like EACCES.
72391         * lib/savewd.c (savewd_save): Resort to forking not just upon
72392         failure with EACCES, but also when errno is ESTALE.
72393
72394 2007-03-20  Bruno Haible  <bruno@clisp.org>
72395
72396         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72397         Needed on AIX 5.1. Reported by Matthew Woehlke.
72398
72399 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         Suggestions by Bruno Haible:
72402         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72403         our own.
72404         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72405         * modules/acl (Depends-on): Add gettext.
72406
72407 2007-03-19  Bruno Haible  <bruno@clisp.org>
72408
72409         * modules/iconvme: Remove file.
72410         * lib/iconvme.h: Remove file.
72411         * lib/iconvme.c: Remove file.
72412         * m4/iconvme.m4: Remove file.
72413
72414 2007-03-19  Bruno Haible  <bruno@clisp.org>
72415
72416         * doc/relocatable-maint.texi: Break long shell script line.
72417         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72418
72419 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72422         handle file_has_acl.
72423         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72424         * lib/acl.c: Move header inclusions and related macro defns into
72425         lib/acl-internal.h.
72426         (S_ISLNK): Remove defn, since that's now done for us.
72427         (file_has_acl): Move to lib/file-has-acl.c.
72428         Call acl_trivial if available.  This is the crucial part of the fix.
72429         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72430         shared within the library.  Rewrite a bit, partly to make it compatible
72431         with the GNU coding style.
72432         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72433         Remove unnecessary double-quotes.
72434         Don't test for acl_to_text; the build will catch that.
72435         Replace acl_entries if it doesn't exist and it is needed.
72436         Check for -lsec and acl_trivial (as used on Solaris 10).
72437         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72438         lib/file-has-acl.c.
72439         (Depends-on): Add sys_stat, for S_ISLNK.
72440
72441 2007-03-19  Ben Pfaff  <blp@gnu.org>
72442
72443         * doc/gnulib.texi: Fix typos.
72444         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72445
72446 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72449         If size is zero here, buf must be zero.
72450
72451 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72452
72453         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72454         <bruno@clisp.org>.
72455
72456 2007-03-18  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72459         Suggested by Eric Blake.
72460
72461 2007-03-18  Ben Pfaff  <blp@gnu.org>
72462
72463         * doc/relocatable.texi: Recommend using as prefix a directory
72464         that does not exist and will never be created.  Based on
72465         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72466         and others.
72467
72468 2007-03-17  Bruno Haible  <bruno@clisp.org>
72469
72470         * lib/fchownat.c: Include lchown.h.
72471
72472 2007-03-17  Bruno Haible  <bruno@clisp.org>
72473
72474         Fix endless loop when the given allocated size was > INT_MAX.
72475         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72476         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72477         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72478         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72479         * lib/sprintf.c (sprintf): Likewise.
72480
72481 2007-03-17  Bruno Haible  <bruno@clisp.org>
72482
72483         * tests/test-argp-2.sh (func_compare): Output a context diff.
72484
72485 2007-03-17  Bruno Haible  <bruno@clisp.org>
72486
72487         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72488         locale's decimal-point character.
72489
72490 2007-03-17  Bruno Haible  <bruno@clisp.org>
72491
72492         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72493         before comparing it. Needed because on some platforms (e.g. x86) a
72494         'long double' occupies less bytes than sizeof (long double).
72495
72496 2007-03-17  Bruno Haible  <bruno@clisp.org>
72497
72498         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72499         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72500         * tests/test-getaddrinfo.c (simple): Likewise.
72501         * tests/test-read-file.c (main): Likewise.
72502
72503 2007-03-17  Bruno Haible  <bruno@clisp.org>
72504
72505         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72506
72507 2007-03-17  Bruno Haible  <bruno@clisp.org>
72508
72509         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72510         unused variable.
72511
72512 2007-03-17  Bruno Haible  <bruno@clisp.org>
72513
72514         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72515         * tests/test-c-strncasecmp.c: Likewise.
72516
72517 2007-03-17  Bruno Haible  <bruno@clisp.org>
72518
72519         * modules/stdlib (Depends-on): Add unistd.
72520         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72521         Needed for MacOS X 10.3.
72522
72523 2007-03-17  Bruno Haible  <bruno@clisp.org>
72524
72525         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72526
72527 2007-03-17  Bruno Haible  <bruno@clisp.org>
72528
72529         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72530
72531 2007-03-17  Bruno Haible  <bruno@clisp.org>
72532
72533         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72534         to reflect files copied from gnulib (with or without modifications).
72535         Suggested by Jim Meyering.
72536
72537 2007-03-17  Eric Blake  <ebb9@byu.net>
72538
72539         * NEWS: Document stdlib change from 2007-02-18.
72540
72541 2007-03-17  Jim Meyering  <jim@meyering.net>
72542
72543         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72544         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72545         someone uses a name containing shell meta-characters.
72546         Reported by Alfred M. Szmidt.
72547
72548         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72549
72550 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72551
72552         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72553         and copy gettext configuration files only if configure.ac contains
72554         a use of AM_GNU_GETTEXT_VERSION.
72555
72556 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72557
72558         * build-aux/bootstrap (gnulib_name): New variable.
72559         (gnulib_tool_options): Use it.
72560
72561 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72562
72563         * tests/test-des.c: Use new namespace.
72564
72565 2007-03-15  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72568         Reported by James Youngman <jay@gnu.org>.
72569
72570 2007-03-15  Bruno Haible  <bruno@clisp.org>
72571
72572         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72573         declared prototype. Needed with cc on OSF/1 5.1.
72574
72575 2007-03-15  Bruno Haible  <bruno@clisp.org>
72576
72577         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72578         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72579         (struct gl_list_implementation): Add dispose_fn argument to the
72580         'create_empty', 'create' methods.
72581         (struct gl_list_impl_base): Add field 'dispose_fn'.
72582         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72583         argument.
72584         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72585         dispose_fn argument.
72586         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72587         dispose_fn on the dropped values.
72588         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72589         dispose_fn argument.
72590         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72591         dropped values.
72592         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72593         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72594         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72595         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72596         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72597         argument.
72598         (gl_tree_list_free): Call dispose_fn on the dropped values.
72599         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72600         the dropped values.
72601         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72602         Add dispose_fn argument.
72603         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72604         Call dispose_fn on the dropped values.
72605         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72606         Add dispose_fn argument.
72607         (gl_sublist_create): Initialize the 'dispose_fn' field.
72608         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72609         * tests/test-array_list.c (main): Update.
72610         * tests/test-carray_list.c (main): Update.
72611         * tests/test-avltree_list.c (main): Update.
72612         * tests/test-rbtree_list.c (main): Update.
72613         * tests/test-avltreehash_list.c (main): Update.
72614         * tests/test-rbtreehash_list.c (main): Update.
72615         * tests/test-linked_list.c (main): Update.
72616         * tests/test-linkedhash_list.c (main): Update.
72617         * tests/test-array_oset.c (main): Update.
72618
72619 2007-03-15  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72622         (gl_oset_create_empty): Add dispose_fn argument.
72623         (struct gl_oset_implementation): Add dispose_fn argument to
72624         'create_empty' method.
72625         (struct gl_oset_impl_base): Add dispose_fn field.
72626         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72627         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72628         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72629         values.
72630         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72631         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72632         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72633         dropped value.
72634         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72635         dropped value.
72636         * tests/test-array_oset.c (main): Update.
72637         * tests/test-avltree_oset.c (main): Update.
72638         * tests/test-rbtree_oset.c (main): Update.
72639         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72640
72641 2007-03-13  Bruno Haible  <bruno@clisp.org>
72642
72643         * tests/test-stdbool.c (i): Update after last patch.
72644
72645 2007-03-12  Bruno Haible  <bruno@clisp.org>
72646
72647         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72648         the iswprint macro. Needed on Solaris 2.5.1.
72649
72650 2007-03-12  Bruno Haible  <bruno@clisp.org>
72651
72652         * tests/test-printf-frexp.c (main): Declare x as volatile.
72653
72654 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72655
72656         * doc/gnulib.texi (Build robot for gnulib): New section.
72657
72658 2007-03-12  Jim Meyering  <jim@meyering.net>
72659
72660         * build-aux/bootstrap: New file.
72661         * build-aux/bootstrap.conf: New file, from coreutils.
72662
72663 2007-03-11  Bruno Haible  <bruno@clisp.org>
72664
72665         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72666
72667 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72668
72669         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72670         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72671         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72672
72673 2007-03-11  Bruno Haible  <bruno@clisp.org>
72674
72675         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72676         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72677
72678 2007-03-11  Bruno Haible  <bruno@clisp.org>
72679
72680         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72681         formula. Needed for SunPRO C 5.0.
72682
72683 2007-03-11  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/long-options (Depends-on): Add getopt.
72686
72687 2007-03-11  Bruno Haible  <bruno@clisp.org>
72688
72689         * modules/modechange (Depends-on): Add stdbool.
72690
72691 2007-03-11  Bruno Haible  <bruno@clisp.org>
72692
72693         * modules/i-ring (Depends-on): Add stdbool.
72694
72695 2007-03-11  Bruno Haible  <bruno@clisp.org>
72696
72697         * modules/gc-des (Depends-on): Add stdbool.
72698
72699 2007-03-11  Bruno Haible  <bruno@clisp.org>
72700
72701         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72702
72703 2007-03-11  Bruno Haible  <bruno@clisp.org>
72704
72705         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72706
72707 2007-03-11  Bruno Haible  <bruno@clisp.org>
72708
72709         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72710
72711 2007-03-11  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/vasnprintf.c (sprintf): Undefine.
72714
72715 2007-03-11  Bruno Haible  <bruno@clisp.org>
72716
72717         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72718         initializers in SunPRO C and Compaq C compilers.
72719
72720 2007-03-11  Bruno Haible  <bruno@clisp.org>
72721
72722         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72723         decrementing code ANSI C compliant.
72724
72725 2007-03-11  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72728         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72729
72730 2007-03-11  Bruno Haible  <bruno@clisp.org>
72731
72732         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72733         <stdbool.h> substitute doesn't pass.
72734
72735 2007-03-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72738
72739 2007-03-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72742         script, for submission to autobuild.josefsson.org.
72743
72744 2007-03-10  Bruno Haible  <bruno@clisp.org>
72745
72746         * modules/canonicalize-lgpl-tests: New file.
72747         * tests/test-canonicalize-lgpl.sh: New file.
72748         * tests/test-canonicalize-lgpl.c: New file.
72749
72750         * modules/c-strcase-tests: New file.
72751         * tests/test-c-strcase.sh: New file.
72752         * tests/test-c-strcasecmp.c: New file.
72753         * tests/test-c-strncasecmp.c: New file.
72754
72755         * modules/atexit-tests: New file.
72756         * tests/test-atexit.sh: New file.
72757         * tests/test-atexit.c: New file.
72758
72759 2007-03-10  Bruno Haible  <bruno@clisp.org>
72760
72761         * tests/test-binary-io.sh: Use temporary filenames that are not so
72762         likely to clash with those of other tests (in a parallel make).
72763         * tests/test-binary-io.c: Likewise.
72764
72765 2007-03-10  Bruno Haible  <bruno@clisp.org>
72766
72767         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72768         fallback; use #error instead.
72769         Suggested by Simon Josefsson.
72770
72771 2007-03-10  Bruno Haible  <bruno@clisp.org>
72772
72773         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72774         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72775         first and the last.
72776
72777 2007-03-10  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72780
72781 2007-03-10  Bruno Haible  <bruno@clisp.org>
72782
72783         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72784         "make distcheck".
72785         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72786         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72787         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72788
72789 2007-03-10  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72792         variable.
72793         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72794         variable.
72795
72796 2007-03-09  Eric Blake  <ebb9@byu.net>
72797         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72798
72799         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72800         types are not being provided by gnulib.
72801         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72802         types are supported.
72803
72804 2007-03-10  Bruno Haible  <bruno@clisp.org>
72805
72806         * lib/stdio_.h (__attribute__): New macro.
72807         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72808         vsprintf): Specify __attribute__ __format__ for GCC.
72809         Suggested by Eric Blake.
72810
72811 2007-03-09  Bruno Haible  <bruno@clisp.org>
72812
72813         * modules/printf-posix-tests: New file.
72814         * tests/test-printf-posix.sh: New file.
72815         * tests/test-printf-posix.c: New file.
72816
72817         * modules/printf-posix: New file.
72818         * lib/printf.c: New file.
72819         * m4/printf-posix-rpl.m4: New file.
72820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72821         REPLACE_PRINTF.
72822         * lib/stdio_.h (printf): New declaration.
72823         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72824         ____strfmon____): New macros.
72825         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72826         REPLACE_PRINTF.
72827
72828 2007-03-09  Bruno Haible  <bruno@clisp.org>
72829
72830         * tests/test-vasnprintf-posix2.sh: New file.
72831         * tests/test-vasnprintf-posix2.c: New file.
72832         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72833         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72834         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72835
72836         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72837         a locale dependent decimal point, rather than always '.'.
72838
72839 2007-03-09  Eric Blake  <ebb9@byu.net>
72840
72841         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72842         spite of platforms like Tandem/NSK that define it to -1.
72843
72844 2007-03-08  Bruno Haible  <bruno@clisp.org>
72845
72846         * modules/vprintf-posix-tests: New file.
72847         * tests/test-vprintf-posix.sh: New file.
72848         * tests/test-vprintf-posix.c: New file.
72849         * tests/test-printf-posix.h: New file.
72850
72851         * modules/vprintf-posix: New file.
72852         * lib/vprintf.c: New file.
72853         * m4/vprintf-posix.m4: New file.
72854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72855         REPLACE_VPRINTF.
72856         * lib/stdio_.h (vprintf): New declaration.
72857         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72858         REPLACE_VPRINTF.
72859
72860 2007-03-08  Bruno Haible  <bruno@clisp.org>
72861
72862         * modules/fprintf-posix-tests: New file.
72863         * tests/test-fprintf-posix.sh: New file.
72864         * tests/test-fprintf-posix.c: New file.
72865
72866         * modules/fprintf-posix: New file.
72867         * lib/fprintf.c: New file.
72868         * m4/fprintf-posix.m4: New file.
72869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72870         REPLACE_FPRINTF.
72871         * lib/stdio_.h (fprintf): New declaration.
72872         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72873         REPLACE_FPRINTF.
72874
72875 2007-03-08  Bruno Haible  <bruno@clisp.org>
72876
72877         * modules/vfprintf-posix-tests: New file.
72878         * tests/test-vfprintf-posix.sh: New file.
72879         * tests/test-vfprintf-posix.c: New file.
72880         * tests/test-fprintf-posix.h: New file.
72881         * tests/test-fprintf-posix.out: New file.
72882
72883         * modules/vfprintf-posix: New file.
72884         * lib/vfprintf.c: New file.
72885         * m4/vfprintf-posix.m4: New file.
72886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72887         REPLACE_VFPRINTF.
72888         * lib/stdio_.h (vfprintf): New declaration.
72889         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72890         REPLACE_VFPRINTF.
72891
72892 2007-03-08  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72895
72896 2007-03-08  Bruno Haible  <bruno@clisp.org>
72897
72898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72899         instead of 'expr' invocations.
72900         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72905         Suggested by Paul Eggert.
72906
72907 2007-03-08  Bruno Haible  <bruno@clisp.org>
72908
72909         * modules/fseterr-tests: New file.
72910         * tests/test-fseterr.c: New file.
72911
72912         * modules/fseterr: New file.
72913         * lib/fseterr.h: New file.
72914         * lib/fseterr.c: New file.
72915
72916 2007-03-08  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72919         * lib/getopt_.h: Likewise.
72920         * lib/mbswidth.h: Likewise.
72921         * lib/setenv.h: Likewise.
72922         * lib/vasnprintf.h: Likewise.
72923         * lib/vasprintf.h: Likewise.
72924         * lib/verror.h: Likewise.
72925         * lib/xsetenv.h: Likewise.
72926         * lib/xvasprintf.h: Likewise.
72927
72928 2007-03-08  Jim Meyering  <jim@meyering.net>
72929
72930         * users.txt: Add parted.
72931
72932         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72933
72934 2007-03-07  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/printf.m4: Make the shell script snippets copy&pastable.
72937
72938 2007-03-02  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/netinet_in_.h: New file.
72941         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72942         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72943         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72944         (Depends-on): Add absolute-header.
72945         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72946         into netinet/in.h.
72947
72948 2007-03-03  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/sys_select_.h: New file.
72951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72952         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72953         * modules/sys_select (Files): Add lib/sys_select_.h.
72954         (Depends-on): Add absolute-header.
72955         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72956         into sys/select.h.
72957
72958 2007-03-02  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72961         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72962         values.
72963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72964         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72965         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72966         * modules/sys_socket (Depends-on): Add absolute-header.
72967         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72968         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72969         (Include): Remove requirement of inclusion of <sys/types.h>.
72970
72971 2007-03-02  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/byteswap_.h (bswap_32): Fix formula.
72974
72975 2007-03-06  Bruno Haible  <bruno@clisp.org>
72976
72977         * modules/sprintf-posix-tests: New file.
72978         * tests/test-sprintf-posix.c: New file.
72979
72980         * modules/sprintf-posix: New file.
72981         * lib/sprintf.c: New file.
72982         * m4/sprintf-posix.m4: New file.
72983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72984         REPLACE_SPRINTF.
72985         * lib/stdio_.h (sprintf): New declaration.
72986         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72987         REPLACE_SPRINTF.
72988
72989 2007-03-06  Bruno Haible  <bruno@clisp.org>
72990
72991         * modules/vsprintf-posix-tests: New file.
72992         * tests/test-vsprintf-posix.c: New file.
72993         * tests/test-sprintf-posix.h: New file.
72994
72995         * modules/vsprintf-posix: New file.
72996         * lib/vsprintf.c: New file.
72997         * m4/vsprintf-posix.m4: New file.
72998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72999         REPLACE_VSPRINTF.
73000         * lib/stdio_.h (vsprintf): New declaration.
73001         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73002         REPLACE_VSPRINTF.
73003
73004 2007-03-06  Bruno Haible  <bruno@clisp.org>
73005
73006         * modules/vsnprintf (Depend-on): Remove minmax.
73007
73008 2007-03-06  Bruno Haible  <bruno@clisp.org>
73009
73010         * modules/snprintf-posix-tests: New file.
73011         * tests/test-snprintf-posix.c: New file.
73012
73013         * modules/snprintf-posix: New file.
73014         * m4/snprintf-posix.m4: New file.
73015         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73016         gl_FUNC_SNPRINTF.
73017         (gl_FUNC_SNPRINTF): Invoke it.
73018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73019         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73020         is set.
73021         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73022
73023 2007-03-06  Bruno Haible  <bruno@clisp.org>
73024
73025         * modules/vsnprintf-posix-tests: New file.
73026         * tests/test-vsnprintf-posix.c: New file.
73027         * tests/test-snprintf-posix.h: New file.
73028
73029         * modules/vsnprintf-posix: New file.
73030         * m4/vsnprintf-posix.m4: New file.
73031         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73032         gl_FUNC_VSNPRINTF.
73033         (gl_FUNC_VSNPRINTF): Invoke it.
73034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73035         * lib/stdio_.h (vsnprintf): Define as a replacement if
73036         REPLACE_VSNPRINTF is set.
73037         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73038
73039 2007-03-06  Bruno Haible  <bruno@clisp.org>
73040
73041         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73043
73044 2007-03-06  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73047         (asinl): Declare also if HAVE_DECL_ASINL is set.
73048         (atanl): Declare also if HAVE_DECL_ATANL is set.
73049         (ceill): Declare also if HAVE_DECL_CEILL is set.
73050         (cosl): Declare also if HAVE_DECL_COSL is set.
73051         (expl): Declare also if HAVE_DECL_EXPL is set.
73052         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73053         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73054         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73055         (logl): Declare also if HAVE_DECL_LOGL is set.
73056         (sinl): Declare also if HAVE_DECL_SINL is set.
73057         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73058         (tanl): Declare also if HAVE_DECL_TANL is set.
73059         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73062         declaration of frexpl, ldexpl.
73063         * modules/printf-frexpl (Depends-on): Add math.
73064         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73065
73066 2007-03-05  Bruno Haible  <bruno@clisp.org>
73067
73068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73069         frexpl and ldexpl are declared.
73070         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73071
73072 2007-03-05  Bruno Haible  <bruno@clisp.org>
73073
73074         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73075         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73076
73077 2007-03-05  Bruno Haible  <bruno@clisp.org>
73078
73079         * lib/stdio_.h: Include <stddef.h>.
73080
73081 2007-03-05  Bruno Haible  <bruno@clisp.org>
73082
73083         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73084
73085 2007-03-05  Bruno Haible  <bruno@clisp.org>
73086
73087         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73088         NetBSD 4, from Ralf Wildenhues.
73089
73090 2007-03-04  Bruno Haible  <bruno@clisp.org>
73091
73092         * lib/vasprintf.h: Update #if logic for the case when the functions
73093         exist but are overridden.
73094
73095 2007-03-04  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73098         implementations: glibc-2.4 and MacOS X 10.3.
73099         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73100         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73101         * tests/test-vasprintf-posix.c (test_function): Likewise.
73102
73103 2007-03-04  Bruno Haible  <bruno@clisp.org>
73104
73105         * modules/vasprintf-posix-tests: New file.
73106         * tests/test-vasprintf-posix.c: New file.
73107
73108         * modules/vasprintf-posix: New file.
73109         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73110         defined.
73111         * m4/vasprintf-posix.m4: New file.
73112         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73113         gl_FUNC_VASPRINTF.
73114         (gl_FUNC_VASPRINTF): Invoke it.
73115         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73116         here.
73117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73118
73119 2007-03-04  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73122         REPLACE_GETTIMEOFDAY.
73123         * modules/sys_time (Makefile.am): Likewise.
73124         * m4/sys_time_h.m4: Likewise.
73125         * m4/gettimeofday.m4: Likewise.
73126
73127 2007-03-04  Bruno Haible  <bruno@clisp.org>
73128
73129         * modules/vasnprintf-posix-tests: New file.
73130         * tests/test-vasnprintf-posix.c: New file.
73131
73132         * modules/vasnprintf-posix: New file.
73133         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73134         printf-frexpl.h.
73135         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73136         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73137         REPLACE_VASNPRINTF is defined.
73138         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73139         gl_FUNC_VASNPRINTF.
73140         (gl_FUNC_VASNPRINTF): Invoke it.
73141         * m4/vasnprintf-posix.m4: New file.
73142         * m4/printf.m4: New file.
73143
73144 2007-03-04  Bruno Haible  <bruno@clisp.org>
73145
73146         Compile progreloc.c only if --enable-relocatable is specified.
73147         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73148         if --enable-relocatable was specified.
73149         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73150         lib_SOURCES.
73151
73152 2007-03-04  Jim Meyering  <jim@meyering.net>
73153
73154         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73155         Use it consistently, rather than enumerating errno constants.
73156
73157 2007-03-04  Bruno Haible  <bruno@clisp.org>
73158
73159         * modules/xvasprintf-tests: New file.
73160         * tests/test-xvasprintf.c: New file.
73161
73162         * modules/vasprintf-tests: New file.
73163         * tests/test-vasprintf.c: New file.
73164
73165         * modules/vasnprintf-tests: New file.
73166         * tests/test-vasnprintf.c: New file.
73167
73168         * modules/vsnprintf-tests: New file.
73169         * tests/test-vsnprintf.c: New file.
73170
73171         * modules/snprintf-tests: New file.
73172         * tests/test-snprintf.c: New file.
73173
73174 2007-03-04  Bruno Haible  <bruno@clisp.org>
73175
73176         Compile relocatable.c only if --enable-relocatable is specified.
73177         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73178         gl_RELOCATABLE_LIBRARY.
73179         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73180         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73181         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73182         gl_RELOCATABLE_LIBRARY.
73183         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73184         (Makefile.am): Remove lib_SOURCES.
73185         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73186         gl_RELOCATABLE_LIBRARY.
73187         (Makefile.am): Remove lib_SOURCES.
73188         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73189         always.
73190         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73191         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73192
73193 2007-03-04  Bruno Haible  <bruno@clisp.org>
73194
73195         * modules/argmatch-tests: New file.
73196         * tests/test-argmatch.c: New file.
73197
73198         * tests/test-allocsa.c (main): Halve the number of loop runs.
73199
73200         * modules/alloca-opt-tests: New file.
73201         * tests/test-alloca-opt.c: New file.
73202
73203 2007-03-04  Jim Meyering  <jim@meyering.net>
73204
73205         Work around difference between Linux ACLs and Solaris 10 ZFS.
73206         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73207         for EINVAL.
73208
73209 2007-03-03  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/relocatable-prog (Depends-on): Add back progreloc's
73212         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73213
73214 2007-03-03  Bruno Haible  <bruno@clisp.org>
73215
73216         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73217         * modules/relocatable-lib: New file.
73218
73219 2007-03-03  Bruno Haible  <bruno@clisp.org>
73220
73221         * modules/relocatable-prog: Renamed from modules/relocatable.
73222         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73223
73224 2007-03-03  Bruno Haible  <bruno@clisp.org>
73225
73226         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73227         m4/relocatable-lib.m4.
73228         (Depends-on): Remove 'relocatable'.
73229         (configure.ac): Add gl_RELOCATABLE_NOP.
73230
73231 2007-03-03  Bruno Haible  <bruno@clisp.org>
73232
73233         * modules/relocatable-prog-wrapper: New file.
73234         * modules/relocatable (Depends-on): Add it. Remove all other
73235         dependencies except progname.
73236         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73237
73238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73239         (gl_FUNC_STRERROR): Nop.
73240         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73241
73242         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73243         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73244
73245         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73246         (gl_FUNC_READLINK): Update.
73247
73248         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73249
73250 2007-03-03  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73253         * modules/xreadlink (Depends-on): Add unistd.
73254         * modules/xreadlink-with-size (Depends-on): Likewise.
73255
73256 2007-03-03  Bruno Haible  <bruno@clisp.org>
73257
73258         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73259         extracted from gt_FUNC_SETENV.
73260         (gt_FUNC_SETENV): Remove macro.
73261         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73262         remove gt_FUNC_SETENV.
73263
73264 2007-03-03  Bruno Haible  <bruno@clisp.org>
73265
73266         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73267         ENABLE_RELOCATABLE here.
73268         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73269
73270 2007-03-03  Bruno Haible  <bruno@clisp.org>
73271
73272         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73273         * tests/test-rbtreehash_list.c: Include progname.h.
73274         (main): Call set_program_name.
73275
73276         * modules/rbtree-oset-tests (Depends-on): Add progname.
73277         * tests/test-rbtree_oset.c: Include progname.h.
73278         (main): Call set_program_name.
73279
73280         * modules/rbtree-list-tests (Depends-on): Add progname.
73281         * tests/test-rbtree_list.c: Include progname.h.
73282         (main): Call set_program_name.
73283
73284         * modules/linked-list-tests (Depends-on): Add progname.
73285         * tests/test-linked_list.c: Include progname.h.
73286         (main): Call set_program_name.
73287
73288 2007-03-03  Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73291         All uses of __restrict changed to _Restrict_.
73292         * lib/glob_.h (__restrict): Remove macro.
73293
73294 2007-03-02  Bruno Haible  <bruno@clisp.org>
73295
73296         * modules/gettext (configure.ac): Require gettext infrastructure
73297         from version 0.16.1.
73298
73299 2007-03-02  Bruno Haible  <bruno@clisp.org>
73300
73301         * modules/linkedhash-list-tests (Depends-on): Add progname.
73302         * tests/test-linkedhash_list.c: Include progname.h.
73303         (main): Call set_program_name.
73304
73305         * modules/carray-list-tests (Depends-on): Add progname.
73306         * tests/test-carray_list.c: Include progname.h.
73307         (main): Call set_program_name.
73308
73309         * modules/avltreehash-list-tests (Depends-on): Add progname.
73310         * tests/test-avltreehash_list.c: Include progname.h.
73311         (main): Call set_program_name.
73312
73313         * modules/avltree-oset-tests (Depends-on): Add progname.
73314         * tests/test-avltree_oset.c: Include progname.h.
73315         (main): Call set_program_name.
73316
73317         * modules/avltree-list-tests (Depends-on): Add progname.
73318         * tests/test-avltree_list.c: Include progname.h.
73319         (main): Call set_program_name.
73320
73321         * modules/array-oset-tests (Depends-on): Add progname.
73322         * tests/test-array_oset.c: Include progname.h.
73323         (main): Call set_program_name.
73324
73325         * modules/array-list-tests (Depends-on): Add progname.
73326         * tests/test-array_list.c: Include progname.h.
73327         (main): Call set_program_name.
73328
73329         * modules/argp-tests (Depends-on): Add progname.
73330         * tests/test-argp.c: Include argp.h first. Include progname.h.
73331         (main): Call set_program_name.
73332
73333 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * doc/gnulib-tool.texi (Initial import): Reword description of
73336         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73337         limited effect even if defined after the first system include.
73338
73339 2007-03-01  Bruno Haible  <bruno@clisp.org>
73340
73341         * build-aux/config.libpath: Update to libtool-1.5.22.
73342         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73343
73344 2007-03-01  Bruno Haible  <bruno@clisp.org>
73345
73346         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73347         foo_CFLAGS.
73348         Reported by Ralf Wildenhues.
73349
73350 2007-03-01  Bruno Haible  <bruno@clisp.org>
73351
73352         * build-aux/install-reloc: Remove object files left over by some
73353         compilers.
73354         Reported by Ralf Wildenhues.
73355
73356 2007-03-01  Bruno Haible  <bruno@clisp.org>
73357
73358         * build-aux/install-reloc: Break long lines.
73359
73360 2007-03-01  Bruno Haible  <bruno@clisp.org>
73361
73362         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73363         Reported by Ralf Wildenhues.
73364
73365 2007-03-01  Bruno Haible  <bruno@clisp.org>
73366
73367         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73368         include ordering constraints.
73369
73370 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73374         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73375         as another example.
73376         * lib/time_.h: Fix misspelling.
73377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73378         Require gl_HEADER_TIME_H_DEFAULTS.
73379         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73380         * m4/time_r.m4 (gl_TIME_R): Likewise.
73381         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73382
73383 2007-03-01  Bruno Haible  <bruno@clisp.org>
73384
73385         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73386         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73387
73388 2007-03-01  Jim Meyering  <jim@meyering.net>
73389
73390         * modules/xreadlink (Maintainer): Add my name.
73391         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73392
73393 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73394             Bruno Haible  <bruno@clisp.org>
73395
73396         * build-aux/install-reloc: Compile also c-ctype.c.
73397         * build-aux/relocatable.sh.in: New file.
73398         * doc/relocatable.texi: New file.
73399         * doc/relocatable-maint.texi: New file.
73400         * doc/gnulib.texi: Include relocatable-maint.texi.
73401         * lib/progreloc.c: Include unistd.h unconditionally.
73402         * lib/relocwrapper.c: Include unistd.h unconditionally.
73403         Include c-ctype.h.
73404         (add_dotbin): Use c_tolower.
73405         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73406         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73407         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73408         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73409         to m4/relocatable-lib.m4.
73410         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73411         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73412         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73413         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73414         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73415         * modules/relocatable: New file.
73416         * modules/relocatable-lib: New file.
73417         * modules/relocatable-script: New file.
73418
73419 2007-02-28  Bruno Haible  <bruno@clisp.org>
73420
73421         Import --enable-relocatable infrastructure.
73422         * build-aux/config.libpath: New file, from GNU gettext.
73423         * build-aux/install-reloc: New file, from GNU gettext.
73424         * build-aux/reloc-ldflags: New file, from GNU gettext.
73425         * lib/relocatable.h: New file, from GNU gettext.
73426         * lib/relocatable.c: New file, from GNU gettext.
73427         * lib/relocwrapper.c: New file, from GNU gettext.
73428         * m4/relocatable.m4: New file, from GNU gettext.
73429
73430 2007-02-28  Bruno Haible  <bruno@clisp.org>
73431
73432         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73433
73434         * modules/xreadlink: New file, from GNU gettext with modifications.
73435         * lib/xreadlink.c: New file, from GNU gettext.
73436         * lib/xreadlink.h: Add comments.
73437         (xreadlink): New declaration.
73438
73439         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73440         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73441         lib/xreadlink-with-size.c.
73442         (configure.ac): Remove gl_XREADLINK invocation.
73443         (Makefile.am): Augment lib_SOURCES.
73444         * m4/xreadlink.m4: Remove file.
73445         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73446         (xreadlink_with_size): Renamed from xreadink.
73447         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73448         * modules/canonicalize (Depends-on): Replace xreadlink with
73449         xreadlink-with-size.
73450         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73451
73452 2007-02-25  Jim Meyering  <jim@meyering.net>
73453
73454         * build-aux/announce-gen: When complaining about excess arguments,
73455         list them.
73456
73457 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         * README: Document signed integer overflow situation more
73460         accurately.
73461
73462 2007-02-25  Bruno Haible  <bruno@clisp.org>
73463
73464         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73465         'a' or 'A' conversion.
73466
73467 2007-02-25  Bruno Haible  <bruno@clisp.org>
73468
73469         * modules/filename: Renamed from modules/pathname.
73470         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73471         lib/concatpath.c with lib/concat-filename.c.
73472         (Makefile.am): Update.
73473         (Include): Replace pathname.h with filename.h.
73474         * lib/filename.h: Renamed from lib/pathname.h.
73475         (concatenated_filename): Renamed from concatenated_pathname.
73476         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73477         (concatenated_filename): Renamed from concatenated_pathname.
73478         * lib/findprog.c: Include filename.h instead of pathname.h.
73479         (find_in_path): Update.
73480         * lib/javacomp.c: Include filename.h instead of pathname.h.
73481         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73482         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73483         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73484         is_oldgcj_14_13_usable, is_javac_usable): Update.
73485         * lib/javaexec.c: Include filename.h instead of pathname.h.
73486         (execute_java_class): Update.
73487         * modules/findprog: Update.
73488         * modules/javacomp: Update.
73489         * modules/javaexec: Update.
73490         * MODULES.html.sh (File system functions): Add 'filename', remove
73491         'pathname'.
73492
73493 2007-02-25  Bruno Haible  <bruno@clisp.org>
73494
73495         * modules/printf-frexpl-tests: New file.
73496         * tests/test-printf-frexpl.c: New file.
73497
73498         * modules/printf-frexpl: New file.
73499         * lib/printf-frexpl.h: New file.
73500         * lib/printf-frexpl.c: New file.
73501         * m4/printf-frexpl.m4: New file.
73502
73503 2007-02-25  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/printf-frexp-tests: New file.
73506         * tests/test-printf-frexp.c: New file.
73507
73508         * modules/printf-frexp: New file.
73509         * lib/printf-frexp.h: New file.
73510         * lib/printf-frexp.c: New file.
73511         * m4/printf-frexp.m4: New file.
73512
73513 2007-02-25  Bruno Haible  <bruno@clisp.org>
73514
73515         Assume automake >= 1.10 for the tests.
73516         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73517         * modules/arctwo-tests: Likewise.
73518         * modules/argp-tests: Likewise.
73519         * modules/avltree-list-tests: Likewise.
73520         * modules/avltree-oset-tests: Likewise.
73521         * modules/avltreehash-list-tests: Likewise.
73522         * modules/carray-list-tests: Likewise.
73523         * modules/crc-tests: Likewise.
73524         * modules/des-tests: Likewise.
73525         * modules/gc-arcfour-tests: Likewise.
73526         * modules/gc-arctwo-tests: Likewise.
73527         * modules/gc-des-tests: Likewise.
73528         * modules/gc-hmac-md5-tests: Likewise.
73529         * modules/gc-hmac-sha1-tests: Likewise.
73530         * modules/gc-md2-tests: Likewise.
73531         * modules/gc-md4-tests: Likewise.
73532         * modules/gc-md5-tests: Likewise.
73533         * modules/gc-pbkdf2-sha1-tests: Likewise.
73534         * modules/gc-rijndael-tests: Likewise.
73535         * modules/gc-sha1-tests: Likewise.
73536         * modules/gc-tests: Likewise.
73537         * modules/getaddrinfo-tests: Likewise.
73538         * modules/hmac-md5-tests: Likewise.
73539         * modules/hmac-sha1-tests: Likewise.
73540         * modules/linked-list-tests: Likewise.
73541         * modules/linkedhash-list-tests: Likewise.
73542         * modules/lock-tests: Likewise.
73543         * modules/md2-tests: Likewise.
73544         * modules/md4-tests: Likewise.
73545         * modules/md5-tests: Likewise.
73546         * modules/rbtree-list-tests: Likewise.
73547         * modules/rbtree-oset-tests: Likewise.
73548         * modules/rbtreehash-list-tests: Likewise.
73549         * modules/read-file-tests: Likewise.
73550         * modules/rijndael-tests: Likewise.
73551         * modules/stdint-tests: Likewise.
73552         * modules/tls-tests: Likewise.
73553
73554 2007-02-24  Bruno Haible  <bruno@clisp.org>
73555
73556         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73557         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73558         function; instead check whether isnan with a double argument links.
73559         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73560         function; instead check whether isnan with a 'long double' argument
73561         links.
73562         Reported by Eric Blake <ebb9@byu.net>.
73563
73564 2007-02-24  Bruno Haible  <bruno@clisp.org>
73565
73566         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73567         defined.
73568         * lib/isnanl.c: Remove all code. Just include isnan.c.
73569         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73570
73571 2007-02-25  Jim Meyering  <jim@meyering.net>
73572
73573         Avoid conflicting types for 'unsetenv' on FreeBSD.
73574         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73575         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73576         in stdlib.h.
73577
73578 2007-02-24  Bruno Haible  <bruno@clisp.org>
73579
73580         * modules/isnanl-nolibm-tests: New file.
73581         * tests/test-isnanl.c: New file.
73582
73583         * modules/isnanl-nolibm: New file.
73584         * lib/isnanl.h: New file.
73585         * lib/isnanl.c: New file.
73586         * m4/isnanl.m4: New file.
73587
73588 2007-02-24  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/isnan-nolibm-tests: New file.
73591         * tests/test-isnan.c: New file.
73592
73593         * modules/isnan-nolibm: New file.
73594         * lib/isnan.h: New file.
73595         * lib/isnan.c: New file.
73596         * m4/isnan.m4: New file.
73597
73598 2007-02-24  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73601         assume that an exponent fits in 20 bits.
73602
73603 2007-02-24  Jim Meyering  <jim@meyering.net>
73604
73605         * m4/regex.m4: Update the description of the configure-time option,
73606         --without-included-regex, to state accurately what the defaults are,
73607         and perhaps to give people an idea why using this option is risky.
73608
73609 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73612         loops on small arguments.  This attempts to avoid the problem
73613         Bruno Haible reported for AIX 4.3.2 in
73614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73615
73616 2007-02-23  Bruno Haible  <bruno@clisp.org>
73617
73618         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73619         Needed for help2man.
73620
73621 2007-02-23  Karl Berry  <karl@gnu.org>
73622
73623         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73624         exists, foo.h should be cvs-ignored, not committed.
73625
73626 2007-02-23  Eric Blake  <ebb9@byu.net>
73627
73628         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73629         * lib/stat-time.h (includes): Likewise.
73630         * lib/utimecmp.c (includes): Likewise.
73631         * lib/utimens.h (includes): Likewise.
73632         * lib/getdate.y (includes): Also include "timespec.h" for use
73633         internal to the module.
73634         * modules/utimens (Depends-on): Revert yesterday's patch.
73635         * modules/nanosleep (Depends-on): Add missing dependency.
73636
73637 2007-02-22  Bruno Haible  <bruno@clisp.org>
73638
73639         * lib/glob.c: Don't include getlogin_r.h.
73640
73641 2007-02-22  Jim Meyering  <jim@meyering.net>
73642
73643         * modules/utimens (Depends-on): Add timespec, required for
73644         utimens.h's inclusion of timespec.h.
73645
73646 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73649         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73650         Schwab in
73651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73652         I'll try to think of a better way to fix the Solaris problem.
73653
73654         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73655         like glibc; on Solaris 10, it fails with errno == EINVAL.
73656         POSIX says the behavior is unspecified if the first argument is NULL,
73657         so play it safe and never pass NULL to the system getcwd.
73658
73659 2007-02-21  Jim Meyering  <jim@meyering.net>
73660
73661         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73662         of gettimeofday.  It would conflict with the one now always
73663         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73664         an IRIX 6.5 build failure.
73665
73666 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         Minor fixups to port to Solaris 10 with Sun C 5.8.
73669         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73670         * modules/getcwd (Depends-on): Add dirfd.
73671         * lib/putenv.c (putenv): #undef it.
73672         (rpl_putenv): New decl.
73673         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73674
73675 2007-02-20  Bruno Haible  <bruno@clisp.org>
73676
73677         * modules/stdio-tests: New file.
73678         * tests/test-stdio.c: New file.
73679
73680         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73681         (Depends-on): Add stdio.
73682         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73683         (Include): Use <stdio.h> instead of vsnprintf.h.
73684         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73685         HAVE_DECL_VSNPRINTF.
73686         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73687
73688         * modules/snprintf (Files): Remove lib/snprintf.h.
73689         (Depends-on): Add stdio.
73690         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73691         (Include): Use <stdio.h> instead of snprintf.h.
73692         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73693         HAVE_DECL_SNPRINTF.
73694         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73695         * lib/getaddrinfo.c: Likewise.
73696
73697         * modules/stdio: New file.
73698         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73699         * lib/snprintf.h: Remove file.
73700         * lib/vsnprintf.h: Remove file.
73701         * lib/.cppi-disable: Remove snprintf.h.
73702         * m4/stdio_h.m4: New file.
73703         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73704
73705 2007-02-20  Jim Meyering  <jim@meyering.net>
73706
73707         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73708         used by e.g., mingw.  From Bruno Haible.
73709
73710 2007-02-19  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73713         warnings.
73714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73715
73716 2007-02-19  Bruno Haible  <bruno@clisp.org>
73717
73718         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73719         from mingw users.
73720
73721 2007-02-19  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73724         warnings.
73725         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73726
73727 2007-02-19  Jim Meyering  <jim@meyering.net>
73728
73729         Don't use FD after a successful "fdopendir (fd)".
73730         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73731         Reset it by calling dirfd on the just-obtained DIR*.
73732
73733         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73734         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73735
73736 2007-02-18  Bruno Haible  <bruno@clisp.org>
73737
73738         * lib/readlink.c: Include <unistd.h>.
73739         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73740         HAVE_READLINK.
73741         * modules/readlink (Depends-on): Add unistd.
73742         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73743         (Include): Add <unistd.h>.
73744
73745         * lib/getlogin_r.h: Remove file.
73746         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73747         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73748         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73749         HAVE_DECL_GETLOGIN_R.
73750         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73752         (Include): Use <unistd.h> instead of getlogin_r.h.
73753
73754         * lib/getcwd.h: Remove file.
73755         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73756         * lib/xgetcwd.c: Likewise.
73757         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73758         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73759         * modules/getcwd (Files): Remove lib/getcwd.h.
73760         (Depends-on): Add unistd.
73761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73762         (Include): Use <unistd.h> instad of getcwd.h.
73763
73764         * lib/ftruncate.c: Include <unistd.h> first.
73765         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73766         Set HAVE_FTRUNCATE.
73767         * modules/ftruncate (Depends-on): Add unistd.
73768         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73769
73770         * lib/fchdir.c: Include <unistd.h> first.
73771         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73773         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73774         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73775         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73776
73777         * lib/dup2.c: Include <unistd.h> first.
73778         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73779         HAVE_DUP2.
73780         * modules/dup2 (Depends-on): Add unistd.
73781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73782
73783         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73784         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73785         REPLACE_CHOWN. Don't define chown as a macro here.
73786         * modules/chown (Depends-on): Add unistd.
73787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73788
73789         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73790         Add definition for GL_LINK_WARNING.
73791         (chown, dup2): New declarations.
73792         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73793         link warning.
73794         (ftruncate): New declaration.
73795         (getcwd): New declaration, taken from old getcwd.h.
73796         (getlogin_r): New declaration, taken from old getlogin_r.h.
73797         (readlink): New declaration.
73798         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73799         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73800         (gl_PREREQ_UNISTD): Remove macro.
73801         (gl_UNISTD_MODULE_INDICATOR): New macro.
73802         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73803         many new variables. Don't set UNISTD_H.
73804         * modules/unistd (Description): Change.
73805         (Depends-on): Add link-warning.
73806         (configure.ac): Update.
73807         (Makefile.am): Create unistd.h always. Substitute many new variables
73808         into it.
73809
73810 2007-02-18  Bruno Haible  <bruno@clisp.org>
73811
73812         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73813         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73814         HAVE_GETSUBOPT.
73815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73816         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73817         * lib/getsubopt.h: Remove file.
73818         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73819         (Depends-on): Add stdlib.
73820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73821         (Includes): Use <stdlib.h> instead of getsubopt.h.
73822         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73823         Set HAVE_GETSUBOPT.
73824         * lib/getsubopt.c: Don't include getsubopt.h.
73825
73826 2007-02-18  Bruno Haible  <bruno@clisp.org>
73827
73828         * modules/fchdir (Depends-on): Add dup2.
73829
73830 2007-02-18  Bruno Haible  <bruno@clisp.org>
73831
73832         * lib/stdlib_.h: Handle glibc's special invocation convention
73833         specially.
73834
73835 2007-02-18  Bruno Haible  <bruno@clisp.org>
73836
73837         * modules/stdlib-tests: New file.
73838         * tests/test-stdlib.c: New file.
73839
73840         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73841         (Depends-on): Add stdlib.
73842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73843         (Includes): Use <stdlib.h> instead of mkstemp.h.
73844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73845         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73846         * lib/mkstemp.c: Don't include mkstemp.h.
73847         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73848         * lib/stdlib--.h: Don't include mkstemp.h.
73849
73850         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73851         (Depends-on): Add stdlib.
73852         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73853         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73854         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73855         HAVE_MKDTEMP.
73856         * lib/mkdtemp.c: Don't include mkdtemp.h.
73857         * lib/clean-temp.c: Don't include mkdtemp.h.
73858
73859         * modules/exit (Files): Remove lib/exit.h.
73860         (Depends-on): Add stdlib.
73861         (Makefile.am): Remove lib_SOURCES.
73862         (Include): Use <stdlib.h> instead of exit.h.
73863         * lib/argmatch.c: Don't include exit.h.
73864         * lib/execute.c: Likewise.
73865         * lib/pagealign_alloc.c: Likewise.
73866         * lib/pipe.c: Likewise.
73867         * lib/wait-process.c: Likewise.
73868         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73869         * lib/exitfail.c: Likewise.
73870         * lib/savewd.c: Likewise.
73871         * lib/xsetenv.c: Likewise.
73872
73873         * modules/stdlib: New file.
73874         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73875         and extra comments about mkstemp().
73876         * lib/exit.h: Remove file.
73877         * lib/mkdtemp.h: Remove file.
73878         * lib/mkstemp.h: Remove file.
73879         * m4/stdlib_h.m4: New file.
73880         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73881
73882 2007-02-18  Bruno Haible  <bruno@clisp.org>
73883
73884         * modules/math-tests: New file.
73885         * tests/test-math.c: New file.
73886
73887         * modules/math: New file.
73888         * modules/mathl (Files): Remove lib/mathl.h.
73889         (Depends-on): Add math.
73890         (Makefile.am): Don't mention mathl.h.
73891         (Include): Use <math.h> instead of mathl.h.
73892         * lib/math_.h: New file.
73893         * lib/mathl.h: Remove file.
73894         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73895         mathl.h.
73896         * lib/asinl.c: Likewise.
73897         * lib/atanl.c: Likewise.
73898         * lib/ceill.c: Likewise.
73899         * lib/cosl.c: Likewise.
73900         * lib/expl.c: Likewise.
73901         * lib/floorl.c: Likewise.
73902         * lib/frexpl.c: Likewise.
73903         * lib/ldexpl.c: Likewise.
73904         * lib/logl.c: Likewise.
73905         * lib/sincosl.c: Likewise.
73906         * lib/sinl.c: Likewise.
73907         * lib/sqrtl.c: Likewise.
73908         * lib/tanl.c: Likewise.
73909         * lib/trigl.c: Likewise.
73910         * m4/math_h.m4: New file.
73911         * MODULES.html.sh (Mathematics): Add math.
73912
73913 2007-02-17  Bruno Haible  <bruno@clisp.org>
73914
73915         * modules/wctype-tests: New file.
73916         * tests/test-wctype.c: New file.
73917
73918         * modules/wchar-tests: New file.
73919         * tests/test-wchar.c: New file.
73920
73921         * modules/unistd-tests: New file.
73922         * tests/test-unistd.c: New file.
73923
73924         * modules/time-tests: New file.
73925         * tests/test-time.c: New file.
73926
73927         * modules/sysexits-tests: New file.
73928         * tests/test-sysexits.c: New file.
73929
73930         * modules/sys_time-tests: New file.
73931         * tests/test-sys_time.c: New file.
73932
73933         * modules/sys_stat-tests: New file.
73934         * tests/test-sys_stat.c: New file.
73935
73936         * modules/sys_socket-tests: New file.
73937         * tests/test-sys_socket.c: New file.
73938
73939         * modules/sys_select-tests: New file.
73940         * tests/test-sys_select.c: New file.
73941
73942         * modules/string-tests: New file.
73943         * tests/test-string.c: New file.
73944
73945         * modules/stdbool-tests: New file.
73946         * tests/test-stdbool.c: New file.
73947
73948         * modules/netinet_in-tests: New file.
73949         * tests/test-netinet_in.c: New file.
73950
73951         * modules/inttypes-tests: New file.
73952         * tests/test-inttypes.c: New file.
73953
73954         * modules/fcntl-tests: New file.
73955         * tests/test-fcntl.c: New file.
73956
73957         * modules/byteswap-tests: New file.
73958         * tests/test-byteswap.c: New file.
73959
73960         * modules/arpa_inet-tests: New file.
73961         * tests/test-arpa_inet.c: New file.
73962
73963 2007-02-17  Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73966         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73967         if the corresponding module is not enabled. Emit link warnings if
73968         the function is used nevertheless.
73969         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73970         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73971         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73972         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73973         * modules/inttypes (Depends-on): Add link-warning.
73974         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73975         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73976         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73977         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73978         * modules/imaxdiv (configure.ac): Likewise.
73979         * modules/strtoimax (configure.ac): Likewise.
73980         * modules/strtoumax (configure.ac): Likewise.
73981
73982 2007-02-17  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73985         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73987         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73988
73989 2007-02-17  Bruno Haible  <bruno@clisp.org>
73990
73991         * modules/link-warning: New file.
73992         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73993         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73994         * modules/string (Depends-on): Add link-warning.
73995         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73996         string.h.
73997         * MODULES.html.sh (Support for building libraries and executables): Add
73998         link-warning.
73999
74000 2007-02-17  Bruno Haible  <bruno@clisp.org>
74001
74002         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74003         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74004         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74005         long lines.
74006
74007 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74008             Bruno Haible  <bruno@clisp.org>
74009
74010         * modules/tmpfile: New file.
74011         * lib/tmpfile.c: New file.
74012         * m4/tmpfile.m4: New file.
74013         * MODULES.html.sh (func_all_modules): New section "Input/output".
74014
74015 2007-02-15  Bruno Haible  <bruno@clisp.org>
74016
74017         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74018         (supports_delete_on_close): New function.
74019         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74020
74021 2007-02-14  Bruno Haible  <bruno@clisp.org>
74022
74023         * modules/mbspcasecmp-tests: New file.
74024         * tests/test-mbspcasecmp.sh: New file.
74025         * tests/test-mbspcasecmp.c: New file.
74026
74027         New module mbspcasecmp.
74028         * modules/mbspcasecmp: New file.
74029         * lib/mbspcasecmp.c: New file.
74030         * lib/string_.h (strncasecmp): Change warning message.
74031         (mbspcasecmp): New declaration.
74032         * m4/mbspcasecmp.m4: New file.
74033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74034         GNULIB_MBSPCASECMP.
74035         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74036         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74037
74038 2007-02-14  Bruno Haible  <bruno@clisp.org>
74039
74040         * modules/mbsncasecmp-tests: New file.
74041         * tests/test-mbsncasecmp.sh: New file.
74042         * tests/test-mbsncasecmp.c: New file.
74043
74044         New module mbsncasecmp.
74045         * modules/mbsncasecmp: New file.
74046         * lib/mbsncasecmp.c: New file.
74047         * lib/string_.h (mbsncasecmp): New declaration.
74048         * m4/mbsncasecmp.m4: New file.
74049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74050         GNULIB_MBSNCASECMP.
74051         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74052         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74053
74054 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74057         Verify that it doesn't overlap with our flags.
74058         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74059         do not have the desired effect in multibyte locales; instead, use
74060         mbscasecmp.
74061         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74062         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74063         we don't require GNU fnmatch ourselves (if our users require it, they
74064         should do so explicitly).
74065
74066         Fix regex code so it doesn't rely on strcasecmp.
74067         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74068         Otherwise, include gnulib's langinfo.h.
74069         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74070         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74071         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74072         * modules/regex (FILES): Remove m4/codeset.m4.
74073         (Depends-on): Add localcharset.  Remove strcase.
74074
74075 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74076
74077         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74078         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74079
74080 2007-02-13  Bruno Haible  <bruno@clisp.org>
74081
74082         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74084
74085 2007-02-12  Bruno Haible  <bruno@clisp.org>
74086
74087         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74088         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74089         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74090         time warning rather than a link error.
74091
74092 2007-02-12  Bruno Haible  <bruno@clisp.org>
74093
74094         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74097
74098 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74101         args, not 2.
74102
74103 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         New module 'time', so that apps can include <time.h> as per
74106         POSIX and GNU instead of separate include files like time_r.h
74107         and timegm.h.  This implementation tries out a simpler approach
74108         for replacing decls in standard include files (as compared to
74109         the string module), somewhat as an experiment.
74110
74111         * config/srclist.txt: Comment out mktime.c for now.
74112         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74113         since it doesn't apply any more.  Use generic wording instead.
74114         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74115         'time'.
74116         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74117         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74118         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74119         Don't include <sys/types.h>; no longer needed since we assume C89.
74120         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74121         * lib/strftime.c: Likewise.
74122         * lib/time_r.c: Likewise.
74123         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74124         * lib/nanosleep.c: Include <time.h> first, to check interface.
74125         * lib/strptime.c: Likewise.
74126         * lib/time_r.c: Likewise.
74127         * lib/timegm.c: Likewise.
74128         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74129         needed.
74130         * lib/timegm.c: Don't include timegm.h; no longer needed.
74131         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74132         time.h now handles any problems in that area.
74133         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74134         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74135         that time.h defines struct timespec.
74136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74137         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74138         handles that.
74139         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74140         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74141         needed.  Set REPLACE_LOCALTIME.
74142         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74143         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74144         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74145         nanosleep; time_h.m4 now does that.  Don't require
74146         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74147         module handles this now.
74148         * modules/getdate (Depends-on): Remove timespec.  Add time.
74149         * modules/nanosleep (Depends-on): Likewise.
74150         * modules/stat-time (Depends-on): Likewise.
74151         * modules/nanosleep (Include): Include time.h, not timespec.h.
74152         * modules/strptime (Files): Remove lib/strptime.h.
74153         (Depends-on): Add extensions, time.
74154         (Include): Include time.h, not strptime.h.
74155         * modules/time_r (Files): Remove lib/time_r.h.
74156         (Depends-on): Add time.
74157         (Include): Include time.h, not time_r.h.
74158         * modules/timegm: Likewise.
74159         * modules/timespec (Description): Now does timespec-related decls
74160         of our own, instead of struct timespec itself.
74161         (Depends-on): Add time; remove extensions.
74162         (Maintainer): Add self.
74163         * modules/utimecmp (Depends-on): Add time; remove timespec.
74164         * modules/utimens (Depends-on): Likewise.
74165         * modules/xnanosleep (Depends-on): Likewise.
74166
74167 2007-02-11  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/c-strstr.c: Include allocsa.h.
74170         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74171         * lib/c-strcasestr.c: Include allocsa.h.
74172         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74173         * lib/strcasestr.c: Include allocsa.h.
74174         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74175         * lib/mbsstr.c: Include allocsa.h.
74176         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74177         allocsa/freesa instead of malloc/free.
74178         * lib/mbscasestr.c: Include allocsa.h.
74179         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74180         allocsa/freesa instead of malloc/free.
74181         * modules/c-strstr (Depends-on): Add allocsa.
74182         * modules/c-strcasestr (Depends-on): Likewise.
74183         * modules/strcasestr (Depends-on): Likewise.
74184         * modules/mbsstr (Depends-on): Likewise.
74185         * modules/mbscasestr (Depends-on): Likewise.
74186
74187 2007-02-11  Bruno Haible  <bruno@clisp.org>
74188
74189         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74190
74191         * modules/mbsspn-tests: New file.
74192         * tests/test-mbsspn.sh: New file.
74193         * tests/test-mbsspn.c: New file.
74194
74195 2007-02-11  Bruno Haible  <bruno@clisp.org>
74196
74197         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74198
74199         * modules/mbspbrk-tests: New file.
74200         * tests/test-mbspbrk.sh: New file.
74201         * tests/test-mbspbrk.c: New file.
74202
74203 2007-02-11  Bruno Haible  <bruno@clisp.org>
74204
74205         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74206         unneeded cast.
74207
74208         * modules/mbscspn-tests: New file.
74209         * tests/test-mbscspn.sh: New file.
74210         * tests/test-mbscspn.c: New file.
74211
74212 2007-02-11  Bruno Haible  <bruno@clisp.org>
74213
74214         * modules/mbscasecmp-tests: New file.
74215         * tests/test-mbscasecmp.sh: New file.
74216         * tests/test-mbscasecmp.c: New file.
74217
74218 2007-02-11  Bruno Haible  <bruno@clisp.org>
74219
74220         Ensure O(n) worst-case complexity of mbscasestr.
74221         * lib/mbscasestr.c: Include stdbool.h.
74222         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74223         functions.
74224         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74225         the bookkeeping indicates that it's worth it.
74226         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74227
74228         * modules/mbscasestr-tests: New file.
74229         * tests/test-mbscasestr1.c: New file.
74230         * tests/test-mbscasestr2.sh: New file.
74231         * tests/test-mbscasestr2.c: New file.
74232         * tests/test-mbscasestr3.sh: New file.
74233         * tests/test-mbscasestr3.c: New file.
74234         * tests/test-mbscasestr4.sh: New file.
74235         * tests/test-mbscasestr4.c: New file.
74236         * m4/locale-tr.m4: New file.
74237
74238 2007-02-11  Bruno Haible  <bruno@clisp.org>
74239
74240         Ensure O(n) worst-case complexity of mbsstr.
74241         * lib/mbsstr.c: Include stdbool.h.
74242         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74243         functions.
74244         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74245         bookkeeping indicates that it's worth it.
74246         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74247
74248         * modules/mbsstr-tests: New file.
74249         * tests/test-mbsstr1.c: New file.
74250         * tests/test-mbsstr2.sh: New file.
74251         * tests/test-mbsstr2.c: New file.
74252         * tests/test-mbsstr3.sh: New file.
74253         * tests/test-mbsstr3.c: New file.
74254         * m4/locale-fr.m4: New file.
74255
74256 2007-02-11  Bruno Haible  <bruno@clisp.org>
74257
74258         * lib/mbsrchr.c (mbsrchr): Fix bug.
74259
74260         * modules/mbsrchr-tests: New file.
74261         * tests/test-mbsrchr.sh: New file.
74262         * tests/test-mbsrchr.c: New file.
74263
74264 2007-02-11  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/mbschr.c (mbschr): Fix bug.
74267
74268         * modules/mbschr-tests: New file.
74269         * tests/test-mbschr.sh: New file.
74270         * tests/test-mbschr.c: New file.
74271         * m4/locale-zh.m4: New file.
74272
74273 2007-02-11  Bruno Haible  <bruno@clisp.org>
74274
74275         Support for copying multibyte string iterators.
74276         * lib/mbiter.h: Include <string.h>.
74277         (mbiter_multi_copy): New function.
74278         (mbi_copy): New macro.
74279         * lib/mbuiter.h: Include <string.h>.
74280         (mbuiter_multi_copy): New function.
74281         (mbui_copy): New macro.
74282
74283 2007-02-11  Bruno Haible  <bruno@clisp.org>
74284
74285         New module mbslen.
74286         * modules/mbslen: New file.
74287         * lib/mbslen.c: New file.
74288         * lib/string_.h (mbslen): New declaration.
74289         * m4/mbslen.m4: New file.
74290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74291         GNULIB_MBSLEN.
74292         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74293         * MODULES.html.sh (Internationalization functions): Add mbslen.
74294
74295 2007-02-11  Bruno Haible  <bruno@clisp.org>
74296
74297         Ensure O(n) worst-case complexity of strcasestr substitute.
74298         * lib/strcasestr.c: Include stdbool.h.
74299         (knuth_morris_pratt): New function.
74300         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74301         bookkeeping indicates that it's worth it.
74302         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74303
74304         * modules/strcasestr-tests: New file.
74305         * tests/test-strcasestr.c: New file.
74306
74307 2007-02-11  Bruno Haible  <bruno@clisp.org>
74308
74309         Ensure O(n) worst-case complexity of c_strcasestr.
74310         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74311         (knuth_morris_pratt): New function.
74312         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74313         the bookkeeping indicates that it's worth it.
74314         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74315
74316         * modules/c-strcasestr-tests: New file.
74317         * tests/test-c-strcasestr.c: New file.
74318
74319 2007-02-11  Bruno Haible  <bruno@clisp.org>
74320
74321         Ensure O(n) worst-case complexity of c_strstr.
74322         * lib/c-strstr.c: Include stdbool.h, string.h.
74323         (knuth_morris_pratt): New function.
74324         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74325         bookkeeping indicates that it's worth it.
74326         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74327
74328         * lib/c-strstr.c: Complete rewrite for maintainability.
74329
74330         * modules/c-strstr-tests: New file.
74331         * tests/test-c-strstr.c: New file.
74332
74333 2007-02-11  Bruno Haible  <bruno@clisp.org>
74334
74335         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74336         5.2.1 and earlier, whereby \055 was treated just like the range
74337         delimiter '-'.
74338         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74339
74340 2007-02-08  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/regex (Depends-on): Add stdbool.
74343         Reported by Dalibor Topic <robilad@kaffe.org>.
74344
74345 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74348         Prefer returning from main to exiting from it.
74349         Remove unnecessary parens after sizeof.
74350
74351 2007-02-05  Bruno Haible  <bruno@clisp.org>
74352
74353         New module mbssep.
74354         * modules/mbssep: New file.
74355         * lib/mbssep.c: New file.
74356         * lib/string_.h (strsep): Add a conditional link warning.
74357         (mbssep): New declaration.
74358         * m4/mbssep.m4: New file.
74359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74360         GNULIB_MBSSEP.
74361         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74362         * MODULES.html.sh (Internationalization functions): Add mbssep.
74363
74364 2007-02-05  Bruno Haible  <bruno@clisp.org>
74365
74366         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74367         Optimize search in case of 1 delimiter.
74368
74369 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74370
74371         * lib/acl.h: Include sys/types.h before sys/acl.h.
74372
74373 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74374
74375         Merge upstream fix for glibc bugzilla #3957:
74376
74377         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74378
74379         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74380         bit for RE_HAT_LISTS_NOT_NEWLINE.
74381         (build_charclass_op): Remove bogus comment.
74382
74383 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74384
74385         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74386
74387 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74390         * lib/memmem.c [!defined _LIBC]: Include config.h.
74391
74392 2007-02-04  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74395         warning message.
74396
74397 2007-02-04  Bruno Haible  <bruno@clisp.org>
74398
74399         New module mbstok_r.
74400         * modules/mbstok_r: New file.
74401         * lib/mbstok_r.c: New file.
74402         * lib/string_.h (strtok_r): Change argument names to match the
74403         comments. Add a conditional link warning.
74404         (mbstok_r): New declaration.
74405         * m4/mbstok_r.m4: New file.
74406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74407         GNULIB_MBSTOK_R.
74408         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74409         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74410
74411 2007-02-04  Bruno Haible  <bruno@clisp.org>
74412
74413         New module mbsspn.
74414         * modules/mbsspn: New file.
74415         * lib/mbsspn.c: New file.
74416         * lib/string_.h (strspn): Add a conditional link warning.
74417         (mbsspn): New declaration.
74418         * m4/mbsspn.m4: New file.
74419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74420         GNULIB_MBSSPN.
74421         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74422         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74423
74424 2007-02-04  Bruno Haible  <bruno@clisp.org>
74425
74426         New module mbspbrk.
74427         * modules/mbspbrk: New file.
74428         * lib/mbspbrk.c: New file.
74429         * lib/string_.h (strpbrk): Add a conditional link warning.
74430         (mbspbrk): New declaration.
74431         * m4/mbspbrk.m4: New file.
74432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74433         GNULIB_MBSPBRK.
74434         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74435         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74436
74437 2007-02-04  Bruno Haible  <bruno@clisp.org>
74438
74439         New module mbscspn.
74440         * modules/mbscspn: New file.
74441         * lib/mbscspn.c: New file.
74442         * lib/string_.h (strcspn): Add a conditional link warning.
74443         (mbscspn): New declaration.
74444         * m4/mbscspn.m4: New file.
74445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74446         GNULIB_MBSCSPN.
74447         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74448         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74449
74450 2007-02-04  Bruno Haible  <bruno@clisp.org>
74451
74452         New module mbscasestr, reduced goal of strcasestr.
74453         * modules/mbscasestr: New file.
74454         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74455         (mbscasestr): Renamed from strcasestr.
74456         * lib/strcasestr.c: Don't include mbuiter.h.
74457         (strcasestr): Remove support for multibyte locales.
74458         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74459         Change the conditional link warning.
74460         (mbscasestr): New declaration.
74461         * m4/mbscasestr.m4: New file.
74462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74463         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74464         REPLACE_STRCASESTR.
74465         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74467         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74468         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74469         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74470         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74471         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74472         (Depends-on): Remove mbuiter.
74473         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74474
74475 2007-02-04  Bruno Haible  <bruno@clisp.org>
74476
74477         Simplify handling of strncasecmp.
74478         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74479         the conditional link warning.
74480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74481         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74482         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74483         * modules/strcase (configure.ac): Don't invoke
74484         gl_STRING_MODULE_INDICATOR.
74485         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74486
74487 2007-02-04  Bruno Haible  <bruno@clisp.org>
74488
74489         New module mbscasecmp, reduced goal of strcasecmp.
74490         * modules/mbscasecmp: New file.
74491         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74492         (mbscasecmp): Renamed from strcasecmp.
74493         * lib/strcasecmp.c: Don't include mbuiter.h.
74494         (strcasecmp): Remove support for multibyte locales.
74495         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74496         Change the conditional link warning.
74497         (mbscasecmp): New declaration.
74498         * m4/mbscasecmp.m4: New file.
74499         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74500         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74501         REPLACE_STRCASECMP.
74502         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74504         GNULIB_MBSCASECMP.
74505         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74506         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74507         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74508         (Depends-on): Remove mbuiter.
74509         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74510
74511 2007-02-04  Bruno Haible  <bruno@clisp.org>
74512
74513         New module mbsstr. Remove module strstr.
74514         * modules/mbsstr: New file.
74515         * modules/strstr: Remove file.
74516         * lib/mbsstr.c: Renamed from lib/strstr.c.
74517         (mbsstr): Renamed from strstr.
74518         * lib/string_.h (strstr): Remove declaration. Change the conditional
74519         link warning.
74520         (mbsstr): New declaration.
74521         * m4/mbsstr.m4: New file.
74522         * m4/strstr.m4: Remove file.
74523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74524         REPLACE_STRSTR.
74525         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74526         Don't initialize GNULIB_STRSTR.
74527         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74528         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74529         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74530         (Support for systems lacking ANSI C 89): Remove strstr.
74531
74532 2007-02-04  Bruno Haible  <bruno@clisp.org>
74533
74534         New module mbsrchr.
74535         * modules/mbsrchr: New file.
74536         * lib/mbsrchr.c: New file.
74537         * lib/string_.h (strrchr): Add a conditional link warning.
74538         (mbsrchr): New declaration.
74539         * m4/mbsrchr.m4: New file.
74540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74541         GNULIB_MBSRCHR.
74542         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74543         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74544
74545 2007-02-04  Bruno Haible  <bruno@clisp.org>
74546
74547         New module mbschr.
74548         * modules/mbschr: New file.
74549         * lib/mbschr.c: New file.
74550         * lib/string_.h (strchr): Add a conditional link warning.
74551         (mbschr): New declaration.
74552         * m4/mbschr.m4: New file.
74553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74554         GNULIB_MBSCHR.
74555         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74556         * MODULES.html.sh (Internationalization functions): Add mbschr.
74557
74558 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74561
74562         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74563
74564 2007-02-04  Bruno Haible  <bruno@clisp.org>
74565
74566         New module description section 'configure.ac-early'.
74567         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74568         (func_get_autoconf_early_snippet): New function.
74569         (func_import, func_create_testdir): Use it. Remove special cases for
74570         modules 'extensions' and 'lock'.
74571         * modules/extensions (configure.ac-early): Require
74572         gl_USE_SYSTEM_EXTENSIONS.
74573         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74574
74575 2007-02-04  Bruno Haible  <bruno@clisp.org>
74576
74577         Make use of gcj-4.3's -fsource and -ftarget option.
74578         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74579         and if so try the options -fsource and -ftarget.
74580         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74581         source_version, ftarget_option, target_version arguments.
74582         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74583         (is_envjavac_oldgcj_14_14_usable): Renamed from
74584         is_envjavac_gcj_14_14_usable.
74585         (is_envjavac_oldgcj_14_13_usable): Renamed from
74586         is_envjavac_gcj_14_13_usable.
74587         (is_gcj_present): Update.
74588         (is_gcj_43, is_gcj43_usable): New functions.
74589         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74590         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74591         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74592         try the options -fsource and -ftarget.
74593
74594 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74597         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74598         larger value.
74599
74600 2007-02-03  Jim Meyering  <jim@meyering.net>
74601
74602         Give tools a better chance to allocate space for very large buffers.
74603         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74604
74605         Make pwd and readlink work also when run with an unreadable parent dir
74606         on systems with openat support.
74607         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74608         provided getcwd function, even when we have openat support.
74609         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74610
74611 2007-02-02  Bruno Haible  <bruno@clisp.org>
74612
74613         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74614         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74615         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74616         portability problems if one of these functions is only used on specific
74617         platforms.
74618         Reported by Paul Eggert.
74619
74620 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74623         is causing more trouble than it's curing.
74624         * lib/regex_internal.h (__mempcpy): Remove.
74625         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74626         (and make the code a tad smaller to boot).
74627         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74628
74629 2007-02-02  Jim Meyering  <jim@meyering.net>
74630
74631         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74632         section, not in the Makefile.am: one.
74633
74634 2007-02-02  Eric Blake  <ebb9@byu.net>
74635
74636         * lib/strchrnul.c: Always include config.h first.
74637
74638         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74639         gnulib strstr is not necessary here.
74640
74641 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74642
74643         * m4/socklen.m4: Fix typo.
74644
74645 2007-02-02  Eric Blake  <ebb9@byu.net>
74646
74647         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74648         * modules/netinet_in (Makefile.am): Likewise.
74649
74650 2007-02-01  Bruno Haible  <bruno@clisp.org>
74651
74652         * lib/string_.h (GL_LINK_WARNING): New macro.
74653         (strcasecmp, strstr, strcasestr): If provided by the system,
74654         conditionally define as a macro that leads to a warning instead of to
74655         an error.
74656         (strncasecmp): Conditionally define as a macro that leads to a warning.
74657
74658 2007-02-01  Karl Berry  <karl@gnu.org>
74659
74660         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74661
74662 2007-02-01  Bruno Haible  <bruno@clisp.org>
74663
74664         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74665         renamings.
74666
74667 2007-02-01  Eric Blake  <ebb9@byu.net>
74668
74669         * modules/regex (Depends-on): Revert dependence on mempcpy.
74670         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74671         module's definition of mempcpy.
74672         Reported by Paul Eggert.
74673
74674 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74677         the symbol XYZ before redefining it.  This fixes a problem with
74678         programs that don't use XYZ, when compiled on systems that define
74679         XYZ to something else.
74680
74681 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74684         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74685         writeable to group or other and (2) is intended to have a special
74686         mode bit that is set or cleared.  In such a case, the directory
74687         should be neither group- nor other-writeable until the special
74688         mode bits are right.
74689
74690 2007-01-31  Eric Blake  <ebb9@byu.net>
74691
74692         * modules/mountlist (Depends-on): Add strstr.
74693
74694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74695         bug.
74696         * modules/string (Makefile.am): Remove redundant replacement.
74697         * modules/regex (Depends-on): Add mempcpy.
74698
74699 2007-01-31  Bruno Haible  <bruno@clisp.org>
74700
74701         New module description field 'Link'.
74702         * gnulib-tool (func_usage): Document --extract-link-directive.
74703         (sed_extract_prog): Recognize 'Link' directive.
74704         (func_get_link_directive): New function.
74705         (func_import): Show summary of link directives.
74706         Handle --extract-link-directive option.
74707         * modules/acl (Link): New section.
74708         * modules/clock-time (Link): New section.
74709         * modules/euidaccess (Link): New section.
74710         * modules/gettext (Link): New section.
74711         * modules/iconv (Link): New section.
74712         * modules/lock (Link): New section.
74713         * modules/nanosleep (Link): New section.
74714         * modules/readline (Link): New section.
74715
74716 2007-01-27  Bruno Haible  <bruno@clisp.org>
74717
74718         Enforce the use of gnulib modules for unportable <string.h> functions.
74719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74720         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74721         (gl_HEADER_STRING_H_BODY): Require it.
74722         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74723         the symbol XYZ to one that gives a link error.
74724         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74725         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74726         * modules/mempcpy (configure.ac): Likewise.
74727         * modules/memrchr (configure.ac): Likewise.
74728         * modules/stpcpy (configure.ac): Likewise.
74729         * modules/stpncpy (configure.ac): Likewise.
74730         * modules/strcase (configure.ac): Likewise.
74731         * modules/strcasestr (configure.ac): Likewise.
74732         * modules/strchrnul (configure.ac): Likewise.
74733         * modules/strdup (configure.ac): Likewise.
74734         * modules/strndup (configure.ac): Likewise.
74735         * modules/strnlen (configure.ac): Likewise.
74736         * modules/strpbrk (configure.ac): Likewise.
74737         * modules/strsep (configure.ac): Likewise.
74738         * modules/strstr (configure.ac): Likewise.
74739         * modules/strtok_r (configure.ac): Likewise.
74740
74741 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74742
74743         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74744
74745 2007-01-30  Jim Meyering  <jim@meyering.net>
74746
74747         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74748
74749 2007-01-29  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74752         * lib/execute.c: Likewise.
74753         * lib/pipe.c: Likewise.
74754         * lib/printf-args.h: Likewise.
74755         * lib/printf-args.c: Likewise.
74756         * lib/printf-parse.c: Likewise.
74757         * lib/vasnprintf.c: Likewise.
74758
74759 2007-01-29  Eric Blake  <ebb9@byu.net>
74760
74761         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74762         declaration.
74763
74764 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * lib/strptime.h (strptime): Use 'restrict' for args where
74767         POSIX requires this.
74768         * lib/strptime.c (strptime): Likewise.
74769         Change license notice from LGPL to GPL, since gnulib-tool will
74770         change this as needed.
74771         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74772         defined.
74773         Include "strptime.h" first, to check interface.
74774         Do not #undef _LIBC and _NL_CURRENT.
74775         Do not include <stdlib.h>; no longer needed.
74776         Include "time_r.h" and declare ptime_locale_status
74777         only if _LIBC is not defined.
74778         (__P): Remove unused macro.
74779         (match_string): Bring back glibc version, but use it only if _LIBC
74780         is defined.
74781         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74782         Remove unnecessary assertion and abort() call.
74783         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74784         * m4/strptime.m4: Fix serial number comment.
74785         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74786         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74787         (Depends-on): Add time_r.
74788
74789 2007-01-29  Bruno Haible  <bruno@clisp.org>
74790
74791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74792         strptime.
74793         * modules/strptime (Depends-on): Add stdbool.
74794         * lib/strptime.h: Include <time.h> always. Add comments.
74795
74796 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74797
74798         * modules/strptime: New file.
74799         * lib/strptime.h: New file.
74800         * lib/strptime.c: New file.
74801         * m4/strptime.m4: New file.
74802
74803 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * MODULES.html.sh: New module mpsort.
74806         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74807
74808         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74809         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74811         All uses changed.
74812         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74813         All uses changed.
74814         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74815         to _Restrict_.
74816         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74817         the parameter matches the prototype.
74818
74819 2007-01-28  Jim Meyering  <jim@meyering.net>
74820
74821         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74822         sys/time.h here, reverting that part of the previous patch:
74823         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74824
74825 2007-01-28  Bruno Haible  <bruno@clisp.org>
74826
74827         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74828         value of $(SYS_TIME_H).
74829         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74830         remove it conditionally, too. [added by Jim Meyering]
74831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74833         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74834         GETTIMEOFDAY_REPLACEMENT to 1.
74835
74836 2007-01-28  Bruno Haible  <bruno@clisp.org>
74837
74838         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74839         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74841         Set UNISTD_H instead of UNISTD_H2.
74842         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74843
74844 2007-01-28  Bruno Haible  <bruno@clisp.org>
74845
74846         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74847         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74848
74849 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74850
74851         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74852         (func_create_testdir): Ensure C locale for `grep' and `tr'
74853         character ranges.
74854         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74855         ACLOCAL_AMFLAGS parsing state machine.
74856
74857 2007-01-27  Bruno Haible  <bruno@clisp.org>
74858
74859         * modules/unistr/base: Update.
74860
74861 2007-01-27  Bruno Haible  <bruno@clisp.org>
74862
74863         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74864         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74865         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74866         modules/unistr/u32-mbtouc.
74867         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74868         * lib/unistr.h: Update.
74869         * lib/linebreak.c: Update.
74870         * modules/unistr/u32-mbtouc: Renamed from
74871         modules/unistr/u32-mbtouc-safe.
74872         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74873         * lib/unistr.h: Update.
74874         * lib/unistr/u32-to-u8.c: Update.
74875         * lib/unistr/u32-to-u16.c: Update.
74876
74877 2007-01-27  Bruno Haible  <bruno@clisp.org>
74878
74879         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74880         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74881         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74882         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74883         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74884         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74885         modules/unistr/u16-mbtouc.
74886         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74887         * lib/unistr.h: Update.
74888         * lib/linebreak.c: Update.
74889         * modules/linebreak: Update.
74890         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74891         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74892         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74893         * modules/unistr/u16-mbtouc: Renamed from
74894         modules/unistr/u16-mbtouc-safe.
74895         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74896         * lib/unistr.h: Update.
74897         * lib/unistr/u16-to-u8.c: Update.
74898         * modules/unistr/u16-to-u8: Update.
74899         * lib/unistr/u16-to-u32.c: Update.
74900         * modules/unistr/u16-to-u32: Update.
74901
74902 2007-01-27  Bruno Haible  <bruno@clisp.org>
74903
74904         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74905         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74906         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74907         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74908         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74909         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74910         modules/unistr/u8-mbtouc.
74911         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74912         * lib/unistr.h: Update.
74913         * lib/striconveh.c: Update.
74914         * modules/striconveh: Update.
74915         * lib/linebreak.c: Update.
74916         * modules/linebreak: Update.
74917         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74918         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74919         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74920         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74921         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74922         * lib/unistr.h: Update.
74923         * lib/striconveh.c: Update.
74924         * modules/striconveh: Update.
74925         * lib/unistr/u8-to-u16.c: Update.
74926         * modules/unistr/u8-to-u16: Update.
74927         * lib/unistr/u8-to-u32.c: Update.
74928         * modules/unistr/u8-to-u32: Update.
74929
74930 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74931
74932         Sync from Libtool.
74933         * lib/argz.c: Do not include strings.h nor memory.h, include
74934         string.h unconditionally.  Patch by Simon Josefsson.
74935
74936 2007-01-27  Bruno Haible  <bruno@clisp.org>
74937
74938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74939         from gl_HEADER_STRING_H_BODY.
74940         (gl_HEADER_STRING_H_BODY): Require it.
74941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74942         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74943         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74944         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74946         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74949         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74950         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74951         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74952         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74953         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74954         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74955         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74956
74957 2007-01-27  Bruno Haible  <bruno@clisp.org>
74958
74959         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74960         check_PROGRAMS into noinst_PROGRAMS.
74961         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74962         check_PROGRAMS in this case.
74963         (func_import): Set for_test to false.
74964         (func_create_testdir): Set for_test to true.
74965
74966 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74967             Bruno Haible  <bruno@clisp.org>
74968
74969         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74970         (Depends-on): Add string.
74971         (Includes): Use <string.h> instead of strcasestr.h.
74972         * modules/string (Makefile.am): Also substitute the value of
74973         REPLACE_STRCASESTR.
74974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74975         assume strcasestr is declared in <string.h> not <strings.h>. Also
74976         set REPLACE_STRCASESTR.
74977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74978         REPLACE_STRCASESTR.
74979         * lib/strcasestr.h: Remove file.
74980         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74981         * lib/string_.h (strcasestr): New declaration.
74982
74983 2007-01-27  Bruno Haible  <bruno@clisp.org>
74984
74985         * lib/string_.h: Use 'extern'.
74986
74987 2007-01-27  Jim Meyering  <jim@meyering.net>
74988
74989         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74990         of set-but-not-used local, "q".
74991
74992         * lib/mempcpy.c: Include <config.h> before <string.h>.
74993         This fixes a compilation error on HP-UX, due to the system's
74994         "restrict"-using mempcpy prototype.
74995
74996 2007-01-26  Bruno Haible  <bruno@clisp.org>
74997
74998         Small optimization.
74999         * lib/javacomp.c: Include c-strstr.h.
75000          (is_envjavac_gcj): Use c_strstr instead of strstr.
75001         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75002
75003 2007-01-26  Bruno Haible  <bruno@clisp.org>
75004
75005         * MODULES.html.sh (Unicode string functions): Add the new modules.
75006
75007         * modules/uniconv/u32-strconv-to-locale: New file.
75008         * lib/uniconv/u32-strconv-to-locale.c: New file.
75009
75010         * modules/uniconv/u16-strconv-to-locale: New file.
75011         * lib/uniconv/u16-strconv-to-locale.c: New file.
75012
75013         * modules/uniconv/u8-strconv-to-locale: New file.
75014         * lib/uniconv/u8-strconv-to-locale.c: New file.
75015
75016         * modules/uniconv/u32-strconv-from-locale: New file.
75017         * lib/uniconv/u32-strconv-from-locale.c: New file.
75018
75019         * modules/uniconv/u16-strconv-from-locale: New file.
75020         * lib/uniconv/u16-strconv-from-locale.c: New file.
75021
75022         * modules/uniconv/u8-strconv-from-locale: New file.
75023         * lib/uniconv/u8-strconv-from-locale.c: New file.
75024
75025         * modules/uniconv/u32-strconv-to-enc: New file.
75026         * lib/uniconv/u32-strconv-to-enc.c: New file.
75027         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75028         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75029
75030         * modules/uniconv/u16-strconv-to-enc: New file.
75031         * lib/uniconv/u16-strconv-to-enc.c: New file.
75032         * lib/uniconv/u-strconv-to-enc.h: New file.
75033         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75034         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75035
75036         * modules/uniconv/u8-strconv-to-enc: New file.
75037         * lib/uniconv/u8-strconv-to-enc.c: New file.
75038         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75039         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75040
75041         * modules/uniconv/u32-strconv-from-enc: New file.
75042         * lib/uniconv/u32-strconv-from-enc.c: New file.
75043         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75044         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75045
75046         * modules/uniconv/u16-strconv-from-enc: New file.
75047         * lib/uniconv/u16-strconv-from-enc.c: New file.
75048         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75049         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75050
75051         * modules/uniconv/u8-strconv-from-enc: New file.
75052         * lib/uniconv/u8-strconv-from-enc.c: New file.
75053         * lib/uniconv/u-strconv-from-enc.h: New file.
75054         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75055         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75056
75057         * modules/uniconv/u32-conv-from-enc: New file.
75058         * lib/uniconv/u32-conv-from-enc.c: New file.
75059         * modules/uniconv/u32-conv-from-enc-tests: New file.
75060         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75061
75062         * modules/uniconv/u16-conv-from-enc: New file.
75063         * lib/uniconv/u16-conv-from-enc.c: New file.
75064         * lib/uniconv/u-conv-from-enc.h: New file.
75065         * modules/uniconv/u16-conv-from-enc-tests: New file.
75066         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75067
75068         * modules/uniconv/u8-conv-from-enc: New file.
75069         * lib/uniconv/u8-conv-from-enc.c: New file.
75070         * modules/uniconv/u8-conv-from-enc-tests: New file.
75071         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75072
75073         * modules/uniconv/base: New file.
75074         * lib/uniconv.h: New file.
75075
75076 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * doc/gnulib-tool.texi (Initial import): Update to match current
75079         behavior with strdup module.
75080         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75081         * lib/memmem.h: Remove; all uses removed.  This is now done
75082         by <string.h>.
75083         * lib/mempcpy.h: Likewise.
75084         * lib/memrchr.h: Likewise.
75085         * lib/stpcpy.h: Likewise.
75086         * lib/stpncpy.h: Likewise.
75087         * lib/strcase.h: Likewise.
75088         * lib/strchrnul.h: Likewise.
75089         * lib/strdup.h: Likewise.
75090         * lib/strndup.h: Likewise.
75091         * lib/strnlen.h: Likewise.
75092         * lib/strpbrk.h: Likewise.
75093         * lib/strsep.h: Likewise.
75094         * lib/strstr.h: Likewise.
75095         * lib/strtok_r.h: Likewise.
75096         * lib/string_.h: New file.
75097         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75098         Rely on <string.h> instead.
75099         * lib/canon-host.c: Likewise.
75100         * lib/chdir-long.c: Likewise.
75101         * lib/concatpath.c: Likewise.
75102         * lib/exclude.c: Likewise.
75103         * lib/fchdir.c: Likewise.
75104         * lib/getaddrinfo.c: Likewise.
75105         * lib/getcwd.c: Likewise.
75106         * lib/getsubopt.c: Likewise.
75107         * lib/glob.c: Likewise.
75108         * lib/hard-locale.c: Likewise.
75109         * lib/iconvme.c: Likewise.
75110         * lib/javacomp.c: Likewise.
75111         * lib/mempcpy.c: Likewise.
75112         * lib/memrchr.c: Likewise.
75113         * lib/regex_internal.h: Likewise.
75114         * lib/stpncpy.c: Likewise.
75115         * lib/strcasecmp.c: Likewise.
75116         * lib/strchrnul.c: Likewise.
75117         * lib/strdup.c: Likewise.
75118         * lib/striconv.c: Likewise.
75119         * lib/striconveh.c: Likewise.
75120         * lib/striconveha.c: Likewise.
75121         * lib/strncasecmp.c: Likewise.
75122         * lib/strndup.c: Likewise.
75123         * lib/strnlen.c: Likewise.
75124         * lib/strsep.c: Likewise.
75125         * lib/strstr.c: Likewise.
75126         * lib/strtok_r.c: Likewise.
75127         * lib/userspec.c: Likewise.
75128         * lib/w32spawn.h: Likewise.
75129         * lib/xstrndup.c: Likewise.
75130         * lib/mountlist.c (strstr): Remove decl.
75131         * m4/string_h.m4: New file.
75132         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75133         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75135         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75136         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75137         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75138         Set REPLACE_STRCASECMP if necessary.
75139         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75140         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75141         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75143         HAVE_DECL_STRDUP if necessary.
75144         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75145         since gl_FUNC_STRNDUP does that now.
75146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75147         Check for decl here...
75148         (gl_PREREQ_STRNLEN): ... not here.
75149         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75150         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75151         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75152         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75153         necessary.
75154         * modules/string: New file.
75155         * modules/memmem (Files): Remove special-purpose include file.
75156         (Depends-on): Add string.
75157         (Include): Include <string.h>, not the removed file.
75158         * modules/mempcpy: Likewise.
75159         * modules/memrchr: Likewise.
75160         * modules/stpcpy: Likewise.
75161         * modules/stpncpy: Likewise.
75162         * modules/strcase: Likewise.
75163         * modules/strchrnul: Likewise.
75164         * modules/strdup: Likewise.
75165         * modules/strndup: Likewise.
75166         * modules/strnlen: Likewise.
75167         * modules/strpbrk: Likewise.
75168         * modules/strsep: Likewise.
75169         * modules/strstr: Likewise.
75170         * modules/strtok_r: Likewise.
75171         * tests/test-dirname.c: Don't include "strdup.h", since
75172         <string.h> now suffices.
75173         * tests/test-memmem.c: Don't include "memmem.h", since
75174         <string.h> now suffices.
75175
75176 2007-01-25  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75179         *resultp is 0.
75180
75181         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75182         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75183         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75184         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75185
75186         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75187         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75188         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75189         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75190         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75191         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75192
75193 2007-01-24  Bruno Haible  <bruno@clisp.org>
75194
75195         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75197         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75198         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75199         gl_FUNC_FTS_CORE.
75200         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75201         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75202         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75203         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75204         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75205         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75206         gl_FUNC_FCHOWNAT.
75207         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75208         gl_FUNC_STRFTIME.
75209         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75210         Reported by Ralf Wildenhues.
75211
75212 2007-01-24  Bruno Haible  <bruno@clisp.org>
75213
75214         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75215         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75216         gl_GETADDRINFO.
75217         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75218         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75219         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75220
75221 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75224         Don't use 'exit'; just return from 'main'.
75225         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75226
75227         * lib/fnmatch_.h: Readjust white space and comments to match
75228         glibc, to avoid spurious diffs.
75229
75230 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75231
75232         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75233         2004-12-01 change by Jakub Jelinek, since this code won't compile
75234         if !LIBC.  Problem reported by Bob Proulx.
75235
75236 2007-01-23  Bruno Haible  <bruno@clisp.org>
75237
75238         * lib/striconveh.c: Include c-strcaseeq.h.
75239         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75240         * modules/striconveh (Depends-on): Add c-strcaseeq.
75241
75242 2007-01-23  Bruno Haible  <bruno@clisp.org>
75243
75244         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75245
75246         * modules/c-strcaseeq: New file.
75247         * lib/c-strcaseeq.h: New file.
75248
75249         * modules/streq: New file.
75250         * lib/streq.h: New file.
75251
75252 2007-01-23  Bruno Haible  <bruno@clisp.org>
75253
75254         * modules/striconveha-tests: New file.
75255         * tests/test-striconveha.c: New file.
75256
75257         * lib/striconveha.h: Include <stdbool.h>.
75258         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75259         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75260         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75261         (mem_iconveha): New function.
75262         (str_iconveha_notranslit): Renamed from str_iconveha.
75263         (str_iconveha): New function.
75264         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75265         c-strcase.
75266
75267 2007-01-23  Bruno Haible  <bruno@clisp.org>
75268
75269         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75270         encodings without forgiving before trying any encoding with handler.
75271         (str_iconveha): Try all encodings without forgiving before trying any
75272         encoding with handler.
75273
75274 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         Import the following changes from libc.
75277
75278         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75279
75280         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75281
75282         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75283
75284         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75285         normal_bracket label.
75286
75287         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75288
75289         [BZ #361]
75290         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75291         to normal_bracket after fetching the next character.
75292
75293 2007-01-22  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75296         argument.
75297         * lib/striconveh.c (iconv_carefully_1): New function.
75298         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75299         argument.
75300         (str_cd_iconveh): Update.
75301         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75302         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75303         * tests/test-striconveh.c (MAGIC): New macro.
75304         (new_offsets): New function.
75305         (main): Test call with and without offsets.
75306
75307 2007-01-22  Bruno Haible  <bruno@clisp.org>
75308
75309         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75310         * modules/sys_select (Makefile.am): Likewise.
75311         * modules/sys_socket (Makefile.am): Likewise.
75312         * modules/sys_time (Makefile.am): Likewise.
75313
75314 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         * modules/gettimeofday (License): Change from GPL to LGPL, since
75317         gettimeofday is a library function.
75318
75319 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75320
75321         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75322
75323 2007-01-21  Bruno Haible  <bruno@clisp.org>
75324
75325         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75326
75327 2007-01-21  Bruno Haible  <bruno@clisp.org>
75328
75329         * modules/striconveha: New file.
75330         * lib/striconveha.h: New file.
75331         * lib/striconveha.c: New file.
75332         * MODULES.html.sh (Internationalization functions): Add striconveha.
75333         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75334         string.
75335         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75336
75337 2007-01-21  Bruno Haible  <bruno@clisp.org>
75338
75339         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75340         * lib/striconveh.c (str_iconveh): Likewise.
75341
75342 2007-01-21  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/striconveh.h (mem_iconveh): New declaration.
75345         * lib/striconveh.c (mem_iconveh): New function.
75346         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75347
75348 2007-01-21  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75351
75352         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75353         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75354         original result buffer.
75355         (str_cd_iconveh): Update.
75356         * tests/test-striconveh.c (main): Update.
75357
75358         * lib/striconv.h (mem_cd_iconv): Change specification.
75359         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75360         result buffer.
75361         (str_cd_iconv): Update.
75362         * tests/test-striconv.c (main): Update.
75363
75364 2007-01-21  Bruno Haible  <bruno@clisp.org>
75365
75366         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75367
75368 2007-01-20  Jim Meyering  <jim@meyering.net>
75369
75370         * lib/userspec.c (parse_with_separator): If a user or group string
75371         starts with "+", skip the corresponding name-to-ID look-up, since
75372         such a look-up must fail: user and group names may not include "+".
75373
75374 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75377         since we now assume the sys_time module.
75378         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75379         check for sys/time.h; no longer needed.
75380         * modules/poll (Depends-on): Depend on sys_time.
75381
75382 2007-01-18  Bruno Haible  <bruno@clisp.org>
75383
75384         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75385         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75386
75387         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75388         gettimeofday.
75389
75390         * tests/test-gettimeofday.c: Include <time.h>.
75391         (dummy): Remove variable.
75392
75393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75394         gl_HEADER_SYS_TIME_H.
75395         (gl_HEADER_SYS_TIME_H): New macro.
75396
75397         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75398         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75400         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75401         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75403         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75404         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75405         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75406         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75407         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75408
75409         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75410         last change; it caused a compilation error when cross-compiling to
75411         Cygwin.
75412
75413 2007-01-18  Jim Meyering  <jim@meyering.net>
75414
75415         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75416         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75417         than the race-prone "test -d sys || mkdir sys".
75418         (configure.ac): Use AC_PROG_MKDIR_P.
75419         * modules/sys_select: Likewise.
75420         * modules/sys_socket: Likewise.
75421         * modules/sys_time: Likewise.
75422
75423 2007-01-18  Eric Blake  <ebb9@byu.net>
75424
75425         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75426         replace gettimeofday.
75427         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75428         name, to avoid infinite recursion.
75429
75430 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75433         module sys_time.
75434         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75435         assume timespec.h defines struct timeval.
75436         * lib/settime.c: Likewise.
75437         * lib/utimens.c: Likewise.
75438         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75439         since we now assume the gettimeofday module.
75440         * lib/tempname.c (__gen_tempname): Likewise.
75441         * lib/gettimeofday.h: Remove.
75442         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75443         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75444         Include <time.h>, for 'time()'.
75445         (localtime_buffer_addr): Also use this workaround if
75446         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75447         to simplify the uses.  All uses changed.
75448         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75449         that #undef is inside {}, and 'const' follows type name consistently.
75450         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75451         (gettimeofday): Do not use the maximum possible value for
75452         tv->tv_usec, since that might break usages other than ls.c.
75453         Instead, we'll leave ls.c alone.  This undoes today's patch
75454         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75455         we've never observed the problem but might as well keep the
75456         canary.
75457         * lib/nanosleep.c: Include timespec.h first, for interface check.
75458         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75459         now assume the sys_time module.
75460         * lib/tempname.c: Likewise.
75461         * lib/timespec.h: Likewise.
75462         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75463         needed.
75464         * lib/strftime.c: Likewise.
75465         * lib/timespec.h: Likewise.
75466         * lib/posixtm.c: Include posixtm.h first, for interface check.
75467         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75468         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75469         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75470         * lib/sys_time_.h: New file.
75471         * lib/timespec.h (struct timespec): Use long int, not long.
75472         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75473         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75474         Remove obsolescent call to AC_HEADER_TIME.
75475         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75478         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75479         Likewise.
75480         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75481         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75483         into the sys_time module.  Check for gettimeofday just once.
75484         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75485         for gettimeofday signature to just check the signature.  Merely
75486         compile it, since linking doesn't test signature.  Improve test for
75487         whether gettimeofday.o is actually needed.
75488         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75489         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75490         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75491         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75492         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75493         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75494         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75495         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75496         than worrying about sys/time.h.
75497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75498         Don't bother worrying about TIME_WITH_SYS_TIME.
75499         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75500         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75501         * m4/sys_time_h.m4: New file.
75502         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75503         Don't include sys/time.h.  Return from main rather than exiting.
75504         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75505         all uses changed.
75506         * modules/gethrxtime (Depends-on): Add sys_time.
75507         * modules/gettime (Depends-on): Likewise.
75508         * modules/gettimeofday (Depends-on): Likewise.
75509         * modules/nanosleep (Depends-on): Likewise.
75510         * modules/settime (Depends-on): Likewise.
75511         * modules/tempname (Depends-on): Likewise.
75512         * modules/utimens (Depends-on): Likewise.
75513         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75514         (Include): Change back to <sys/time.h>.
75515         (Maintainer): Add self.
75516         * modules/sys_time: New file.
75517         * modules/tempname (Depends-on): Add gettimeofday.
75518         * tests/test-gettimeofday.c: Include <sys/time.h>
75519         rather than gettimeofday.h.
75520
75521 2007-01-17  Bruno Haible  <bruno@clisp.org>
75522
75523         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75524         the license default to GPL.
75525         (func_create_testdir): Don't complain if a module is LGPL and its
75526         tests module depends on GPLed modules.
75527
75528 2007-01-17  Bruno Haible  <bruno@clisp.org>
75529
75530         * lib/gettimeofday.c (gettimeofday): Add code for the case
75531         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75532         maximum possible value for tv->tv_usec, rather than the minimum one.
75533
75534 2005-10-08  Martin Lambers  <marlam@marlam.de>
75535 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75536 2007-01-16  Bruno Haible  <bruno@clisp.org>
75537
75538         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75539         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75540         gl_FUNC_GETTIMEOFDAY.
75541         (Include): Add gettimeofday.h.
75542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75543         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75544         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75545         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75546         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75547         * lib/gettimeofday.h: New file.
75548         * lib/gettimeofday.c: Include <sys/timeb.h>.
75549         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75550         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75551         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75552         fall back on time().
75553
75554         * tests/test-gettimeofday.c: New file.
75555         * modules/gettimeofday-tests: New file.
75556
75557 2007-01-16  Eric Blake  <ebb9@byu.net>
75558
75559         * modules/fnmatch (Depends-on): Depend on wchar.
75560         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75561         * m4/fnmatch.m4: Likewise.
75562         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75563         * m4/mbchar.m4: Likewise.
75564         * modules/mbswidth (Depends-on): Depend on wchar.
75565         * lib/mbswidth.c: Assume <wchar.h>.
75566         * m4/mbswidth.m4: Likewise.
75567         * modules/quotearg (Depends-on): Depend on wchar.
75568         * lib/quotearg.c: Assume <wchar.h>.
75569         * m4/quotearg.m4: Likewise.
75570         * modules/regex (Depends-on): Depend on wchar.
75571         * lib/regex_internal.h: Assume <wchar.h>.
75572         * m4/regex.m4: Likewise.
75573         * modules/stdint (Depends-on): Depend on wchar.
75574         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75575         * m4/stdint.m4: Likewise.
75576         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75577         * modules/strftime (Depends-on): Depend on wchar.
75578         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75579         * modules/strtol (Depends-on): Depend on wchar.
75580         * lib/strtol.c: Assume <wchar.h>.
75581         * modules/wcwidth (Depends-on): Depend on wchar.
75582         * lib/wcwidth.h: Assume <wchar.h>.
75583         * m4/wcwidth.m4: Likewise.
75584
75585 2007-01-16  Bruno Haible  <bruno@clisp.org>
75586
75587         * modules/csharpexec-script: New, created from...
75588         * modules/csharpexec: ... this.
75589
75590 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75591
75592         * modules/javaexec-script: New, created from...
75593         * modules/javaexec: ... this.
75594
75595 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75596
75597         * modules/poll (Dependencies): Add sys_select.
75598
75599 2007-01-15  Jim Meyering  <jim@meyering.net>
75600
75601         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75602         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75603         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75604         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75605
75606 2007-01-15  Bruno Haible  <bruno@clisp.org>
75607
75608         * modules/striconveh: New file.
75609         * lib/striconveh.h: New file.
75610         * lib/striconveh.c: New file.
75611         * MODULES.html.sh (Internationalization functions): Add striconveh.
75612
75613         * modules/striconveh-tests: New file.
75614         * tests/test-striconveh.c: New file.
75615
75616 2007-01-15  Bruno Haible  <bruno@clisp.org>
75617
75618         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75619         not from GNU libiconv or GNU libc.
75620
75621 2007-01-15  Bruno Haible  <bruno@clisp.org>
75622
75623         * doc/gnulib-intro.texi (Copyright): Explain the different license
75624         terms for module descriptions, autoconf macros, tests, documentation.
75625
75626 2007-01-14  Bruno Haible  <bruno@clisp.org>
75627
75628         * modules/striconv-tests: New file.
75629         * tests/test-striconv.c: New file.
75630
75631 2007-01-14  Bruno Haible  <bruno@clisp.org>
75632
75633         * modules/iconv-tests: New file.
75634         * tests/test-iconv.c: New file.
75635
75636 2007-01-14  Bruno Haible  <bruno@clisp.org>
75637
75638         * gnulib-tool (func_get_license): For test modules, use the license of
75639         the main module.
75640
75641 2007-01-14  Bruno Haible  <bruno@clisp.org>
75642
75643         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75644         if iconv is found to exist.
75645
75646 2007-01-14  Bruno Haible  <bruno@clisp.org>
75647
75648         * modules/c-ctype-tests: New file.
75649         * tests/test-c-ctype.c: New file.
75650
75651 2007-01-14  Bruno Haible  <bruno@clisp.org>
75652
75653         * modules/binary-io-tests: New file.
75654         * tests/test-binary-io.sh: New file.
75655         * tests/test-binary-io.c: New file.
75656
75657 2007-01-14  Bruno Haible  <bruno@clisp.org>
75658
75659         * modules/array-oset-tests: New file.
75660         * tests/test-array_oset.c: New file.
75661
75662 2007-01-14  Bruno Haible  <bruno@clisp.org>
75663
75664         * modules/array-list-tests: New file.
75665         * tests/test-array_list.c: New file.
75666
75667 2007-01-14  Bruno Haible  <bruno@clisp.org>
75668
75669         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75670         and make.
75671         Reported by Simon Josefsson in
75672         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75673
75674 2007-01-14  Bruno Haible  <bruno@clisp.org>
75675
75676         * modules/allocsa-tests: New file.
75677         * tests/test-allocsa.c: New file.
75678
75679 2007-01-14  Bruno Haible  <bruno@clisp.org>
75680
75681         * modules/fchdir (Depends-on): Add absolute-header.
75682         * modules/unistd (Depends-on): Likewise.
75683
75684 2006-12-30  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/fchdir: New file.
75687         * modules/unistd (Files): Add lib/unistd_.h.
75688         (Makefile.am): Generate unistd.h from unistd_.h.
75689         * lib/fchdir.c: New file.
75690         * lib/dirent_.h: New file.
75691         * lib/unistd_.h: New file.
75692         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75693         * m4/fchdir.m4: New file.
75694         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75695         (gl_HEADER_UNISTD): Invoke it.
75696         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75697         function.
75698         * lib/backupfile.c (opendir, closedir): Undefine.
75699         * lib/chown.c (open, close): Undefine.
75700         * lib/clean-temp.c (open, close): Undefine.
75701         * lib/copy-file.c (open, close): Undefine.
75702         * lib/execute.c (open, close): Undefine.
75703         * lib/fsusage.c (open, close): Undefine.
75704         * lib/gc-gnulib.c (open, close): Undefine.
75705         * lib/getcwd.c (opendir, closedir): Undefine.
75706         * lib/glob.c (opendir, closedir): Undefine.
75707         * lib/javacomp.c (open, close): Undefine.
75708         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75709         * lib/openat-proc.c (open, close): Undefine.
75710         * lib/pagealign_alloc.c (open, close): Undefine.
75711         * lib/pipe.c (open, close): Undefine.
75712         * lib/progreloc.c (open, close): Undefine.
75713         * lib/savedir.c (opendir, closedir): Undefine.
75714         * lib/utime.c (open, close): Undefine.
75715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75716
75717 2007-01-10  Bruno Haible  <bruno@clisp.org>
75718
75719         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75720
75721 2007-01-12  Eric Blake  <ebb9@byu.net>
75722
75723         Provide a robust <wchar.h>.  Further simplifications are now
75724         possible in other modules, but not included here.
75725         * modules/wchar: New module.
75726         * m4/wchar.m4: New file.
75727         * lib/wchar_.h: Likewise.
75728         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75729         of the new module.
75730         * MODULES.html.sh (Extended multibyte and wide character utilities):
75731         New section.
75732
75733 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75736         to a reasonable default for memory allocation.
75737         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75738         file system that reports garbage st_size values for symlinks.
75739         Problem reported by Liyang Hu.
75740
75741 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75742
75743         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75744         Emacs .#* auto-save files).
75745
75746 2007-01-11  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75749         directory.
75750
75751 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         Use @...@ consistently in lib/wctype_.h.
75754         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75755         on it being set to 1 or 0.
75756         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75757         go back to AC_SUBSTing it.
75758         * modules/wctype (Makefile.am): Undo previous change.
75759
75760 2007-01-10  Eric Blake  <ebb9@byu.net>
75761
75762         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75763         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75764         * modules/wctype (Makefile.am): Likewise.
75765         Reported by Chris McGuire.
75766
75767 2007-01-10  Jim Meyering  <jim@meyering.net>
75768
75769         fts.c: a small readability/maintainability improvement
75770         * lib/fts.c (fts_read): Make this code slightly more readable and
75771         maintainable by hoisting the "sp->fts_cur = p" assignments to
75772         immediately follow the statements that set P.  Derived from
75773         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75774
75775 2007-01-10  Eric Blake  <ebb9@byu.net>
75776
75777         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75778         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75780         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75781         Reported by Chris McGuire.
75782
75783 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75784
75785         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75786         in sed script.
75787
75788 2007-01-09  Bruno Haible  <bruno@clisp.org>
75789
75790         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75791         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75792         variables.
75793         (func_module): Use them.
75794
75795 2007-01-09  Bruno Haible  <bruno@clisp.org>
75796
75797         * modules/unistr/base: New file.
75798         * lib/unistr.h: New file.
75799
75800         * modules/unistr/u8-to-u16: New file.
75801         * lib/unistr/u8-to-u16.c: New file.
75802
75803         * modules/unistr/u8-to-u32: New file.
75804         * lib/unistr/u8-to-u32.c: New file.
75805
75806         * modules/unistr/u16-to-u8: New file.
75807         * lib/unistr/u16-to-u8.c: New file.
75808
75809         * modules/unistr/u16-to-u32: New file.
75810         * lib/unistr/u16-to-u32.c: New file.
75811
75812         * modules/unistr/u32-to-u8: New file.
75813         * lib/unistr/u32-to-u8.c: New file.
75814
75815         * modules/unistr/u32-to-u16: New file.
75816         * lib/unistr/u32-to-u16.c: New file.
75817
75818         * modules/unistr/u8-check: New file.
75819         * modules/unistr/u16-check: New file.
75820         * modules/unistr/u32-check: New file.
75821         * lib/unistr/u8-check.c: New file.
75822         * lib/unistr/u16-check.c: New file.
75823         * lib/unistr/u32-check.c: New file.
75824
75825         * modules/unistr/u8-chr: New file.
75826         * modules/unistr/u16-chr: New file.
75827         * modules/unistr/u32-chr: New file.
75828         * lib/unistr/u8-chr.c: New file.
75829         * lib/unistr/u16-chr.c: New file.
75830         * lib/unistr/u32-chr.c: New file.
75831
75832         * modules/unistr/u8-cmp: New file.
75833         * modules/unistr/u16-cmp: New file.
75834         * modules/unistr/u32-cmp: New file.
75835         * lib/unistr/u8-cmp.c: New file.
75836         * lib/unistr/u16-cmp.c: New file.
75837         * lib/unistr/u32-cmp.c: New file.
75838
75839         * modules/unistr/u8-cpy: New file.
75840         * modules/unistr/u16-cpy: New file.
75841         * modules/unistr/u32-cpy: New file.
75842         * lib/unistr/u8-cpy.c: New file.
75843         * lib/unistr/u16-cpy.c: New file.
75844         * lib/unistr/u32-cpy.c: New file.
75845         * lib/unistr/u-cpy.h: New file.
75846
75847         * modules/unistr/u8-cpy-alloc: New file.
75848         * modules/unistr/u16-cpy-alloc: New file.
75849         * modules/unistr/u32-cpy-alloc: New file.
75850         * lib/unistr/u8-cpy-alloc.c: New file.
75851         * lib/unistr/u16-cpy-alloc.c: New file.
75852         * lib/unistr/u32-cpy-alloc.c: New file.
75853         * lib/unistr/u-cpy-alloc.h: New file.
75854
75855         * modules/unistr/u8-endswith: New file.
75856         * modules/unistr/u16-endswith: New file.
75857         * modules/unistr/u32-endswith: New file.
75858         * lib/unistr/u8-endswith.c: New file.
75859         * lib/unistr/u16-endswith.c: New file.
75860         * lib/unistr/u32-endswith.c: New file.
75861         * lib/unistr/u-endswith.h: New file.
75862
75863         * modules/unistr/u8-mblen: New file.
75864         * modules/unistr/u16-mblen: New file.
75865         * modules/unistr/u32-mblen: New file.
75866         * lib/unistr/u8-mblen.c: New file.
75867         * lib/unistr/u16-mblen.c: New file.
75868         * lib/unistr/u32-mblen.c: New file.
75869
75870         * modules/unistr/u8-mbtouc: New file.
75871         * modules/unistr/u16-mbtouc: New file.
75872         * modules/unistr/u32-mbtouc: New file.
75873         * lib/unistr/u8-mbtouc.c: New file.
75874         * lib/unistr/u16-mbtouc.c: New file.
75875         * lib/unistr/u32-mbtouc.c: New file.
75876
75877         * modules/unistr/u8-mbtouc-safe: New file.
75878         * modules/unistr/u16-mbtouc-safe: New file.
75879         * modules/unistr/u32-mbtouc-safe: New file.
75880         * lib/unistr/u8-mbtouc-safe.c: New file.
75881         * lib/unistr/u16-mbtouc-safe.c: New file.
75882         * lib/unistr/u32-mbtouc-safe.c: New file.
75883
75884         * modules/unistr/u8-move: New file.
75885         * modules/unistr/u16-move: New file.
75886         * modules/unistr/u32-move: New file.
75887         * lib/unistr/u8-move.c: New file.
75888         * lib/unistr/u16-move.c: New file.
75889         * lib/unistr/u32-move.c: New file.
75890         * lib/unistr/u-move.h: New file.
75891
75892         * modules/unistr/u8-next: New file.
75893         * modules/unistr/u16-next: New file.
75894         * modules/unistr/u32-next: New file.
75895         * lib/unistr/u8-next.c: New file.
75896         * lib/unistr/u16-next.c: New file.
75897         * lib/unistr/u32-next.c: New file.
75898
75899         * modules/unistr/u8-prev: New file.
75900         * modules/unistr/u16-prev: New file.
75901         * modules/unistr/u32-prev: New file.
75902         * lib/unistr/u8-prev.c: New file.
75903         * lib/unistr/u16-prev.c: New file.
75904         * lib/unistr/u32-prev.c: New file.
75905
75906         * modules/unistr/u8-set: New file.
75907         * modules/unistr/u16-set: New file.
75908         * modules/unistr/u32-set: New file.
75909         * lib/unistr/u8-set.c: New file.
75910         * lib/unistr/u16-set.c: New file.
75911         * lib/unistr/u32-set.c: New file.
75912         * lib/unistr/u-set.h: New file.
75913
75914         * modules/unistr/u8-startswith: New file.
75915         * modules/unistr/u16-startswith: New file.
75916         * modules/unistr/u32-startswith: New file.
75917         * lib/unistr/u8-startswith.c: New file.
75918         * lib/unistr/u16-startswith.c: New file.
75919         * lib/unistr/u32-startswith.c: New file.
75920         * lib/unistr/u-startswith.h: New file.
75921
75922         * modules/unistr/u8-stpcpy: New file.
75923         * modules/unistr/u16-stpcpy: New file.
75924         * modules/unistr/u32-stpcpy: New file.
75925         * lib/unistr/u8-stpcpy.c: New file.
75926         * lib/unistr/u16-stpcpy.c: New file.
75927         * lib/unistr/u32-stpcpy.c: New file.
75928         * lib/unistr/u-stpcpy.h: New file.
75929
75930         * modules/unistr/u8-stpncpy: New file.
75931         * modules/unistr/u16-stpncpy: New file.
75932         * modules/unistr/u32-stpncpy: New file.
75933         * lib/unistr/u8-stpncpy.c: New file.
75934         * lib/unistr/u16-stpncpy.c: New file.
75935         * lib/unistr/u32-stpncpy.c: New file.
75936         * lib/unistr/u-stpncpy.h: New file.
75937
75938         * modules/unistr/u8-strcat: New file.
75939         * modules/unistr/u16-strcat: New file.
75940         * modules/unistr/u32-strcat: New file.
75941         * lib/unistr/u8-strcat.c: New file.
75942         * lib/unistr/u16-strcat.c: New file.
75943         * lib/unistr/u32-strcat.c: New file.
75944         * lib/unistr/u-strcat.h: New file.
75945
75946         * modules/unistr/u8-strchr: New file.
75947         * modules/unistr/u16-strchr: New file.
75948         * modules/unistr/u32-strchr: New file.
75949         * lib/unistr/u8-strchr.c: New file.
75950         * lib/unistr/u16-strchr.c: New file.
75951         * lib/unistr/u32-strchr.c: New file.
75952
75953         * modules/unistr/u8-strcmp: New file.
75954         * modules/unistr/u16-strcmp: New file.
75955         * modules/unistr/u32-strcmp: New file.
75956         * lib/unistr/u8-strcmp.c: New file.
75957         * lib/unistr/u16-strcmp.c: New file.
75958         * lib/unistr/u32-strcmp.c: New file.
75959
75960         * modules/unistr/u8-strcpy: New file.
75961         * modules/unistr/u16-strcpy: New file.
75962         * modules/unistr/u32-strcpy: New file.
75963         * lib/unistr/u8-strcpy.c: New file.
75964         * lib/unistr/u16-strcpy.c: New file.
75965         * lib/unistr/u32-strcpy.c: New file.
75966         * lib/unistr/u-strcpy.h: New file.
75967
75968         * modules/unistr/u8-strcspn: New file.
75969         * modules/unistr/u16-strcspn: New file.
75970         * modules/unistr/u32-strcspn: New file.
75971         * lib/unistr/u8-strcspn.c: New file.
75972         * lib/unistr/u16-strcspn.c: New file.
75973         * lib/unistr/u32-strcspn.c: New file.
75974         * lib/unistr/u-strcspn.h: New file.
75975
75976         * modules/unistr/u8-strdup: New file.
75977         * modules/unistr/u16-strdup: New file.
75978         * modules/unistr/u32-strdup: New file.
75979         * lib/unistr/u8-strdup.c: New file.
75980         * lib/unistr/u16-strdup.c: New file.
75981         * lib/unistr/u32-strdup.c: New file.
75982         * lib/unistr/u-strdup.h: New file.
75983
75984         * modules/unistr/u8-strlen: New file.
75985         * modules/unistr/u16-strlen: New file.
75986         * modules/unistr/u32-strlen: New file.
75987         * lib/unistr/u8-strlen.c: New file.
75988         * lib/unistr/u16-strlen.c: New file.
75989         * lib/unistr/u32-strlen.c: New file.
75990         * lib/unistr/u-strlen.h: New file.
75991
75992         * modules/unistr/u8-strmblen: New file.
75993         * modules/unistr/u16-strmblen: New file.
75994         * modules/unistr/u32-strmblen: New file.
75995         * lib/unistr/u8-strmblen.c: New file.
75996         * lib/unistr/u16-strmblen.c: New file.
75997         * lib/unistr/u32-strmblen.c: New file.
75998
75999         * modules/unistr/u8-strmbtouc: New file.
76000         * modules/unistr/u16-strmbtouc: New file.
76001         * modules/unistr/u32-strmbtouc: New file.
76002         * lib/unistr/u8-strmbtouc.c: New file.
76003         * lib/unistr/u16-strmbtouc.c: New file.
76004         * lib/unistr/u32-strmbtouc.c: New file.
76005
76006         * modules/unistr/u8-strncat: New file.
76007         * modules/unistr/u16-strncat: New file.
76008         * modules/unistr/u32-strncat: New file.
76009         * lib/unistr/u8-strncat.c: New file.
76010         * lib/unistr/u16-strncat.c: New file.
76011         * lib/unistr/u32-strncat.c: New file.
76012         * lib/unistr/u-strncat.h: New file.
76013
76014         * modules/unistr/u8-strncmp: New file.
76015         * modules/unistr/u16-strncmp: New file.
76016         * modules/unistr/u32-strncmp: New file.
76017         * lib/unistr/u8-strncmp.c: New file.
76018         * lib/unistr/u16-strncmp.c: New file.
76019         * lib/unistr/u32-strncmp.c: New file.
76020
76021         * modules/unistr/u8-strncpy: New file.
76022         * modules/unistr/u16-strncpy: New file.
76023         * modules/unistr/u32-strncpy: New file.
76024         * lib/unistr/u8-strncpy.c: New file.
76025         * lib/unistr/u16-strncpy.c: New file.
76026         * lib/unistr/u32-strncpy.c: New file.
76027         * lib/unistr/u-strncpy.h: New file.
76028
76029         * modules/unistr/u8-strnlen: New file.
76030         * modules/unistr/u16-strnlen: New file.
76031         * modules/unistr/u32-strnlen: New file.
76032         * lib/unistr/u8-strnlen.c: New file.
76033         * lib/unistr/u16-strnlen.c: New file.
76034         * lib/unistr/u32-strnlen.c: New file.
76035         * lib/unistr/u-strnlen.h: New file.
76036
76037         * modules/unistr/u8-strpbrk: New file.
76038         * modules/unistr/u16-strpbrk: New file.
76039         * modules/unistr/u32-strpbrk: New file.
76040         * lib/unistr/u8-strpbrk.c: New file.
76041         * lib/unistr/u16-strpbrk.c: New file.
76042         * lib/unistr/u32-strpbrk.c: New file.
76043         * lib/unistr/u-strpbrk.h: New file.
76044
76045         * modules/unistr/u8-strrchr: New file.
76046         * modules/unistr/u16-strrchr: New file.
76047         * modules/unistr/u32-strrchr: New file.
76048         * lib/unistr/u8-strrchr.c: New file.
76049         * lib/unistr/u16-strrchr.c: New file.
76050         * lib/unistr/u32-strrchr.c: New file.
76051
76052         * modules/unistr/u8-strspn: New file.
76053         * modules/unistr/u16-strspn: New file.
76054         * modules/unistr/u32-strspn: New file.
76055         * lib/unistr/u8-strspn.c: New file.
76056         * lib/unistr/u16-strspn.c: New file.
76057         * lib/unistr/u32-strspn.c: New file.
76058         * lib/unistr/u-strspn.h: New file.
76059
76060         * modules/unistr/u8-strstr: New file.
76061         * modules/unistr/u16-strstr: New file.
76062         * modules/unistr/u32-strstr: New file.
76063         * lib/unistr/u8-strstr.c: New file.
76064         * lib/unistr/u16-strstr.c: New file.
76065         * lib/unistr/u32-strstr.c: New file.
76066         * lib/unistr/u-strstr.h: New file.
76067
76068         * modules/unistr/u8-strtok: New file.
76069         * modules/unistr/u16-strtok: New file.
76070         * modules/unistr/u32-strtok: New file.
76071         * lib/unistr/u8-strtok.c: New file.
76072         * lib/unistr/u16-strtok.c: New file.
76073         * lib/unistr/u32-strtok.c: New file.
76074         * lib/unistr/u-strtok.h: New file.
76075
76076         * modules/unistr/u8-uctomb: New file.
76077         * modules/unistr/u16-uctomb: New file.
76078         * modules/unistr/u32-uctomb: New file.
76079         * lib/unistr/u8-uctomb.c: New file.
76080         * lib/unistr/u16-uctomb.c: New file.
76081         * lib/unistr/u32-uctomb.c: New file.
76082
76083         * MODULES.html.sh (Unicode string functions): Add the new modules.
76084
76085 2007-01-08  Bruno Haible  <bruno@clisp.org>
76086
76087         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76088         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76089         subdirectories.
76090
76091 2007-01-08  Karl Berry  <karl@gnu.org>
76092
76093         * doc/error.texi: mention that main() fns must set program_name
76094         when progname is used.
76095
76096 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76099         WCTYPE_H is empty, for the benefit of builds from non-distclean
76100         directories.  Problem reported by Eric Blake in
76101         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76102
76103 2007-01-08  Bruno Haible  <bruno@clisp.org>
76104
76105         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76106         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76107         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76108         PROVIDE_CANONICALIZE_FILENAME_MODE.
76109         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76110
76111 2007-01-08  Bruno Haible  <bruno@clisp.org>
76112
76113         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76114         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76115         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76116         * lib/fts.c: Likewise.
76117         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76118
76119 2006-12-25  Bruno Haible  <bruno@clisp.org>
76120
76121         * modules/utf8-ucs4-safe: New file.
76122         * lib/utf8-ucs4-safe.h: New file.
76123         * lib/unistr/utf8-ucs4-safe.c: New file.
76124
76125         * modules/utf16-ucs4-safe: New file.
76126         * lib/utf16-ucs4-safe.h: New file.
76127         * lib/unistr/utf16-ucs4-safe.c: New file.
76128
76129         * MODULES.html.sh (Unicode string functions): Add the new modules.
76130
76131 2007-01-08  Bruno Haible  <bruno@clisp.org>
76132
76133         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76134         (Depends-on): Add unitypes.
76135         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76136         (u8_mbtouc_aux): Move out to separate file.
76137         (u8_mbtouc): Use ucs4_t, uint8_t types.
76138         * lib/unistr/utf8-ucs4.c: New file.
76139
76140         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76141         (Depends-on): Add unitypes.
76142         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76143         (u16_mbtouc_aux): Move out to separate file.
76144         (u16_mbtouc): Use ucs4_t, uint16_t types.
76145         * lib/unistr/utf16-ucs4.c: New file.
76146
76147         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76148         (Depends-on): Add unitypes.
76149         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76150         (u8_uctomb_aux): Move out to separate file.
76151         (u8_uctomb): Use ucs4_t, uint8_t types.
76152         * lib/unistr/ucs4-utf8.c: New file.
76153
76154         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76155         (Depends-on): Add unitypes.
76156         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76157         (u16_uctomb_aux): Move out to separate file.
76158         (u16_uctomb): Use ucs4_t, uint16_t types.
76159         * lib/unistr/ucs4-utf16.c: New file.
76160
76161 2006-12-25  Bruno Haible  <bruno@clisp.org>
76162
76163         * modules/unitypes: New file.
76164         * lib/unitypes.h: New file.
76165         * MODULES.html.sh (func_all_modules): New section "Unicode string
76166         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76167         this section. Add unitypes.
76168
76169 2007-01-08  Bruno Haible  <bruno@clisp.org>
76170
76171         Avoid variable names that conflict with those from libtool.
76172         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76173         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76174         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76175         library_names_spec to acl_library_names_spec, hardcode_* to
76176         acl_hardcode_*.
76177         Reported by Ralf Wildenhues.
76178
76179 2007-01-08  Bruno Haible  <bruno@clisp.org>
76180
76181         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76182         definition.
76183         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76184         definition.
76185         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76186         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76187         definition.
76188         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76189         definition.
76190         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76191         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76192         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76193         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76194         definition.
76195         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76196         definition.
76197         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76198         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76199         GC_USE_<algorithm>.
76200         * lib/gc-libgcrypt.c: Likewise.
76201         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76202         * modules/gc-arctwo (configure.ac): Likewise.
76203         * modules/gc-des (configure.ac): Likewise.
76204         * modules/gc-hmac-md5 (configure.ac): Likewise.
76205         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76206         * modules/gc-md2 (configure.ac): Likewise.
76207         * modules/gc-md4 (configure.ac): Likewise.
76208         * modules/gc-md5 (configure.ac): Likewise.
76209         * modules/gc-random (configure.ac): Likewise.
76210         * modules/gc-rijndael (configure.ac): Likewise.
76211         * modules/gc-sha1 (configure.ac): Likewise.
76212
76213 2007-01-08  Bruno Haible  <bruno@clisp.org>
76214
76215         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76216         macro definition.
76217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76218         definition.
76219         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76220         definition.
76221         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76222         * modules/fcntl-safer (configure.ac): Likewise.
76223         * modules/fopen-safer (configure.ac): Likewise.
76224         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76225         GNULIB_FWRITEERROR macro definition.
76226
76227 2007-01-08  Bruno Haible  <bruno@clisp.org>
76228
76229         * m4/gnulib-common.m4: New file.
76230         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76231         (func_get_filelist): Add m4/gnulib-common.m4.
76232
76233 2007-01-08  Bruno Haible  <bruno@clisp.org>
76234
76235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76236         command.
76237
76238 2007-01-08  Jim Meyering  <jim@meyering.net>
76239
76240         Use a more robust test for a "can't happen" condition.
76241         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76242         narrowed the st_size value.  Presuming the "can't happen" condition
76243         is true, that narrowing could conceivably convert an invalid st_size
76244         value into a valid one.  Instead, use a change based on Matthew
76245         Woehlke's original patch.
76246
76247         Slight readability improvement: use an assert-like macro
76248         in place of literal "abort ()" uses.
76249         * lib/fts.c (fts_assert): Define.
76250         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76251         Use this macro instead of a bare 'abort'.
76252
76253 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76256         simply work around them.
76257         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76258         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76259         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76260         declaring.
76261         Don't bother to define as macros, since the standard doesn't require it.
76262         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76263         longer worry about IRIX 5.3.
76264         (HAVE_WCTYPE_CTMP_BUG): Remove.
76265
76266 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76269         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76270         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76271         Problems reported by Georg Schwarz for IRIX 5.3.
76272
76273         * gnulib-tool (autoconf_minversion): Take the maximum version number
76274         found, not the minimum.  Problem reported by James Youngman.
76275
76276 2007-01-03  Karl Berry  <karl@gnu.org>
76277
76278         * doc/error.texi: new file, explaining interaction with progname.
76279         * doc/gnulib.texi: include it.  Update copyright.
76280
76281 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76282
76283         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76284         AC_CANONICAL_HOST, to improve autobuild outputs.
76285
76286 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76287             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76288
76289         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76290         sockets, server sockets, and other file descriptors.  Count errors
76291         to compute the return value.  Reorder the code a bit to be easier
76292         to follow.  Don't set event bits that were not requested (except
76293         POLLERR and POLLHUP).
76294
76295 2007-01-01  Bruno Haible  <bruno@clisp.org>
76296
76297         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76298
76299 2007-01-03  Jim Meyering  <jim@meyering.net>
76300
76301         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76302
76303 2007-01-02  Bruno Haible  <bruno@clisp.org>
76304
76305         * modules/settime (Include): Require timespec.h.
76306         * modules/nanosleep (Include): Likewise.
76307
76308 2007-01-01  Bruno Haible  <bruno@clisp.org>
76309
76310         * gnulib-tool (func_emit_copyright_notice): Bump year.
76311         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76312
76313 2007-01-01  Bruno Haible  <bruno@clisp.org>
76314
76315         Improve support for OpenBSD.
76316         * build-aux/config.rpath (libname_spec): Export.
76317         (library_names_spec): New variable. Export.
76318         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76319         library_names_spec from the config.rpath output. Locate shared library
76320         through the name pattern in library_names_spec.
76321
76322 2007-01-01  Eric Blake  <ebb9@byu.net>
76323
76324         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76325
76326 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76329         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76330         assume the C locale, and avoid an "eval" that could cause trouble.
76331         Problem with SORT reported by Bob Proulx.
76332
76333         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76334         Define.  Trivial patch from Henning Nielsen Lund, originally
76335         sent to bug-grep@gnu.org today.
76336
76337 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76340         struct stat.  Problem reported by Henning Nielsen Lund.
76341         * lib/acl.c: Include acl.h first, to check interface.  Don't
76342         bother to include sys/types.h and sys/stat.h again.
76343
76344 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         Import the following change from libc; problem reported by
76347         Sven Verdoolaege.
76348
76349         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76350
76351         [BZ #1373]
76352         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76353
76354 2006-12-28  Jim Meyering  <jim@meyering.net>
76355
76356         * build-aux/announce-gen: Do not assume that the package
76357         builds any of tar.gz, tar.bz2, and .xdelta files.
76358         Suggestion from Simon Josefsson.
76359
76360 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76361
76362         * modules/announce-gen: New file.
76363
76364 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76367         handles its gotchas now.
76368         * lib/mbswidth.c: Likewise.
76369         * lib/wcwidth.h: Likewise.
76370         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76371         and iswcntrl; the wctype module does this stuff now.
76372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76374         * modules/mbchar (Depends-on): Add wctype.
76375         * modules/mbswidth (Depends-on): Likewise.
76376         * modules/wcwidth (Depends-on): Likewise.
76377
76378 2006-12-27  Eric Blake  <ebb9@byu.net>
76379
76380         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76381         module uses more than what <wctype.h> is required to provide.
76382
76383 2006-12-26  Eric Blake  <ebb9@byu.net>
76384
76385         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76386
76387 2006-12-26  Eric Blake  <ebb9@byu.net>
76388
76389         * modules/absolute-header: New module.
76390         * modules/fcntl (Depends-on): Depend on it.
76391         * modules/inttypes (Depends-on): Likewise.
76392         * modules/stdint (Depends-on): Likewise.
76393         * modules/sys_stat (Depends-on): Likewise.
76394         * modules/wctype (Depends-on): Likewise.
76395         * MODULES.html.sh (Support for building libraries and
76396         executables): Document it.
76397
76398 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * gnulib-tool (SED): Remove, undoing previous change.
76401         The problem was that it broke coreutils on Solaris, because
76402         "sed --posix" leaked into a makefile.
76403         (sed): New alias, if 'alias' and GNU sed.
76404
76405 2006-12-24  Jim Meyering  <jim@meyering.net>
76406
76407         Work around an fchownat bug in glibc-2.4:
76408         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76409         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76410         in spite of the -P option.
76411         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76412         New macros.
76413         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76414         * modules/openat (Files): Add lib/fchownat.c.
76415         * lib/openat.c (fchownat): Don't define here.  Move to...
76416         * lib/fchownat.c: ...this new file.
76417
76418 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76419
76420         Fix bug reported by Bruno Haible in
76421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76422         where quotearg.c didn't compile on Mac OS X 10.2 because it
76423         lacks <wchar.h> and wint_t.
76424         * lib/wctype_.h (__wctype_wint_t): New type.
76425         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76426         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76427         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76428         Arg is now of type __wctype_wint_t, not wint_t.
76429         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76430         substitute HAVE_WINT_T.
76431         * modules/wctype (Files): Add m4/wint_t.m4.
76432         (wctype.h): Substitute HAVE_WINT_T.
76433
76434 2006-12-23  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76437
76438 2006-12-23  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76441         S_ISLNK.
76442         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76443         mingw.
76444
76445 2006-12-22  Bruno Haible  <bruno@clisp.org>
76446
76447         * lib/copy-file.c: Include acl.h.
76448         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76449         Close the file descriptors only after being done with copy_acl.
76450         * modules/copy-file (Depends-on): Add acl.
76451
76452 2006-12-22  Bruno Haible  <bruno@clisp.org>
76453
76454         * gnulib-tool (SED): New variable.
76455         Use $SED instead of sed everywhere.
76456
76457 2006-12-22  Bruno Haible  <bruno@clisp.org>
76458
76459         * modules/no-c++: New file.
76460         * m4/no-c++.m4: New file.
76461         * MODULES.html.sh (Support for building libraries and executables):
76462         Add no-c++.
76463
76464 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76465
76466         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76467         Include <limits.h>, and use its INT_MAX to rewrite the
76468         j loop so that it does not overflow 'int'.  Problem reported by
76469         Ralf Wildenhues in
76470         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76471         Play it safe by shifting left by 1 rather than multiplying by 2,
76472         as GCC is less likely to optimize this away when the value
76473         is signed (when it assumes overflow leads to undefined behavior).
76474         Also, don't assume time_t uses two's complement.
76475
76476 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * MODULES.html.sh: New module wctype.
76479         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76480         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76481         <wctype.h>, since the new wctype module should fix this.
76482         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76483         the wctype module should arrange for it.
76484         * lib/regex_internal.h: Likewise.
76485         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76486         since the wctype module should handle this now.
76487         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76488         * modules/fnmatch (Depends-on): Add wctype.
76489         * modules/quotearg (Depends-on): Likewise.
76490         * modules/regex (Depends-on): Likewise.
76491
76492 2006-12-19  Bruno Haible  <bruno@clisp.org>
76493
76494         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76495         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76496
76497 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76498
76499         * modules/savewd (Depends-on): Fix dependency on fcntl.
76500
76501 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76504         conforms to C99, rather than relying on the user's environment
76505         setting of STDINT_H.
76506
76507 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76508         and Eric Blake  <ebb9@byu.net>
76509
76510         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76511         This is more consistent with the other defines here.
76512         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76513         Port to z/OS.  Problem reported by Paul Gilmartin.
76514         Change local vars to use gl_ prefix rather than ac_.
76515         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76516         with other defines.
76517         * modules/double-slash-root: New module.
76518         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76519         (Depends-on): Add double-slash-root.
76520         * MODULES.html.sh (File system functions): Mention new module.
76521
76522 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76525         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76526         This is for the benefit of gzip, which doesn't do i18n.
76527
76528 2006-12-12  Jim Meyering  <jim@meyering.net>
76529
76530         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76531         Reported by Andreas Schwab <schwab@suse.de>.
76532
76533 2006-12-12  Bruno Haible  <bruno@clisp.org>
76534
76535         Merge these changes.
76536         2006-09-05  Bruno Haible  <bruno@clisp.org>
76537         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76538         iconv_alloc succeeded.
76539         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76540         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76541         test for " && dest " at the end - dest is always != NULL there. Call
76542         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76543         with 2xNULL arguments, also to flush the state storage. Handle the
76544         IRIX iconv behaviour. Realloc the final result, to throw away unused
76545         memory.
76546
76547 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76550         and fchmodat unconditionally, since glibc 2.4 has them.
76551         Problem reported by Arkadiusz Miskiewicz.
76552
76553 2006-12-10  Bruno Haible  <bruno@clisp.org>
76554
76555         * gnulib-tool (func_import): Show the include files only for those
76556         modules that are copied and specified.
76557         Reported by Karl Berry.
76558
76559 2006-12-08  Jim Meyering  <jim@meyering.net>
76560
76561         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76562         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76563
76564         * build-aux/announce-gen: Add two new options, both optional:
76565         --bootstrap-tools=TOOL_LIST
76566               a comma-separated list of tools, e.g.,
76567               autoconf,automake,bison,gnulib
76568         --gnulib-snapshot-date=DATE
76569               if gnulib is in the bootstrap tool list,
76570               then report this as the snapshot date.
76571               If not specified, use the current date/time.
76572               If you specify a date here, be sure it's UTC.
76573
76574 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76575
76576         * tests/test-argp-2.sh: Fix test to match actual output.
76577         (func_compare): Fix sed script to be portable.
76578
76579 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76582         workaround for this case.  It is not autoconfigured now; offhand
76583         it's hard to see how to autoconfigure it.
76584
76585 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76588         a directory that is about to be chowned.  Such a directory's
76589         initial file permissions should permit the owner only and this
76590         should not be changed until after the chown, since the group and
76591         other bits would be incorrect if they granted permission before
76592         the chown.
76593
76594         Fix porting problem for iswctype reported by Georg Schwarz in:
76595         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76596         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76597         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76599         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76600
76601 2006-12-03  Jim Meyering  <jim@meyering.net>
76602
76603         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76604         p->fts_statp may not yet be defined.
76605         (fts_read): Instead, set it in the caller, once p->fts_statp is
76606         sure to be defined, and corresponds to a top-level directory.
76607         This bug made du -x fail.  Here's the coreutils test case:
76608         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76609         Reported by Mike Frysinger.
76610
76611 2006-12-01  Jim Meyering  <jim@meyering.net>
76612
76613         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76614         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76615         Reported by Simon Josefsson.
76616
76617 2006-11-30  Jim Meyering  <jim@meyering.net>
76618
76619         * m4/warning.m4: Use the all-permissive copyright notice
76620         recommended by RMS (rather than LGPL).
76621         * m4/vararrays.m4: Likewise.
76622         * m4/flexmember.m4: Likewise.
76623
76624 2006-11-29  Bruno Haible  <bruno@clisp.org>
76625
76626         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76627         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76628         using +=.
76629         Reported by Simon Josefsson <simon@josefsson.org>.
76630
76631 2006-11-28  James Youngman <jay@gnu.org>
76632
76633         * README: Advise users that they might find the bug-gnulib@gnu.org
76634         and autotools-announce@gnu.org mailing lists useful.
76635
76636 2006-11-28  Bruno Haible  <bruno@clisp.org>
76637
76638         * m4/ptrdiff_max.m4: Remove file.
76639
76640 2006-11-21  Bruno Haible  <bruno@clisp.org>
76641
76642         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76643         _AC_COMPUTE_INT.
76644         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76645         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76646         _AC_COMPUTE_INT.
76647         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76648         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76649         _AC_COMPUTE_INT.
76650         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76651
76652 2006-11-28  Jim Meyering  <jim@meyering.net>
76653
76654         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76655         warning from "gcc -Wshadow" about shadowing the builtin.
76656
76657 2006-11-27  Bruno Haible  <bruno@clisp.org>
76658
76659         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76660         _AC_COMPUTE_INT.
76661         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76662
76663 2006-11-27  Bruno Haible  <bruno@clisp.org>
76664             Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76667
76668 2006-11-26  Bruno Haible  <bruno@clisp.org>
76669
76670         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76671         noinst_LTLIBRARIES.
76672
76673 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76674             Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76677         if compiling with "gcc -ansi".
76678
76679 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         Fix some incompatibilities with gcc -ansi -pedantic.
76682         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76683         if compiling pedantically with GCC, unless it's C99 or later.
76684         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76685         it mishandles gcc -ansi -pedantic as well.
76686         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76687         if gcc -pedantic.
76688         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76689         initializers for struct if -pedantic, unless it's C99 or later.
76690
76691 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76692
76693         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76694         Don't close an fd more than once. Identical atimes indicate
76695         success, not failure.
76696
76697 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76698
76699         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76700
76701 2006-11-23  Jim Meyering  <jim@meyering.net>
76702
76703         * build-aux/announce-gen: New file.  From coreutils.
76704
76705 2006-11-22  Jim Meyering  <jim@meyering.net>
76706
76707         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76708         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76709         (fts_read): Use a temporary to narrow the overused st_size member
76710         before using it in a switch statement.  Reported by Matthew Woehlke.
76711
76712         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76713         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76714
76715 2006-11-20  Bruno Haible  <bruno@clisp.org>
76716
76717         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76718         changequote instead of pairs of brackets.
76719         Reported by Andreas Schwab <schwab@suse.de>.
76720
76721 2006-11-21  Jim Meyering  <jim@meyering.net>
76722
76723         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76724         so as to remain compatible with older compilers.
76725         Patch from Michael Deutschmann.
76726
76727 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * MODULES.html.sh (File system functions): Add openat.
76730
76731         * lib/openat.h (rpl_fstatat): New macro, if
76732         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76733         (fstatat): Define to rpl_fstatat under the same conditions,
76734         unless COMPILING_FSTATAT.
76735         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76736         seems to have the bug.
76737         * lib/fstatat.c: New file.
76738         * modules/openat (Files): Add it.
76739
76740 2006-11-20  Bruno Haible  <bruno@clisp.org>
76741
76742         * Makefile: New file.
76743
76744 2006-11-20  Jim Meyering  <jim@meyering.net>
76745
76746         The beginnings of syntax-related checks for gnulib.
76747         * lib/Makefile: New file.
76748         * lib/t-idcache: New script.  Ensure that the two halves of
76749         idcache.c stay in sync.
76750
76751         * lib/idcache.c: Adjust comments in user- and group- portions to
76752         be more accurate, and to be consistent with one another.
76753
76754 2006-11-20  Jim Meyering  <jim@meyering.net>
76755
76756         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76757         continue using the flexible array member (thus, this module performs
76758         half as many malloc calls), with the addition that...
76759         (getgroup, getuser): Consistently record a non-match via an empty
76760         "name" string, and map an empty string match to a NULL return value.
76761         * modules/idcache (Depends-on): Re-add flexmember.
76762
76763         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76764         (getuidbyname, getgroup, getgidbyname): Likewise.
76765
76766         Use cleaner syntax: NULL rather than 0.
76767         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76768
76769 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76772         It mishandled the case where the group was missing.
76773         Problem reported by Greg Schafer.
76774         * modules/idcache: Likewise.
76775
76776 2006-11-18  Jim Meyering  <jim@meyering.net>
76777
76778         * check-module (%exempt_header): Add exception for some
76779         conditionally-included headers.
76780
76781         * modules/i-ring (Depends-on): Add verify.
76782         (License): Change to LGPL.
76783
76784 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76787         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76788         and inttostr.h.  Use snprintf rather than uinttostr, so that
76789         LGPLed code doesn't depend on GPLed.
76790
76791 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * modules/inline (License): Change from GPL to LGPL.
76794
76795 2006-11-17  Jim Meyering  <jim@meyering.net>
76796
76797         * modules/d-type (License): Switch to LGPL.
76798
76799 2006-11-15  Bruno Haible  <bruno@clisp.org>
76800
76801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76802
76803 2006-11-15  Eric Blake  <ebb9@byu.net>
76804
76805         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76806         the module dependency.
76807
76808 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76809             Bruno Haible  <bruno@clisp.org>
76810
76811         * gnulib-tool (func_create_testdir): Add license consistency check.
76812
76813 2006-11-15  Eric Blake  <ebb9@byu.net>
76814
76815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76816         random "(cached)" in configure output.
76817
76818 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76819
76820         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76821         test for conforming inttypes.h is both announced and cached.
76822
76823         * MODULES.html.sh (seen_modules, seen_files): New variables.
76824         (func_module): Rewrite to use a few less gnulib-tool and sed
76825         invocations.  Avoid a couple of quadratic algorithms for ...
76826         (missed_modules, missed_files): ... these, with ...
76827         (func_append, func_tmpdir): ... these new functions, from
76828         gnulib-tool.  Analogously, install traps for cleanup.
76829
76830         * tests/test-gc.c (main): Remove unused variables.
76831         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76832
76833 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * modules/inttostr (License): Change to LGPL.
76836
76837 2006-11-14  Eric Blake  <ebb9@byu.net>
76838
76839         * modules/tempname (License): Change to LGPL.
76840
76841 2006-11-14  Eric Blake  <ebb9@byu.net>
76842
76843         * doc/functions.texi (Function Portability): *printf functions on
76844         Cygwin now understand all POSIX size specifiers.
76845
76846 2006-11-14  Bruno Haible  <bruno@clisp.org>
76847
76848         * modules/c-ctype (License): Change to LGPL.
76849
76850 2006-11-12  Bruno Haible  <bruno@clisp.org>
76851
76852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76853         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76854         for GNOME libraries, for which the include files are installed in
76855         subdirectories of $prefix/include.
76856
76857 2006-11-12  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/lib-link.m4: Require at least autoconf-2.54.
76860         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76861         name to underscores for the --with option.
76862
76863 2006-11-13  Bruno Haible  <bruno@clisp.org>
76864
76865         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76866         the tests directory.
76867         Reported by Ralf Wildenhues.
76868
76869 2006-11-13  Bruno Haible  <bruno@clisp.org>
76870
76871         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76872         (func_emit_initmacro_end): Undo the override here.
76873         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76874         Works around the famous automake error in coreutils.
76875
76876 2006-11-13  Eric Blake  <ebb9@byu.net>
76877
76878         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76879         element, not its node.
76880
76881 2006-11-12  Bruno Haible  <bruno@clisp.org>
76882
76883         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76884         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76885
76886 2006-11-12  Bruno Haible  <bruno@clisp.org>
76887
76888         * gnulib-tool: New option --local-symlink.
76889         (func_usage): Document it.
76890         (lsymbolic): New variable.
76891         (func_import, func_create_testdir): If --symlink was not specified,
76892         test whether --local-symlink was specified and the file comes from
76893         the local_gnulib_dir.
76894
76895 2006-11-12  Bruno Haible  <bruno@clisp.org>
76896
76897         * gnulib-tool (func_ln): New function.
76898         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76899
76900 2006-11-12  Bruno Haible  <bruno@clisp.org>
76901
76902         Finish support for source files in subdirectories.
76903         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76904         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76905         AUTOMAKE_OPTIONS.
76906         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76907
76908 2006-11-12  Bruno Haible  <bruno@clisp.org>
76909
76910         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76911         EXTRA_lib_SOURCES augmentation.
76912         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76913
76914 2006-11-12  Jim Meyering  <jim@meyering.net>
76915
76916         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76917         file descriptors.  This also averts a failure on systems with
76918         native openat support when a traversed directory lacks "x" access.
76919         * lib/fts_.h: Include "i-ring.h"
76920         (struct FTS) [fts_fd_ring]: New member.
76921         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76922         (FCHDIR): Add parentheses.
76923         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76924         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76925         When descending, rather than simply closing the previous
76926         fts_cwd_fd value, push that file descriptor onto the ring.
76927         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76928         (fts_open): Initialize the new fd_ring member.
76929         (fts_close): Clear the ring.
76930         (fts_safe_changedir): When possible, use our new fd_ring to skip
76931         the diropen and fstat and dev/ino comparison that would normally
76932         accompany a virtual `chdir ("..")'.
76933
76934         * modules/fts (Depends-on): Add i-ring.
76935         * modules/i-ring: New module.
76936         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76937         * m4/i-ring.m4: New file.
76938
76939 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76940
76941         * gnulib-tool (func_create_testdir): Fix replacement of
76942         `build-aux' in configure.ac.  Run autotools in gltests
76943         subdirectory.
76944         (func_create_testdir, func_create_megatestdir, test): There is
76945         no need for '--force' in most autotool invocations in a new
76946         tree.  Actually fail the whole test if any of the tools, or the
76947         configure or make stages fail.
76948
76949         Sync from Automake.
76950         * build-aux/gnupload: Revert last change.  Add pointer to upload
76951         instructions of the GNU Maintenance Instructions.
76952         Suggestion by Karl Berry.
76953
76954 2006-11-10  Jim Meyering  <jim@meyering.net>
76955
76956         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76957
76958 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76961         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76962         (bind_textdomain_codeset) [! ENABLE_NLS]:
76963         Evaluate all the arguments.  That way, callers get compatible behavior
76964         if the arguments have side effects.  Also, it avoids some GCC
76965         diagnostics in some cases; Joel E. Denny reported problems when Bison
76966         was configured with --enable-gcc-warnigs.
76967
76968 2006-11-10  Jim Meyering  <jim@meyering.net>
76969
76970         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76971         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76972         account.
76973
76974 2006-11-10  Jim Meyering  <jim@meyering.net>
76975
76976         * modules/inline: New file/module.
76977         * modules/xalloc (Files): Remove m4/inline.m4.
76978         (Depends-on): Add inline, instead.
76979         * modules/oset: Likewise.
76980         * modules/list: Likewise.
76981
76982 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76985         Problem reported by Matthew Woehlke.
76986
76987 2006-11-09  Bruno Haible  <bruno@clisp.org>
76988
76989         * lib/tempname.c (gen_tempname): Remove variant that invokes
76990         __gen_tempname.
76991         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76992         __gen_tempname.
76993
76994 2006-11-08  Bruno Haible  <bruno@clisp.org>
76995
76996         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76997         to 'yes' instead of 'cross-compiling'.
76998
76999 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * lib/quotearg.h (quotearg_free): New decl.
77002         * lib/quotearg.c (quotearg_free): New function.
77003         (slot0, nslots, slotvec0, slotvec):
77004         Now file-scope so that quotearg_free can get at them.
77005
77006 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77007
77008         Sync from Automake.
77009         * build-aux/gnupload: Add missing 'gnu' to example URL.
77010         Report by Karl Berry.
77011
77012 2006-11-08  Bruno Haible  <bruno@clisp.org>
77013
77014         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77015         Suggested by Paul Eggert.
77016
77017 2006-11-08  Jim Meyering  <jim@meyering.net>
77018
77019         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77020         It's already included if !_LIBC.
77021         (fts_safe_changedir): Add a comment.
77022
77023 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77026         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77027         Matthew Woehlke.
77028
77029         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77030         definitions up, to avoid colliding with change below.
77031         (static_inline) [HAVE_INLINE]: New macro.
77032         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77033         Provide extern decls when !HAVE_INLINE.  Do not define unless
77034         static_inline is defined, either by us or by xmalloc.c.  Use
77035         static_inline rather than static inline.
77036         (XCALLOC): Optimize sizeof(T) = 1 case.
77037         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77038
77039 2006-11-07  Bruno Haible  <bruno@clisp.org>
77040
77041         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77042         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77043         AC_C_INLINE.
77044         * modules/xalloc (Files): Add m4/inline.m4.
77045
77046 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77047
77048         * README: Fix typo.
77049         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77050         (Miscellanous Notes): ...from this.
77051
77052 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77055         Mention that offsetof should be used instead of sizeof.
77056         From Bruno Haible.
77057
77058 2006-11-07  Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77061
77062 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77063
77064         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77065         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77066         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77067         (gl_tree_add_before, gl_tree_add_after):
77068         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77069         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77070         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77071         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77072         (gl_linked_add_after, gl_linked_add_at): Likewise.
77073         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77074         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77075         (gl_tree_add_before, gl_tree_add_after): Likewise.
77076         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77077         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77078         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77079
77080 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77081
77082         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77083
77084 2006-11-06  Bruno Haible  <bruno@clisp.org>
77085
77086         * m4/inline.m4: New file.
77087         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77088         * modules/list (Files): Add m4/inline.m4.
77089         * modules/oset (Files): Likewise.
77090
77091 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         * lib/idcache.c: Include <stddef.h>, for offsetof.
77094         (struct userid.name): Change from char * to a flexible array member.
77095         All uses changed.
77096         * modules/idcache (Depends-on): Add flexmember.
77097
77098         * MODULES.html.sh (Core language properties): New module flexmember.
77099         * modules/flexmember, m4/flexmember.m4: New files.
77100
77101         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77102         inline functions that are identical with the old xnmalloc_inline,
77103         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77104         that we can avoid some unnecessary integer multiplications and
77105         divisions in the common case where the element size is known at
77106         compile time.
77107         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77108         needed.
77109         (xnboundedmalloc): Remove.
77110         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77111         arguments, for consistency with rest of this header.
77112         (xcharalloc): Rewrite using XNMALLOC.
77113         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77114         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77115         versions have been moved to lib/xalloc.h and renamed to be the
77116         non-*_inline versions.
77117         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77118         and xnrealloc functions, since those functions are now inline and
77119         now call us.
77120         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77121         renaming described above.
77122         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77123         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77124         captures the dependency in AC_C_INLINE.
77125
77126         New module canonicalize-lgpl, proposed by Charles Wilson in
77127         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77128         with a few small changes afterwards.
77129         * MODULES.html.sh (File system functions): New module
77130         canonicalize-lgpl.
77131         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77132         and canonicalize_file_name.
77133         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77134         * modules/canonicalize-lgpl: New files.
77135
77136 2006-11-05  Bruno Haible  <bruno@clisp.org>
77137
77138         * gnulib-tool (func_import, func_create_testdir): Create directories
77139         also for files in subdirectories of lib/.
77140
77141 2006-11-05  Bruno Haible  <bruno@clisp.org>
77142
77143         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77144         ANSI C compliant.
77145
77146 2006-11-03  Bruno Haible  <bruno@clisp.org>
77147
77148         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77149         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77150         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77151         (xnboundedmalloc): New inline function.
77152         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77153         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77154         xmalloc.
77155         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77156         xmalloc.
77157         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77158         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77159         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77160         xmalloc.
77161         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77162         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77163         xmalloc.
77164         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77165         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77166         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77167         xmalloc.
77168         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77169         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77170         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77171         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77172         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77173         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77174         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77175
77176 2006-11-03  Bruno Haible  <bruno@clisp.org>
77177
77178         * lib/c-ctype.h [C++]: Define functions without name mangling.
77179         * lib/fwriteerror.h [C++]: Likewise.
77180         * lib/gcd.h [C++]: Likewise.
77181         * lib/linebreak.h [C++]: Likewise.
77182
77183 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77186         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77187         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77188         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77189         Check for functions and headers just once.
77190         Check for declaration of canonicalize_file_name.
77191         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77192
77193 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77194
77195         * gnulib-tool (func_import): Fix typo in actioncmd.
77196
77197 2006-11-02  Bruno Haible  <bruno@clisp.org>
77198
77199         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77200         newline sequence in the Makefile.am snippet as a space, like "make"
77201         does.
77202         Reported by Roger Persson <perrog@gmail.com>.
77203
77204 2006-11-01  Bruno Haible  <bruno@clisp.org>
77205
77206         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77207         already declared in <string.h>.
77208         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77209
77210 2006-11-01  Bruno Haible  <bruno@clisp.org>
77211
77212         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77213         * lib/strcase.h: Include <string.h>.
77214         (strcasecmp): Define to rpl_strcasecmp here.
77215
77216 2006-11-01  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77219
77220 2006-11-01  Eric Blake  <ebb9@byu.net>
77221
77222         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77223
77224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77225
77226 2006-10-29  Bruno Haible  <bruno@clisp.org>
77227
77228         Make it compile in C++ mode.
77229         * lib/full-write.c (full_rw): Add a cast.
77230
77231 2006-11-01  Bruno Haible  <bruno@clisp.org>
77232
77233         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77234         be POSIX compliant.
77235         Reported by Roger Persson <perrog@gmail.com>.
77236
77237 2006-11-01  Eric Blake  <ebb9@byu.net>
77238
77239         * lib/getopt_.h: Fix comments.
77240
77241 2006-10-31  Eric Blake  <ebb9@byu.net>
77242
77243         * modules/tmpdir (Depends-on): Add sys_stat.
77244         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77245         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77246         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77247         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77248         tempname.
77249
77250 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         Avoid some C++ diagnostics reported by Bruno Haible.
77253         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77254         xmalloc.
77255         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77256         (struct slotvec): Move to top level.
77257         (quotearg_n_options): Rewrite to avoid xmalloc.
77258         * lib/xalloc.h (xcharalloc): New function.
77259         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77260         [defined __cplusplus]: Add function template that provides result
77261         type propagation.  This part of the change is from Bruno Haible.
77262
77263 2006-10-29  Bruno Haible  <bruno@clisp.org>
77264
77265         Make it compile in C++ mode.
77266         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77267         * lib/strnlen1.c (strnlen1): Cast memchr result.
77268         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77269         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77270         (create_temp_dir): Rename local variable 'template'.
77271         (compile_csharp_using_sscli): Add cast.
77272         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77273         * lib/findprog.c (find_in_path): Likewise.
77274         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77275         * lib/wait-process.c (register_slave_subprocess): Likewise.
77276
77277 2006-10-22  Bruno Haible  <bruno@clisp.org>
77278
77279         * modules/tsearch: New file.
77280         * lib/tsearch.h: New file.
77281         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77282         * m4/tsearch.m4: New file.
77283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77284
77285 2006-10-29  Eric Blake  <ebb9@byu.net>
77286
77287         * lib/arcfour.c: Assume config.h.
77288         * lib/arctwo.c: Likewise.
77289         * lib/base64.c: Likewise.
77290         * lib/check-version.c: Likewise.
77291         * lib/crc.c: Likewise.
77292         * lib/des.c: Likewise.
77293         * lib/gc-gnulib.c: Likewise.
77294         * lib/gc-libgcrypt.c: Likewise.
77295         * lib/gc-pbkdf2-sha1.c: Likewise.
77296         * lib/getaddrinfo.c: Likewise.
77297         * lib/getdelim.c: Likewise.
77298         * lib/getline.c: Likewise.
77299         * lib/hmac-md5.c: Likewise.
77300         * lib/hmac-sha1.c: Likewise.
77301         * lib/iconvme.c: Likewise.
77302         * lib/md2.c: Likewise.
77303         * lib/md4.c: Likewise.
77304         * lib/memxor.c: Likewise.
77305         * lib/read-file.c: Likewise.
77306         * lib/readline.c: Likewise.
77307         * lib/rijndael-alg-fst.c: Likewise.
77308         * lib/rijndael-api-fst.c: Likewise.
77309         * lib/xgetdomainname.c: Likewise.
77310
77311 2006-10-28  Eric Blake  <ebb9@byu.net>
77312
77313         * lib/xstrndup.c: Assume config.h.
77314
77315 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77316
77317         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77318         stat-macros.h is now for our own macros, whereas stat_h is for
77319         macros in the <sys/stat.h> name space.
77320         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77321         (STAT_MACROS_H): Remove.
77322         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77323         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77324         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77325         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77326         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77327         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77328         Move these macros to ...
77329         * lib/stat_.h: here.  Don't include stat-macros.h.
77330         * lib/canonicalize.c: Don't include stat-macros.h.
77331         * lib/chown.c: Likewise.
77332         * lib/euidaccess.c: Likewise.
77333         * lib/file-type.c: Likewise.
77334         * lib/filemode.c: Likewise.
77335         * lib/glob.c: Likewise.
77336         * lib/isapipe.c: Likewise.
77337         * lib/lchown.c: Likewise.
77338         * lib/lstat.c: Likewise.
77339         * lib/mkdir-p.c: Likewise.
77340         * lib/rmdir.c: Likewise.
77341         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77342         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77343         unless mkdir isn't declared, to speed up 'configure'.
77344         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77345         would define all the S_* symbols.
77346         * modules/canonicalize (Depends-on):
77347         Depend on sys_stat, not stat-macros.
77348         * modules/chown: Likewise.
77349         * modules/euidaccess: Likewise.
77350         * modules/filemode: Likewise.
77351         * modules/file-type: Likewise.
77352         * modules/glob: Likewise.
77353         * modules/isapipe: Likewise.
77354         * modules/lchown: Likewise.
77355         * modules/lstat: Likewise.
77356         * modules/mkancesdirs: Likewise.
77357         * modules/rmdir: Likewise.
77358         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77359         * modules/modechange: Likewise.
77360         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77361         (configure.ac): Remove gl_STAT_MACROS.
77362         * modules/sys_stat (Depends-on): Remove stat-macros.
77363
77364 2006-10-27  Bruno Haible  <bruno@clisp.org>
77365
77366         * m4/signed.m4: Remove file.
77367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77368         invocation.
77369         * modules/vasnprintf (Files): Remove m4/signed.m4.
77370
77371 2006-10-27  Bruno Haible  <bruno@clisp.org>
77372
77373         Update to GNU gettext 0.16.
77374         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77375         m4/inttypes-h.m4, m4/signed.m4.
77376         * m4/gettext.m4: Update to GNU gettext 0.16.
77377         * m4/intl.m4: New file, from GNU gettext.
77378         * m4/intldir.m4: New file, from GNU gettext.
77379         * config/srclist.txt: Update
77380
77381 2006-10-27  Eric Blake  <ebb9@byu.net>
77382
77383         * MODULES.html.sh: Document tempname.
77384         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77385         dependencies.
77386         (Files): Move lib/tempname.c...
77387         * modules/tempname: ...to this new module.
77388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77389         (gl_PREREQ_TEMPNAME): Move...
77390         * m4/tempname.m4: ...to this new file.
77391         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77392         * modules/sys_stat (Depends-on): Add stat-macros.
77393         * lib/stat_.h (includes): Pick up stat macros.
77394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77395         if stat macros are broken.
77396         * lib/tempname.c (includes): No need to include "stat-macros.h".
77397         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77398         (direxists, __path_search) [!_LIBC]: Don't compile these in
77399         gnulib; the tmpdir module covers that.
77400         * lib/tempname.h: New file.
77401
77402 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77403
77404         * COPYING: Explain how gnulib-tool converts licence headers.
77405         Almost all wording by Eric Blake.
77406
77407 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/mbchar.h (is_basic_table): Make read-only.
77410         * lib/mbchar.c (is_basic_table): Likewise.
77411         Reported by John Darrington.
77412
77413 2006-10-25  Bruno Haible  <bruno@clisp.org>
77414
77415         * lib/progname.h (set_program_name): Undefine before defining.
77416
77417 2006-10-25  Bruno Haible  <bruno@clisp.org>
77418
77419         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77420         false for non-gcc C++ compilers.
77421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77422
77423 2006-10-24  Bruno Haible  <bruno@clisp.org>
77424
77425         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77426         iconv implementations like Irix iconv.
77427
77428 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         * modules/vararrays: New file.
77431         * m4/vararrays.m4: New file, taken from diffutils.
77432         * MODULES.html.sh: New module vararrays.
77433
77434 2006-10-24  Karl Berry  <karl@gnu.org>
77435
77436         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77437         Don't call GNU Unix.
77438
77439 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77440
77441         * users.txt: Add Libtool.
77442
77443         Sync from Libtool:
77444
77445         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77448         to gnulib's policy of including config.h unconditionally.
77449
77450 2006-10-24  Bruno Haible  <bruno@clisp.org>
77451
77452         * modules/wcwidth (Files): Add m4/wint_t.m4.
77453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77454         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77455
77456 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77459         to pacify GCC with some -W flags enabled.  Problem reported by
77460         Bruno Haible.
77461
77462 2006-10-24  Jim Meyering  <jim@meyering.net>
77463
77464         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77465         Reported by Karl Berry.
77466
77467 2006-10-23  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77470
77471 2006-10-24  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/gl_list.h: Use C comment style, not C++ comment style.
77474
77475 2006-10-23  Eric Blake  <ebb9@byu.net>
77476
77477         * lib/getaddrinfo.c (includes): Add missing include.
77478
77479 2006-10-23  Bruno Haible  <bruno@clisp.org>
77480             Paul Eggert  <eggert@cs.ucla.edu>
77481
77482         Ability to rename obstack_free.
77483         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77484         obstack_free.
77485         (obstack_free): Invoke the __obstack_free macro.
77486         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77487
77488 2006-10-23  Bruno Haible  <bruno@clisp.org>
77489             Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77492         __argc, __argv from the declaration. (They are defined as macros on
77493         mingw.)
77494
77495 2006-10-22  Bruno Haible  <bruno@clisp.org>
77496
77497         * doc/gnulib-intro.texi: New file.
77498         * doc/gnulib.texi: Include it.
77499
77500 2006-10-21  Bruno Haible  <bruno@clisp.org>
77501
77502         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77503         "Introduction", "Miscellanous Notes", "Particular Modules".
77504
77505 2006-10-21  Bruno Haible  <bruno@clisp.org>
77506
77507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77508         Change mostlyclean-local rule to avoid sh syntax error from bash
77509         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77510
77511 2006-10-23  Jim Meyering  <jim@meyering.net>
77512
77513         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77514         in place of snprintf.
77515
77516         * modules/inttostr (Files): Add lib/uinttostr.c.
77517         * lib/uinttostr.c (inttostr): New file/function.
77518         * lib/inttostr.h (uinttostr): Declare.
77519         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77520         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77521         Add uinttostr.
77522         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77523
77524 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * lib/canonicalize.c (ELOOP): Define if not already defined.
77527         Problem reported by Bruno Haible in
77528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77529
77530 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77533         Problem reported by Perry Smith and Ville Laurikari.
77534
77535         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77536         uses.
77537
77538 2006-10-19  Bruno Haible  <bruno@clisp.org>
77539
77540         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77541         for mingw.
77542
77543 2006-10-19  Bruno Haible  <bruno@clisp.org>
77544
77545         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77546         Needed for mingw.
77547
77548 2006-10-19  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77551
77552 2006-10-19  Bruno Haible  <bruno@clisp.org>
77553
77554         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77555         it.
77556
77557 2006-10-19  Bruno Haible  <bruno@clisp.org>
77558
77559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77560         invocation.
77561
77562 2006-10-19  Bruno Haible  <bruno@clisp.org>
77563
77564         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77565         mountlist by default.
77566
77567 2006-10-16  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/c-strstr.c: Include c-strstr.h.
77570
77571 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77572
77573         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77574         in a slash.
77575
77576 2006-10-18  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/lock.h [C++]: Wrap definitions in extern "C".
77579
77580 2006-10-18  Bruno Haible  <bruno@clisp.org>
77581
77582         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77583         gl_LIBOBJS list.
77584
77585 2006-10-18  Bruno Haible  <bruno@clisp.org>
77586
77587         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77588
77589 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * lib/xstrtol.h: Include gettext.h.
77592         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77593         Problem reported by Eric Blake.
77594         * modules/xstrtol (Depends-on): Add gettext-h.
77595
77596 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77597
77598         * lib/strftime.c (advance): New macro.
77599         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77600         incomplete type, so you can't add 0 to it.  Problem and patch
77601         reported by Eelco Dolstra for dietlibc.
77602
77603 2006-10-18  Jim Meyering  <jim@meyering.net>
77604
77605         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77606         type for a local, and rename it: s/up/user_proc/.
77607
77608 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77609
77610         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77611         READ_UTMP_USER_PROCESS.
77612         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77613
77614 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77617         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77618
77619 2006-10-17  Eric Blake  <ebb9@byu.net>
77620
77621         * lib/sigprocmask.c (sigprocmask): Fix typo.
77622
77623         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77624
77625         * modules/clean-temp (Makefile.am): Don't add to make output...
77626         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77627         config.h.
77628
77629 2006-10-17  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77632         differently if DEFAULT_TEXT_DOMAIN is set.
77633
77634 2006-10-16  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/clean-temp.c: Include fwriteerror.h.
77637
77638 2006-10-16  Bruno Haible  <bruno@clisp.org>
77639
77640         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77641
77642 2006-10-16  Bruno Haible  <bruno@clisp.org>
77643
77644         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77645         * lib/sigprocmask.h: Include <sys/types.h>.
77646         (sigset_t): Use the system's definition if present.
77647
77648 2006-10-17  Eric Blake  <ebb9@byu.net>
77649
77650         * lib/xvasprintf.c (includes): Assume config.h.
77651         * lib/xasprintf.c (includes): Likewise.
77652
77653 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77654
77655         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77656         at least as wide as intmax_t.
77657
77658 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77659
77660         (Imported from Automake.)
77661         * build-aux/gnupload: Update to version 1.1 of directive file.
77662
77663 2006-10-16  Eric Blake  <ebb9@byu.net>
77664
77665         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77666         match Automake 1.10a.
77667
77668 2006-10-14  Bruno Haible  <bruno@clisp.org>
77669
77670         * modules/sigprocmask: New file.
77671         * lib/sigprocmask.h: New file.
77672         * lib/sigprocmask.c: New file.
77673         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77674         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77675         request sigprocmask.o.
77676         (gl_PREREQ_SIGPROCMASK): New macro.
77677         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77678         (Depends-on): Add sigprocmask.
77679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77680         gt_SIGNALBLOCKING. Test for 'raise' only once.
77681         * lib/fatal-signal.c: Include sigprocmask.h.
77682         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77683         unblock_fatal_signals): Define always.
77684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77685         sigprocmask.
77686
77687 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         Sync from Automake.
77690         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77691         which incorrectly sets the mode of an existing destination
77692         directory.  In some cases the unpatched install-sh could do the
77693         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77694         system.  We hope this is rare in practice, but it's clearly worth
77695         fixing.  Problem reported by Alex Unleashed in
77696         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77697         Also, don't bother to check for -m bugs unless we're using -m;
77698         suggested by Stepan Kasal.
77699
77700 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77701
77702         Sync from Automake.
77703         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77704         `-c' flag, so they appear at the same position as in %FASTDEP%
77705         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77706         which ignores unknown options only after the first non-option.
77707         Bug report against M4 by Nelson H. F. Beebe.
77708
77709 2006-10-13  Jim Meyering  <jim@meyering.net>
77710
77711         Fix a bug in yesterday's change.
77712         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77713         p->fts_statp->st_dev would be used uninitialized.
77714         Ensures that we always call fts_stat on the very first entry.
77715         Miklos Szeredi reported that find -xdev stopped working.
77716
77717 2006-10-12  Bruno Haible  <bruno@clisp.org>
77718
77719         * gnulib-tool (func_get_automake_snippet): Append an automatically
77720         computed EXTRA_DIST augmentation.
77721         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77722         * modules/alloca-opt (Makefile.am): Likewise.
77723         * modules/allocsa (Makefile.am): Likewise.
77724         * modules/arcfour (Makefile.am): Likewise.
77725         * modules/arctwo (Makefile.am): Likewise.
77726         * modules/argmatch (Makefile.am): Likewise.
77727         * modules/argz (Makefile.am): Likewise.
77728         * modules/atexit (Makefile.am): Likewise.
77729         * modules/backupfile (Makefile.am): Likewise.
77730         * modules/byteswap (Makefile.am): Likewise.
77731         * modules/c-strtod (Makefile.am): Likewise.
77732         * modules/c-strtold (Makefile.am): Likewise.
77733         * modules/calloc (Makefile.am): Likewise.
77734         * modules/canon-host (Makefile.am): Likewise.
77735         * modules/canonicalize (Makefile.am): Likewise.
77736         * modules/chdir-long (Makefile.am): Likewise.
77737         * modules/chdir-safer (Makefile.am): Likewise.
77738         * modules/check-version (Makefile.am): Likewise.
77739         * modules/chown (Makefile.am): Likewise.
77740         * modules/cloexec (Makefile.am): Likewise.
77741         * modules/close-stream (Makefile.am): Likewise.
77742         * modules/closeout (Makefile.am): Likewise.
77743         * modules/crc (Makefile.am): Likewise.
77744         * modules/csharpexec (Makefile.am): Likewise.
77745         * modules/cycle-check (Makefile.am): Likewise.
77746         * modules/des (Makefile.am): Likewise.
77747         * modules/dev-ino (Makefile.am): Likewise.
77748         * modules/dirfd (Makefile.am): Likewise.
77749         * modules/dirname (Makefile.am): Likewise.
77750         * modules/dup2 (Makefile.am): Likewise.
77751         * modules/eealloc (Makefile.am): Likewise.
77752         * modules/error (Makefile.am): Likewise.
77753         * modules/euidaccess (Makefile.am): Likewise.
77754         * modules/exclude (Makefile.am): Likewise.
77755         * modules/exitfail (Makefile.am): Likewise.
77756         * modules/fcntl-safer (Makefile.am): Likewise.
77757         * modules/fcntl (Makefile.am): Likewise.
77758         * modules/file-type (Makefile.am): Likewise.
77759         * modules/fileblocks (Makefile.am): Likewise.
77760         * modules/filemode (Makefile.am): Likewise.
77761         * modules/filenamecat (Makefile.am): Likewise.
77762         * modules/fnmatch (Makefile.am): Likewise.
77763         * modules/fopen-safer (Makefile.am): Likewise.
77764         * modules/fpending (Makefile.am): Likewise.
77765         * modules/fprintftime (Makefile.am): Likewise.
77766         * modules/free (Makefile.am): Likewise.
77767         * modules/fsusage (Makefile.am): Likewise.
77768         * modules/ftruncate (Makefile.am): Likewise.
77769         * modules/fts (Makefile.am): Likewise.
77770         * modules/gc-arcfour (Makefile.am): Likewise.
77771         * modules/gc-des (Makefile.am): Likewise.
77772         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77773         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77774         * modules/gc-md4 (Makefile.am): Likewise.
77775         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77776         * modules/gc-sha1 (Makefile.am): Likewise.
77777         * modules/gc (Makefile.am): Likewise.
77778         * modules/getaddrinfo (Makefile.am): Likewise.
77779         * modules/getcwd (Makefile.am): Likewise.
77780         * modules/getdelim (Makefile.am): Likewise.
77781         * modules/getdomainname (Makefile.am): Likewise.
77782         * modules/getgroups (Makefile.am): Likewise.
77783         * modules/gethostname (Makefile.am): Likewise.
77784         * modules/gethrxtime (Makefile.am): Likewise.
77785         * modules/getline (Makefile.am): Likewise.
77786         * modules/getloadavg (Makefile.am): Likewise.
77787         * modules/getlogin_r (Makefile.am): Likewise.
77788         * modules/getndelim2 (Makefile.am): Likewise.
77789         * modules/getopt (Makefile.am): Likewise.
77790         * modules/getpagesize (Makefile.am): Likewise.
77791         * modules/getpass-gnu (Makefile.am): Likewise.
77792         * modules/getpass (Makefile.am): Likewise.
77793         * modules/getsubopt (Makefile.am): Likewise.
77794         * modules/gettime (Makefile.am): Likewise.
77795         * modules/gettimeofday (Makefile.am): Likewise.
77796         * modules/getugroups (Makefile.am): Likewise.
77797         * modules/getusershell (Makefile.am): Likewise.
77798         * modules/glob (Makefile.am): Likewise.
77799         * modules/group-member (Makefile.am): Likewise.
77800         * modules/hard-locale (Makefile.am): Likewise.
77801         * modules/hash (Makefile.am): Likewise.
77802         * modules/hmac-md5 (Makefile.am): Likewise.
77803         * modules/hmac-sha1 (Makefile.am): Likewise.
77804         * modules/human (Makefile.am): Likewise.
77805         * modules/idcache (Makefile.am): Likewise.
77806         * modules/imaxabs (Makefile.am): Likewise.
77807         * modules/imaxdiv (Makefile.am): Likewise.
77808         * modules/inet_ntop (Makefile.am): Likewise.
77809         * modules/inet_pton (Makefile.am): Likewise.
77810         * modules/intprops (Makefile.am): Likewise.
77811         * modules/inttostr (Makefile.am): Likewise.
77812         * modules/inttypes (Makefile.am): Likewise.
77813         * modules/isapipe (Makefile.am): Likewise.
77814         * modules/javaversion (Makefile.am): Likewise.
77815         * modules/lchmod (Makefile.am): Likewise.
77816         * modules/lchown (Makefile.am): Likewise.
77817         * modules/localcharset (Makefile.am): Likewise.
77818         * modules/long-options (Makefile.am): Likewise.
77819         * modules/lstat (Makefile.am): Likewise.
77820         * modules/malloc (Makefile.am): Likewise.
77821         * modules/mathl (Makefile.am): Likewise.
77822         * modules/mbchar (Makefile.am): Likewise.
77823         * modules/md2 (Makefile.am): Likewise.
77824         * modules/md4 (Makefile.am): Likewise.
77825         * modules/md5 (Makefile.am): Likewise.
77826         * modules/memcasecmp (Makefile.am): Likewise.
77827         * modules/memchr (Makefile.am): Likewise.
77828         * modules/memcmp (Makefile.am): Likewise.
77829         * modules/memcoll (Makefile.am): Likewise.
77830         * modules/memcpy (Makefile.am): Likewise.
77831         * modules/memmem (Makefile.am): Likewise.
77832         * modules/memmove (Makefile.am): Likewise.
77833         * modules/mempcpy (Makefile.am): Likewise.
77834         * modules/memrchr (Makefile.am): Likewise.
77835         * modules/memset (Makefile.am): Likewise.
77836         * modules/memxor (Makefile.am): Likewise.
77837         * modules/mkancesdirs (Makefile.am): Likewise.
77838         * modules/mkdir-p (Makefile.am): Likewise.
77839         * modules/mkdir (Makefile.am): Likewise.
77840         * modules/mkdtemp (Makefile.am): Likewise.
77841         * modules/mkstemp (Makefile.am): Likewise.
77842         * modules/mktime (Makefile.am): Likewise.
77843         * modules/modechange (Makefile.am): Likewise.
77844         * modules/mountlist (Makefile.am): Likewise.
77845         * modules/nanosleep (Makefile.am): Likewise.
77846         * modules/obstack (Makefile.am): Likewise.
77847         * modules/openat (Makefile.am): Likewise.
77848         * modules/pagealign_alloc (Makefile.am): Likewise.
77849         * modules/pathmax (Makefile.am): Likewise.
77850         * modules/physmem (Makefile.am): Likewise.
77851         * modules/poll (Makefile.am): Likewise.
77852         * modules/posixtm (Makefile.am): Likewise.
77853         * modules/posixver (Makefile.am): Likewise.
77854         * modules/putenv (Makefile.am): Likewise.
77855         * modules/quote (Makefile.am): Likewise.
77856         * modules/quotearg (Makefile.am): Likewise.
77857         * modules/raise (Makefile.am): Likewise.
77858         * modules/read-file (Makefile.am): Likewise.
77859         * modules/readline (Makefile.am): Likewise.
77860         * modules/readlink (Makefile.am): Likewise.
77861         * modules/readtokens (Makefile.am): Likewise.
77862         * modules/readutmp (Makefile.am): Likewise.
77863         * modules/realloc (Makefile.am): Likewise.
77864         * modules/regex (Makefile.am): Likewise.
77865         * modules/rename-dest-slash (Makefile.am): Likewise.
77866         * modules/rename (Makefile.am): Likewise.
77867         * modules/rijndael (Makefile.am): Likewise.
77868         * modules/rmdir (Makefile.am): Likewise.
77869         * modules/rpmatch (Makefile.am): Likewise.
77870         * modules/safe-read (Makefile.am): Likewise.
77871         * modules/safe-write (Makefile.am): Likewise.
77872         * modules/same-inode (Makefile.am): Likewise.
77873         * modules/same (Makefile.am): Likewise.
77874         * modules/save-cwd (Makefile.am): Likewise.
77875         * modules/savedir (Makefile.am): Likewise.
77876         * modules/setenv (Makefile.am): Likewise.
77877         * modules/settime (Makefile.am): Likewise.
77878         * modules/sha1 (Makefile.am): Likewise.
77879         * modules/sig2str (Makefile.am): Likewise.
77880         * modules/snprintf (Makefile.am): Likewise.
77881         * modules/stat-macros (Makefile.am): Likewise.
77882         * modules/stat-time (Makefile.am): Likewise.
77883         * modules/stdbool (Makefile.am): Likewise.
77884         * modules/stdint (Makefile.am): Likewise.
77885         * modules/stdlib-safer (Makefile.am): Likewise.
77886         * modules/stpcpy (Makefile.am): Likewise.
77887         * modules/stpncpy (Makefile.am): Likewise.
77888         * modules/strcase (Makefile.am): Likewise.
77889         * modules/strcasestr (Makefile.am): Likewise.
77890         * modules/strchrnul (Makefile.am): Likewise.
77891         * modules/strcspn (Makefile.am): Likewise.
77892         * modules/strdup (Makefile.am): Likewise.
77893         * modules/strerror (Makefile.am): Likewise.
77894         * modules/strftime (Makefile.am): Likewise.
77895         * modules/strndup (Makefile.am): Likewise.
77896         * modules/strnlen (Makefile.am): Likewise.
77897         * modules/strpbrk (Makefile.am): Likewise.
77898         * modules/strsep (Makefile.am): Likewise.
77899         * modules/strstr (Makefile.am): Likewise.
77900         * modules/strtod (Makefile.am): Likewise.
77901         * modules/strtoimax (Makefile.am): Likewise.
77902         * modules/strtok_r (Makefile.am): Likewise.
77903         * modules/strtol (Makefile.am): Likewise.
77904         * modules/strtoll (Makefile.am): Likewise.
77905         * modules/strtoul (Makefile.am): Likewise.
77906         * modules/strtoull (Makefile.am): Likewise.
77907         * modules/strtoumax (Makefile.am): Likewise.
77908         * modules/strverscmp (Makefile.am): Likewise.
77909         * modules/sys_socket (Makefile.am): Likewise.
77910         * modules/sys_stat (Makefile.am): Likewise.
77911         * modules/sysexits (Makefile.am): Likewise.
77912         * modules/time_r (Makefile.am): Likewise.
77913         * modules/timegm (Makefile.am): Likewise.
77914         * modules/timespec (Makefile.am): Likewise.
77915         * modules/tmpfile-safer (Makefile.am): Likewise.
77916         * modules/trim (Makefile.am): Likewise.
77917         * modules/unistd-safer (Makefile.am): Likewise.
77918         * modules/unlinkdir (Makefile.am): Likewise.
77919         * modules/unlocked-io (Makefile.am): Likewise.
77920         * modules/userspec (Makefile.am): Likewise.
77921         * modules/utime (Makefile.am): Likewise.
77922         * modules/utimecmp (Makefile.am): Likewise.
77923         * modules/utimens (Makefile.am): Likewise.
77924         * modules/vasnprintf (Makefile.am): Likewise.
77925         * modules/vasprintf (Makefile.am): Likewise.
77926         * modules/vsnprintf (Makefile.am): Likewise.
77927         * modules/xalloc (Makefile.am): Likewise.
77928         * modules/xgetcwd (Makefile.am): Likewise.
77929         * modules/xnanosleep (Makefile.am): Likewise.
77930         * modules/xreadlink (Makefile.am): Likewise.
77931         * modules/xstrtod (Makefile.am): Likewise.
77932         * modules/xstrtol (Makefile.am): Likewise.
77933         * modules/xstrtold (Makefile.am): Likewise.
77934         * modules/yesno (Makefile.am): Likewise.
77935         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77936
77937 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * modules/error (Makefile.am): Distribute files through
77940         EXTRA_DIST, not lib_SOURCES.
77941
77942 2006-10-12  Eric Blake  <ebb9@byu.net>
77943
77944         * modules/error (Makefile.am): Distribute files in /lib.
77945         * modules/obstack (Makefile.am): Likewise.
77946
77947 2006-10-12  Bruno Haible  <bruno@clisp.org>
77948
77949         * modules/acl (Makefile.am): Distribute all files in lib/ through
77950         EXTRA_DIST.
77951         * modules/arcfour (Makefile.am): Likewise.
77952         * modules/arctwo (Makefile.am): Likewise.
77953         * modules/argmatch (Makefile.am): Likewise.
77954         * modules/argz (Makefile.am): Likewise.
77955         * modules/atexit (Makefile.am): Likewise.
77956         * modules/backupfile (Makefile.am): Likewise.
77957         * modules/c-strtod (Makefile.am): Likewise.
77958         * modules/c-strtold (Makefile.am): Likewise.
77959         * modules/calloc (Makefile.am): Likewise.
77960         * modules/canon-host (Makefile.am): Likewise.
77961         * modules/canonicalize (Makefile.am): Likewise.
77962         * modules/chdir-long (Makefile.am): Likewise.
77963         * modules/chdir-safer (Makefile.am): Likewise.
77964         * modules/check-version (Makefile.am): Likewise.
77965         * modules/chown (Makefile.am): Likewise.
77966         * modules/cloexec (Makefile.am): Likewise.
77967         * modules/close-stream (Makefile.am): Likewise.
77968         * modules/closeout (Makefile.am): Likewise.
77969         * modules/crc (Makefile.am): Likewise.
77970         * modules/cycle-check (Makefile.am): Likewise.
77971         * modules/des (Makefile.am): Likewise.
77972         * modules/dirfd (Makefile.am): Likewise.
77973         * modules/dirname (Makefile.am): Likewise.
77974         * modules/dup2 (Makefile.am): Likewise.
77975         * modules/euidaccess (Makefile.am): Likewise.
77976         * modules/exclude (Makefile.am): Likewise.
77977         * modules/exitfail (Makefile.am): Likewise.
77978         * modules/fcntl-safer (Makefile.am): Likewise.
77979         * modules/file-type (Makefile.am): Likewise.
77980         * modules/fileblocks (Makefile.am): Likewise.
77981         * modules/filemode (Makefile.am): Likewise.
77982         * modules/filenamecat (Makefile.am): Likewise.
77983         * modules/fnmatch (Makefile.am): Likewise.
77984         * modules/fopen-safer (Makefile.am): Likewise.
77985         * modules/fpending (Makefile.am): Likewise.
77986         * modules/fprintftime (Makefile.am): Likewise.
77987         * modules/free (Makefile.am): Likewise.
77988         * modules/fsusage (Makefile.am): Likewise.
77989         * modules/ftruncate (Makefile.am): Likewise.
77990         * modules/fts (Makefile.am): Likewise.
77991         * modules/gc (Makefile.am): Likewise.
77992         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77993         * modules/getaddrinfo (Makefile.am): Likewise.
77994         * modules/getcwd (Makefile.am): Likewise.
77995         * modules/getdelim (Makefile.am): Likewise.
77996         * modules/getdomainname (Makefile.am): Likewise.
77997         * modules/getgroups (Makefile.am): Likewise.
77998         * modules/gethostname (Makefile.am): Likewise.
77999         * modules/gethrxtime (Makefile.am): Likewise.
78000         * modules/getline (Makefile.am): Likewise.
78001         * modules/getloadavg (Makefile.am): Likewise.
78002         * modules/getlogin_r (Makefile.am): Likewise.
78003         * modules/getopt (Makefile.am): Likewise.
78004         * modules/getpass (Makefile.am): Likewise.
78005         * modules/getpass-gnu (Makefile.am): Likewise.
78006         * modules/getsubopt (Makefile.am): Likewise.
78007         * modules/gettime (Makefile.am): Likewise.
78008         * modules/gettimeofday (Makefile.am): Likewise.
78009         * modules/getugroups (Makefile.am): Likewise.
78010         * modules/getusershell (Makefile.am): Likewise.
78011         * modules/glob (Makefile.am): Likewise.
78012         * modules/group-member (Makefile.am): Likewise.
78013         * modules/hard-locale (Makefile.am): Likewise.
78014         * modules/hash (Makefile.am): Likewise.
78015         * modules/hmac-md5 (Makefile.am): Likewise.
78016         * modules/hmac-sha1 (Makefile.am): Likewise.
78017         * modules/human (Makefile.am): Likewise.
78018         * modules/idcache (Makefile.am): Likewise.
78019         * modules/imaxabs (Makefile.am): Likewise.
78020         * modules/imaxdiv (Makefile.am): Likewise.
78021         * modules/inet_ntop (Makefile.am): Likewise.
78022         * modules/inet_pton (Makefile.am): Likewise.
78023         * modules/inttostr (Makefile.am): Likewise.
78024         * modules/isapipe (Makefile.am): Likewise.
78025         * modules/lchown (Makefile.am): Likewise.
78026         * modules/long-options (Makefile.am): Likewise.
78027         * modules/lstat (Makefile.am): Likewise.
78028         * modules/malloc (Makefile.am): Likewise.
78029         * modules/mathl (Makefile.am): Likewise.
78030         * modules/mbchar (Makefile.am): Likewise.
78031         * modules/md2 (Makefile.am): Likewise.
78032         * modules/md4 (Makefile.am): Likewise.
78033         * modules/md5 (Makefile.am): Likewise.
78034         * modules/memcasecmp (Makefile.am): Likewise.
78035         * modules/memchr (Makefile.am): Likewise.
78036         * modules/memcmp (Makefile.am): Likewise.
78037         * modules/memcoll (Makefile.am): Likewise.
78038         * modules/memcpy (Makefile.am): Likewise.
78039         * modules/memmem (Makefile.am): Likewise.
78040         * modules/memmove (Makefile.am): Likewise.
78041         * modules/mempcpy (Makefile.am): Likewise.
78042         * modules/memrchr (Makefile.am): Likewise.
78043         * modules/memset (Makefile.am): Likewise.
78044         * modules/memxor (Makefile.am): Likewise.
78045         * modules/mkancesdirs (Makefile.am): Likewise.
78046         * modules/mkdir (Makefile.am): Likewise.
78047         * modules/mkdir-p (Makefile.am): Likewise.
78048         * modules/mkdtemp (Makefile.am): Likewise.
78049         * modules/mkstemp (Makefile.am): Likewise.
78050         * modules/mktime (Makefile.am): Likewise.
78051         * modules/modechange (Makefile.am): Likewise.
78052         * modules/mountlist (Makefile.am): Likewise.
78053         * modules/nanosleep (Makefile.am): Likewise.
78054         * modules/openat (Makefile.am): Likewise.
78055         * modules/pagealign_alloc (Makefile.am): Likewise.
78056         * modules/physmem (Makefile.am): Likewise.
78057         * modules/poll (Makefile.am): Likewise.
78058         * modules/posixtm (Makefile.am): Likewise.
78059         * modules/posixver (Makefile.am): Likewise.
78060         * modules/putenv (Makefile.am): Likewise.
78061         * modules/quote (Makefile.am): Likewise.
78062         * modules/quotearg (Makefile.am): Likewise.
78063         * modules/raise (Makefile.am): Likewise.
78064         * modules/read-file (Makefile.am): Likewise.
78065         * modules/readline (Makefile.am): Likewise.
78066         * modules/readlink (Makefile.am): Likewise.
78067         * modules/readtokens (Makefile.am): Likewise.
78068         * modules/readutmp (Makefile.am): Likewise.
78069         * modules/realloc (Makefile.am): Likewise.
78070         * modules/regex (Makefile.am): Likewise.
78071         * modules/rename (Makefile.am): Likewise.
78072         * modules/rename-dest-slash (Makefile.am): Likewise.
78073         * modules/rijndael (Makefile.am): Likewise.
78074         * modules/rmdir (Makefile.am): Likewise.
78075         * modules/rpmatch (Makefile.am): Likewise.
78076         * modules/safe-read (Makefile.am): Likewise.
78077         * modules/safe-write (Makefile.am): Likewise.
78078         * modules/same (Makefile.am): Likewise.
78079         * modules/save-cwd (Makefile.am): Likewise.
78080         * modules/savedir (Makefile.am): Likewise.
78081         * modules/setenv (Makefile.am): Likewise.
78082         * modules/settime (Makefile.am): Likewise.
78083         * modules/sha1 (Makefile.am): Likewise.
78084         * modules/sig2str (Makefile.am): Likewise.
78085         * modules/snprintf (Makefile.am): Likewise.
78086         * modules/stdlib-safer (Makefile.am): Likewise.
78087         * modules/stpcpy (Makefile.am): Likewise.
78088         * modules/stpncpy (Makefile.am): Likewise.
78089         * modules/strcase (Makefile.am): Likewise.
78090         * modules/strcasestr (Makefile.am): Likewise.
78091         * modules/strchrnul (Makefile.am): Likewise.
78092         * modules/strcspn (Makefile.am): Likewise.
78093         * modules/strdup (Makefile.am): Likewise.
78094         * modules/strerror (Makefile.am): Likewise.
78095         * modules/strftime (Makefile.am): Likewise.
78096         * modules/strndup (Makefile.am): Likewise.
78097         * modules/strnlen (Makefile.am): Likewise.
78098         * modules/strpbrk (Makefile.am): Likewise.
78099         * modules/strsep (Makefile.am): Likewise.
78100         * modules/strstr (Makefile.am): Likewise.
78101         * modules/strtod (Makefile.am): Likewise.
78102         * modules/strtoimax (Makefile.am): Likewise.
78103         * modules/strtok_r (Makefile.am): Likewise.
78104         * modules/strtol (Makefile.am): Likewise.
78105         * modules/strtoll (Makefile.am): Likewise.
78106         * modules/strtoul (Makefile.am): Likewise.
78107         * modules/strtoull (Makefile.am): Likewise.
78108         * modules/strtoumax (Makefile.am): Likewise.
78109         * modules/strverscmp (Makefile.am): Likewise.
78110         * modules/time_r (Makefile.am): Likewise.
78111         * modules/timegm (Makefile.am): Likewise.
78112         * modules/tmpfile-safer (Makefile.am): Likewise.
78113         * modules/unistd-safer (Makefile.am): Likewise.
78114         * modules/unlinkdir (Makefile.am): Likewise.
78115         * modules/userspec (Makefile.am): Likewise.
78116         * modules/utime (Makefile.am): Likewise.
78117         * modules/utimecmp (Makefile.am): Likewise.
78118         * modules/utimens (Makefile.am): Likewise.
78119         * modules/vasnprintf (Makefile.am): Likewise.
78120         * modules/vasprintf (Makefile.am): Likewise.
78121         * modules/vsnprintf (Makefile.am): Likewise.
78122         * modules/xalloc (Makefile.am): Likewise.
78123         * modules/xgetcwd (Makefile.am): Likewise.
78124         * modules/xnanosleep (Makefile.am): Likewise.
78125         * modules/xreadlink (Makefile.am): Likewise.
78126         * modules/xstrtod (Makefile.am): Likewise.
78127         * modules/xstrtol (Makefile.am): Likewise.
78128         * modules/xstrtold (Makefile.am): Likewise.
78129         * modules/yesno (Makefile.am): Likewise.
78130
78131 2006-10-12  Jim Meyering  <jim@meyering.net>
78132
78133         * m4/getloadavg.m4: Revert the change below.
78134
78135         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78136         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78137         fail with a symlink, which is what coreutils' ./bootstrap now
78138         creates by default.
78139
78140 2006-10-12  Bruno Haible  <bruno@clisp.org>
78141
78142         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78143         mingw.
78144         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78145         MSVC and mingw explicitly.
78146
78147 2006-10-11  Simon Josefsson  <jas@extundo.com>
78148             Bruno Haible  <bruno@clisp.org>
78149
78150         Add support for multiple gnulib-tool invocations in the scope of a
78151         single configure.ac file.
78152         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78153         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78154         with the same contents as the _LIBADD variable.
78155         (func_emit_initmacro_start, func_emit_initmacro_end,
78156         func_emit_initmacro_done): New functions.
78157         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78158         gl_LIBOBJS and gl_LTLIBOBJS.
78159
78160 2006-10-11  Bruno Haible  <bruno@clisp.org>
78161
78162         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78163         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78164         autoreconf. Instead, invoke autopoint explicitly but move back the
78165         *.m4 files from gnulib.
78166
78167 2006-10-11  Bruno Haible  <bruno@clisp.org>
78168
78169         * gnulib-tool (func_usage): Make module names after --create-testdir
78170         optional.
78171         (func_create_testdir): If no module was specified, use nearly all
78172         modules.
78173
78174 2006-10-12  Jim Meyering  <jim@meyering.net>
78175
78176         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78177         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78178         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78179         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78180         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78181         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78182         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78183         (fts_set_stat_required): New function.
78184         (fts_open): Defer the calls to fts_stat, if possible or requested.
78185         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78186         into fts_stat itself.
78187         (fts_read): Perform any required (deferred) fts_stat call.
78188         (fts_build): Likewise, for the directory we're about to open and read.
78189         In the readdir loop, carefully decide whether each entry will require
78190         an eventual call to fts_stat, using dirent.d_type info if available.
78191         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78192         a command line argument into this function.  Update all callers.
78193         Map a return value of FTS_DOT to FTS_D for a command line argument.
78194         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78195         Thanks to Miklos Szeredi for his tenacity and for the initial
78196         bug report about "find" failing on a FUSE-based file system.
78197
78198         * lib/fts.c (fts_open): Use consistent indentation.
78199
78200 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78203         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78204         reported by Jim Meyering.  All uses of cache variables renamed
78205         to match Autoconf's.
78206         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78207         the other one.
78208
78209         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78210         Fix misspelling in diagnostic.
78211
78212 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78215         defined.  Problem reported by Matthew Woehlke.
78216
78217         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78218         Add support for Tandem NonStop R series.
78219         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78220         Use new macro.
78221
78222         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78223         (has_trailing_slash): Omit size arg; all callers changed.
78224         Omit 'inline', since it doesn't help performance and we'd
78225         need to configure it.
78226         Don't count //, ///, etc. as having a trailing slash.
78227         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78228         (rpl_rename_dest_slash): On failure, use rename's errno rather
78229         than (in some cases) an incorrect or junk errno.
78230         Simplify code by removing need to compute length; this does
78231         cause it to make two passes instead of one over the file name,
78232         but it's worth it.
78233
78234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78235         change, since Autoconf's version may no longer be appropriate now
78236         that we are using CVS Autoconf's version.  Add support for Tandem.
78237
78238 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78239             Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78242         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78243         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78244         gl_AC_TYPE_LONG_LONG.
78245
78246         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78247         instead of HAVE_LONG_LONG.
78248         * lib/printf-args.c (printf_fetchargs): Likewise.
78249         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78250         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78251         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78252         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78253         gl_AC_TYPE_LONG_LONG.
78254
78255 2006-10-11  Bruno Haible  <bruno@clisp.org>
78256
78257         * m4/longlong.m4: Add comments.
78258         * m4/ulonglong.m4: Likewise.
78259
78260 2006-10-10  Bruno Haible  <bruno@clisp.org>
78261
78262         Make it possible to #define stpcpy, strdup to aliases.
78263         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78264         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78265
78266 2006-10-10  Bruno Haible  <bruno@clisp.org>
78267
78268         Make it possible to #define gcd to an alias.
78269         * lib/gcd.c: Include config.h.
78270
78271 2006-10-10  Bruno Haible  <bruno@clisp.org>
78272
78273         Make it possible to #define c_isascii to an alias.
78274         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78275         defined. Undefine the macros before defining them, to avoid gcc
78276         warnings.
78277         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78278         define NO_C_CTYPE_MACROS early.
78279
78280 2006-10-10  Bruno Haible  <bruno@clisp.org>
78281
78282         Make it possible to #define set_program_name to an alias.
78283         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78284         ENABLE_RELOCATABLE early.
78285
78286 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78289         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78290         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78291         More generally, don't assume that 64-bit signed int is available
78292         if unsigned int is, and vice versa.
78293         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78294         unsigned symbols, not on their signed counterparts.
78295         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78296         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78297         (UINT64_C, UINTMAX_C):
78298         Likewise.
78299         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78300         unsigned counterparts.
78301         (Have_long_long, Unsigned): New macros.
78302         (Int): Renamed from INT.
78303         (strtoimax): Use the new macros.
78304         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78305         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78306         * modules/inttypes (inttypes.h): Substitute
78307         HAVE_UNSIGNED_LONG_LONG_INT.
78308         * modules/stdint (stdint.h): Likewise.
78309         (Files): Add m4/ulonglong.m4.
78310
78311 2006-10-10  Bruno Haible  <bruno@clisp.org>
78312
78313         Fix a gcc -Wshadow warning.
78314         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78315         to 'bucket'.
78316         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78317         gl_linked_indexof_from_to): Likewise.
78318         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78319         Likewise.
78320         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78321         Likewise.
78322         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78323         Reported by Eric Blake.
78324
78325 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78326
78327         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78328         for NetBSD.  Problem reported by Bruno Haible.
78329
78330 2006-10-09  Jim Meyering  <jim@meyering.net>
78331
78332         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78333         Patch from Bruno Haible.
78334
78335 2006-10-09  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78338         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78339         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78340
78341 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         Don't include <config.h> twice; this doesn't work in some cases,
78344         e.g., when config.h has "#define intmax_t long long int" and
78345         we include <config.h>, <inttypes.h>, <config.h> in that order.
78346         Problem reported by Matthew Woehlke in:
78347         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78348         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78349         * lib/fts-cycle.c: Don't include config.h.
78350         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78351         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78352         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78353         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78354         inttypes.h.
78355         * lib/xstrtoumax.c: Likewise.
78356         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78357         __strtol and the like, so that this module is more like its siblings.
78358         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78359         Remove; no longer needed now that we assume gnulib inttypes.h.
78360
78361 2006-10-08  Bruno Haible  <bruno@clisp.org>
78362
78363         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78364         option.
78365
78366 2006-10-07  Jim Meyering  <jim@meyering.net>
78367
78368         * modules/inttypes (inttypes.h): Revert what seems to have been
78369         an inadvertent part of today's change: use "|", not "/" in the
78370         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78371
78372 2006-10-07  Bruno Haible  <bruno@clisp.org>
78373
78374         * modules/sublist: New file.
78375
78376 2006-10-07  Bruno Haible  <bruno@clisp.org>
78377
78378         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78379         * modules/argz (argz.h): Likewise.
78380         * modules/arpa_inet (arpa/inet.h): Likewise.
78381         * modules/byteswap (byteswap.h): Likewise.
78382         * modules/configmake (configmake.h): Likewise.
78383         * modules/fcntl (fcntl.h): Likewise.
78384         * modules/fnmatch (fnmatch.h): Likewise.
78385         * modules/getopt (getopt.h): Likewise.
78386         * modules/glob (glob.h): Likewise.
78387         * modules/inttypes (inttypes.h): Likewise.
78388         * modules/netinet_in (netinet/in.h): Likewise.
78389         * modules/poll (poll.h): Likewise.
78390         * modules/stdbool (stdbool.h): Likewise.
78391         * modules/stdint (stdint.h): Likewise.
78392         * modules/sys_select (sys/select.h): Likewise.
78393         * modules/sys_socket (sys/socket.h): Likewise.
78394         * modules/sys_stat (sys/stat.h): Likewise.
78395         * modules/sysexits (sysexits.h): Likewise.
78396         * modules/unistd (unistd.h): Likewise.
78397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78398         Add a "DO NOT EDIT" comment to the generated file.
78399         (func_import): Likewise for gnulib-comp.m4.
78400
78401 2006-10-07  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/gl_sublist.h: New file.
78404         * lib/gl_sublist.c: New file.
78405
78406 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78407
78408         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78409         name (relative to the original working directory) and the file
78410         name component (relative to the temporary working directory).  All
78411         callers changed.
78412         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78413         * lib/mkdir-p.c (make_dir_parents): Likewise.
78414         * lib/mkdir-p.h (make_dir_parents): Likewise.
78415
78416 2006-10-06  Eric Blake  <ebb9@byu.net>
78417
78418         Define several macros for use by the clean-temp module.
78419         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78421         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78422
78423         * lib/clean-temp.h (close_stream_temp): New declaration.
78424         * lib/clean-temp.c (includes): Pull in headers according to what
78425         other modules are in use.
78426         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78427
78428 2006-10-06  Bruno Haible  <bruno@clisp.org>
78429
78430         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78431         instead of fopen, fwriteerror.
78432
78433 2006-10-06  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78436         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78437         int.
78438         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78439         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78440         Return an error indicator.
78441         Suggested by Eric Blake.
78442
78443 2006-10-06  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78446         Reported by Eric Blake.
78447
78448 2006-10-06  Bruno Haible  <bruno@clisp.org>
78449
78450         * modules/closeout (Description): Mention stderr too.
78451
78452 2006-10-06  Bruno Haible  <bruno@clisp.org>
78453         and Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * lib/closeout.c (close_stdout): Also close stderr.
78456         * lib/closeout.h: Update comment.
78457
78458 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78461         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78462         * lib/dirchownmod.c: Include lchown.h.
78463         * lib/lchown.c: Don't include files that lchown.h now includes.
78464         Don't declare chown, since lchown.h now does that.
78465         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78466         (lchown): Define to rpl_chown if lchown is declared but
78467         does not exist.  Declare using a prototype if lchown is not
78468         declared.  Add a copyright notice.
78469         * lib/mkstemp.h: Include <unistd.h>.
78470         * lib/openat.c: Include lchown.h.
78471
78472         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78473         we now test for that separately.
78474         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78475         rather than O_NOFOLLOW, when testing whether it's possible to
78476         avoid a race condition reliably.
78477         * lib/savewd.c (savewd_chdir): Likewise.
78478
78479         Remove macros that are no longer needed now that stdint.h is
78480         reliable.
78481         * lib/fsusage.c (UINTMAX_MAX): Remove.
78482         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78483         * lib/utimecmp.c (SIZE_MAX): Remove.
78484
78485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78486
78487         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78488         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78489         O_NOATIME works.
78490
78491 2006-10-05  Bruno Haible  <bruno@clisp.org>
78492
78493         * lib/gl_list.h (gl_sortedlist_search_from_to,
78494         gl_sortedlist_indexof_from_to): New declarations.
78495         (gl_list_implementation): New fields sortedlist_search_from_to,
78496         sortedlist_indexof_from_to.
78497         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78498         inline functions.
78499         * lib/gl_list.c (gl_sortedlist_search_from_to,
78500         gl_sortedlist_indexof_from_to): New functions.
78501         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78502         function.
78503         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78504         (gl_array_sortedlist_search_from_to): New function.
78505         (gl_array_list_implementation): Update.
78506         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78507         function.
78508         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78509         (gl_carray_sortedlist_search_from_to): New function.
78510         (gl_carray_list_implementation): Update.
78511         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78512         gl_linked_sortedlist_indexof_from_to): New functions.
78513         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78514         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78515         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78516         gl_tree_sortedlist_indexof_from_to): New functions.
78517         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78518         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78519         Update.
78520         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78521         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78522         Update.
78523
78524 2006-10-05  Bruno Haible  <bruno@clisp.org>
78525
78526         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78527         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78528         (struct gl_list_implementation): Add fields search_from_to,
78529         indexof_from_to. Remove fields search, indexof.
78530         (gl_list_search): Use the search_from_to method.
78531         (gl_list_search_from, gl_list_search_from_to): New functions.
78532         (gl_list_indexof): Use the indexof_from_to method.
78533         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78534         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78535         (gl_list_search_from, gl_list_search_from_to): New functions.
78536         (gl_list_indexof): Use the indexof_from_to method.
78537         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78538         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78539         gl_array_indexof. Add start_index, end_index arguments.
78540         (gl_array_search_from_to): Renamed from gl_array_search. Add
78541         start_index, end_index arguments.
78542         (gl_array_remove, gl_array_list_implementation): Update.
78543         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78544         gl_carray_indexof. Add start_index, end_index arguments.
78545         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78546         start_index, end_index arguments.
78547         (gl_carray_remove, gl_carray_list_implementation): Update.
78548         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78549         gl_linked_search. Add start_index, end_index arguments.
78550         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78551         start_index, end_index arguments.
78552         (gl_linked_remove): Update.
78553         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78554         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78555         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78556         field to 'size_t'.
78557         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78558         gl_tree_search. Add start_index, end_index arguments.
78559         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78560         start_index, end_index arguments.
78561         (gl_tree_remove): Update.
78562         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78563         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78564         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78565         function.
78566         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78567         gl_tree_search. Add start_index, end_index arguments.
78568         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78569         start_index, end_index arguments.
78570         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78571         Update.
78572         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78573
78574 2006-10-05  Bruno Haible  <bruno@clisp.org>
78575
78576         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78577
78578         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78579         fwriteerror_temp): New declarations.
78580         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78581         (descriptors): New variable.
78582         (cleanup): First, close the descriptors.
78583         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78584         fclose_temp, fwriteerror_temp): New functions.
78585
78586 2006-10-04  Jim Meyering  <jim@meyering.net>
78587
78588         * lib/fts.c (fts_open): Tiny comment change.
78589
78590 2006-10-04  Bruno Haible  <bruno@clisp.org>
78591
78592         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78593         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78594         gl_LOCK_BODY.
78595         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78596         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78597         gl_LOCK_EARLY_BODY.
78598         (gl_LOCK): Require gl_LOCK_BODY.
78599
78600 2006-10-04  Bruno Haible  <bruno@clisp.org>
78601
78602         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78603         (gl_oset_search_atleast): New declaration.
78604         (struct gl_oset_implementation): Add field 'search_atleast'.
78605         (gl_oset_search_atleast): New inline function.
78606         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78607         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78608         (gl_array_oset_implementation): Update.
78609         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78610         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78611         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78612
78613 2006-10-04  Bruno Haible  <bruno@clisp.org>
78614
78615         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78616
78617 2006-10-03  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78620         from gl_avltreehash_list_implementation.
78621
78622 2006-10-03  Bruno Haible  <bruno@clisp.org>
78623
78624         * lib/gl_oset.c (gl_oset_add): Fix return type.
78625
78626 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78627
78628         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78629
78630 2006-10-02  Eric Blake  <ebb9@byu.net>
78631
78632         * modules/strnlen (Depends-on): Add extensions.
78633
78634 2006-10-02  Eric Blake  <ebb9@byu.net>
78635
78636         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78637         definition in 2.60+.
78638
78639 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78640
78641         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78642         checks.
78643
78644 2006-10-02  Bruno Haible  <bruno@clisp.org>
78645
78646         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78647         to the AUTOMAKE_OPTIONS.
78648         Reported by Jim Meyering.
78649
78650 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         Work around bug in Solaris 10 /proc file system:
78653         /proc/self/fd/NNN/.. isn't the parent directory of
78654         the directory whose file descriptor is NNN.  This needs to
78655         be worked around at run time, not compile time, since a
78656         program might be built on Solaris 8, where things work, and
78657         run on Solaris 10.
78658         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78659         to use the following interface instead:
78660         (OPENAT_BUFFER_SIZE): New macro.
78661         (openat_proc_name): New function.
78662         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78663         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78664         Likewise.
78665         * lib/openat-proc.c: New file.
78666         * modules/openat (Files): Add lib/openat-proc.c.
78667         (Depends-on): Add same-inode, stdbool.
78668         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78669
78670 2006-09-29  Bruno Haible  <bruno@clisp.org>
78671
78672         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78673         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78674         argument. Set stdout_closed before testing for ferror, not after.
78675         (fwriteerror, fwriteerror_no_ebadf): New functions.
78676
78677 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78678
78679         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78680
78681 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78682
78683         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78684         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78685
78686 2006-09-28  Jim Meyering  <jim@meyering.net>
78687
78688         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78689         Include <unistd.h>.
78690
78691 2006-09-28  Bruno Haible  <bruno@clisp.org>
78692
78693         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78694         * modules/linkedhash-list (Depends-on): Likewise.
78695         * modules/rbtreehash-list (Depends-on): Likewise.
78696
78697 2006-09-28  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/strndup.h: Simplify the redefinition of strndup.
78700         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78701         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78702
78703 2006-09-28  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78706         * lib/gl_linkedhash_list.c: Likewise.
78707         * lib/gl_rbtreehash_list.c: Likewise.
78708
78709 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78712         getaddrinfo.
78713
78714         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78715         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78716         it causes <stdio_ext.h> to cause a compile-time error.
78717         Problem reported by Nelson H. F. Beebe.
78718         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78719         of HAVE_DECL___PENDING.
78720
78721         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78722         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78723         declaration.
78724
78725 2006-09-27  Jim Meyering  <jim@meyering.net>
78726
78727         This file could end up with a definition for a function
78728         named __strndup, rather than rpl_strndup on a system with
78729         incomplete weak_alias support.
78730         * lib/strndup.c (strndup): Rename from __strndup.
78731         Remove #defines that used to map __strndup to strndup.
78732         Don't use K&R prototypes.
78733         Remove LIBC-related code, since this file is not sync'd with glibc.
78734         * lib/strndup.h: Revamp, accordingly.
78735         * m4/strndup.m4: Modernize.
78736
78737 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * modules/savewd (Depends-on): Add 'raise'.
78740         * lib/savewd.c: Include <signal.h>, for 'raise'.
78741
78742 2006-09-26  Jim Meyering  <jim@meyering.net>
78743
78744         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78745         when we detect Darwin 8.7.0's acl_get_file bug.
78746         Rearrange to perform the new (below) run-test while $LIBS
78747         contains any acl-related library.  Set USE_ACL at the end.
78748         (gl_ACL_GET_FILE): New function.
78749
78750 2006-09-26  Eric Blake  <ebb9@byu.net>
78751
78752         * lib/verror.c: Include <config.h> unconditionally.
78753
78754 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * modules/clock-time (Maintainer): Add self.
78757         * modules/getlogin_r (Depends-on): Add extensions.
78758
78759 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78760
78761         * modules/clock-time: New module.
78762         * modules/nanosleep (Depends-on): Add clock-time.
78763         * modules/gethrxtime (Depends-on): Likewise.
78764         * modules/gettime (Depends-on): Likewise.
78765         * modules/settime (Depends-on): Likewise.
78766
78767         * modules/fts-lgpl: Depend on openat.
78768         * modules/mkancesdirs: Depend on savewd.
78769         * modules/mkdir-p: Likewise.
78770
78771 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78772
78773         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78774
78775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78776         `gl_have_arbitrary_file_name_length_limit' to
78777         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78778         actually works between configure runs.
78779
78780 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78781             Bruno Haible  <bruno@clisp.org>
78782
78783         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78784
78785 2006-09-25  Jim Meyering  <jim@meyering.net>
78786
78787         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78788         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78789
78790 2006-09-25  Eric Blake  <ebb9@byu.net>
78791
78792         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78793         exec's in 2006-09-18 patch when shuffling fds.
78794
78795 2006-09-25  Bruno Haible  <bruno@clisp.org>
78796
78797         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78798         Reported by Jim Meyering.
78799
78800 2006-09-24  Jim Meyering  <jim@meyering.net>
78801
78802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78803         compare a pointer against a literal "0".  That caused failures with
78804         at least HP-UX's hpcc.
78805
78806 2006-09-22  Simon Josefsson  <jas@extundo.com>
78807
78808         * modules/gc-sha1:
78809         * modules/gc-md4:
78810         * modules/gc-hmac-sha1:
78811         * modules/gc-hmac-md5:
78812         * modules/gc-des:
78813         * modules/gc-arcfour: Distribute more files.
78814
78815 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78816
78817         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78818         (gl_linked_iterator_from_to): Initialize struct completely.
78819         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78820         (gl_tree_iterator_from_to): Likewise
78821         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78822         * lib/gl_array_list.c [lint] (gl_array_iterator)
78823         (gl_array_iterator_from_to): Likewise.
78824         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78825         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78826         (gl_carray_iterator_from_to): Likewise.
78827
78828         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78829         * lib/md4.c (md4_process_block): Remove unused variable.
78830         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78831         parentheses for clarity.
78832
78833 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78834
78835         * modules/bison-i18n (Depends-on): Add gettext.
78836
78837 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78838
78839         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78840         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78841         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78842         also add missing comma that caused broken test.
78843         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78844         stdlib.h, for `abort'.
78845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78846         variables.
78847         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78848         include unistd.h if present, for `rmdir'.
78849         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78850         variables.
78851         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78852         in the process include standard headers for prototypes.
78853         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78854         gets declared on GNU/Linux.
78855         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78856         unistd.h, for `rmdir'.
78857         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78858
78859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78860         always true.
78861         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78862
78863         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78864
78865 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78866
78867         * gnulib-tool (func_version): Create output all at once.  This
78868         may help avoid triggering unnecessary SIGPIPEs, and at any
78869         rate it doesn't hurt.
78870
78871 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78872             Bruno Haible  <bruno@clisp.org>
78873
78874         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78875         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78876         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78877
78878         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78879         (gl_FUNC_VASPRINTF): Invoke it.
78880
78881 2006-09-22  Bruno Haible  <bruno@clisp.org>
78882
78883         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78884         getloadavg.c as first argument.
78885
78886 2006-09-22  Bruno Haible  <bruno@clisp.org>
78887
78888         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78889         at the beginning of the gl_INIT macro.
78890         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78891         gl_GETLOADAVG.
78892
78893 2006-09-22  Bruno Haible  <bruno@clisp.org>
78894
78895         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78896         module.
78897         Suggested by Ralf Wildenhues.
78898
78899 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         Import this patch from libc:
78902
78903         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78904
78905         * lib/regex_internal.c (re_string_reconstruct): Handle
78906         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78907         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78908         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78909         re_string_context_at.
78910
78911         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78912         now requires it.
78913         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78914         gl_REGEX now does it for us.
78915         (gl_REGEX): Add test taken from
78916         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78917
78918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78919         Check that large offsets work.  Modernize Autoconf usages.
78920         Prefer "yes" to mean a good thing rather than a bad.
78921         Don't put "#define mkstemp" in config.h, as this might interfere
78922         with standard system headers that "#define mkstemp mkstemp64".
78923
78924         * modules/mkstemp (Depends-on): Add extensions, so that
78925         mkstemp is visible on some platforms.
78926         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78927         (Include): Change to "mkstemp.h" from <stdlib.h>.
78928         (Files): Add mkstemp.h.
78929
78930         * lib/mkstemp.h: New file, since some standard headers
78931         #define mkstemp.
78932         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78933         Include "mkstemp.h".
78934         Make the _LIBC code resemble glibc original more,
78935         e.g., use K&R style.
78936         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78937         (mkstemp): Remove, since mkstemp.h does this for us.
78938         * lib/stdlib--.h: Include mkstemp.h.
78939
78940         Import this patch from libc:
78941
78942         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78943
78944         * lib/tempname.c (__gen_tempname): Change attempts_min
78945         into a macro.  Use preprocessor to decide how to initialize
78946         attempts [Coverity CID 67].
78947
78948 2006-09-20  Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/mkdtemp.c: Import from libc.
78951         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78952                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78953                 attempts_min into a macro.  Use preprocessor to decide how to
78954                 initialize attempts [Coverity CID 67].
78955         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78956                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78957                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78958
78959 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78960
78961         * gnulib-tool (func_exit): New function, to allow to pass the
78962         exit status portably through the trap.  Use everywhere.
78963         (--help, --version): Signal a write error.
78964         (trap): catch SIGPIPE, for write errors.
78965         Exit at the end of the trap, with the correct exit status.
78966
78967 2006-09-19  Karl Berry  <karl@gnu.org>
78968
78969         * doc/gnulib.texi: note about the license texinfo files.
78970
78971 2006-09-19  Eric Blake  <ebb9@byu.net>
78972
78973         * gnulib-tool: Avoid space-tab.
78974
78975 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78978         that prevented coreutils 6.1 from building.  Problem reported
78979         by Petter Reinholdtsen.
78980
78981 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * gnulib-tool (avoidlist): Fix typo that broke options like
78984         --avoid=lock that are used by coreutils bootstrap.
78985
78986 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78987
78988         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78989         more systematically.
78990
78991 2006-09-18  Jim Meyering  <jim@meyering.net>
78992
78993         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78994
78995 2006-09-18  Bruno Haible  <bruno@clisp.org>
78996
78997         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78998
78999 2006-09-18  Bruno Haible  <bruno@clisp.org>
79000
79001         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79002         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79003         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79004         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79005         * m4/gettext.m4: Require autoconf >= 2.52.
79006         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79007         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79008         of gl_cv_header_inttypes_h.
79009
79010 2006-09-18  Bruno Haible  <bruno@clisp.org>
79011
79012         * lib/javaversion.c: Include configmake.h.
79013
79014 2006-09-18  Bruno Haible  <bruno@clisp.org>
79015
79016         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79017         avoid that the while loops be executed in a subshell.
79018
79019 2006-09-18  Bruno Haible  <bruno@clisp.org>
79020
79021         * MODULES.html.sh (func_module): Break long lines.
79022         Suggested by Bruce Korb <bkorb@gnu.org>.
79023
79024 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79025
79026         Speed up by a factor of 1.12.
79027         * gnulib-tool (nl): New variable.
79028         (func_import): Rewrite include directive extraction to only read each
79029         directive once.
79030
79031 2006-09-17  Bruno Haible  <bruno@clisp.org>
79032
79033         * modules/javaversion (Makefile.am): Remove DEFS setting.
79034         (Depends-on): Add configmake, for PKGDATADIR definition.
79035
79036 2006-09-17  Bruno Haible  <bruno@clisp.org>
79037
79038         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79039
79040 2006-09-17  Bruno Haible  <bruno@clisp.org>
79041
79042         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79043         (func_modules_transitive_closure, func_modules_add_dummy,
79044         func_modules_to_filelist, func_import, func_create_testdir,
79045         func_create_megatestdir, ...): Use it wherever possible.
79046         Suggested by Ralf Wildenhues.
79047
79048 2006-09-16  Karl Berry  <karl@gnu.org>
79049
79050         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79051         to avoid sectioning errors.
79052         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79053         [ifinfo]: blank line after @center-ed titles.
79054         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79055         Spell FSF address consistently with others.
79056         (These changes approved by rms.)
79057
79058 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79059
79060         Speed up by a factor of 1.61.
79061         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79062         already checked module names again.
79063
79064 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79065
79066         Speed up by a factor of 1.13.
79067         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79068         for new_files, and the input to func_add_or_update.
79069
79070 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79071
79072         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79073         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79074
79075 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * modules/mkancesdirs (Depends-on): Add fcntl.
79078         * modules/savewd: New file.
79079         * MODULES.html.sh (File system functions): Add savewd.
79080
79081         * modules/configmake (Makefile.am): Add support for the
79082         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79083
79084 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         * m4/savewd.m4: New file.
79087
79088 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79091         (dirchownmod): New arg FD.  All callers changed.
79092         Use FD rather than opening the directory ourself, as opening is
79093         now the caller's responsibility.
79094         * lib/dirchownmod.h: Likewise.
79095         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79096         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79097         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79098         (test_dir): Remove.
79099         (mkancesdirs): Return length of prefix of FILE that has already
79100         been made, or -2 if there is a child doing the work.  Redo
79101         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79102         ".", and treat ".." specially since it might stray back into
79103         already-created areas.  Use a subprocess if necessary.  New arg
79104         WD; all users changed.  MAKE_DIR function should now return 1
79105         if it creates a directory that is not readable.  Return -2 if
79106         a child process is spun off.
79107         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79108         Adjust signature to match code.
79109         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79110         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79111         all users changed.
79112         * lib/savewd.c, lib/savewd.h: New files.
79113
79114 2006-09-15  Jim Meyering  <jim@meyering.net>
79115
79116         * modules/rename-dest-slash: New module.
79117         * MODULES.html.sh (posix_compat): Add it here.
79118
79119         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79120
79121 2006-09-15  Jim Meyering  <jim@meyering.net>
79122
79123         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79124         file.
79125
79126         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79127
79128 2006-09-15  Jim Meyering  <jim@meyering.net>
79129
79130         * lib/rename-dest-slash.c (has_trailing_slash): Use
79131         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79132         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79133         test before testing whether SRC is a directory.
79134         Suggestions from Bruno Haible.
79135
79136         Avoid a warning about an unused variable.
79137         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79138         into the #ifdef block where it's used.
79139
79140         * lib/rename-dest-slash.c: New file.
79141
79142 2006-09-14  Bruno Haible  <bruno@clisp.org>
79143
79144         * lib/allocsa.c: Include <config.h> unconditionally.
79145         * lib/asnprintf.c: Likewise.
79146         * lib/asprintf.c: Likewise.
79147         * lib/c-strcasecmp.c: Likewise.
79148         * lib/c-strcasestr.c: Likewise.
79149         * lib/c-strncasecmp.c: Likewise.
79150         * lib/c-strstr.c: Likewise.
79151         * lib/classpath.c: Likewise.
79152         * lib/clean-temp.c: Likewise.
79153         * lib/concatpath.c: Likewise.
79154         * lib/copy-file.c: Likewise.
79155         * lib/csharpcomp.c: Likewise.
79156         * lib/csharpexec.c: Likewise.
79157         * lib/execute.c: Likewise.
79158         * lib/fatal-signal.c: Likewise.
79159         * lib/findprog.c: Likewise.
79160         * lib/fwriteerror.c: Likewise.
79161         * lib/gl_array_list.c: Likewise.
79162         * lib/gl_array_oset.c: Likewise.
79163         * lib/gl_avltree_list.c: Likewise.
79164         * lib/gl_avltree_oset.c: Likewise.
79165         * lib/gl_avltreehash_list.c: Likewise.
79166         * lib/gl_carray_list.c: Likewise.
79167         * lib/gl_linked_list.c: Likewise.
79168         * lib/gl_linkedhash_list.c: Likewise.
79169         * lib/gl_list.c: Likewise.
79170         * lib/gl_oset.c: Likewise.
79171         * lib/gl_rbtree_list.c: Likewise.
79172         * lib/gl_rbtree_oset.c: Likewise.
79173         * lib/gl_rbtreehash_list.c: Likewise.
79174         * lib/imaxabs.c: Likewise.
79175         * lib/imaxdiv.c: Likewise.
79176         * lib/javacomp.c: Likewise.
79177         * lib/javaexec.c: Likewise.
79178         * lib/javaversion.c: Likewise.
79179         * lib/linebreak.c: Likewise.
79180         * lib/localcharset.c: Likewise.
79181         * lib/lock.c: Likewise.
79182         * lib/mbchar.c: Likewise.
79183         * lib/mbswidth.c: Likewise.
79184         * lib/mkdtemp.c: Likewise.
79185         * lib/pipe.c: Likewise.
79186         * lib/printf-args.c: Likewise.
79187         * lib/printf-parse.c: Likewise.
79188         * lib/progname.c: Likewise.
79189         * lib/progreloc.c: Likewise.
79190         * lib/readlink.c: Likewise.
79191         * lib/sh-quote.c: Likewise.
79192         * lib/stpcpy.c: Likewise.
79193         * lib/stpncpy.c: Likewise.
79194         * lib/strcasecmp.c: Likewise.
79195         * lib/strcasestr.c: Likewise.
79196         * lib/strcspn.c: Likewise.
79197         * lib/striconv.c: Likewise.
79198         * lib/strncasecmp.c: Likewise.
79199         * lib/strnlen1.c: Likewise.
79200         * lib/strstr.c: Likewise.
79201         * lib/strtok_r.c: Likewise.
79202         * lib/tls.c: Likewise.
79203         * lib/tmpdir.c: Likewise.
79204         * lib/unicodeio.c: Likewise.
79205         * lib/unsetenv.c: Likewise.
79206         * lib/vasnprintf.c: Likewise.
79207         * lib/vasprintf.c: Likewise.
79208         * lib/wait-process.c: Likewise.
79209         * lib/xallocsa.c: Likewise.
79210         * lib/xsetenv.c: Likewise.
79211         * lib/xstriconv.c: Likewise.
79212
79213 2006-09-13  Simon Josefsson  <jas@extundo.com>
79214
79215         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79216         that internally, suggested by Ralf Wildenhues
79217         <Ralf.Wildenhues@gmx.de>.
79218
79219 2006-09-13  Simon Josefsson  <jas@extundo.com>
79220
79221         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79222         @LIBOBJS@.
79223         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79224
79225 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79228         longer worry about uses that don't define HAVE_CONFIG_H.
79229         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79230         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79231         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79232         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79233         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79234         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79235         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79236         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79237         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79238         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79239         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79240         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79241         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79242         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79243         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79244         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79245         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79246         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79247         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79248         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79249         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79250         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79251         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79252         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79253         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79254         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79255         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79256         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79257         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79258         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79259         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79260         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79261         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79262         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79263         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79264         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79265         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79266         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79267         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79268         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79269         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79270         Likewise.
79271
79272 2006-09-13  Eric Blake  <ebb9@byu.net>
79273
79274         * lib/getopt.c: Fix typo in last commit.
79275
79276 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79277
79278         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79279         dgettext.
79280
79281 2006-09-12  Jim Meyering  <jim@meyering.net>
79282
79283         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79284         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79285         Reported by Nelson H. F. Beebe.
79286
79287 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79288
79289         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79290         program_invocation_name and program_invocation_short_name are
79291         initialized.
79292         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79293         and program_invocation_short_name to argp.h, so they are visible
79294         to user programs.
79295         * lib/argp.h: Likewise
79296
79297 2006-09-10  Bruno Haible  <bruno@clisp.org>
79298
79299         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79300         m4/inttypes_h.m4, m4/uintmax_t.m4.
79301
79302 2006-09-10  Bruno Haible  <bruno@clisp.org>
79303
79304         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79305         gl_AC_TYPE_UINTMAX_T.
79306
79307 2006-09-10  Bruno Haible  <bruno@clisp.org>
79308
79309         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79310
79311 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79312
79313         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79314         convention.  Text proposed by Bruno Haible.
79315         (struct argp_option): Document the use of N_() wrappers.
79316
79317         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79318         '\v', and translate the two parts separately, instead of feeding
79319         the whole string to gettext.  This allows to exclude
79320         '\v' from the strings visible to the translator by writing doc
79321         strings as N_("..") "\v" N_("..").
79322
79323 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * config/srclist.txt: Undo latest change; the bug was fixed.
79326
79327 2006-09-09  Bruno Haible  <bruno@clisp.org>
79328
79329         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79330         assignments if building a library without libtool.
79331         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79332         in func_emit_lib_Makefile_am.
79333         (func_import): When building a static library libfoo.a, arrange to
79334         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79335         (func_create_testdir): Likewise.
79336         * modules/gc (configure.ac, Makefile.am): If building statically,
79337         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79338         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79339         * modules/striconv (configure.ac, Makefile.am): Likewise.
79340         Based on a suggestion by Ralf Wildenhues.
79341
79342 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79345         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79346         Also:
79347
79348         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79349         Add year_2050_test to catch glibc bug 2821
79350         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79351
79352         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79353         Prefer #ifdef to #if.
79354
79355         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79356         Return from 'main' instead of calling 'exit'.
79357
79358 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79361         returned the maximum time_t value rather than (time_t) -1.
79362         Problem originally reported by William Bardwell
79363         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79364
79365         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79366         Moved to here ...
79367         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79368         ... from here.
79369
79370 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79373         2821 is fixed.
79374
79375 2006-09-08  Jim Meyering  <jim@meyering.net>
79376
79377         Don't make generated files read-only.  That would bother too many
79378         people.  However, do retain the ability to work when targets are
79379         read-only: remove the destination and temporary files before writing
79380         them (when generated via sed or echo), or by using the -f option for
79381         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79382         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79383         * modules/byteswap, modules/configmake, modules/fcntl:
79384         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79385         * modules/localcharset, modules/netinet_in, modules/poll:
79386         * modules/stdbool, modules/stdint, modules/sys_select:
79387         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79388
79389 2006-09-08  Jim Meyering  <jim@meyering.net>
79390
79391         Avoid new build failure on FreeBSD 6.0.
79392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79393         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79394         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79395
79396 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79397
79398         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79399
79400 2006-09-07  Jim Meyering  <jim@meyering.net>
79401
79402         Fix global typo in last change: use chmod u-w, not chmod u-x.
79403         Spotted by Paul Eggert and Bruce Korb.
79404         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79405         * modules/byteswap, modules/configmake, modules/fcntl:
79406         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79407         * modules/localcharset, modules/netinet_in, modules/poll:
79408         * modules/stdbool, modules/stdint, modules/sys_select:
79409         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79410
79411 2006-09-06  Jim Meyering  <jim@meyering.net>
79412
79413         Make generated files be read-only.
79414         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79415         Ensure that each generated file is now read-only.
79416         * modules/argz: Likewise.
79417         * modules/arpa_inet: Likewise.
79418         * modules/byteswap: Likewise.
79419         * modules/configmake: Likewise.
79420         * modules/fcntl: Likewise.
79421         * modules/fnmatch: Likewise.
79422         * modules/getopt: Likewise.
79423         * modules/glob: Likewise.
79424         * modules/inttypes: Likewise.
79425         * modules/netinet_in: Likewise.
79426         * modules/poll: Likewise.
79427         * modules/stdbool: Likewise.
79428         * modules/stdint: Likewise.
79429         * modules/sys_select: Likewise.
79430         * modules/sys_socket: Likewise.
79431         * modules/sys_stat: Likewise.
79432         * modules/sysexits: Likewise.
79433         * modules/localcharset: Same as above, but continue using temporary
79434         file named "t-$@" (why different?) rather than the "$@-t" used
79435         everywhere else.
79436
79437         * modules/sysexits (Makefile.am): Replace literal occurrences
79438         of "sysexit.h" more readable, and more consistent, "$@".
79439
79440 2006-09-06  Bruno Haible  <bruno@clisp.org>
79441
79442         * modules/striconv: New file.
79443         * modules/xstriconv: New file.
79444         * MODULES.html.sh (Internationalization functions): Add striconv,
79445         xstriconv.
79446
79447 2006-09-06  Bruno Haible  <bruno@clisp.org>
79448
79449         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79450         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79451         not using libtool correctly.
79452
79453 2006-09-06  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/striconv.h: New file.
79456         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79457         iconvstring.c.
79458         * lib/xstriconv.h: New file.
79459         * lib/xstriconv.c: New file.
79460
79461 2006-09-06  Bruno Haible  <bruno@clisp.org>
79462
79463         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79464         lib_..._LDFLAGS.
79465
79466 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79467
79468         * lib/argz_.h: Sync from Libtool.
79469
79470         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79471                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79472
79473         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79474
79475 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79476
79477         * modules/trim: New file.
79478
79479 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79480
79481         * lib/trim.h: New file.
79482         * lib/trim.c: New file.
79483
79484 2006-09-05  Bruno Haible  <bruno@clisp.org>
79485
79486         * MODULES.html.sh (String handling): Add trim.
79487
79488 2006-09-04  Karl Berry  <karl@gnu.org>
79489
79490         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79491         until next release.
79492
79493 2006-09-03  Bruno Haible  <bruno@clisp.org>
79494
79495         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79496         correctly.
79497
79498 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79501         not gl_GETLOADAVG.  Omit unneeded semicolons.
79502         Problems reported by Ralf Wildenhues in
79503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79504         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79505         at the end, which is the usual gnulib style.
79506
79507         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79508         of doing all the work ourselves.
79509         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79510         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79511
79512 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79515         Problem reported by Ralf Wildenhues in
79516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79517
79518         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79519         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79520
79521 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79524         yesterday's patch by changing test -n to test -z.
79525
79526 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79529         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79530         the former is now obsolescent.
79531
79532         * modules/chdir-long (Depends-on): Add fcntl.
79533
79534 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79537         obsolescent, and programs should use gnulib instead.
79538         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79539         but with prefixes changed.
79540
79541 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79544         or stdbool.h, because they might not exist while configuring.
79545
79546         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79547         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79548         does that for us.
79549         (O_DIRECTORY): Remove.
79550
79551 2006-08-31  Eric Blake  <ebb9@byu.net>
79552
79553         * gnulib-tool: Don't let emacs change spaces to TAB.
79554
79555 2006-08-31  Bruno Haible  <bruno@clisp.org>
79556
79557         * gnulib-tool: When calling func_import more than once, do it in a
79558         subshell.
79559         Reported by Eric Blake <ebb9@byu.net>.
79560
79561 2006-08-31  Bruno Haible  <bruno@clisp.org>
79562
79563         * gnulib-tool (nl): Remove variable.
79564         (sed_transform_lib_file): Use more robust test for config-h module.
79565         (func_import): Fix typo in 2006-08-25 patch.
79566
79567 2006-08-31  Bruno Haible  <bruno@clisp.org>
79568
79569         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79570         specified, augment Makefile.am variables instead of assigning them.
79571
79572 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         Work around a bug in both the Linux and SunOS 64-bit kernels:
79575         nanosleep mishandles sleeps for longer than 2**31 seconds.
79576         Problem reported by Frank v Waveren in
79577         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79579         Check for nanosleep bug.
79580         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79581
79582 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         Work around a bug in both the Linux and SunOS 64-bit kernels:
79585         nanosleep mishandles sleeps for longer than 2**31 seconds.
79586         Problem reported by Frank v Waveren in
79587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79588         * lib/nanosleep.c (BILLION): New constant.
79589         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79590         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79591         implementation.
79592
79593 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * modules/nanosleep (Depends-on): Add gettime.
79596
79597 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79598         and Simon Josefsson  <jas@extundo.com>
79599         and Oskar Liljeblad  <oskar@osk.mine.nu>
79600
79601         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79602         * gnulib-tool (func_import): New license type 'unmodifiable license
79603         text'.
79604         * modules/fdl: Use it.  Longer description.
79605         * module/gpl, module/lgpl: New files.
79606
79607 2006-08-30  Jim Meyering  <jim@meyering.net>
79608
79609         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79610         shadowing the parameter.
79611
79612 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79613
79614         Sync from Libtool:
79615
79616         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79617
79618         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79619         sharing with gnulib.  Report by Eric Blake.
79620
79621 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * modules/isapipe: New file.
79624         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79625
79626 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * modules/configmake (Makefile.am): Add a comment, and omit
79629         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79630         by Bruno Haible.
79631
79632 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         * m4/isapipe.m4: New file.
79635
79636 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * lib/isapipe.c, lib/isapipe.h: New files.
79639
79640 2006-08-29  Jim Meyering  <jim@meyering.net>
79641
79642         * modules/configmake (Makefile.am): Make configmake.h depend on
79643         Makefile.  Otherwise, a stale configmake.h could hang around.
79644
79645 2006-08-29  Eric Blake  <ebb9@byu.net>
79646
79647         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79648         resolution of upstream bug 3044.
79649
79650 2006-08-29  Bruno Haible  <bruno@clisp.org>
79651
79652         * modules/localcharset (Depends-on): Add configmake.
79653         (Makefile.am): Remove setting of LIBDIR through DEFS.
79654
79655 2006-08-29  Bruno Haible  <bruno@clisp.org>
79656
79657         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79658         defined.
79659
79660 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * modules/fcntl: New file.
79663         * modules/chdir-safer (Depends-on): Add fcntl.
79664         * modules/fts: Likewise.
79665         * modules/mkdir-p: Likewise.
79666
79667         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79668         This undoes the most recent change, since we're now addressing the
79669         problem in a different way.
79670
79671         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79672         into output, since the output might be called Makefile.am even
79673         if $makefile_name is something different.
79674         (func_import): Use $makefile_am rather than
79675         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79676         empty.
79677
79678         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79679
79680 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79683         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79684         recent change to stdint.m4, since we're now addressing the problem in a
79685         different way.
79686
79687 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * m4/fcntl_h.m4: New file.
79690
79691 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * lib/fcntl_.h: New file.
79694         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79695         the fcntl module.
79696         * lib/dirchownmod.c: Likewise.
79697         * lib/fts.c: Likewise.
79698
79699         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79700         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79701         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79702         just before including <inttypes.h>, to avoid circular inclusion.
79703
79704 2006-08-28  Jim Meyering  <jim@meyering.net>
79705
79706         * doc/visibility.texi: Actually read and correct the grammar of the
79707         sentence affected by yesterday's change.
79708
79709 2006-08-28  Eric Blake  <ebb9@byu.net>
79710
79711         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79712         needs wrapper.
79713
79714 2006-08-28  Eric Blake  <ebb9@byu.net>
79715
79716         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79717
79718 2006-08-28  Eric Blake  <ebb9@byu.net>
79719
79720         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79721
79722 2006-08-28  Bruno Haible  <bruno@clisp.org>
79723
79724         * modules/c-strstr: New file, from GNU gettext.
79725         * MODULES.html.sh (String handling): Add c-strstr.
79726
79727 2006-08-28  Bruno Haible  <bruno@clisp.org>
79728
79729         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79730         macros.
79731         Reported by Eric Blake.
79732
79733 2006-08-28  Bruno Haible  <bruno@clisp.org>
79734
79735         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79736         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79737         * lib/vasprintf.c: Include errno.h, limits.h.
79738         (EOVERFLOW): New fallback definition.
79739         (vasprintf): Test here whether the string length is > INT_MAX.
79740         * lib/vsnprintf.c: Include errno.h, limits.h.
79741         (EOVERFLOW): New fallback definition.
79742         (vsnprintf): Fix bug when generated string was too long for the buffer.
79743         Test here whether the string length is > INT_MAX.
79744
79745 2006-08-28  Bruno Haible  <bruno@clisp.org>
79746
79747         * lib/inttypes_.h (SCNX*): Remove definitions.
79748         Reported by Eric Blake.
79749
79750 2006-08-28  Bruno Haible  <bruno@clisp.org>
79751
79752         * lib/c-strstr.h: New file, from GNU gettext.
79753         * lib/c-strstr.c: New file, from GNU gettext.
79754
79755 2006-08-28  Bruno Haible  <bruno@clisp.org>
79756
79757         * gnulib-tool: Reorder some statements.
79758
79759 2006-08-28  Bruno Haible  <bruno@clisp.org>
79760
79761         * gnulib-tool: New option --makefile-name.
79762         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79763         $makefile_name.
79764         (func_import): Write $makefile_name to the cache file, and read it from
79765         there unless explicitly specified. Use $makefile_name as file name
79766         instead of Makefile.am. Adjust the recommendations accordingly.
79767
79768 2006-08-28  Bruno Haible  <bruno@clisp.org>
79769
79770         * gnulib-tool (func_verify_module): Check against misapplying patch.
79771
79772 2006-08-28  Bruno Haible  <bruno@clisp.org>
79773
79774         * gnulib-tool (func_relativize, func_relconcat): New functions.
79775         Give an error if --local-dir is given with --update.
79776         Remove trailing slashes from $local_gnulib_dir.
79777         (func_import): Store the relativized $local_gnulib_dir in
79778         gnulib-cache.m4, and read it from there if not specified explicitly.
79779
79780 2006-08-28  Bruno Haible  <bruno@clisp.org>
79781
79782         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79783         is the current directory. Respect also $local_gnulib_dir.
79784
79785 2006-08-28  Bruno Haible  <bruno@clisp.org>
79786             Simon Josefsson  <jas@extundo.com>
79787
79788         BeOS portability.
79789         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79790
79791 2006-08-27  Jim Meyering  <jim@meyering.net>
79792
79793         * doc/visibility.texi: Remove duplicate word: "pointer".
79794
79795 2006-08-26  Bruno Haible  <bruno@clisp.org>
79796
79797         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79798         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79799         (Makefile.am): Create inttypes.h from inttypes_.h.
79800         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79801
79802         * modules/imaxabs: New file.
79803
79804         * modules/imaxdiv: New file.
79805
79806 2006-08-26  Bruno Haible  <bruno@clisp.org>
79807
79808         * m4/inttypes.m4: New file.
79809         * m4/_inttypes_h.m4: Remove file.
79810         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79811         PRI_MACROS_BROKEN.
79812         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79813
79814         * m4/imaxabs.m4: New file.
79815
79816         * m4/imaxdiv.m4: New file.
79817
79818 2006-08-26  Bruno Haible  <bruno@clisp.org>
79819
79820         * lib/inttypes_.h: New file.
79821         * lib/inttypes.h: Remove file.
79822         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79823
79824         * lib/imaxabs.c: New file.
79825
79826         * lib/imaxdiv.c: New file.
79827
79828 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         New config-h module, so that "make" output needn't be cluttered
79831         by -DHAVE_CONFIG_H.
79832         * MODULES.html.sh (Support for building libraries and executables):
79833         Add config-h.
79834         * modules/config-h: New file.
79835         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79836         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79837         the config-h module is used.
79838
79839         New configmake module, so that "make" output needn't be cluttered
79840         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79841         * MODULES.html.sh (Support for building libraries and executables):
79842         Add configmake.
79843         * modules/configmake: New file.
79844
79845 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         * m4/config-h.m4: New file.
79848
79849 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79850
79851         * config/srclist.txt: Add elisp-comp.
79852
79853 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * MODULES.html.sh (Support for building libraries and executables):
79856         Add elisp-comp.
79857         * build-aux/elisp-comp: New file.
79858         * modules/elisp-comp: New file.
79859
79860 2006-08-24  Bruno Haible  <bruno@clisp.org>
79861
79862         * gnulib-tool (func_create_testdir): Use non-default values of
79863         sourcebase and m4base.
79864
79865 2006-08-24  Bruno Haible  <bruno@clisp.org>
79866
79867         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79868         HTML structure.
79869
79870 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * modules/openat (Depends-on): Add lchown.
79873
79874 2006-08-23  Bruno Haible  <bruno@clisp.org>
79875
79876         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79877         of gl_LOCK_EARLY instead of gl_LOCK.
79878
79879 2006-08-23  Bruno Haible  <bruno@clisp.org>
79880
79881         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79882         on OSF/1 to no.
79883         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79884
79885 2006-08-23  Bruno Haible  <bruno@clisp.org>
79886
79887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79888         as unusable.
79889
79890         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79891         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79892         (gl_LOCK): New macro.
79893
79894 2006-08-22  Simon Josefsson  <jas@extundo.com>
79895
79896         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79897         to md5 module.
79898
79899 2006-08-22  Simon Josefsson  <jas@extundo.com>
79900
79901         * MODULES.html.sh: Add "Support for maintaining and release
79902         projects".
79903
79904         * build-aux/gnupload: New file, from coreutils.
79905
79906 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         Avoid the need for AC_LIBSOURCES in m4 macros.
79909         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79910         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79911         * modules/check-version (EXTRA_DIST): Add check-version.h.
79912         * modules/crc (EXTRA_DIST): Add crc.h.
79913         * modules/des (EXTRA_DIST): Add des.h.
79914         * modules/gc (EXTRA_DIST): Add gc.h.
79915         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79916         * modules/getline (EXTRA_DIST): Add getline.h.
79917         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79918         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79919         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79920         * modules/md2 (EXTRA_DIST): Add md2.h.
79921         * modules/md4 (EXTRA_DIST): Add md4.h.
79922         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79923         * modules/read-file (EXTRA_DIST): Add read-file.h.
79924         * modules/readline (EXTRA_DIST): Add readline.h.
79925         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79926         rijndael-api-fst.h.
79927
79928 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * m4/rijndael.m4 (gl_ARCFOUR):
79931         * m4/arctwo.m4 (gl_ARCTWO):
79932         * m4/check-version.m4 (gl_CHECK_VERSION):
79933         * m4/crc.m4 (gl_CRC):
79934         * m4/des.m4 (gl_DES):
79935         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79936         * m4/gc.m4 (gl_GC):
79937         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79938         * m4/getline.m4 (gl_FUNC_GETLINE):
79939         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79940         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79941         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79942         * m4/md2.m4 (gl_MD2):
79943         * m4/md4.m4 (gl_MD4):
79944         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79945         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79946         * m4/readline.m4 (gl_FUNC_READLINE):
79947         * m4/rijndael.m4 (gl_RIJNDAEL):
79948         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79949         to get the necessary .h files and whatnot.
79950
79951 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79954         gnulib rather than the other way around.
79955         * config/srclistvars.sh (COREUTILS): Remove.
79956
79957 2006-08-22  Jim Meyering  <jim@meyering.net>
79958
79959         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79960
79961         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79962
79963 2006-08-22  Eric Blake  <ebb9@byu.net>
79964
79965         * modules/regexprops-generic: New file.
79966         * MODULES.html.sh (Support for building documentation): List it.
79967
79968 2006-08-22  Eric Blake  <ebb9@byu.net>
79969
79970         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79971         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79972         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79973         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79974
79975 2006-08-22  Bruno Haible  <bruno@clisp.org>
79976
79977         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79978         and lib_LTLIBRARIES like the other lib_* variables.
79979
79980 2006-08-22  Bruno Haible  <bruno@clisp.org>
79981
79982         * build-aux/x-to-1.in: New file, from GNU gettext.
79983
79984 2006-08-22  Bruno Haible  <bruno@clisp.org>
79985
79986         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79987         <utmpx.h> exists.
79988
79989 2006-08-22  Bruno Haible  <bruno@clisp.org>
79990
79991         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79992         <utmpx.h> exists.
79993
79994 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         BeOS portability.
79997         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79998         exist.
79999         Problem reported by Bruno Haible.
80000
80001 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         Avoid the need for AC_LIBSOURCES in m4 macros.
80004         * modules/acl (EXTRA_DIST): Add acl.h.
80005         * modules/argmatch (Files): Add m4/argmatch.m4.
80006         (configure.ac): Add gl_ARGMATCH.
80007         (EXTRA_DIST): Renamed from lib_SOURCES, for
80008         consistency with the other modules.  Remove argmatch.c.
80009         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80010         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80011         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80012         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80013         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80014         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80015         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80016         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80017         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80018         * modules/closeout (EXTRA_DIST): Add closeout.h.
80019         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80020         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80021         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80022         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80023         dirname.h; remove basename.c and stripslash.c.
80024         * modules/exclude (EXTRA_DIST): Add exclude.h.
80025         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80026         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80027         * modules/file-type (EXTRA_DIST): Add file-type.h.
80028         * modules/filemode (EXTRA_DIST): Add filemode.h.
80029         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80030         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80031         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80032         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80033         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80034         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80035         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80036         * modules/getdate (EXTRA_DIST): Add getdate.c.
80037         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80038         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80039         * modules/getpass (EXTRA_DIST): Add getpass.h.
80040         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80041         * modules/group-member (EXTRA_DIST): Add group-member.h.
80042         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80043         * modules/hash (EXTRA_DIST): Add hash.h.
80044         * modules/human (EXTRA_DIST): Add human.h.
80045         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80046         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80047         * modules/lchown (EXTRA_DIST): Add lchown.h.
80048         * modules/long-options (EXTRA_DIST): Add long-options.h.
80049         * modules/lstat (EXTRA_DIST): Add lstat.h.
80050         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80051         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80052         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80053         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80054         * modules/memxor (EXTRA_DIST): Add memxor.h.
80055         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80056         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80057         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80058         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80059         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80060         * modules/physmem (EXTRA_DIST): Add physmem.h.
80061         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80062         * modules/posixver (EXTRA_DIST): Add posixver.h.
80063         * modules/quote (EXTRA_DIST): Add quote.h.
80064         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80065         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80066         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80067         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80068         regex_internal.h regexec.c.
80069         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80070         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80071         * modules/same (EXTRA_DIST): Add same.h.
80072         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80073         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80074         * modules/savedir (EXTRA_DIST): Add savedir.h.
80075         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80076         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80077         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80078         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80079         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80080         * modules/strdup (EXTRA_DIST): Add strdup.h.
80081         * modules/strftime (EXTRA_DIST): Add strftime.h.
80082         * modules/strndup (EXTRA_DIST): Add strndup.h.
80083         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80084         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80085         * modules/time_r (EXTRA_DIST): Add time_r.h.
80086         * modules/timespec (EXTRA_DIST): Add timespec.h.
80087         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80088         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80089         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80090         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80091         * modules/userspec (EXTRA_DIST): Add userspec.h.
80092         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80093         * modules/utimens (EXTRA_DIST): Add utimens.h.
80094         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80095         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80096         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80097         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80098         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80099         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80100         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80101         * modules/yesno (EXTRA_DIST): Add yesno.h.
80102
80103 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80106
80107         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80108         * m4/dev-ino.m4, same-inode.m4: Remove.
80109
80110         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80111         * m4/acl.m4 (AC_FUNC_ACL):
80112         * m4/backupfile.m4 (gl_BACKUPFILE):
80113         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80114         * m4/canon-host.m4 (gl_CANON_HOST):
80115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80117         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80118         * m4/cloexec.m4 (gl_CLOEXEC):
80119         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80120         * m4/closeout.m4 (gl_CLOSEOUT):
80121         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80122         * m4/dirname.m4 (gl_DIRNAME):
80123         * m4/exclude.m4 (gl_EXCLUDE):
80124         * m4/exitfail.m4 (gl_EXITFAIL):
80125         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80126         * m4/file-type.m4 (gl_FILE_TYPE):
80127         * m4/filemode.m4 (gl_FILEMODE):
80128         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80129         * m4/fpending.m4 (gl_FUNC_FPENDING):
80130         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80131         * m4/fts.m4 (gl_FUNC_FTS):
80132         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80133         * m4/getdate.m4 (gl_GETDATE):
80134         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80135         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80136         * m4/getpass.m4 (gl_FUNC_GETPASS):
80137         * m4/gettime.m4 (gl_GETTIME):
80138         * m4/getugroups.m4 (gl_GETUGROUPS):
80139         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80140         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80141         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80142         * m4/hash.m4 (gl_HASH):
80143         * m4/idcache.m4 (gl_IDCACHE):
80144         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80145         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80146         * m4/long-options.m4 (gl_LONG_OPTIONS):
80147         * m4/lstat.m4 (gl_FUNC_LSTAT):
80148         * m4/md5.m4 (gl_MD5):
80149         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80150         * m4/memcoll.m4 (gl_MEMCOLL):
80151         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80152         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80153         * m4/memxor.m4 (gl_MEMXOR):
80154         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80155         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80156         * m4/modechange.m4 (gl_MODECHANGE):
80157         * m4/mountlist.m4 (gl_MOUNTLIST):
80158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80159         * m4/openat.m4 (gl_FUNC_OPENAT):
80160         * m4/pathmax.m4 (gl_PATHMAX):
80161         * m4/physmem.m4 (gl_PHYSMEM):
80162         * m4/posixtm.m4 (gl_POSIXTM):
80163         * m4/posixver.m4 (gl_POSIXVER):
80164         * m4/quote.m4 (gl_QUOTE):
80165         * m4/quotearg.m4 (gl_QUOTEARG):
80166         * m4/readtokens.m4 (gl_READTOKENS):
80167         * m4/readutmp.m4 (gl_READUTMP):
80168         * m4/regex.m4 (gl_REGEX):
80169         * m4/safe-read.m4 (gl_SAFE_READ):
80170         * m4/safe-write.m4 (gl_SAFE_WRITE):
80171         * m4/same.m4 (gl_SAME):
80172         * m4/save-cwd.m4 (gl_SAVE_CWD):
80173         * m4/savedir.m4 (gl_SAVEDIR):
80174         * m4/settime.m4 (gl_SETTIME):
80175         * m4/sha1.m4 (gl_SHA1):
80176         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80177         * m4/stat-macros.m4 (gl_STAT_MACROS):
80178         * m4/stat-time.m4 (gl_STAT_TIME):
80179         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80180         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80181         * m4/strdup.m4 (gl_FUNC_STRDUP):
80182         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80183         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80184         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80185         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80186         * m4/time_r.m4 (gl_TIME_R):
80187         * m4/timespec.m4 (gl_TIMESPEC):
80188         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80189         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80190         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80191         * m4/userspec.m4 (gl_USERSPEC):
80192         * m4/utimecmp.m4 (gl_UTIMECMP):
80193         * m4/utimens.m4 (gl_UTIMENS):
80194         * m4/xalloc.m4 (gl_XALLOC):
80195         * m4/xgetcwd.m4 (gl_XGETCWD):
80196         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80197         * m4/xreadlink.m4 (gl_XREADLINK):
80198         * m4/xstrtod.m4 (gl_XSTRTOD):
80199         * m4/yesno.m4 (gl_YESNO):
80200         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80201         to get the necessary .h files and whatnot.
80202
80203 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80204             Bruno Haible  <bruno@clisp.org>
80205
80206         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80207         /bin/sh understanding of '!' conditional negation.
80208
80209 2006-08-21  Jim Meyering  <jim@meyering.net>
80210
80211         * modules/openat (Depends-on): Really alphabetize.
80212
80213         * modules/acl (Depends-on): Add error and quote.
80214
80215         * check-module (find_included_lib_files): Add at-func.c to the
80216         ok-to-include-more-than-once white list.
80217
80218         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80219
80220 2006-08-21  Bruno Haible  <bruno@clisp.org>
80221
80222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80223         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80224         Reported by Martin Lambers <marlam@marlam.de>.
80225
80226 2006-08-21  Bruno Haible  <bruno@clisp.org>
80227
80228         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80229         specify an installation location, don't emit a noinst_LIBRARIES or
80230         noinst_LTLIBRARIES assignment.
80231
80232 2006-08-21  Bruno Haible  <bruno@clisp.org>
80233
80234         BeOS portability.
80235         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80236         BeOS has mbrtowc() but no <wctype.h>.
80237
80238 2006-08-21  Bruno Haible  <bruno@clisp.org>
80239
80240         BeOS portability.
80241         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80242         exist.
80243
80244 2006-08-21  Bruno Haible  <bruno@clisp.org>
80245
80246         BeOS portability.
80247         * lib/mbchar.h: Include <wctype.h> only if it exists.
80248
80249 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         Remove files that are no longer needed by their respective modules.
80252         * m4/obstack.m4: Remove.
80253         * m4/strerror_r.m4: Remove.
80254         * m4/uint32_t.m4: Remove.
80255         * m4/uintptr_t.m4: Remove.
80256         * m4/ullong_max.m4: Remove.
80257         * m4/xstrtoimax.m4: Remove.
80258         * m4/xstrtoumax.m4: Remove.
80259
80260         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80261         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80262         dependencies now capture this.
80263
80264         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80265         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80266         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80267         * m4/human.m4 (gl_HUMAN): Likewise.
80268         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80269         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80270
80271         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80272
80273         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80274         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80275         stdint.
80276         * m4/human.m4 (gl_HUMAN): Likewise.
80277         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80278         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80279         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80280         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80281         * m4/xstrtol (gl_XSTRTOL): Likewise.
80282
80283         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80284         AC_TYPE_LONG_LONG_INT.
80285         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80286         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80287         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80288         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80289
80290         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80291         on stdbool.
80292
80293         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80294         (gl_PREREQ_XSTRTOUL): Remove.
80295
80296         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80297
80298         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80299         mode.
80300
80301 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         Add and change modules to make it easier for coreutils to use
80304         gnulib-tool.
80305         * modules/backupfile (Files): Remove m4/d-ino.m4.
80306         (Depends-on): Add d-ino.
80307         * modules/cycle-check (Depends-on): Add stdint.
80308         (lib_SOURCES): Add cycle-check.h.
80309         * modules/d-ino: New module.
80310         * modules/d-type: New module.
80311         * modules/error (Files): Remove m4/strerror_r.m4.
80312         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80313         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80314         m4/inttypes_h.m4, m4/uintmax_t.m4.
80315         (Depends-on): Add stdint.
80316         (lib_SOURCES): Add fsusage.h.
80317         * modules/getcwd (Files): Remove d-ino.m4.
80318         (Depends-on): Add d-ino.
80319         * modules/getndelim2 (Depends-on): Add stdint.
80320         * modules/glob (Files): Remove m4/d-type.m4.
80321         (Depends-on): Add d-type.
80322         * modules/host-os: New module.
80323         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80324         m4/inttypes_h.m4, m4/uintmax_t.m4.
80325         * Depends-on: Add stdint.
80326         (lib_SOURCES): Add human.h.
80327         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80328         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80329         m4/uintmax_t.m4, m4/ulonglong.m4.
80330         (Depends-on): Add stdint.
80331         (EXTRA_DIST): Add inttostr.h.
80332         * modules/lchmod: New module.
80333         * modules/link-follow: New module.
80334         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80335         (Depends-on): Add lchmod.
80336         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80337         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80338         (Depends-on): Add stdint.
80339         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80340         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80341         (Depends-on): Add stdint.
80342         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80343         * modules/perl: New module.
80344         * modules/regex (Depends-on): Add stdint.
80345         * modules/rmdir-errno: New module.
80346         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80347         m4/intmax_t.m4.
80348         (Depends-on): Add stdint.
80349         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80350         m4/uintmax_t.m4.
80351         (Depends-on): Add stdint.
80352         * modules/unlink-busy: New module.
80353         * modules/utimecmp (Depends-on): Add stdint.
80354         * modules/uptime: New module.
80355         * modules/winsz-ioctl: New module.
80356         * modules/winsz-termios: New module.
80357         * modules/xnanosleep (Depends-on): Add nanosleep.
80358         * modules/ullong_max: Remove.
80359         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80360         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80361         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80362         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80363         (Depends-on): Add inttypes.
80364         (lib_SOURCES): Add xstrtol.h.
80365         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80366         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80367         * MODULES.html.sh: Move 'assert' into the assert section.
80368         Move 'dummy' into the linking section.
80369         Remove ullong_max.
80370         Add section for compatibility checks for POSIX:2001 functions,
80371         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80372         winsz-ioctl, and winsz-termios into it.
80373         Add lchmod.
80374         Add top-level Misc section and put host-os, perl, and uptime
80375         into it.
80376
80377 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80380         now assume the stdint module.  Do not include inttypes.h.
80381         * lib/fsusage.h: Likewise.
80382         * lib/getndelim2.c: Likewise.
80383         * lib/human.h: Likewise.
80384         * lib/inttostr.h: Likewise.
80385         * lib/obstack.c: Likewise.
80386         * lib/regex_internal.h: Likewise.
80387         * lib/tempname.c: Likewise.
80388         * lib/utimecmp.c: Likewise.
80389         * lib/xstrtol.h: Likewise.
80390
80391         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80392
80393         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80394         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80395         * lib/xtime.h: Likewise.
80396
80397 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * modules/openat (Files): Add lib/fchmodat.c.
80400         Fixes problem reported by Jay Youngman.
80401
80402 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80403
80404         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80405         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80406
80407 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80408             Bruno Haible  <bruno@clisp.org>
80409
80410         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80411         and is a script that invokes bison. Tighten the code. Add comments.
80412
80413 2006-08-18  Jim Meyering  <jim@meyering.net>
80414
80415         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80416         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80417         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80418         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80419
80420 2006-08-18  Bruno Haible  <bruno@clisp.org>
80421
80422         * modules/bison-i18n: New file.
80423         * MODULES.html.sh (Internationalization functions): Add it.
80424
80425 2006-08-18  Bruno Haible  <bruno@clisp.org>
80426
80427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80428         sys/statvfs.h. When getmntinfo was found, check its declaration and
80429         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80430
80431 2006-08-18  Bruno Haible  <bruno@clisp.org>
80432
80433         * m4/bison-i18n.m4: New file, from bison.
80434
80435 2006-08-18  Bruno Haible  <bruno@clisp.org>
80436
80437         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80438         (ME_DUMMY): Treat "kernfs" as a dummy.
80439         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80440
80441 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         Update from coreutils.
80444
80445         2006-08-15  Jim Meyering  <jim@meyering.net>
80446
80447         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80448
80449         2006-01-17  Jim Meyering  <jim@meyering.net>
80450
80451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80452
80453         2006-01-11  Jim Meyering  <jim@meyering.net>
80454
80455         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80456         Check for the lchmod function.
80457
80458 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         Update from coreutils.
80461
80462         * lib/__fpending.h: Add copyright notice.
80463         * lib/fprintftime.h: Likewise.
80464         * lib/savedir.c: Use (C) in copyright notice.
80465         * lib/savedir.h: Likewise.
80466
80467         2006-08-15  Jim Meyering  <jim@meyering.net>
80468
80469         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80470         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80471         in support of the EXPECTED_ERRNO macro.
80472         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80473         definitions.  Instead, define the appropriate symbols and include
80474         "at-func.c".
80475         * lib/mkdirat.c (mkdirat): Likewise.
80476         * lib/fchmodat.c (fchmodat): Likewise.
80477         (ENOSYS): Remove definition.
80478         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80479         it.  Don't include "unistd--.h" -- it wasn't ever used.
80480
80481         2006-01-17  Jim Meyering  <jim@meyering.net>
80482
80483         Rewrite fts.c not to change the current working directory,
80484         by using openat, fstatat, fdopendir, etc..
80485
80486         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80487         (HAVE_OPENAT_SUPPORT): Define.
80488         [_LIBC] (fchdir): Don't undef or define; no longer used.
80489         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80490         Now, this `function' always succeeds, and consumes its file descriptor
80491         parameter -- so callers must not close such FDs.  Update callers.
80492         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80493         (diropen): Add parameter, SP.  Adjust all callers.
80494         Implement using diropen_fd, rather than open.
80495         (fts_open): Initialize new member, fts_cwd_fd.
80496         Remove fts_rft-setting code.
80497         (fts_close): Close fts_cwd_fd, if necessary.
80498         (__opendir2): Define in terms of opendir or opendirat,
80499         depending on whether the FST_NOCHDIR flag is set.
80500         (fts_build): Since fts_safe_changedir consumes its FD, and since
80501         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80502         and close the dup'd file descriptor upon failure.
80503         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80504         (fts_safe_changedir): Tweak semantics to reflect that this function
80505         now calls cwd_advance_fd and hence consumes its FD argument.
80506         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80507         [struct FTS] (fts_rft): Remove now-unused member.
80508         [struct FTS] (fts_cycle.state): Improve comment.
80509
80510         * lib/openat.c (openat_needs_fchdir): New function.
80511         * lib/openat.h (openat_needs_fchdir): Declare it.
80512
80513 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80516         Problem and fix reported by Pádraig Brady in
80517         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80518
80519 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80522
80523 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/memcoll.c (memcoll): Optimize for the common case where the
80526         arguments are bytewise equal.
80527
80528 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * doc/regexprops-generic.texi: Add a copyright notice.
80531
80532 2006-08-15  Bruno Haible  <bruno@clisp.org>
80533
80534         * modules/tmpdir (License): Change to LGPL.
80535
80536 2006-08-15  Bruno Haible  <bruno@clisp.org>
80537
80538         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80539         module.
80540
80541 2006-08-14  Simon Josefsson  <jas@extundo.com>
80542
80543         * config/srclist.txt: Add gnupload.
80544
80545 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         Change copyright notice from LGPL 2 to GPL 2, since that's the
80548         standard form used in the gnulib repository.
80549         * tests/test-lock.c: Likewise.
80550         * tests/test-stdint.c: Likewise.
80551         * tests/test-tls.c: Likewise.
80552
80553         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80554         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80555         Add copyright notice.
80556
80557         * check-module: Add copyright notice.  Output a copyright
80558         notice if "--version" is specified.
80559         * modules/COPYING: New file.
80560         * tests/test-getaddrinfo.c: Add copyright notice.
80561         * tests/test-verify.c: Likewise.
80562
80563 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         Change copyright notice from LGPL 2 to GPL 2, since that's the
80566         standard form used in the gnulib repository.
80567         * lib/lock.c: LGPL -> GPL.
80568         * lib/lock.h: Likewise.
80569         * lib/strnlen1.c: Likewise.
80570         * lib/strnlen1.h: Likewise.
80571         * lib/tls.c: Likewise.
80572         * lib/tls.h: Likewise.
80573         * lib/tmpdir.c: Likewise.
80574
80575         * lib/TODO: Remove; this belongs only in coreutils.
80576
80577 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80578
80579         Add copyright notices to long-enough files that lack them, since
80580         otherwise the files aren't clearly free.  Use the same notice that
80581         getdate.texi already uses.
80582         * doc/alloca-opt.texi: Add copyright notice.
80583         * doc/alloca.texi: Likewise.
80584         * doc/ctime.texi: Likewise.
80585         * doc/functions.texi: Likewise.
80586         * doc/gcd.texi: Likewise.
80587         * doc/gnulib-tool.texi: Likewise.
80588         * doc/inet_ntoa.texi: Likewise.
80589         * doc/visibility.texi: Likewise.
80590
80591         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80592         * doc/quote.texi: Add copyright notice.
80593
80594         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80595         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80596         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80597         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80598         is now obsolete, and give a pointer to the Sun list.
80599         Add copyright notice.
80600
80601 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * config/srclistvars.sh: Add copyright notice.
80604
80605 2006-08-14  Eric Blake  <ebb9@byu.net>
80606
80607         Import the following change from libc:
80608
80609         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80610
80611         Upstream bug 2997.
80612         * lib/misc/error.c: Add space between program name and message if file
80613         name is missing.
80614
80615 2006-08-12  Karl Berry  <karl@gnu.org>
80616
80617         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80618         remove, these originate in gnulib now.
80619
80620 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80621
80622         * doc/Makefile (standards.info standards.html standards.dvi):
80623         Also depend on make-stds.texi.
80624
80625 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80628         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80629
80630         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80631         in wchar_t.  Problem reported by Eric Blake.
80632
80633         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80634         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80635         Also, help the compiler to keep LEN in a register.
80636
80637 2006-08-11  Eric Blake  <ebb9@byu.net>
80638
80639         * users.txt: Sort.  Add tar.
80640
80641 2006-08-11  Bruno Haible  <bruno@clisp.org>
80642
80643         * users.txt: New file.
80644
80645 2006-08-11  Bruno Haible  <bruno@clisp.org>
80646
80647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80648         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80649
80650 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80651
80652         * modules/snprintf (Depends-on): Remove minmax.
80653         (Maintainer): Add self and Bruno.
80654
80655 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80658         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80659         (EOVERFLOW): Define if the system does not.
80660         Do not include "minmax.h"; it wasn't used.
80661         (snprintf): Don't assume size_t promotes to an unsigned type.
80662         Fix bug when generated string was too long for the buffer: the
80663         buffer's contents are supposed to be the initial prefix of the
80664         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80665         exceeds INT_MAX; do the check ourselves.
80666
80667         Import the following changes from libc:
80668
80669         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80670
80671         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80672         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80673         set wc to the byte which couldn't be converted.
80674         (re_string_reconstruct): Don't clear valid_raw_len before calling
80675         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80676         tip_context using re_string_context_at.
80677
80678         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80679
80680         * lib/posix/regex.h: g++ still cannot handled [restrict].
80681
80682         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80683
80684         * lib/posix/regex.h: Remove special handling for VMS.
80685
80686 2006-08-10  Jim Meyering  <jim@meyering.net>
80687
80688         * modules/same-inode: New module.
80689         * modules/dev-ino: New module.
80690         * modules/cycle-check: Depend on these modules, rather than simply
80691         including their .h files.
80692         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80693         required via m4/cycle-check.m4.
80694         * modules/same: Depend on new same-inode module, rather than
80695         including same-inode.h.
80696         * modules/chdir-safer: New file.
80697
80698         * modules/chown (Depends-on): Add stat-macros.
80699
80700 2006-08-10  Jim Meyering  <jim@meyering.net>
80701
80702         * m4/cycle-check.m4: New file.
80703         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80704         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80705
80706 2006-08-10  Eric Blake  <ebb9@byu.net>
80707
80708         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80709         in from original proposal.
80710
80711 2006-08-10  Eric Blake  <ebb9@byu.net>
80712         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80713
80714         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80715         namespace.
80716
80717 2006-08-10  Bruno Haible  <bruno@clisp.org>
80718
80719         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80720         as well.
80721
80722 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         Sync from coreutils.
80725
80726         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80727
80728         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80729         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80730
80731 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         * modules/restrict: Remove; no longer needed now that we assume
80734         Autoconf 2.59 or later.
80735         * MODULES.html.sh: Remove 'restrict'.
80736         * modules/argp (Depends-on): Remove 'restrict'.
80737         * modules/base64 (Depends-on): Likewise.
80738         * modules/gc (Depends-on): Likewise.
80739         * modules/getaddrinfo (Depends-on): Likewise.
80740         * modules/glob (Depends-on): Likewise.
80741         * modules/inet_ntop (Depends-on): Likewise.
80742         * modules/inet_pton (Depends-on): Likewise.
80743         * modules/memxor (Depends-on): Likewise.
80744         * modules/regex (Depends-on): Likewise.
80745         * modules/strtok_r (Depends-on): Likewise.
80746         * modules/time_r (Depends-on): Likewise.
80747
80748 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80751         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80752         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80753         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80754         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80755         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80756         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80757         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80758
80759         Merge from coreutils.
80760         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80761         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80762         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80763         * m4/time_r.m4 (gl_TIME_R): Likewise.
80764
80765 2006-08-09  Karl Berry  <karl@gnu.org>
80766
80767         * config/srclist.txt: no more gettext-tools, per Bruno.
80768
80769 2006-08-08  Eric Blake  <ebb9@byu.net>
80770
80771         * modules/verror: New module.
80772         * MODULES.html.sh: Document it.
80773
80774 2006-08-08  Eric Blake  <ebb9@byu.net>
80775
80776         * lib/verror.h, lib/verror.c: New files.
80777
80778 2006-08-08  Eric Blake  <ebb9@byu.net>
80779
80780         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80781         verror_at_line output complies with GNU Coding Standards even when
80782         file is NULL.
80783
80784 2006-08-07  Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80787         versions of AIX.
80788         Reported by Ralf Wildenhues.
80789
80790 2006-08-07  Bruno Haible  <bruno@clisp.org>
80791
80792         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80793         in an AC_DEFUN. Needed so that the autoconf snippets can use
80794         AC_REQUIRE.
80795
80796 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80797
80798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80799         Initialize pkgdata_DATA.
80800         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80801         overriding it.
80802
80803 2006-08-06  Eric Blake  <ebb9@byu.net>
80804
80805         * lib/error.h: Fold in some upstream changes from glibc.
80806         * lib/error.c: Likewise.
80807
80808 2006-08-04  Bruno Haible  <bruno@clisp.org>
80809
80810         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80811         Make the mostlyclean-local rule depend on mostlyclean-generic.
80812         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80813
80814 2006-07-31  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80817         <stdlib.h>, <string.h>.
80818
80819 2006-07-30  Bruno Haible  <bruno@clisp.org>
80820
80821         * modules/readlink (License): Change to LGPL.
80822
80823 2006-07-30  Bruno Haible  <bruno@clisp.org>
80824
80825         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80826         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80827         set PKGDATADIR to point to it.
80828
80829 2006-07-30  Bruno Haible  <bruno@clisp.org>
80830
80831         * modules/csharpexec (configure.ac): Comment out macro invocation.
80832         * modules/javaexec (configure.ac): Likewise.
80833         * modules/javacomp-script (configure.ac): Likewise.
80834
80835         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80836
80837 2006-07-30  Bruno Haible  <bruno@clisp.org>
80838
80839         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80840         linked-list.
80841
80842 2006-07-30  Bruno Haible  <bruno@clisp.org>
80843
80844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80845
80846 2006-07-30  Bruno Haible  <bruno@clisp.org>
80847
80848         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80849         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80850         get removed.
80851
80852 2006-07-29  Bruno Haible  <bruno@clisp.org>
80853
80854         Make it possible for gnulib-tool to work with locally modified or
80855         augmented gnulib repositories.
80856         * gnulib-tool (func_usage): Document --local-dir option.
80857         (local_gnulib_dir): New variable.
80858         Handle --local-dir option.
80859         (func_lookup_file): New function.
80860         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80861         (func_get_description, func_get_filelist, func_get_description,
80862         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80863         func_get_automake_snippet, func_get_include_directive,
80864         func_get_license, func_get_maintainer): Use func_lookup_file.
80865         (func_import, func_create_testdir): Use func_lookup_file.
80866
80867 2006-07-29  Bruno Haible  <bruno@clisp.org>
80868
80869         * modules/setenv (Depends-on): Add unistd.
80870
80871 2006-07-29  Bruno Haible  <bruno@clisp.org>
80872
80873         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80874
80875 2006-07-29  Bruno Haible  <bruno@clisp.org>
80876
80877         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80878
80879 2006-07-29  Bruno Haible  <bruno@clisp.org>
80880
80881         * gnulib-tool (import, update): If there is no Makefile.am, look at
80882         aclocal.m4, instead of bailing out.
80883
80884 2006-07-29  Bruno Haible  <bruno@clisp.org>
80885
80886         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80887         Categorize the options by when they are useful.
80888
80889 2006-07-29  Bruno Haible  <bruno@clisp.org>
80890
80891         * gnulib-tool (func_usage): Document option --no-libtool.
80892         Handle option --no-libtool.
80893         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80894         for changed semantics of $libtool variable.
80895         (func_import): Likewise. If libtool is not used, show this through
80896         an option --no-libtool.
80897         (func_create_testdir): Update.
80898
80899 2006-07-29  Bruno Haible  <bruno@clisp.org>
80900
80901         * gnulib-tool (func_import): Extend error message about missing
80902         --doc-base.
80903
80904 2006-07-29  Bruno Haible  <bruno@clisp.org>
80905
80906         * gnulib-tool (func_import): Don't create the $docbase directory if
80907         there is no file to store there.
80908
80909 2006-07-29  Bruno Haible  <bruno@clisp.org>
80910
80911         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80912         relevant, look for configure.ac there, not in the current directory.
80913         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80914
80915 2006-07-29  Bruno Haible  <bruno@clisp.org>
80916
80917         * gnulib-tool (SORT): New variable.
80918         (func_usage): Undocument --assume-autoconf option.
80919         Remove --assume-autoconf option handling.
80920         (autoconf_minversion): Determine from the contents of configure.ac.
80921         (func_import): Remove autoconf_minversion handling.
80922         Suggested by Eric Blake.
80923
80924 2006-07-29  Bruno Haible  <bruno@clisp.org>
80925
80926         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80927
80928 2006-07-29  Bruno Haible  <bruno@clisp.org>
80929
80930         * config/srclist.txt (*setenv.[ch]): Remove rules.
80931
80932 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80933
80934         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80935
80936 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80937
80938         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80939         arpa/inet.h.
80940
80941 2006-07-28  Simon Josefsson  <jas@extundo.com>
80942
80943         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80944         * modules/inet_pton (Depends-on): Likewise.
80945
80946 2006-07-28  Simon Josefsson  <jas@extundo.com>
80947
80948         * m4/netinet_in_h.m4: New file.
80949
80950 2006-07-28  Simon Josefsson  <jas@extundo.com>
80951
80952         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80953         #include's.
80954
80955 2006-07-28  Simon Josefsson  <jas@extundo.com>
80956
80957         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80958         #include's.
80959
80960 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80963         setgid on directories only if they set these bits.
80964         * lib/modechange.h: Remove obsolete comment about masks.
80965
80966 2006-07-28  Eric Blake  <ebb9@byu.net>
80967
80968         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80969         macro expansion.
80970
80971 2006-07-28  Bruno Haible  <bruno@clisp.org>
80972
80973         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80974
80975 2006-07-28  Bruno Haible  <bruno@clisp.org>
80976
80977         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80978
80979 2006-07-28  Bruno Haible  <bruno@clisp.org>
80980
80981         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80982         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80983         Define fallbacks.
80984         Avoids link error on FreeBSD 4.x.
80985         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80986
80987         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80988         encoding.
80989         * lib/mbswidth.c (iswcntrl): Likewise.
80990
80991 2006-07-27  Bruno Haible  <bruno@clisp.org>
80992
80993         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80994         test.
80995
80996 2006-07-27  Bruno Haible  <bruno@clisp.org>
80997
80998         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80999         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81000         defined.
81001
81002 2006-07-26  Eric Blake  <ebb9@byu.net>
81003
81004         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81005
81006 2006-07-26  Eric Blake  <ebb9@byu.net>
81007
81008         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81009         like mingw that lack mkstemp.
81010         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81011         avoid compilation warning on mingw.
81012
81013 2006-07-26  Bruno Haible  <bruno@clisp.org>
81014
81015         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81016         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81017         INT_FAST*_MIN, INTPTR_MIN.
81018
81019 2006-07-25  Bruno Haible  <bruno@clisp.org>
81020
81021         * modules/version-etc (Depends-on): Add stdarg.
81022
81023 2006-07-25  Bruno Haible  <bruno@clisp.org>
81024
81025         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81026         complex commands.
81027
81028 2006-07-25  Bruno Haible  <bruno@clisp.org>
81029
81030         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81031         defined in <stdarg.h> or config.h.
81032
81033 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81036         (gl_STDIO_SAFER): Remove.
81037
81038 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * MODULES.html.sh (File stream based Input/Output):
81041         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81042         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81043         * modules/fopen-safer, modules/tmpfile-safer: New files.
81044         * modules/stdio-safer: Remove.
81045
81046 2006-07-24  Bruno Haible  <bruno@clisp.org>
81047
81048         * modules/tmpdir: New file.
81049         * MODULES.html.sh (File system functions): Add it.
81050
81051 2006-07-24  Bruno Haible  <bruno@clisp.org>
81052
81053         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81054         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81055
81056 2006-07-24  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/clean-temp: New file.
81059
81060 2006-07-24  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/tmpdir.m4: New file, from GNU gettext.
81063
81064 2006-07-24  Bruno Haible  <bruno@clisp.org>
81065
81066         * lib/tmpdir.h: New file, from GNU gettext.
81067         * lib/tmpdir.c: New file, from GNU gettext.
81068
81069 2006-07-24  Bruno Haible  <bruno@clisp.org>
81070
81071         * lib/clean-temp.h: New file, from GNU gettext.
81072         * lib/clean-temp.c: New file, from GNU gettext.
81073
81074 2006-07-23  Eric Blake  <ebb9@byu.net>
81075
81076         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81077         (Depends-on): Add binary-io.
81078
81079 2006-07-23  Eric Blake  <ebb9@byu.net>
81080
81081         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81082
81083 2006-07-23  Eric Blake  <ebb9@byu.net>
81084
81085         * lib/tmpfile-safer.c: New file.
81086         * lib/stdio-safer.h (fopen_safer): Add prototype.
81087         * lib/stdio--.h (tmpfile): Make safer.
81088
81089 2006-07-23  Bruno Haible  <bruno@clisp.org>
81090
81091         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81092         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81093         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81094         gl_linked_remove_at): Use it.
81095
81096 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81097         and Simon Josefsson <jas@extundo.com>
81098
81099         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81100
81101         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81102
81103 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81104
81105         * modules/close-stream: New file.
81106         * modules/closeout (Description): Make it clear that it exits
81107         with a diagnostic on error.
81108         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81109         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81110
81111 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81112
81113         * m4/close-stream.m4: New file.
81114
81115 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81116
81117         * lib/close-stream.c, lib/close-stream.h: New files.
81118
81119 2006-07-22  Bruno Haible  <bruno@clisp.org>
81120
81121         Merge from GNU gettext 0.15.
81122
81123         2006-05-01  Bruno Haible  <bruno@clisp.org>
81124
81125                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81126
81127         2006-07-22  Bruno Haible  <bruno@clisp.org>
81128
81129                 * modules/javaversion: New file.
81130                 * MODULES.html.sh (Java): Add javaversion.
81131
81132         2006-03-12  Bruno Haible  <bruno@clisp.org>
81133
81134                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81135
81136         2005-12-04  Bruno Haible  <bruno@clisp.org>
81137
81138                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81139                 (untested).
81140
81141         2006-06-21  Bruno Haible  <bruno@clisp.org>
81142
81143                 Avoid warnings from recent versions of mcs.
81144                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81145                 -o, -L, -r any more. Use options documented since mcs-1.0
81146                 instead. Similarly for -g.
81147
81148         2005-12-04  Bruno Haible  <bruno@clisp.org>
81149
81150                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81151                 .resources, not .resource.
81152
81153         2005-07-09  Bruno Haible  <bruno@clisp.org>
81154
81155                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81156                 add a .dll suffix.
81157                 Reported by Mark Junker <mjscod@gmx.de>.
81158
81159         2006-07-22  Bruno Haible  <bruno@clisp.org>
81160
81161                 * modules/gettext: Upgrade to gettext-0.15.
81162                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81163                 m4/visibility.m4.
81164                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81165
81166 2006-07-22  Bruno Haible  <bruno@clisp.org>
81167
81168         Merge from GNU gettext 0.15.
81169
81170         2006-03-25  Bruno Haible  <bruno@clisp.org>
81171
81172                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81173
81174         2006-07-21  Bruno Haible  <bruno@clisp.org>
81175
81176                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81177                 "1.1".
81178
81179         2006-05-09  Bruno Haible  <bruno@clisp.org>
81180
81181                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81182                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81183                 for the conftestver execution.
81184
81185         2006-05-01  Bruno Haible  <bruno@clisp.org>
81186
81187                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81188                 optional target-version argument. Verify that the compiler
81189                 groks source of the specified source-version, or add -source
81190                 option as necessary. Verify that the compiler produces
81191                 bytecode in the specified target-version, or add -target and
81192                 -source options as necessary. Make the result of the test
81193                 available as variable CONF_JAVAC. Also log error output in
81194                 config.log.
81195
81196         2006-03-11  Bruno Haible  <bruno@clisp.org>
81197
81198                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81199
81200         2006-05-09  Bruno Haible  <bruno@clisp.org>
81201
81202                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81203                 CLASSPATH_SEPARATOR to a semicolon.
81204
81205         2006-03-12  Bruno Haible  <bruno@clisp.org>
81206
81207                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81208                 available as variable CONF_JAVA, for subsequent autoconf
81209                 tests. Also log error output in config.log.
81210
81211         2006-07-19  Bruno Haible  <bruno@clisp.org>
81212
81213                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81214                 that getline works on glibc2 systems. Needed to avoid trouble
81215                 in relocatable.c.
81216                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81217
81218         2005-12-04  Bruno Haible  <bruno@clisp.org>
81219
81220                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81221                 launcher (untested).
81222
81223         2005-12-04  Bruno Haible  <bruno@clisp.org>
81224
81225                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81226
81227         2006-07-22  Bruno Haible  <bruno@clisp.org>
81228
81229                 * gettext.m4: Update from GNU gettext-0.15.
81230                 * nls.m4: Likewise.
81231                 * po.m4: Likewise.
81232                 * inttypes-pri.m4: Likewise.
81233                 * inttypes-h.m4: Renamed from inttypes.m4.
81234                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81235
81236 2006-07-22  Bruno Haible  <bruno@clisp.org>
81237
81238         Merge from GNU gettext 0.15.
81239
81240         2005-07-05  Bruno Haible  <bruno@clisp.org>
81241
81242                 * printf-args.c (printf_fetchargs): Work around broken
81243                 definition of wint_t on mingw.
81244
81245         2005-02-12  Bruno Haible  <bruno@clisp.org>
81246
81247                 * xallocsa.h: Add extern "C" for C++.
81248
81249         2006-05-17  Bruno Haible  <bruno@clisp.org>
81250
81251                 Cygwin portability.
81252                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81253
81254         2006-04-30  Bruno Haible  <bruno@clisp.org>
81255
81256                 * progreloc.c: Include <mach-o/dyld.h> if available.
81257                 (find_executable): Use _NSGetExecutablePath when possible.
81258
81259         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81260
81261                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81262                 function.
81263
81264         2005-12-29  Bruno Haible  <bruno@clisp.org>
81265
81266                 * progreloc.c (set_program_name_and_installdir): Fix
81267                 compilation error.
81268
81269         2005-12-04  Bruno Haible  <bruno@clisp.org>
81270
81271                 Cygwin portability.
81272                 * progreloc.c: Include <windows.h> also on Cygwin.
81273                 (find_executable): Add support for Cygwin.
81274                 (set_program_name_and_installdir): Handle also platforms with
81275                 nonempty EXEEXT.
81276
81277         2006-07-11  Bruno Haible  <bruno@clisp.org>
81278
81279                 * javacomp.c: Fix a comment.
81280                 Reported by Jim Meyering.
81281
81282         2006-04-30  Bruno Haible  <bruno@clisp.org>
81283
81284                 * javacomp.h (compile_java_class): Add source_version,
81285                 target_version arguments.
81286                 * javacomp.c: Rewritten to choose only a compiler that
81287                 respects the specified source_version and target_version.
81288
81289         2006-06-27  Bruno Haible  <bruno@clisp.org>
81290
81291                 Assume correct S_ISDIR macro.
81292                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81293
81294         2006-07-22  Bruno Haible  <bruno@clisp.org>
81295
81296                 * javaversion.h: New file, from GNU gettext.
81297                 * javaversion.c: New file, from GNU gettext.
81298                 * javaversion.java: New file, from GNU gettext.
81299                 * javaversion.class: New file, from GNU gettext.
81300
81301         2006-05-17  Bruno Haible  <bruno@clisp.org>
81302
81303                 Cygwin portability.
81304                 * javaexec.c (execute_java_class): Test for jview program
81305                 also on Cygwin.
81306
81307         2006-04-09  Bruno Haible  <bruno@clisp.org>
81308
81309                 * fatal-signal.c: Don't include string.h.
81310                 (at_fatal_signal): Use a copying loop instead of memcpy.
81311
81312         2005-12-04  Bruno Haible  <bruno@clisp.org>
81313
81314                 * csharpexec.c: Add support for 'clix' launcher (untested).
81315                 (execute_csharp_using_sscli): New function.
81316                 (execute_csharp_program): Call it.
81317
81318         2006-06-21  Bruno Haible  <bruno@clisp.org>
81319
81320                 Avoid warnings from recent versions of mcs.
81321                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81322                 -o, -L, -r any more. Use options documented since mcs-1.0
81323                 instead. Similarly for -g.
81324
81325         2005-07-09  Bruno Haible  <bruno@clisp.org>
81326
81327                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81328                 add a .dll suffix.
81329                 Reported by Mark Junker <mjscod@gmx.de>.
81330
81331         2006-06-17  Bruno Haible  <bruno@clisp.org>
81332
81333                 * config.charset: Update for NetBSD 3.0.
81334
81335         2006-05-17  Bruno Haible  <bruno@clisp.org>
81336
81337                 Cygwin portability.
81338                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81339
81340         2006-05-16  Bruno Haible  <bruno@clisp.org>
81341
81342                 * localcharset.c [CYGWIN]: Include <windows.h>.
81343                 (get_charset_aliases): For Cygwin, return the same CPxxx
81344                 aliases list as under WIN32.
81345                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81346                 the environment variables. Fall back to GetACP().
81347
81348         2006-04-05  Bruno Haible  <bruno@clisp.org>
81349
81350                 * config.charset: Update Juan Manuel Guerrero's address.
81351
81352         2005-02-12  Bruno Haible  <bruno@clisp.org>
81353
81354                 * allocsa.h: Add extern "C" for C++.
81355
81356         2005-02-10  Bruno Haible  <bruno@clisp.org>
81357
81358                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81359                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81360
81361         2006-07-22  Bruno Haible  <bruno@clisp.org>
81362
81363                 * gettext.h: Update to GNU gettext-0.15.
81364
81365 2006-07-22  Bruno Haible  <bruno@clisp.org>
81366
81367         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81368         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81369         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81370
81371 2006-07-21  Eric Blake  <ebb9@byu.net>
81372
81373         * modules/stdlib-safer: New file.
81374         * MODULES.html.sh (File stream based Input/Output): Add
81375         stdlib-safer.
81376
81377 2006-07-21  Eric Blake  <ebb9@byu.net>
81378
81379         * lib/stdlib-safer.h: New file from coreutils, required by
81380         stdlib--.h.
81381
81382 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81383
81384         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81385
81386 2006-07-20  Bruno Haible  <bruno@clisp.org>
81387
81388         * gnulib-tool: Recognize new option --assume-autoconf.
81389         (autoconf_minversion): New variable.
81390         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81391
81392 2006-07-20  Bruno Haible  <bruno@clisp.org>
81393
81394         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81395
81396 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81397
81398         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81399         Reindent and repaginate.
81400
81401 2006-07-19  Derek Price  <derek@ximbiot.com>
81402
81403         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81404         Correct grammar.
81405
81406 2006-07-17  Bruno Haible  <bruno@clisp.org>
81407
81408         * modules/list: New file.
81409         * modules/array-list: New file.
81410         * modules/carray-list, modules/carray-list-tests: New files.
81411         * modules/linked-list, modules/linked-list-tests: New files.
81412         * modules/avltree-list, modules/avltree-list-tests: New files.
81413         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81414         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81415         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81416         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81417         * modules/oset: New file.
81418         * modules/array-oset: New file.
81419         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81420         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81421         * tests/test-carray_list.c: New file.
81422         * tests/test-linked_list.c: New file.
81423         * tests/test-avltree_list.c: New file.
81424         * tests/test-rbtree_list.c: New file.
81425         * tests/test-linkedhash_list.c: New file.
81426         * tests/test-avltreehash_list.c: New file.
81427         * tests/test-rbtreehash_list.c: New file.
81428         * tests/test-avltree_oset.c: New file.
81429         * tests/test-rbtree_oset.c: New file.
81430         * MODULES.html.sh (Container data structures): New section.
81431
81432 2006-07-17  Bruno Haible  <bruno@clisp.org>
81433
81434         * m4/gl_list.m4: New file.
81435
81436 2006-07-17  Bruno Haible  <bruno@clisp.org>
81437
81438         * lib/gl_list.h: New file.
81439         * lib/gl_list.c: New file.
81440         * lib/gl_array_list.h: New file.
81441         * lib/gl_array_list.c: New file.
81442         * lib/gl_carray_list.h: New file.
81443         * lib/gl_carray_list.c: New file.
81444         * lib/gl_linked_list.h: New file.
81445         * lib/gl_linked_list.c: New file.
81446         * lib/gl_anylinked_list1.h: New file.
81447         * lib/gl_anylinked_list2.h: New file.
81448         * lib/gl_avltree_list.h: New file.
81449         * lib/gl_avltree_list.c: New file.
81450         * lib/gl_anyavltree_list1.h: New file.
81451         * lib/gl_anyavltree_list2.h: New file.
81452         * lib/gl_rbtree_list.h: New file.
81453         * lib/gl_rbtree_list.c: New file.
81454         * lib/gl_anyrbtree_list1.h: New file.
81455         * lib/gl_anyrbtree_list2.h: New file.
81456         * lib/gl_anytree_list1.h: New file.
81457         * lib/gl_anytree_list2.h: New file.
81458         * lib/gl_linkedhash_list.h: New file.
81459         * lib/gl_linkedhash_list.c: New file.
81460         * lib/gl_anyhash_list1.h: New file.
81461         * lib/gl_anyhash_list2.h: New file.
81462         * lib/gl_avltreehash_list.h: New file.
81463         * lib/gl_avltreehash_list.c: New file.
81464         * lib/gl_rbtreehash_list.h: New file.
81465         * lib/gl_rbtreehash_list.c: New file.
81466         * lib/gl_anytreehash_list1.h: New file.
81467         * lib/gl_anytreehash_list2.h: New file.
81468
81469         * lib/gl_oset.h: New file.
81470         * lib/gl_oset.c: New file.
81471         * lib/gl_array_oset.h: New file.
81472         * lib/gl_array_oset.c: New file.
81473         * lib/gl_avltree_oset.h: New file.
81474         * lib/gl_avltree_oset.c: New file.
81475         * lib/gl_rbtree_oset.h: New file.
81476         * lib/gl_rbtree_oset.c: New file.
81477         * lib/gl_anytree_oset.h: New file.
81478
81479 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81480
81481         * m4/mkancesdirs.m4: New file.
81482         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81483         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81484         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81485         it.
81486
81487 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81490         * lib/mkancesdirs.h: New files.
81491         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81492         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81493         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81494         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81495         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81496         callers changed.  Revamp internals significantly, by not
81497         attempting to create directories that are temporarily more
81498         permissive than the final results.  Do not attempt to use
81499         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81500         This removes some race conditions, fixes some bugs, and simplifies
81501         things.  Use new dirchownmod function to do owner and mode changes.
81502         * lib/mkdir-p.h: Likewise.
81503         * lib/modechange.c (octal_to_mode): New function.
81504         (struct mode_change): New member mentioned.
81505         (make_node_op_equals): New arg mentioned.  All callers changed.
81506         (mode_compile): Keep track of which mode bits the user has explicitly
81507         mentioned.
81508         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81509         New arg PMODE_BITS, to keep track of which mode bits the user
81510         mentioned; it treats S_ISUID and S_ISGID speciall.
81511         All callers changed.
81512         * lib/modechange.h: Likewise.
81513
81514 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * MODULES.html.sh: Add mkancestors.
81517         * modules/mkancesdirs: New module.
81518         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81519         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81520         The chdir-safer and afs files are now orphans; I'll remove them
81521         unless someone speaks up.
81522         Add lib/dirchownmod.c, lib/dirchownmod.h.
81523         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81524         Add lchown, mkancesdirs.
81525         (Maintainer): Add self.
81526
81527 2006-07-15  Karl Berry  <karl@gnu.org>
81528
81529         * gnulib-tool: help message wording/arrangement.
81530
81531 2006-07-14  Simon Josefsson  <jas@extundo.com>
81532
81533         * doc/gnulib.texi (Libtool and Windows): New section.
81534
81535 2006-07-12  Simon Josefsson  <jas@extundo.com>
81536
81537         * modules/gendocs (License): Fix license, approved by Karl.
81538
81539 2006-07-12  Eric Blake  <ebb9@byu.net>
81540
81541         * MODULES.html.sh: Add gendocs.
81542
81543 2006-07-11  Eric Blake  <ebb9@byu.net>
81544
81545         * modules/fdl: New module, to install doc/fdl.texi.
81546         * MODULES.html.sh: Add new section for documentation modules.
81547         * gnulib-tool: Avoid space-tab.
81548         (--doc-base): New option, to manage files from doc.
81549
81550 2006-07-11  Eric Blake  <ebb9@byu.net>
81551
81552         * m4/absolute-header.m4: Fix comments to match recent change.
81553
81554 2006-07-11  Eric Blake  <ebb9@byu.net>
81555
81556         * gnulib-tool: List --doc-base before --tests-base.
81557
81558 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81559
81560         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81561
81562 2006-07-11  Bruno Haible  <bruno@clisp.org>
81563
81564         * README: Mention where to put documentation.
81565
81566 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81567
81568         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81569
81570 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81571
81572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81573         to stdint.m4.
81574
81575 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81578         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81579         "no/such/file/stdint.h" when there is no such file, so that
81580         the resulting C code can be parsed by dodgy compilers.
81581         Problems reported by Bob Proulx.
81582
81583 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81584
81585         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81586         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81587         macros into the GNU _D_EXACT_NAMLEN.
81588         * lib/savedir.c:  Likewise.
81589         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81590
81591 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81592         and Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81595         * m4/savedir.m4:
81596         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81597         macros into the GNU _D_EXACT_NAMLEN.
81598
81599 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81600
81601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81602         around the absolute name, to work around a problem with the HP-UX
81603         11.23 native C compiler, reported by Bob Proulx.
81604
81605 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * doc/maintain.texi, make-stds.texi: Sync from
81608         <http://savannah.gnu.org/projects/gnustandards>.
81609
81610 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81611
81612         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81613
81614 2006-07-09  Jim Meyering  <jim@meyering.net>
81615
81616         * m4/glob.m4: Remove a doubled word in a comment.
81617
81618 2006-07-09  Jim Meyering  <jim@meyering.net>
81619
81620         * lib/argp-pv.c: Remove a doubled word in a comment.
81621         * lib/check-version.c (check_version): Likewise.
81622         * lib/javacomp.c (compile_java_class): Likewise.
81623
81624 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81627         for the benefit of people using Autoconf 2.60.  If you want to
81628         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81629         (or m4/onceonly.m4, if pre-2.57) manually.
81630
81631 2006-07-08  Jim Meyering  <jim@meyering.net>
81632
81633         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81634         comment.
81635         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81636         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81637         comment.
81638
81639 2006-07-08  Jim Meyering  <jim@meyering.net>
81640
81641         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81642
81643 2006-07-07  Simon Josefsson  <jas@extundo.com>
81644
81645         * tests/test-crc.c: Change expected crc value, the test vector
81646         were probably computed using the old broken crc.c?
81647
81648 2006-07-06  Simon Josefsson  <jas@extundo.com>
81649
81650         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81651         now the canonical place for the M4 file).
81652
81653         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81654         from the sys_socket dependency now.
81655
81656         * modules/inet_pton (Files): Ditto.
81657
81658         * modules/inet_ntop (Files): Ditto.
81659
81660 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81661
81662         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81663         not gl_PREREQ_GETUSERSHELL.
81664
81665 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81666
81667         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81668         with only one argument, for Autoconf 2.60.
81669         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81670         expand to nothing, so add a shell command to avoid syntax error.
81671         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81672
81673 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81674
81675         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81676
81677 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81678
81679         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81680         no longer needed.  Check for isblank decl.
81681         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81682         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81683         of existence.
81684
81685 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         * lib/getloadavg.c: Use __VMS, not VMS.
81688         * lib/getopt.c: Likewise.
81689         * lib/getpagesize.h: Likewise.
81690         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81691         and probably does not work.
81692
81693 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * lib/.cppi-disable: Add wcwidth.
81696         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81697         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81698         (ISGRAPH): Remove.  All uses changed to isgraph.
81699         (FOLD) [!defined _LIBC]: Remove special case.
81700         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81701         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81702         HAVE_ISBLANK.
81703         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81704         case.
81705
81706 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81707
81708         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81709         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81710         brackets.  Other minor changes to suppress some compiler
81711         warnings.
81712
81713 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81714         and Paul Eggert  <eggert@cs.ucla.edu>
81715
81716         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81717         of invoking obsolescent AC_HEADER_DIRENT macro.
81718         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81719         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81720         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81722         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81723         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81724         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81725         * m4/readdir.m4: Remove; no longer needed.
81726
81727 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81728         and Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81731         Don't worry about this obsolete case any more.
81732         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81733         directories.
81734         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81735         worry about this obsolete case any more.
81736         * lib/fts.c: Likewise.
81737         * lib/getcwd.c: Likewise.
81738         * lib/glob.h: Likewise.
81739         * lib/savedir.c: Likewise.
81740
81741 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81742
81743         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81744         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81745         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81746         needed.
81747         All uses removed.
81748         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81749         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81750         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81751         needed.
81752         * m4/getdate.m4 (gl_GETDATE): Likewise.
81753         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81754         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81755         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81756         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81757         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81758         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81759         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81760         needed.
81761
81762 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * lib/memcasecmp.c: Include <limits.h>.
81765         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81766         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81767         Don't assume isdigit succeeds only on '0' through '9'.
81768
81769 2006-07-05  Eric Blake  <ebb9@byu.net>
81770
81771         * modules/getaddrinfo (Depends-on): Add snprintf.
81772
81773 2006-07-05  Eric Blake  <ebb9@byu.net>
81774
81775         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81776         to avoid 'header present but could not be compiled' on cygwin.
81777
81778 2006-07-05  Eric Blake  <ebb9@byu.net>
81779
81780         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81781         missing from netdb.h.
81782         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81783
81784 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81785
81786         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81787         no longer needed.
81788         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81789         * m4/getdate.m4 (gl_GETDATE): Likewise.
81790         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81791         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81792         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81793         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81795
81796 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81797
81798         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81799         All uses of is_space replaced by isspace.
81800         * lib/exit.h: Don't talk about STDC_HEADERS.
81801         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81802         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81803         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81804         replaced by isprint etc.
81805         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81806         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81807         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81808         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81809         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81810         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81811
81812 2006-07-05  Bruno Haible  <bruno@clisp.org>
81813
81814         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81815         the function exists, before testing against AIX.
81816         Reported by Martin Lambers <marlam@marlam.de>.
81817
81818 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81821         From Mark D. Baushke.
81822
81823 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81826         to the absolute name, not just one, to bypass Sun C 5.8's
81827         "warning: #include of /usr/include/... may be non-portable".
81828
81829 2006-07-04  Eric Blake  <ebb9@byu.net>
81830
81831         * modules/dirname-tests: New test module.
81832         * tests/test-dirname.c: New file, replacing dirname.c
81833         TEST_DIRNAME section that was recently deleted.
81834
81835 2006-07-04  Bruno Haible  <bruno@clisp.org>
81836
81837         Assume ANSI C header files and <ctype.h> functions.
81838         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81839         (mbsnwidth): Use isprint, iscntrl instead.
81840
81841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         Merge from coreutils.
81844         * MODULES.html.sh: Add xstrtold.
81845         * modules/xstrtold: New file.
81846         * modules/cycle-check (Files): Add lib/same-inode.h.
81847         * modules/dirname (Files): Add m4/double-slash-root.m4.
81848         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81849         * modules/mkdir-p (Files): Add lib/same-inode.h.
81850         * modules/same (Files): Add lib/same-inode.h.
81851
81852 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81855         This is to keep the terminology clean; POSIX talks about
81856         "absolute pathnames", not "full pathnames", but the GNU
81857         Coding Standards say to use "path" for something else;
81858         so use "absolute" to keep both sides happy.
81859         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81860         Set gl_absolute_header, not gl_full_header_path.
81861         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81862         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81863         All uses changed.
81864
81865         Merge from coreutils.
81866
81867         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81868
81869         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81870         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81871         want to require the building of c-strtod.o.
81872         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81873         needs -lm directly.
81874         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81875
81876         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81879         --as-needed option if available.  Problem reported by Albert Chin in
81880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81881         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81882         cc merely issues a bunch of annoying warnings for --as-needed
81883         (this problem was reported by Bob Proulx).  Also, try linking with
81884         -lm to detect a bug in binutils 2.16 (this problem was reported
81885         by Ralf Wildenhues).
81886
81887         2006-06-18  Jim Meyering  <jim@meyering.net>
81888
81889         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81890         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81891         macro.
81892         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81893         also check for glibc-2.4's abort-inducing bug.
81894
81895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81896         Low-probability clean-up should be to use rmdir to get rid of
81897         the just-created directory, not unlink.
81898
81899         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81900         configure fail, and request a bug report to inform us about it.
81901         Add a comment that, barring reports to the contrary, in 2007 we'll
81902         assume ftruncate is universally available.
81903
81904         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81905
81906         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81907
81908         2006-03-12  Jim Meyering  <jim@meyering.net>
81909
81910         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81911         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81912         * m4/same.m4 (gl_SAME): Likewise.
81913         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81914
81915         2006-03-11  Eric Blake  <ebb9@byu.net>
81916
81917         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81918         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81919         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81920         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81921
81922 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81923
81924         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81925         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81926         reported by Mark D. Baushke, one in
81927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81928
81929         Merge from coreutils.
81930
81931         * lib/.cppi-disable: Add stdint_.h.
81932         * lib/.cvsignore: Add stdint.h.
81933
81934         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81937         both double and long double versions.
81938         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81939         * lib/xstrtold.c: New file.
81940         * lib/xstrtod.h (xstrtold): New decl.
81941
81942         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/filemode.c (setst): Remove.
81945         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81946         (arguably) clearer, and the generated code is a bit smaller on my
81947         Debian GNU/Linux stable x86 host.
81948
81949         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81952         Assume that filemode.h includes sys/types.h and sys/stat.h.
81953         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81954         (ftypelet): Reorder to put common cases first, for efficiency.
81955         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81956         to do 'M'.
81957         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81958         of 10, for compatibility with FreeBSD.  All callers changed.
81959         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81960         types that can't be deduced solely from st_mode.  First arg is now a
81961         const pointer.
81962         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81963         (strmode): Renamed from mode_string.
81964         (filemodestring): New decl.
81965         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81966         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81967         needed.
81968         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81969
81970         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81973         fsusage.h now does that.  Include fsusage.h first, to test interface.
81974         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81975         at most one method (the old code could have generated decls that
81976         didn't conform to C89, not that this was ever exercised).
81977         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81978
81979         2006-03-19  Jim Meyering  <jim@meyering.net>
81980
81981         Work even in a chroot where d_ino values for entries in "/"
81982         don't match the stat.st_ino values for the same names.
81983         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81984         number, iterate through all entries again, using lstat instead.
81985         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81986         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81987
81988         * lib/getcwd.c (__getcwd): Clarify a comment.
81989         Use memcpy in place of a call to strcpy.
81990
81991         2006-03-12  Jim Meyering  <jim@meyering.net>
81992
81993         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81994         matches that of the current directory (which we're about to chdir ".."
81995         out of), then save the dev-ino of the parent, instead.
81996
81997         * lib/same-inode.h (SAME_INODE): New file/macro.
81998         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81999         Include "same-inode.h", instead.
82000         * lib/same.c: Likewise.
82001         * lib/cycle-check.h: Include "same-inode.h".
82002         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82003         * lib/cycle-check.c (SAME_INODE): Remove definition.
82004         * lib/root-dev-ino.h: Include "same-inode.h".
82005
82006         2006-03-11  Eric Blake  <ebb9@byu.net>
82007
82008         * lib/same.c (same_name): s/base_name/last_component/
82009         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82010         * lib/filenamecat.c (file_name_concat): Likewise.
82011
82012         2006-03-11  Eric Blake  <ebb9@byu.net>,
82013                     Paul Eggert  <eggert@cs.ucla.edu>
82014
82015         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82016         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82017         drive prefix.
82018         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82019         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82020         (last_component): New method.
82021         * lib/dirname.c (dir_len): Determine when drive letters need a
82022         subsequent slash.  Preserve // when it is special.
82023         (dir_name): Don't append dot when drive letter is absolute.
82024         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82025         * lib/basename.c (base_name): New semantics - malloc the result.
82026         Preserve // when it is special.  Preserve relative files that look
82027         like drive letters.
82028         (base_len): Preserve // when it is special.
82029         (last_component): New method, similar to old base_name semantics.
82030         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82031         base_name.  Strip redundant slashes from ///.
82032
82033 2006-07-03  Jim Meyering  <jim@meyering.net>
82034
82035         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82036         macro is used before the first cycle_check call.
82037
82038 2006-07-03  Eric Blake  <ebb9@byu.net>
82039
82040         * modules/dirname (Depends-on): Add xstrndup.
82041
82042 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82045         test cases, so that config.log is a bit easier to follow.
82046
82047 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82050         both are 64 bits, since this seems to be the tradition, and this
82051         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82052         we ever run into a host that prefers long long to long in this
82053         case, we'll need another configure-time test.  Problem reported by
82054         Jim Meyering.
82055
82056 2006-07-02  Eric Blake  <ebb9@byu.net>
82057
82058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82059
82060 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82061
82062         * modules/inttypes (Depends-on): No longer depends on stdint.
82063         * modules/stdint (Description): Say more about assumptions.
82064         Say that the fast types might differ.  Say macros are used.
82065         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82066         (Makefile.am): Revise list of substituted symbols to match
82067         new stdint.m4.
82068         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82069         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82070         * tests/test-stdint.c (verify_same_types)
82071         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82072         the code conforms to C99/C89.
82073         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82074         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82075
82076 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82077
82078         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82079         but fix a bug, by requiring at least 64 bits.
82080         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82081         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82082         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82083         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82084
82085         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82086         changes.  Make 2.59 a prerequisite.  Check and substitute for
82087         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82088         inttypes.h.  Do not use special include files; just use the
82089         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82090         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82091         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82092         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82093         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82094         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82095         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82096         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82097         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82098         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82099         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82100         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82101         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82102         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82103         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82104         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82105         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82106         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82107         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82108         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82109         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82110         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82111         not check for things that C99 does not require, e.g., int8_t.  If
82112         a test isn't needed unless <stdint.h> isn't working, and is
82113         unlikely to be needed for any other reason, then don't do it
82114         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82115         size_t, since we assume C89 freestanding at least.  Do not check
82116         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82117         the right thing even if the types are not defined.  Instead use:
82118         (gl_STDINT_TYPE_PROPERTIES): New macro.
82119         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82120         testing whether <sys/types.h> clashes, as Autoconf does this for
82121         us now.  All uses removed.
82122         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82123         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82124         (gl_CHECK_TYPE_SAME):
82125         Remove; no longer needed.
82126         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82127         exists, since we'll return 0 anyway in that case.
82128         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82129
82130 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82131
82132         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82133         possible collision with system files.
82134         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82135         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82136         WCHAR_MIN and WCHAR_MAX in this case.
82137         (<stddef.h>): Do not include; no longer needed.
82138         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82139         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82140         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82141         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82142         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82143         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82144         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82145         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82146         !defined(__c99))]: Include in this case too, since it's harmless
82147         now.
82148         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82149         dangerous to do so.
82150         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82151         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82152         (_STDINT_MIN, _STDINT_MAX): New macros.
82153         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82154         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82155         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82156         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82157         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82158         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82159         macros, not typedefs; this simplifies things quite a bit.
82160         Use long int for all types narrower than int64_t.
82161         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82162         Define in terms of long long int or int64_t or long int,
82163         not int64_t or int32_t.  This saves some compile-time testing.
82164         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82165         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82166         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82167         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82168         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82169         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82170         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82171         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82172         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82173         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82174         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82175         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82176         undef any previous version and define our own version, for
82177         simplicity and consistency with the new macros for types.
82178         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82179         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82180         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82181         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82182         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82183         @WINT_T_SUFFIX@ to keep things simple here.
82184         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82185         Simplify by assuming typical 8/16/32/64 host, since we're
82186         already doing that elsewhere anyway.
82187         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82188         and assume long long int is 64 bits if available.  This
82189         speeds up 'configure'.
82190
82191 2006-07-01  Eric Blake  <ebb9@byu.net>
82192
82193         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82194         Reported by Andreas Buening.
82195
82196 2006-07-01  Eric Blake  <ebb9@byu.net>
82197
82198         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82199
82200 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82201
82202         * lib/getaddrinfo.c: fixed typo
82203
82204 2006-06-29  Jim Meyering  <jim@meyering.net>
82205
82206         * modules/strftime (Maintainer): Add my name, since with the
82207         FPRINTFTIME changes strftime.c has forked from glibc.
82208
82209 2006-06-29  Eric Blake  <ebb9@byu.net>
82210
82211         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82212
82213 2006-06-29  Eric Blake  <ebb9@byu.net>
82214
82215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82216
82217 2006-06-29  Eric Blake  <ebb9@byu.net>
82218
82219         * lib/stat_.h: New file.
82220
82221 2006-06-29  Eric Blake  <ebb9@byu.net>
82222
82223         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82224         unused static function.
82225
82226 2006-06-29  Eric Blake  <ebb9@byu.net>
82227
82228         * doc/functions.texi (Function Portability): Document missing lstat
82229         on mingw.
82230
82231 2006-06-29  Eric Blake  <ebb9@byu.net>
82232
82233         * MODULES.html.sh: Add sys_stat.
82234         * modules/sys_stat: New module.
82235         * modules/mkstemp (Depends-on): Add sys_stat.
82236
82237 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82238
82239         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82240
82241 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82242
82243         * m4/c-bs-a.m4: Removed.
82244
82245 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82246
82247         * lib/strftime.c: Assume strftime() exists.
82248
82249 2006-06-29  Derek Price  <derek@ximbiot.com>
82250
82251         * modules/c-bs-a: Removed - \a is C89.
82252         * MODULES.html.sh: Remove c-bs-a.
82253
82254 2006-06-29  Bruno Haible  <bruno@clisp.org>
82255
82256         * modules/wcwidth (License): Change to LGPL.
82257
82258 2006-06-28  Simon Josefsson  <jas@extundo.com>
82259
82260         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82261         on _WIN32.
82262
82263         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82264         getnameinfo.
82265
82266 2006-06-28  Simon Josefsson  <jas@extundo.com>
82267
82268         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82269
82270 2006-06-28  Simon Josefsson  <jas@extundo.com>
82271
82272         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82273         functions there.  It will succeed on Windows XP, but on Windows
82274         2000 and (presumably) earlier, it will fail, and use the internal
82275         re-implementation.
82276         (use_win32_p): New function.
82277         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82278         Support AI_NUMERICSERV to disable getservbyname.
82279         (getnameinfo): New function, only supports
82280         NI_NUMERICHOST|NI_NUMERICSERV for now.
82281
82282         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82283         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82284         getnameinfo.
82285
82286 2006-06-28  Eric Blake  <ebb9@byu.net>
82287
82288         * modules/wcwidth: New file.
82289         * modules/mbchar (Depends-on): Add wcwidth.
82290         * modules/mbswidth (Depends-on): Add wcwidth.
82291         * MODULES.html.sh: Add wcwidth.
82292
82293 2006-06-28  Eric Blake  <ebb9@byu.net>
82294
82295         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82297
82298 2006-06-28  Eric Blake  <ebb9@byu.net>
82299
82300         * lib/xvasprintf.h: Fix comments.
82301
82302 2006-06-28  Eric Blake  <ebb9@byu.net>
82303
82304         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82305         * lib/mbswidth.c (wcwidth): Move from here...
82306         * lib/wcwidth.h: ...to this new file.
82307
82308 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82309
82310         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82311
82312         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82313         it's obsolete.
82314         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82315
82316 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82317
82318         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82319         Autoconf 2.60 says this stuff was obsolete.
82320
82321 2006-06-28  Bruno Haible  <bruno@clisp.org>
82322
82323         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82324
82325 2006-06-28  Bruno Haible  <bruno@clisp.org>
82326
82327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82328         gt_TYPE_WCHAR_T.
82329
82330 2006-06-28  Bruno Haible  <bruno@clisp.org>
82331
82332         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82333         declaration for wcwidth.
82334         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82335
82336 2006-06-28  Bruno Haible  <bruno@clisp.org>
82337
82338         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82339         (mkdir): Define using _mkdir.
82340
82341 2006-06-28  Bruno Haible  <bruno@clisp.org>
82342
82343         * lib/getaddrinfo.h: Fix POSIX URL.
82344         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82345         _WIN32.
82346         (use_win32_p): Make static.
82347         (getaddrinfo): Reject service name if it is empty or does not consist
82348         solely of decimal digits, or if its value is > 65535.
82349         (getnameinfo): Remove useless casts.
82350
82351 2006-06-27  Simon Josefsson  <jas@extundo.com>
82352
82353         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82354         Eggert and Martin Lambers.
82355
82356 2006-06-27  Simon Josefsson  <jas@extundo.com>
82357
82358         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82359         Eggert and Martin Lambers.
82360
82361 2006-06-27  Bruno Haible  <bruno@clisp.org>
82362
82363         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82364         result to 0, not to empty.
82365         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82366
82367 2006-06-27  Bruno Haible  <bruno@clisp.org>
82368
82369         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82370
82371 2006-06-26  Simon Josefsson  <jas@extundo.com>
82372
82373         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82374         present.
82375
82376 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82377
82378         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82379         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82381
82382 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82383
82384         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82385
82386 2006-06-26  Bruno Haible  <bruno@clisp.org>
82387
82388         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82389
82390 2006-06-26  Bruno Haible  <bruno@clisp.org>
82391
82392         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82393
82394 2006-06-26  Bruno Haible  <bruno@clisp.org>
82395
82396         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82397         SGI C compiler in pre-C99 mode.
82398         Suggested by Mark D. Baushke and Larry Jones.
82399
82400 2006-06-26  Bruno Haible  <bruno@clisp.org>
82401
82402         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82403         WCHAR_MAX.
82404         Reported by Mark D. Baushke and Larry Jones.
82405
82406 2006-06-26  Bruno Haible  <bruno@clisp.org>
82407
82408         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82409         in pre-C99 mode.
82410         Suggested by Mark D. Baushke and Larry Jones.
82411
82412 2006-06-23  Simon Josefsson  <jas@extundo.com>
82413             Bruno Haible  <bruno@clisp.org>
82414
82415         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82416         Emit mostlyclean-local rule.
82417         (func_emit_tests_Makefile_am): Likewise.
82418         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82419
82420 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82421
82422         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82423
82424 2006-06-23  Bruno Haible  <bruno@clisp.org>
82425
82426         * tests/test-stdint.c: Update to match ISO C 99 Technical
82427         Corrigendum 1.
82428
82429 2006-06-23  Bruno Haible  <bruno@clisp.org>
82430
82431         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82432
82433 2006-06-23  Bruno Haible  <bruno@clisp.org>
82434
82435         * lib/stdint_.h: Treat IRIX like OpenBSD.
82436
82437 2006-06-23  Bruno Haible  <bruno@clisp.org>
82438
82439         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82440         ISO C 99 Technical Corrigendum 1.
82441
82442 2006-06-22  Simon Josefsson  <jas@extundo.com>
82443
82444         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82445         MinGW.
82446
82447 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82450         needed.  Some compiler complained about some of them.  Problem reported
82451         by Larry Jones in
82452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82453
82454 2006-06-21  Simon Josefsson  <jas@extundo.com>
82455
82456         * tests/test-getaddrinfo.c: New file.
82457
82458         * modules/getaddrinfo-tests: New file.
82459
82460         * MODULES.html.sh: Add inet_pton.
82461
82462         * modules/inet_pton: New file.
82463
82464 2006-06-21  Simon Josefsson  <jas@extundo.com>
82465
82466         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82467         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82468         of using the (limited) gnulib implementation on Windows XP.
82469
82470         * m4/inet_pton.m4: New file.
82471
82472 2006-06-21  Simon Josefsson  <jas@extundo.com>
82473
82474         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82475         variable.
82476
82477         * lib/socket_.h: Don't define WINVER.
82478
82479         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82480         slightly modified to work in gnulib.
82481
82482 2006-06-21  Simon Josefsson  <jas@extundo.com>
82483
82484         * doc/gnulib.texi (Windows sockets): Add.
82485
82486 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * lib/read-file.c (fread_file): Start with buffer allocation of
82489         0 bytes rather than 1 byte; this simplifies the code.
82490         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82491         code to free buffer and save/restore errno.
82492         (internal_read_file): Remove unused local.
82493
82494 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82497         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82498         Problem reported by Denis Excoffier in
82499         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82500
82501 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82502
82503         * modules/sys_socket, modules/socklen: Include sys/types since
82504         FreeBSD 4.x's sys/socket.h needs it.
82505
82506 2006-06-19  Simon Josefsson  <jas@extundo.com>
82507
82508         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82509
82510 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82513
82514 2006-06-19  Bruno Haible  <bruno@clisp.org>
82515
82516         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82517         and FULL_PATH_INTTYPES_H in angle brackets.
82518         Reported by Mark D. Baushke <mdb@gnu.org>.
82519
82520 2006-06-17  Eric Blake  <ebb9@byu.net>
82521
82522         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82523         errno.
82524
82525 2006-06-17  Bruno Haible  <bruno@clisp.org>
82526
82527         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82528         <sys/inttypes.h>.
82529
82530 2006-06-17  Bruno Haible  <bruno@clisp.org>
82531
82532         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82533         whether errno is declared. Assume <errno.h> declares errno.
82534
82535 2006-06-17  Bruno Haible  <bruno@clisp.org>
82536
82537         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82538
82539 2006-06-17  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82542         problem on Solaris 2.5.1.
82543
82544 2006-06-16  Eric Blake  <ebb9@byu.net>
82545
82546         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82547         * lib/unicodeio.c [!defined errno]: Likewise.
82548         * lib/strtol.c [!defined errno]: Likewise.
82549         * lib/strtod.c [!defined errno]: Likewise.
82550
82551 2006-06-15  Eric Blake  <ebb9@byu.net>
82552
82553         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82554
82555 2006-06-15  Eric Blake  <ebb9@byu.net>
82556
82557         * config/srclist.txt (ssize_t.m4): Lose sync.
82558
82559 2006-06-15  Bruno Haible  <bruno@clisp.org>
82560
82561         * modules/stdint (Files): Include m4/full-header-path.m4,
82562         m4/size_max.m4, m4/wchar_t.m4.
82563         (Makefile.am): Many more substitutions.
82564         * modules/stdint-tests: New file.
82565         * tests/test-stdint.c: New file.
82566
82567 2006-06-15  Bruno Haible  <bruno@clisp.org>
82568
82569         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82570         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82571         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82572         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82573         gl_CHECK_TYPE_SAME): New macros.
82574
82575 2006-06-15  Bruno Haible  <bruno@clisp.org>
82576
82577         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82578
82579 2006-06-15  Bruno Haible  <bruno@clisp.org>
82580
82581         * lib/stdint_.h: Rewritten to be fully auto-configured.
82582         Fixes bug on HP-UX/IA64.
82583
82584 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82585
82586         * lib/getdate.y (__attribute__): Don't define if already defined.
82587         Problem reported by Larry Jones.
82588         * lib/utimens.c (__attribute__): Likewise.
82589
82590 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82593         reported by Andreas Schwab.
82594
82595 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82596             Bruno Haible  <bruno@clisp.org>
82597
82598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82599         check for the declaration of strnlen and a run test that exposes the
82600         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82601         rpl_strndup.
82602
82603 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82604             Bruno Haible  <bruno@clisp.org>
82605
82606         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82607
82608 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82609
82610         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82611         compile test, for Tru64 4.0D.
82612
82613 2006-05-28  Karl Berry  <karl@gnu.org>
82614
82615         * config/srclist.txt (printf-args.c): lose sync.
82616
82617 2006-05-26  Martin Lambers  <marlam@marlam.de>
82618
82619         * lib/getpass.c: Updates the test for the native W32 API, and adds
82620         missing includes, thus fixing compilation warnings.
82621
82622 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82623
82624         * lib/exclude.c (exclude_fnmatch): New function.
82625         (excluded_file_name): Call exclude_fnmatch.
82626         * lib/exclude.h (excluded_file_name): New prototype
82627
82628 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * lib/tempname.c (small_open, large_open): New macros.
82631         (__open, __open64) [!_LIBC]: Remove.
82632         (__gen_tempname): Use small_open and large_open instead of __open
82633         and __open64.  This fixes a portability bug on HP-UX 11.11i
82634         reported by Simon Wing-Tang in
82635         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82636
82637 2006-05-24  Bruno Haible  <bruno@clisp.org>
82638
82639         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82640         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82641         Reported by Thorsten Maerz <torte@netztorte.de> via
82642         Aaron Stone <aaron@serendipity.cx>.
82643
82644 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82645
82646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82647         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82648         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82649         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82650         not really conditional on the cache.
82651         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82652
82653 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82656         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82657         (my_usleep): Don't mishandle maximum value.
82658
82659 2006-05-19  Jim Meyering  <jim@meyering.net>
82660
82661         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82662
82663 2006-05-17  Bruno Haible  <bruno@clisp.org>
82664
82665         Cygwin portability.
82666         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82667
82668 2006-05-17  Bruno Haible  <bruno@clisp.org>
82669
82670         * lib/stdint_.h: Fix recognition of Cygwin.
82671
82672 2006-05-15  Bruno Haible  <bruno@clisp.org>
82673
82674         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82675         on libtool patch by Ralf Wildenhues.
82676
82677 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82680         test for C99 conformance; (bool) 0.5 is an integer constant
82681         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82682         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82683
82684 2006-05-11  Simon Josefsson  <jas@extundo.com>
82685
82686         * m4/xvasprintf.m4: Fix obvious typo.
82687
82688 2006-05-11  Jim Meyering  <jim@meyering.net>
82689
82690         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82691         James Lemley.
82692
82693 2006-05-10  Simon Josefsson  <jas@extundo.com>
82694
82695         * lib/md4.c: Typo fix, update copyright years.
82696         (K1, K2): Don't use L because it turn computations into 64-bit on
82697         64-bit platforms.
82698
82699 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82700
82701         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82702         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82703         unwanted sign propagation, e.g., on hosts with 64-bit int.
82704         There still are some problems with reeelly weird theoretical hosts
82705         (e.g., 33-bit int) but it's not worth worrying about now.
82706         * lib/sha1.c (rol): Likewise.
82707         (K1, K2, K3, K4): Remove unnecessary L suffix.
82708
82709 2006-05-10  Bruno Haible  <bruno@clisp.org>
82710
82711         * lib/des.c: Cast to avoid warnings.
82712
82713 2006-05-09  Bruno Haible  <bruno@clisp.org>
82714
82715         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82716         (Depends-on): Depend also on xsize, stdarg.
82717         (configure.ac): Add gl_XVASPRINTF.
82718
82719 2006-05-09  Bruno Haible  <bruno@clisp.org>
82720
82721         * m4/xvasprintf.m4: New file.
82722
82723 2006-05-09  Bruno Haible  <bruno@clisp.org>
82724
82725         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82726         (EOVERFLOW): Define fallback value.
82727         (xstrcat): New function.
82728         (xvasprintf): Recognize the special case of a string concatenation.
82729
82730 2006-05-08  Eric Blake  <ebb9@byu.net>
82731
82732         * gnulib-tool (func_version): Base copyright year on CVS date.
82733         (func_emit_copyright_notice): New function.
82734         (func_emit_lib_Makefile_am): Use it.
82735         (func_emit_tests_Makefile_am): Likewise.
82736         (func_import): Likewise.
82737
82738 2006-05-08  Bruno Haible  <bruno@clisp.org>
82739
82740         * modules/stdarg: New file.
82741         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82742
82743 2006-05-08  Bruno Haible  <bruno@clisp.org>
82744
82745         * m4/stdarg.m4: New file, from GNU gettext.
82746
82747 2006-05-08  Bruno Haible  <bruno@clisp.org>
82748
82749         * config/srclist.txt (build-aux/config.rpath): different from latest
82750         release.
82751
82752 2006-05-08  Bruno Haible  <bruno@clisp.org>
82753
82754         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82755
82756 2006-05-05  Jim Meyering  <jim@meyering.net>
82757
82758         * m4/warning.m4: New file, derived from bison's file by the same name.
82759
82760 2006-05-03  Bruno Haible  <bruno@clisp.org>
82761
82762         * lib/stdint_.h: Shorter URL.
82763         * lib/inttypes.h: Likewise.
82764
82765 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82768
82769 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82770
82771         * lib/verify.h: Document the internals better.  Most of this change
82772         was written by Bruno Haible.
82773
82774 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * doc/verify.texi: New file, partly based on a proposal by
82777         Bruno Haible.
82778
82779 2006-05-02  Bruno Haible  <bruno@clisp.org>
82780
82781         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82782         test from here...
82783         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82784
82785 2006-04-29  Bruno Haible  <bruno@clisp.org>
82786
82787         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82788         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82789
82790 2006-04-29  Bruno Haible  <bruno@clisp.org>
82791
82792         * gnulib-tool: Make --update option actually work.
82793
82794 2006-04-29  Bruno Haible  <bruno@clisp.org>
82795
82796         * doc/gcd.texi: New file.
82797         * doc/gnulib.texi: Include it.
82798
82799 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82800
82801         * lib/getdate.y (get_date): When adding relative date, start with the
82802         initial time, not with the result of the first mktime call.
82803
82804 2006-04-25  Bruno Haible  <bruno@clisp.org>
82805
82806         * gnulib-tool (func_import): Output the include directives in three
82807         blocks, sorted separately.
82808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82809
82810 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82813         to define main with arguments, for C++.  Reported by Eric Blake.
82814         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82815         Prefer 'int main ()' to 'int main (void)', for C++.
82816         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82817         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82818         for 'main', for C99 and C++.
82819
82820 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82823         Don't assume that exit status -1 is valid.
82824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82825         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82827         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82828         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82829         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82830         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82831         functions can be used without declaring them, or that you can
82832         exit with status -1.
82833         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82834
82835 2006-04-24  Karl Berry  <karl@gnu.org>
82836
82837         * config/srclist.txt (longdouble.m4): sync lost.
82838
82839 2006-04-24  Eric Blake  <ebb9@byu.net>
82840
82841         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82842
82843 2006-04-24  Bruno Haible  <bruno@clisp.org>
82844
82845         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82846         poll() implementation in AIX.
82847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82848
82849 2006-04-24  Bruno Haible  <bruno@clisp.org>
82850
82851         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82852         assigned exactly once.
82853
82854 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82855             Bruno Haible  <bruno@clisp.org>
82856
82857         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82858         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82859         for AM_CPPFLAGS.
82860
82861 2006-04-23  Bruno Haible  <bruno@clisp.org>
82862
82863         * modules/copy-file: Depend on unistd.
82864         * modules/execute: Likewise.
82865         * modules/fatal-signal: Likewise.
82866         * modules/findprog: Likewise.
82867         * modules/mkdtemp : Likewise.
82868         * modules/pipe: Likewise.
82869         * modules/wait-process: Likewise.
82870
82871 2006-04-23  Bruno Haible  <bruno@clisp.org>
82872
82873         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82874         condition was already detected.
82875         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82876
82877 2006-04-23  Bruno Haible  <bruno@clisp.org>
82878
82879         * lib/copy-file.c: Include <unistd.h> unconditionally.
82880         * lib/execute.c: Likewise.
82881         * lib/fatal-signal.c: Likewise.
82882         * lib/findprog.c: Likewise.
82883         * lib/mkdtemp.c: Likewise.
82884         * lib/pipe.h: Likewise.
82885         * lib/pipe.c: Likewise.
82886         * lib/wait-process.h: Likewise.
82887
82888 2006-04-23  Bruno Haible  <bruno@clisp.org>
82889
82890         * gnulib-tool (func_usage): Fix --import description. Document
82891         --update.
82892         (func_import): Create temporary file in a temporary directory, if
82893         --dry-run is specified. Silence errors from 'grep' when there are no
82894         m4 files in $m4dir.
82895         (func_create_testdir): Silence errors from 'grep' when there are no
82896         m4 files in $m4dir.
82897         Reported by Karl Berry <karl@freefriends.org>.
82898
82899 2006-04-20  Bruno Haible  <bruno@clisp.org>
82900
82901         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82902         one argument, so that the code will be portable to Autoconf 2.60.
82903         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82904         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82905         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82906
82907 2006-04-19  Derek Price  <derek@ximbiot.com>
82908             Eric Blake  <ebb9@byu.net>
82909
82910         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82911         rather than "/full/path.h".  Update comment to match.  Shorten &
82912         generalize m4_translit call via AS_TR_CPP.
82913
82914 2006-04-19  Derek Price  <derek@ximbiot.com>
82915             Eric Blake  <ebb9@byu.net>
82916
82917         * lib/inttypes.h: Correct grammar in comment.
82918
82919 2006-04-18  Derek Price  <derek@ximbiot.com>
82920             Paul Eggert  <eggert@cs.ucla.edu>
82921
82922         * modules/inttypes: New file.
82923         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82924
82925 2006-04-18  Derek Price  <derek@ximbiot.com>
82926             Paul Eggert  <eggert@cs.ucla.edu>
82927
82928         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82929         New files.
82930
82931 2006-04-18  Derek Price  <derek@ximbiot.com>
82932             Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * lib/inttypes.h: New file.
82935         * lib/strtoimax.c: Assume <inttypes.h>.
82936
82937 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82938
82939         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82940         isn't mounted.  Problem reported by Kir Kolyshkin.
82941
82942 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82943
82944         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82945         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82946         Derek R. Price.
82947         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82948         implementation.
82949
82950 2006-04-12  Eric Blake  <ebb9@byu.net>
82951
82952         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82953         is now done automatically by the corresponding Autoconf macro.
82954
82955 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82958         time_r.h.
82959
82960 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         Merge regex changes from libc, removing some of our
82963         POSIX-conformance changes that were rejected and redoing them in a
82964         less-intrusive way.
82965
82966         * lib/regcomp.c (re_compile_internal, init_dfa):
82967         Length arg is now size_t, not Idx.  All uses changed.
82968         (peek_token): Forward decl now says internal_function.
82969         (__re_error_msgid, __re_error_msgid_idx):
82970         Now static rather than extern with attribute_hidden.
82971         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82972         For some reason libc prefers K&R style defns for external functions.
82973         (regerror) [!defined _LIBC]: Likewise.
82974         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82975         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82976         (build_range_exp, build_collating_symbol):
82977         Use K&R-style defn.
82978         (re_compile_fastmap): Use '\0' to memset, not 0.
82979         (utf8_sb_map): Make the calculations more obvious.
82980         (init_dfa, parse_bracket_exp, build_charclass_op):
82981         Call calloc and cast result, as glibc does.
82982         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82983         (build_range_exp, build_collating_symbol):
82984         Now internal functions.
82985
82986         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82987
82988         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82989         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82990         Don't depend on VMS; depend on __VMS instead, for POSIX
82991         namespace cleanness.
82992         (regoff_t): Define to ssize_t, not long int.
82993
82994         Remove the REG_ macros named below.  Instead, make the old names
82995         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82996         __USE_GNU_REGEX.
82997         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82998         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82999         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83000         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83001         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83002         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83003         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83004         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83005         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83006         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83007         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83008         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83009         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83010         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83011         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83012         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83013         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83014         (REG_NREGS):
83015         Remove.  All uses replaced by the old RE_* names.
83016         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83017         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83018         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83019         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83020         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83021         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83022         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83023         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83024         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83025         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83026         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83027         Don't bother having these macros be independent of each others'
83028         values, since they no longer exist in the POSIX name space.
83029
83030         Rename the following member names back to their old names,
83031         unless !__USE_GNU_REGEX.  All uses changed back.
83032         (buffer): Renamed from re_buffer.
83033         (allocated): Renamed from re_allocated.
83034         (used): Renamed from re_used.
83035         (syntax): Renamed from re_syntax.
83036         (fastmap): Renamed from re_fastmap.
83037         (translate): Renamed from re_translate.
83038         (can_be_null): Renamed from re_can_be_null.
83039         (regs_allocated): Renamed from re_regs_allocated.
83040         (fastmap_accurate): Renamed from re_fastmap_accurate.
83041         (no_sub): Renamed from re_no_sub.
83042         (not_bol): Renamed from re_not_bol.
83043         (not_eol): Renamed from re_not_eol.
83044         (newline_anchor): Renamed from re_newline_anchor.
83045         (num_regs): Renamed from rm_num_regs.
83046         (start): Renamed from rm_start.
83047         (end): Renamed from rm_end.
83048
83049         (free_state): Move up a bit.
83050
83051         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83052         #define to be empty.
83053         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83054         when that is what is intended.
83055         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83056         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83057         (MAX): New macro.
83058         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83059         All uses changed back to re_malloc, etc.  It's now the caller's
83060         responsibility to check for overflow; all callers changed.
83061         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83062         (re_x2nrealloc): Remove.
83063         (free_state): Remove decl.
83064
83065         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83066         (re_set_registers, re_exec):
83067         Use K&R-style defn.
83068
83069         2006-01-31  Roland McGrath  <roland@redhat.com>
83070
83071         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83072         Reported by Mike Frysinger <vapier@gentoo.org>.
83073
83074         2006-01-15  Andreas Jaeger  <aj@suse.de>
83075
83076         [BZ #1950]
83077         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83078         build_wcs_upper_buffer change.
83079         (build_wcs_upper_buffer): Change return type.
83080
83081         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83082
83083         * lib/regex_internal.h: Include <stdint.h> if available.
83084
83085         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83086
83087         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83088
83089         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83090
83091         * lib/regcomp.c: Adjust for changed secondary hash function.
83092
83093         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83094
83095         * lib/regex.h: Pretty printing.
83096         Clean up namespace a bit.
83097
83098         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83099
83100         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83101         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83102
83103         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83104                     Ulrich Drepper  <drepper@redhat.com>
83105
83106         [BZ #1302]
83107         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83108         changed.
83109         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83110
83111         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83112
83113         [BZ #281]
83114         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83115         * lib/regcomp.c: Remove unnecessary uses of
83116         unsigned RE_TRANSLATE_TYPE.
83117         * lib/regex_internal.h: Likewise.
83118         * lib/regex_internal.c: Likewise.
83119         * lib/regexec.c: Likewise.
83120         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83121
83122         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83123
83124         * lib/regexec.c (find_recover_state): Remove unnecessary
83125         initialization.
83126         (transit_state_bkref): Make DFA a const pointer.
83127         (get_subexp): Likewise.
83128         (check_arrival): Likewise.
83129         (update_cur_sifted_state): Likewise.
83130         (re_search_internal): Likewise.
83131         (prune_impossible_nodes): Likewise.
83132         (acquire_init_state_context): Likewise.
83133         (proceed_next_node): Likewise.
83134         (set_regs): Likewise.
83135         (free_fail_stack_return): Likewise.
83136         (check_arrival_expand_ecl): Mark DFA parameter as const.
83137         (check_arrival_expand_ecl_sub): Likewise.
83138         (check_subexp_limits): Likewise.
83139         (sub_epsilon_src_nodes):  Likewise.
83140         (add_epsilon_src_nodes):  Likewise.
83141         (merge_state_array): Likewise.
83142         (update_regs): Likewise.
83143         (build_trtable): Likewise.
83144         (sift_states_backward): Mark MCTX parameter as const.
83145         (build_sifted_states): Likewise.
83146         (update_cur_sifted_state): Likewise.
83147         (sift_states_mkref): Likewise.
83148         (check_arrival_expand_ecl): Mark eclosure as const.
83149         (check_dst_limits_calc_pos_1): Likewise.
83150         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83151         pointer.
83152
83153         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83154
83155         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83156         (transit_state_sb): Likewise.
83157         (transit_state_mb): Likewise.
83158         (sift_states_iter_mb): Likewise.
83159         (check_arrival_add_next_nodes): Likewise.
83160         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83161         [_LIBC] (re_search_2_stub): Use mempcpy.
83162
83163         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83164         mbrtowc for very simple UTF-8 case.
83165
83166         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83167         a pointer-to-const.
83168         (re_acquire_state_context): Likewise.
83169         * lib/regex_internal.h: Adjust prototypes.
83170
83171         * lib/regex.c: Prevent using C++ compilers.
83172
83173         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83174         (re_acquire_state_context): Likewise.
83175
83176 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * modules/regex (Depends-on): Add ssize_t.
83179
83180 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83183         translation table.
83184
83185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83188
83189 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83190             Bruno Haible  <bruno@clisp.org>
83191
83192         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83193         <sys/types.h> and <inttypes.h>.
83194
83195 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83196
83197         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83198         `__error_t_defined', so argp.h will not typedef the former.
83199
83200 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83201
83202         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83203         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83204         glibc names.  Even if glibc is changed to conform to POSIX, the
83205         traditional names will be available anyway, since regex depends on
83206         the extensions module.  Also, fix a longstanding typo in the
83207         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83208         reported by Emanuele Giaquinta.  Also, change sense of cached
83209         variable, so that the message makes sense.
83210
83211 2006-03-24  Simon Josefsson  <jas@extundo.com>
83212
83213         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83214         including some doc fixes.
83215         (base64_encode_alloc): Fix +1 bug on allocation failures.
83216
83217 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83218
83219         * lib/base64.c (base64_encode): Do not read past end of array with
83220         unsanitized input on systems with CHAR_BIT > 8.
83221
83222 2006-03-24  Eric Blake  <ebb9@byu.net>
83223
83224         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83225
83226 2006-03-22  Karl Berry  <karl@gnu.org>
83227
83228         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83229         * config/srclistvars.sh (COREUTILS): new var.
83230
83231 2006-03-17  Jim Meyering  <jim@meyering.net>
83232
83233         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83234         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83235
83236 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83239         no longer needs it.  Instead, check that regoff_t is as least
83240         as wide as ptrdiff_t.
83241
83242         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83243         so that our regex.h stays compatible with the installed regex.
83244         This is helpful for installers who configure --without-included-regex.
83245         Problem reported by Emanuele Giaquinta.
83246
83247 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83250         Typedef to long int, not to off_, as POSIX will likely change
83251         in that direction.
83252
83253 2006-03-15  Eric Blake  <ebb9@byu.net>
83254
83255         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83256
83257 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83258
83259         * lib/argp-help.c (validate_uparams): Fix typo
83260         * lib/argp-parse.c (argp_default_options): Consistently begin help
83261         messages with a lowercase letter.
83262
83263 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83264
83265         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83266         overrun buffers and shouldn't be used (much as gets shouldn't be
83267         used).
83268         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83269
83270 2006-03-08  Simon Josefsson  <jas@extundo.com>
83271
83272         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83273         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83274
83275 2006-03-08  Simon Josefsson  <jas@extundo.com>
83276
83277         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83278         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83279
83280 2006-03-08  Simon Josefsson  <jas@extundo.com>
83281
83282         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83283         signal that configure disabled the device.
83284
83285 2006-03-08  Simon Josefsson  <jas@extundo.com>
83286
83287         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83288         languages.
83289
83290 2006-03-07  Simon Josefsson  <jas@extundo.com>
83291
83292         * modules/getopt (Depends-on): Add unistd.
83293
83294         * modules/unistd: New file.
83295
83296 2006-03-07  Simon Josefsson  <jas@extundo.com>
83297
83298         * modules/gc-random: New file.
83299
83300 2006-03-07  Simon Josefsson  <jas@extundo.com>
83301
83302         * m4/unistd_h.m4: New file.
83303
83304 2006-03-07  Simon Josefsson  <jas@extundo.com>
83305
83306         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83307         test to be side-effect free by storing the result in the cache
83308         variable gl_cv_lib_readline, and moving the assignment of
83309         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83310         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83311
83312 2006-03-07  Simon Josefsson  <jas@extundo.com>
83313
83314         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83315         error on missing devices (the functions will return an error).
83316
83317         * m4/gc.m4: Move random stuff to gc-random.m4
83318
83319 2006-03-07  Simon Josefsson  <jas@extundo.com>
83320
83321         * lib/unistd_.h: New file.
83322
83323 2006-03-07  Simon Josefsson  <jas@extundo.com>
83324
83325         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83326
83327 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83328
83329         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83330         Problem reported by Juan Manuel Guerrero.
83331
83332 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83333
83334         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83335         the unistd module.
83336         * lib/getlogin_r.c: Likewise.
83337         * lib/getlogin_r.h: Likewise.
83338         * lib/glob.c: Likewise.
83339         * lib/pagealign_alloc.c: Likewise.
83340         * lib/unistd_.h: Remove; no longer needed.
83341
83342 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83343
83344         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83345         Add unistd.
83346         * modules/c-stack (Depends-on): Add unistd.
83347         * modules/getlogin_r: Likewise.
83348         * modules/glob: Likewise.
83349         * modules/pagealign_alloc: Likewise.
83350         * modules/unistd (Files): Remove lib/unistd_.h.
83351         (EXTRA_DIST): Remove.
83352         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83353         need unistd_.h.
83354         (MOSTLYCLEANFILES): Remove unistd.h-t.
83355
83356 2006-03-03  Simon Josefsson  <jas@extundo.com>
83357
83358         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83359
83360 2006-03-03  Simon Josefsson  <jas@extundo.com>
83361
83362         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83363         libidn and bison.
83364
83365 2006-03-03  Simon Josefsson  <jas@extundo.com>
83366
83367         * build-aux/maint.mk: Add indent target.
83368
83369 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83370
83371         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83372         our replacement poll.h in any case, to avoid a differing
83373         declaration from a system header.  Seen on AIX.
83374
83375 2006-03-01  Simon Josefsson  <jas@extundo.com>
83376
83377         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83378         <kasal@ucw.cz>.
83379
83380 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         * modules/gettime (Depends-on): Add extensions module.
83383         * modules/nanosleep (Depends-on): Likewise.
83384         * modules/settime (Depends-on): Likewise.
83385
83386 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83389         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83390         pedantically.
83391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83392         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83393
83394         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83395         not "==".  Reported by Ralf Wildenhues.
83396
83397 2006-03-01  Karl Berry  <karl@gnu.org>
83398
83399         * doc/Copyright/request-*: new files, synced from gnuorg.
83400
83401 2006-03-01  Karl Berry  <karl@gnu.org>
83402
83403         * config/srclist.txt (Copyright/*): new entries.
83404
83405 2006-02-28  Simon Josefsson  <jas@extundo.com>
83406
83407         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83408
83409 2006-02-27  Simon Josefsson  <jas@extundo.com>
83410
83411         * lib/base64.h: Indent #define's.  From Jim Meyering
83412         <jim@meyering.net>.
83413
83414 2006-02-27  Jim Meyering  <jim@meyering.net>
83415
83416         Revert the change of 2006-02-24, so these files can continue
83417         to be sync'd from gettext.
83418         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83419         of `config.h'.
83420
83421 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83422
83423         * modules/intprops: New file.
83424         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83425         Add intprops.
83426         * modules/getloadavg (Files): Remove lib/intprops.h.
83427         (Depends-on): Add intprops.
83428         * modules/human: Likewise.
83429         * modules/inttostr: Likewise.
83430         * modules/openat: Likewise.
83431         * modules/sig2str: Likewise.
83432         * modules/userspec: Likewise.
83433         * modules/utimecmp: Likewise.
83434         * modules/xnanosleep: Likewise.
83435         * modules/xstrtol: Likewise.
83436
83437 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83438
83439         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83440         * modules/lock-tests (TESTS): Use $(EXEEXT).
83441         * modules/tls-tests: Likewise.
83442         * modules/argp-tests: Likewise.
83443         (check_PROGRAMS): New var, replacing...
83444         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83445
83446 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83447
83448         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83449         `config.h'.
83450
83451 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83452
83453         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83454
83455 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83456
83457         Sync from coreutils.
83458         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83459         gl_CHDIR_SAFER.
83460
83461 2006-02-22  Jim Meyering  <jim@meyering.net>
83462
83463         Sync from coreutils.
83464         * m4/chdir-safer.m4: New file.
83465
83466 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83467
83468         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83469         AT_FDCWD exceeds INT_MAX.
83470         * lib/openat.h (AT_FDCWD): Likewise.
83471
83472 2006-02-17  Eric Blake  <address@hidden>
83473
83474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83475
83476 2006-02-16  Simon Josefsson  <jas@extundo.com>
83477
83478         * modules/getaddrinfo (Depends-on): Add sys_socket.
83479
83480 2006-02-15  Simon Josefsson  <jas@extundo.com>
83481
83482         * build-aux/maint.mk: Add dsyntax-check rule.
83483
83484 2006-02-15  Eric Blake  <ebb9@byu.net>
83485
83486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83487         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83488         'present but cannot compile' warnings on cygwin.
83489         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83490         use ws2tcpip.h if sys/socket.h works.
83491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83492         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83493
83494 2006-02-14  Simon Josefsson  <jas@extundo.com>
83495
83496         * modules/maintainer-makefile (Files): Rename.
83497
83498         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83499         and (the local) Makefile.cfg to maint-cfg.mk.
83500
83501         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83502         to the latter.
83503
83504         * modules/maintainer-makefile: New module.
83505
83506         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83507         severaly stripped to make it possible to build it up from scratch
83508         with reliable tests.
83509
83510         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83511         fixes to permit overriding the default actions when configure and
83512         makefile are not available.
83513
83514 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         Sync from coreutils.
83517         * modules/lstat (Depends-on): Don't depend on xalloc.
83518         (License): Change from GPL to LGPL, since this is now simply a
83519         replacement for a libc function.
83520
83521 2006-02-14  Jim Meyering  <jim@meyering.net>
83522
83523         Sync from coreutils.
83524
83525         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83526         failure on deficient systems, and simplify gnulib lgpl dependencies.
83527         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83528         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83529
83530         * lib/xalloc-die.c: Remove unused definition of N_.
83531
83532 2006-02-14  Jim Meyering  <jim@meyering.net>
83533
83534         Sync from coreutils.
83535         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83536         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83537         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83538         double-quote uses of that variable, to accommodate the rare case in
83539         which getmntent is available in none of the libraries checked.  This
83540         happens at least on FreeBSD 5.0.
83541
83542 2006-02-13  Simon Josefsson  <jas@extundo.com>
83543
83544         * gnulib-tool (Usage): Fix --import, from
83545         karl@freefriends.org (Karl Berry).
83546
83547 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83548
83549         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83550
83551 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83552
83553         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83554         "autoupdate" on 2005-12-12.
83555
83556 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83557
83558         * modules/closeout (Depends-on): Remove atexit.
83559
83560 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83563         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83564
83565 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83568         __EXTENSIONS__ if this causes compilation to fail.  Problem
83569         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83570         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83571
83572 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83575         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83577         All uses changed.
83578
83579 2006-01-26  Simon Josefsson  <jas@extundo.com>
83580
83581         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83582         prototype is visible on mingw32.
83583
83584         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83585         for mingw32.
83586
83587         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83588         mingw32).
83589
83590 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83591
83592         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83593         attempt to open for write; this always fails, at least on POSIX
83594         hosts.  This reinstates the 2006-01-09 change, which was
83595         inadvertently removed.
83596
83597 2006-01-26  Bruno Haible  <bruno@clisp.org>
83598
83599         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83600         Reported by Paul Eggert.
83601
83602 2006-01-26  Bruno Haible  <bruno@clisp.org>
83603             Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * lib/stdbool_.h (_Bool)
83606         [(! (defined __cplusplus || defined __BEOS__)
83607           && !defined __GNUC__
83608           && !(defined __HP_cc || defined __xlc__
83609                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83610                || defined __sgi))]:
83611         #define to signed char in these cases too; this simplifies
83612         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83613         etc., separately) and makes it more conservative.
83614
83615 2006-01-25  Simon Josefsson  <jas@extundo.com>
83616
83617         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83618         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83619         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83620
83621 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83622
83623         * lib/argp-namefrob.h: Bugfix. Remove stray #
83624
83625 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83628         so that we test the test.
83629         Check for yet another HP-UX cc bug involving *bool |= bool.
83630
83631 2006-01-25  Karl Berry  <karl@gnu.org>
83632
83633         * config/srclist.txt (vasnprintf.c): sync lost.
83634
83635 2006-01-25  Jim Meyering  <jim@meyering.net>
83636
83637         Sync from the stable (b5) branch of coreutils:
83638
83639         * lib/fts.c (fts_children): Don't let close() clobber errno from
83640         failed fchdir().
83641
83642         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83643         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83644         a dangling symlink.  That can also happen at least for ELOOP.
83645         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83646         FYI, this bug predates the inclusion of fts.c in coreutils.
83647
83648         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83649         in their own block, so pre-c99 compilers don't object.
83650
83651         Avoid the double-free (first in fts_read, second in fts_close) that
83652         would occur when an `active' directory is made inaccessible (e.g.,
83653         via chmod a-x) during a traversal.
83654         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83655         before returning.  Reproduce this failure by
83656         mkdir -p a/b; cd a; chmod a-x . b
83657         Reported by Stavros Passas.
83658
83659 2006-01-25  Jim Meyering  <jim@meyering.net>
83660
83661         * lib/fileblocks.c: Remove more useless parentheses.
83662         * lib/readutmp.h: Likewise.
83663
83664 2006-01-25  Bruno Haible  <bruno@clisp.org>
83665
83666         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83667         warnings.
83668         Reported by Paul Eggert.
83669
83670 2006-01-25  Bruno Haible  <bruno@clisp.org>
83671
83672         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83673         rid of a trap command. For Solaris sh.
83674         Reported by Mark D. Baushke <mdb@gnu.org>.
83675
83676 2006-01-24  Simon Josefsson  <jas@extundo.com>
83677
83678         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83679         Bruno.
83680
83681 2006-01-24  Karl Berry  <karl@gnu.org>
83682
83683         * config/srclist.txt (argp-namefrob.h): sync lost.
83684
83685 2006-01-24  Jim Meyering  <jim@meyering.net>
83686
83687         * modules/openat (Files): Add lib/intprops.h.
83688         From Mark D. Baushke.
83689
83690 2006-01-24  Jim Meyering  <jim@meyering.net>
83691
83692         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83693         Reported by Mark D. Baushke.
83694
83695 2006-01-24  Jim Meyering  <jim@meyering.net>
83696
83697         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83698
83699 2006-01-24  Bruno Haible  <bruno@clisp.org>
83700
83701         * modules/strnlen (Maintainer): Change from glibc to all.
83702
83703 2006-01-24  Bruno Haible  <bruno@clisp.org>
83704
83705         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83706         Patch by Paul Eggert.
83707
83708 2006-01-24  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83711         already has it.
83712         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83713         2005-11-26.
83714
83715         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83716         'signed char' to avoid problems with the built-in _Bool type.
83717         Reported by Paul Eggert on 2005-11-26.
83718
83719 2006-01-24  Bruno Haible  <bruno@clisp.org>
83720
83721         * gnulib-tool (func_import): Avoid constructing complicated sed
83722         expressions inside backquote.
83723         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83724
83725 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83726
83727         These changes imported from libc.
83728         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83729         test and two separate function calls.
83730         * lib/strndup.c (__strndup): Add libc_hidden_def.
83731
83732 2006-01-23  Simon Josefsson  <jas@extundo.com>
83733
83734         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83735         Remove the test_*_SOURCES variable: automake infers it by default.
83736         * modules/tls-tests: Likewise.
83737
83738 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83739
83740         Work around porting bugs reported by Dieter in
83741         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83742         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83743         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83744         Include "getopt.h" first, to check interface.
83745         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83746         !HAVE_DECL_GETENV.
83747         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83748         (__strndup): Revert to K&R-style function dfns, the glibc style.
83749         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83750         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83751         Include strnlen.h first, to get prototype properly.
83752         (strnlen): Renamed from __strnlen.
83753         Remove weak alias.
83754
83755 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83756
83757         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83758
83759 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * config/srclist.txt: Adjust to reflect glibc reorganization.
83762         This affects only comments.
83763
83764 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83765
83766          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83767          Reported by Bruce Korb <bkorb@gnu.org>.
83768
83769 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83772         to pacify gcc -Wswitch-default.
83773
83774 2006-01-22  Bruno Haible  <bruno@clisp.org>
83775
83776         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83777         temporary buffer for sprintf, take into account the precision also
83778         for 'd', 'i', 'u', 'o', 'x', 'X'.
83779
83780 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83781
83782         * modules/argp-tests: New module
83783         * tests/test-argp.c: New file
83784         * tests/test-argp-2.sh: New file
83785
83786 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83787
83788         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83789         (__argp_base_name): Removed
83790         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83791         typo.
83792         (__argp_base_name): Provide macro definition or extern declaration
83793         depending on the configuration
83794
83795 2006-01-20  Simon Josefsson  <jas@extundo.com>
83796
83797         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83798
83799 2006-01-20  Simon Josefsson  <jas@extundo.com>
83800
83801         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83802
83803 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83806         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83807         Suggested by Bruno Haible.
83808
83809 2006-01-20  Karl Berry  <karl@gnu.org>
83810
83811         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83812         until changes propagate, I guess.
83813
83814 2006-01-19  Simon Josefsson  <jas@extundo.com>
83815
83816         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83817
83818 2006-01-19  Simon Josefsson  <jas@extundo.com>
83819
83820         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83821
83822 2006-01-19  Simon Josefsson  <jas@extundo.com>
83823
83824         * gnulib-tool: Set check_PROGRAMS.
83825
83826         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83827         modules/des-tests, modules/gc-arcfour-tests,
83828         modules/gc-arctwo-tests, modules/gc-des-tests,
83829         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83830         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83831         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83832         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83833         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83834         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83835         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83836         test_*_SOURCES.
83837
83838 2006-01-18  Simon Josefsson  <jas@extundo.com>
83839
83840         * modules/socklen (Depends-on): Depend on sys_socket.
83841
83842 2006-01-18  Simon Josefsson  <jas@extundo.com>
83843
83844         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83845         modules/des-tests, modules/gc-arcfour-tests,
83846         modules/gc-arctwo-tests, modules/gc-des-tests,
83847         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83848         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83849         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83850         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83851         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83852         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83853         $(EXEEXT) to automake TESTS variable, for mingw32.
83854
83855 2006-01-17  Simon Josefsson  <jas@extundo.com>
83856
83857         * modules/socklen (Include): Need sys/socket.h.
83858
83859 2006-01-17  Bruno Haible  <bruno@clisp.org>
83860
83861         * modules/ssize_t (Include): Add <sys/types.h>.
83862
83863 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83864
83865         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83866         it's not portable and it doesn't work with cross-compiles.
83867         Problem reported by Bruno Haible.  Fix missing-$ typo in
83868         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83869         -zignore from being used with Sun's C compiler.
83870
83871 2006-01-12  Simon Josefsson  <jas@extundo.com>
83872
83873         * lib/base64.c: Fix warning, reported by Bruno Haible
83874         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83875
83876 2006-01-12  Bruno Haible  <bruno@clisp.org>
83877
83878         * modules/ldd: New file.
83879         * build-aux/ldd.sh.in: New file.
83880         * MODULES.html.sh (Support for building libraries and executables): Add
83881         ldd.
83882
83883 2006-01-12  Bruno Haible  <bruno@clisp.org>
83884
83885         * m4/ldd.m4: New file.
83886
83887 2006-01-12  Bruno Haible  <bruno@clisp.org>
83888
83889         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83890         endless loop while replacing $auxdir with build-aux.
83891
83892 2006-01-11  Simon Josefsson  <jas@extundo.com>
83893
83894         * lib/stdint_.h (SIZE_MAX): Add missing (.
83895
83896 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         Sync from coreutils.
83899         * lib/md5.c: Fix commentary typos.
83900         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83901         * lib/md5.h (__attribute__): Remove; unused.
83902         * lib/sha1.c: Fix commentary to match md5 better.
83903         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83904         so that we don't need to worry about alignment.  All uses changed.
83905         This merges the 2005-10-28 md5 change into sha1.
83906
83907 2006-01-11  Jim Meyering  <jim@meyering.net>
83908
83909         Sync from coreutils.
83910         * lib/md5.c (OP): Fix spacing.
83911
83912 2006-01-11  Bruno Haible  <bruno@clisp.org>
83913
83914         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83915         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83916         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83917
83918 2006-01-11  Bruno Haible  <bruno@clisp.org>
83919
83920         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83921         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83922         the "early" section as well.
83923
83924 2006-01-11  Bruno Haible  <bruno@clisp.org>
83925
83926         Avoid "ar: no archive members specified" error on MacOS X.
83927         * gnulib-tool (func_modules_add_dummy): New function.
83928         (func_import, func_create_testdir): Invoke it.
83929
83930 2006-01-11  Bruno Haible  <bruno@clisp.org>
83931
83932         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83933         with $auxdir in AC_CONFIG_FILES statements.
83934
83935 2006-01-11  Bruno Haible  <bruno@clisp.org>
83936
83937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83938         Initialize also noinst_HEADERS to empty.
83939
83940 2006-01-11  Bruno Haible  <bruno@clisp.org>
83941
83942         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83943         variables.
83944         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83945         autoreconf.
83946
83947 2006-01-11  Bruno Haible  <bruno@clisp.org>
83948
83949         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83950         overridable by the user.
83951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83952
83953 2006-01-10  Simon Josefsson  <jas@extundo.com>
83954
83955         * modules/sys_socket: New file.
83956
83957 2006-01-10  Simon Josefsson  <jas@extundo.com>
83958
83959         * m4/sys_socket_h.m4: New file.
83960
83961 2006-01-10  Simon Josefsson  <jas@extundo.com>
83962
83963         * lib/socket_.h: New file.
83964
83965 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83966
83967         * modules/readutmp (Maintainer): Add myself.
83968
83969 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83972         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83973         People who are still concerned with buggy memcmp implementations
83974         can invoke gl_FUNC_MEMCMP themselves.
83975
83976 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         * lib/regex_internal.h (BITSET_WORD_BITS):
83979         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83980         preprocessor mishandles large unsigned values as if they were signed.
83981         Problem reported by Claudio Fontana in
83982         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83983
83984 2006-01-10  Jim Meyering  <jim@meyering.net>
83985
83986         Avoid the double-free (first in fts_read, second in fts_close) that
83987         would occur when an `active' directory is made inaccessible (e.g.,
83988         via chmod a-x) during a traversal.
83989         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83990         before returning.  Reproduce this failure by
83991         mkdir -p a/b; cd a; chmod a-x . b
83992         Reported by Stavros Passas.
83993
83994         Sync from coreutils.
83995         * lib/sha1.c: Tweak grammar in a comment.
83996
83997 2006-01-10  Jim Meyering  <jim@meyering.net>
83998
83999         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84000         Patch by Joerg Sonnenberger.
84001
84002 2006-01-10  Bruno Haible  <bruno@clisp.org>
84003
84004         * modules/readutmp: Depend on module free.
84005         * modules/strtok_r: Depend on module restrict.
84006
84007 2006-01-10  Bruno Haible  <bruno@clisp.org>
84008
84009         * modules/gettext (configure.ac): Add an invocation of
84010         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84011
84012 2006-01-10  Bruno Haible  <bruno@clisp.org>
84013
84014         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84015         Reported by Werner Lemberg <wl@gnu.org>.
84016
84017 2006-01-10  Bruno Haible  <bruno@clisp.org>
84018
84019         * lib/localcharset.c: Update from GNU gettext.
84020
84021 2006-01-10  Bruno Haible  <bruno@clisp.org>
84022
84023         * lib/argp.h (__const): Remove macro. Use const instead.
84024         * lib/argp-fmtstream.h (__const): Likewise.
84025         * lib/glob_.h (__const): Remove macro.
84026         * lib/glob-libc.h: Use const instead of __const.
84027
84028 2006-01-10  Bruno Haible  <bruno@clisp.org>
84029
84030         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84031         variable.
84032         Needed to avoid an automake error regarding the 'gettext' module.
84033
84034 2006-01-09  Simon Josefsson  <jas@extundo.com>
84035
84036         * modules/inet_ntop (Depends-on): Add restrict.
84037
84038 2006-01-09  Simon Josefsson  <jas@extundo.com>
84039
84040         * modules/gc-rijndael-tests (License): Put under LGPL.
84041
84042         * modules/gc-des-tests (License): Likewise.
84043
84044         * modules/gc-arcfour-tests (License): Likewise.
84045
84046         * modules/gc-arctwo-tests (License): Likewise.
84047
84048         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84049
84050         * modules/gc-hmac-sha1-tests (Files): Likewise.
84051
84052         * modules/gc-hmac-md5-tests (License): Likewise.
84053
84054         * modules/gc-sha1-tests (License): Likewise.
84055
84056         * modules/gc-md5-tests (License): Likewise.
84057
84058         * modules/gc-md4-tests (License): Likewise.
84059
84060         * modules/gc-md2-tests (License): Likewise.
84061
84062         * modules/gc-tests (License): Likewise.
84063
84064         * modules/des-tests (License): Likewise.
84065
84066         * modules/md4-tests (License): Likewise.
84067
84068         * modules/md2-tests (License): Likewise.
84069
84070 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84071
84072         Sync from coreutils:
84073
84074         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84075         * modules/lib-ignore: New file.
84076         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84077         chdir-safer.m4, lchmod.m4.
84078         * modules/openat: Add mkdirat.c, openat-priv.h.
84079
84080 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         Sync from coreutils.
84083         * m4/lib-ignore.m4: New file.
84084         * m4/lchmod.m4: New file.
84085
84086 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84087
84088         Sync from coreutils.
84089         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84090         for write access: POSIX says that must fail.
84091         * lib/fts.c (diropen): Likewise.
84092         * lib/save-cwd.c (save_cwd): Likewise.
84093         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84094         well, for minor improvements on hosts that lack O_DIRECTORY.
84095         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84096         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84097         Fall back on chown if open failed with EACCES.
84098
84099         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84100         Report an error at compile-time if only a 1-second nominal clock
84101         resolution is found.
84102
84103         * lib/lchmod.h: New file.
84104         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84105         (make_dir_parents): Use lchown rather than chown, and
84106         lchmod rather than chmod.
84107
84108         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84109         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84110         "proc" reported by n0dalus.
84111
84112         * lib/mountlist.c: Include <limits.h>.
84113         (dev_from_mount_options)
84114         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84115         New function.  It no longer assumes "dev=" has the System V meaning
84116         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84117         (read_file_system_list)
84118         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84119         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84120         dev= in that case.
84121
84122         * lib/posixtm.h (PDS_PRE_2000): New macro.
84123         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84124         allow_century.  All usages changed.  Reject dates outside the range
84125         1969-1999 if PDS_PRE_2000 is used.
84126
84127 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84128
84129         Sync from coreutils.
84130         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84131         (Time of day items): Mention the possibility of leap seconds.
84132         Problem reported by Dr. David Alan Gilbert.
84133
84134 2006-01-09  Jim Meyering  <jim@meyering.net>
84135
84136         Sync from coreutils.
84137
84138         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84139
84140         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84141
84142         * lib/modechange.c (mode_compile): Reject an invalid mode string
84143         that starts with an octal digit.  From Andreas Gruenbacher.
84144
84145         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84146         and dup to open_safer and dup_safer, respectively.
84147         (openat_permissive): Fix typo in comment.
84148
84149         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84150         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84151         (_): Remove; no longer needed.
84152         (openat): Renamed from rpl_openat; no need for rpl_openat
84153         since openat.h renames openat for us.
84154         Replace most of the body with a call to openat_permissive,
84155         to avoid duplicate code.
84156         Port to (probably hypothetical) environments were mode_t is
84157         wider than int.
84158         (openat_permissive): Require mode arg, so that we can check
84159         types better.  Put it just after flags.  Change cwd failure
84160         indicator from pointer-to-bool to pointer-to-errno-value.
84161         All callers changed.
84162         Invoke openat_save_fail and/or openat_restore_fail if
84163         cwd_errno is null, so that openat can call us.
84164         (openat_permissive, fdopendir, fstatat, unlinkat):
84165         Simplify errno handling to avoid some duplicate code,
84166         as it's OK to set errno on success.
84167         * lib/openat.h: Revamp code so that function macros depend on
84168         __OPENAT_PREFIX only, not also on AT_FDCWD.
84169         (openat_ro): Remove.  Caller changed to use openat_permissive.
84170         (openat_permissive): Now a macro, if not a function.
84171         (openat_restore_fail, openat_save_fail): Now always functions,
84172         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84173
84174         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84175         and openat.c.
84176         * lib/mkdirat.c: Include openat-priv.h.
84177         Remove definitions of macros defined therein.
84178         * lib/openat.c: Likewise.
84179
84180         * lib/mkdirat.c (mkdirat): New file and function.
84181         * lib/openat.h (mkdirat): Declare.
84182
84183         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84184
84185         * lib/openat.h (openat_permissive): Declare.
84186         (openat_ro): Define.
84187
84188         * lib/openat.c (EXPECTED_ERRNO): New macro.
84189         (openat_permissive): New function -- used in remove.c rewrite.
84190         (all functions): Set errno just before returning, only if there
84191         was an actual failure.
84192         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84193
84194         Emulate openat-family functions using Linux's procfs, if possible.
84195         Idea and some code based on Ulrich Drepper's glibc changes.
84196
84197         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84198         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84199         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84200         before falling back on save_cwd and restore_cwd.
84201         (fdopendir, fstatat, unlinkat): Likewise.
84202
84203         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84204         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84205
84206         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84207         as second argument to va_arg.  Otherwise, some versions of gcc
84208         warn that `if this code is reached, the program will abort'.
84209
84210 2006-01-09  Jim Meyering  <jim@meyering.net>
84211
84212         Sync from coreutils.
84213         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84214         Require openat-priv.h.
84215
84216 2006-01-09  Bruno Haible  <bruno@clisp.org>
84217
84218         * modules/strnlen (Include): Use strnlen.h.
84219
84220 2006-01-09  Bruno Haible  <bruno@clisp.org>
84221
84222         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84223
84224 2006-01-09  Bruno Haible  <bruno@clisp.org>
84225
84226         * lib/sysexit_.h (EX_OK): New macro.
84227         Suggested by Martin Lambers <marlam@marlam.de>.
84228
84229 2006-01-09  Bruno Haible  <bruno@clisp.org>
84230
84231         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84232         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84233
84234 2006-01-09  Bruno Haible  <bruno@clisp.org>
84235
84236         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84237         numbers.
84238
84239 2006-01-09  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84242         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84243         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84244         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84245
84246 2006-01-09  Bruno Haible  <bruno@clisp.org>
84247
84248         * build-aux/javacomp.sh.in: New file, moved from lib/.
84249         * modules/javacomp-script (Files): Update.
84250         (configure.ac): Add AC_CONFIG_FILES invocation.
84251         (EXTRA_DIST): Remove variable.
84252
84253         * build-aux/javaexec.sh.in: New file, moved from lib/.
84254         * modules/javaexec (Files): Update.
84255         (configure.ac): Add AC_CONFIG_FILES invocation.
84256         (EXTRA_DIST): Remove javaexec.sh.in.
84257
84258         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84259         * modules/csharpcomp-script (Files): Update.
84260         (configure.ac): Add AC_CONFIG_FILES invocation.
84261         (EXTRA_DIST): Remove variable.
84262
84263         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84264         * modules/csharpexec (Files): Update.
84265         (configure.ac): Add AC_CONFIG_FILES invocation.
84266         (EXTRA_DIST): Remove csharpexec.sh.in.
84267
84268 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84269
84270         Sync from coreutils.
84271
84272         Add POSIX ACL support
84273         * lib/acl.h (copy_acl, set_acl): Add declarations.
84274         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84275         systems other than Linux.
84276         (chmod_or_fchmod): New function: use fchmod when possible,
84277         and chmod otherwise.
84278         (file_has_acl): Add a POSIX ACL implementation, with a
84279         Linux-specific subcase.
84280         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84281         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84282         acls are unsupported.
84283         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84284         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84285         are unsupported.
84286
84287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84288
84289         Sync from coreutils.
84290         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84291
84292 2006-01-07  Bruno Haible  <bruno@clisp.org>
84293
84294         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84295         gl_EARLY.
84296
84297 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84300         Problem reported for Mingw by Mark Junker.
84301
84302 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * README: Gnulib normally doesn't generate a tarball.
84305
84306 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84307
84308         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84309         long int, not int, for nanosecond counts, so that people who are
84310         used to POSIX struct timespec won't be surprised.  Reported by Jim
84311         Meyering.
84312
84313 2005-12-28  Bruno Haible  <bruno@clisp.org>
84314
84315         * build-aux/config.rpath: Update from GNU gettext.
84316
84317 2005-12-16  Jim Meyering  <jim@meyering.net>
84318
84319         * modules/fprintftime: New module.
84320         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84321
84322 2005-12-16  Jim Meyering  <jim@meyering.net>
84323
84324         * m4/fprintftime.m4: New file.
84325
84326 2005-12-16  Jim Meyering  <jim@meyering.net>
84327
84328         * lib/fprintftime.c, lib/fprintftime.h: New files.
84329
84330 2005-12-15  Simon Josefsson  <jas@extundo.com>
84331
84332         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84333         new m4/socklen.m4.
84334
84335 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84336
84337         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84338         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84339
84340 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84341
84342         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84343         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84344         struct uparams is valid. Fall back to the default values if it is
84345         not.
84346
84347 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84348
84349         * modules/argp (Files): Add argp-pin.c
84350         (Depends-on): dirname
84351         (lib_SOURCES): Add argp-pin.c
84352
84353 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84354
84355         * m4/argp.m4:  Check if program_invocation_name and
84356         program_invocation_short_name are declared and define appropriate
84357         macros if they are not.
84358
84359 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84360
84361         * lib/argp-help.c (__argp_base_name): New function
84362         (__argp_short_program_name): Rewrite using __argp_base_name
84363         * lib/argp-namefrob.h: Define program_invocation_name and
84364         program_invocation_short_name if requested
84365         (__argp_base_name): Add prototype
84366         * lib/argp-parse.c (argp_def): Use gettext wrappers
84367         (argp_default_parser): Use __argp_base_name
84368         * lib/argp-pin.c: New file. Defines program_invocation_name and
84369         program_invocation_short_name on systems that lack them.
84370
84371 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84374         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84375         porting problem reported by Georg Schwarz in
84376         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84377
84378 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84381         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84382         porting problem reported by Georg Schwarz in
84383         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84384
84385 2005-12-05  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84388         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84389         Reported by Mark Junker <mjscod@gmx.de>.
84390
84391 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84392
84393         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84394         Use implementation from Albert Chin, with some
84395         comments/corrections by Stepan Kasal and myself.
84396
84397 2005-12-02  Bruno Haible  <bruno@clisp.org>
84398
84399         * gnulib-tool (func_import): Accept GPLed build tool modules when
84400         --lgpl is given.
84401         * modules/csharpcomp-script: New file.
84402         * modules/csharpcomp: Depend on it.
84403         * modules/javacomp-script: New file.
84404         * modules/javacomp: Depend on it.
84405         Suggested by Simon Josefsson.
84406
84407 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84410         statement, to work around an HP-UX 10.20 compiler bug reported by
84411         Peter O'Gorman.
84412
84413 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         * modules/savedir (Depends-on): Add openat.
84416
84417 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84420         (uintmax_t) [defined uintmax_t]: Do not declare.
84421         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84422         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84423         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84424         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84425         sake of portability to weird hosts that C allows (though we don't
84426         know of any practical examples).
84427
84428         * lib/savedir.h (fdsavedir): New decl.
84429         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84430         contains most of the former guts of savedir.
84431         (savedir): Use savedirstream.
84432         Include "openat.h".
84433
84434 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84435
84436         * modules/obstack (Files): Add m4/ulonglong.m4.
84437         Problem reported by Davide Angelocola.
84438
84439 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84442         coreutils no longer futzes with rounding modes.
84443
84444 2005-11-14  Jim Meyering  <jim@meyering.net>
84445
84446         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84447         replacement of mkstemp.
84448
84449 2005-11-10  Simon Josefsson  <jas@extundo.com>
84450
84451         * lib/readline.c: Remove EOL.
84452
84453 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * modules/gethrxtime (Depends-on): Add gettime.
84456
84457 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84458
84459         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84460         or gettimeofday; no longer needed.
84461
84462 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84465         time business.
84466         (gethrxtime) [! (HAVE_NANOUPTIME
84467         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84468         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84469         our own approximation.
84470
84471 2005-11-08  Eric Blake  <ebb9@byu.net>
84472
84473         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84474
84475 2005-11-08  Eric Blake  <ebb9@byu.net>
84476
84477         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84478
84479 2005-11-04  Bruno Haible  <bruno@clisp.org>
84480
84481         * gnulib-tool: Implement --update mode.
84482
84483 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         Fix porting problem reported by Theodoros V. Kalamatianos.
84486         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84487         Don't assume that futimes failing means we must fail.
84488
84489 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84492         variables to suggest the intended function of the PATH_MAX check.
84493
84494 2005-10-30  Kean Johnston  <jkj@sco.com>
84495
84496         Trivial changes to support SCO systems.
84497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84498         as PATH_MAX.
84499         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84500         where __ptr is null when no I/O is pending.
84501
84502 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84505         leave errno alone.  Problem reported by Dmitry V. Levin.
84506
84507 2005-10-28  Simon Josefsson  <jas@extundo.com>
84508
84509         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84510         Test more.
84511
84512         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84513
84514         * modules/md2, modules/md2-tests: New files.
84515
84516 2005-10-28  Simon Josefsson  <jas@extundo.com>
84517
84518         * m4/inet_ntop.m4: More tests.
84519
84520         * m4/gc-md2.m4, md2.m4: New file.
84521
84522 2005-10-28  Simon Josefsson  <jas@extundo.com>
84523
84524         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84525         "restrict" keywords, as per POSIX.  Protect the function
84526         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84527         Don't use K&R prototypes.  Check the sprintf return values.
84528         Re-define EAFNOSUPPORT if not present.  Indent.
84529
84530         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84531         suggested by Bruno Haible <bruno@clisp.org>.
84532
84533         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84534
84535         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84536
84537         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84538         libgcrypt).
84539
84540         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84541
84542         * lib/md2.h, lib/md2.c: New files.
84543
84544 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84547         errno alone.  Problem reported by Frederic Jolliton.
84548
84549 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84550
84551         * modules/verify (License): Change from GPL to LGPL.  This is a
84552         tiny module and there are apparently near-equivalents that are
84553         under the BSD license.
84554
84555 2005-10-24  Simon Josefsson  <jas@extundo.com>
84556
84557         * modules/sha1: Relicense to LGPL.
84558
84559 2005-10-24  Simon Josefsson  <jas@extundo.com>
84560
84561         * lib/md4.h: Shrink buffer size, now that we changed the type.
84562
84563 2005-10-23  Simon Josefsson  <jas@extundo.com>
84564
84565         * gnulib-tool (func_import): Fix --tests-base.
84566
84567 2005-10-22  Simon Josefsson  <jas@extundo.com>
84568
84569         * modules/arcfour (Depends-on): Need stdint.
84570
84571 2005-10-22  Simon Josefsson  <jas@extundo.com>
84572
84573         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84574         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84575
84576 2005-10-22  Simon Josefsson  <jas@extundo.com>
84577
84578         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84579         suggested by Bruno Haible <bruno@clisp.org>.
84580
84581 2005-10-22  Simon Josefsson  <jas@extundo.com>
84582
84583         * lib/crc.h: Include stddef.h, for size_t.
84584
84585 2005-10-22  Simon Josefsson  <jas@extundo.com>
84586
84587         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84588         arcfour_context struct (simplify test vector testing in GNU
84589         Shishi).
84590
84591 2005-10-21  Simon Josefsson  <jas@extundo.com>
84592
84593         * modules/des, modules/des-tests: New files.
84594
84595         * modules/gc-des, modules/gc-des-tests: New files.
84596
84597         * tests/test-des.c, tests/test-gc-des.c: New file.
84598
84599 2005-10-21  Simon Josefsson  <jas@extundo.com>
84600
84601         * modules/arctwo, modules/arctwo-tests: New files.
84602
84603         * tests/test-arctwo.c: New file.
84604
84605         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84606
84607         * tests/test-gc-arctwo.c: New file.
84608
84609 2005-10-21  Simon Josefsson  <jas@extundo.com>
84610
84611         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84612         Bruno Haible <bruno@clisp.org>.
84613
84614         * m4/gc-des.m4: New file.
84615
84616 2005-10-21  Simon Josefsson  <jas@extundo.com>
84617
84618         * m4/arctwo.m4: New file.
84619
84620         * m4/gc-arctwo.m4: New file.
84621
84622 2005-10-21  Simon Josefsson  <jas@extundo.com>
84623
84624         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84625         block.
84626
84627 2005-10-21  Simon Josefsson  <jas@extundo.com>
84628
84629         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84630         <bruno@clisp.org>.
84631
84632         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84633
84634         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84635         Bruno Haible <bruno@clisp.org>.
84636
84637         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84638         <bruno@clisp.org>.
84639
84640 2005-10-21  Simon Josefsson  <jas@extundo.com>
84641
84642         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84643
84644 2005-10-21  Simon Josefsson  <jas@extundo.com>
84645
84646         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84647
84648 2005-10-21  Simon Josefsson  <jas@extundo.com>
84649
84650         * lib/des.h, lib/des.c: New files.
84651
84652         * lib/gc-gnulib.c: Support DES.c
84653
84654 2005-10-21  Simon Josefsson  <jas@extundo.com>
84655
84656         * lib/arctwo.h, lib/arctwo.c: New files.
84657
84658         * lib/gc-gnulib.c: Support ARCTWO.
84659
84660 2005-10-21  Simon Josefsson  <jas@extundo.com>
84661
84662         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84663         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84664
84665 2005-10-21  Simon Josefsson  <jas@extundo.com>
84666
84667         * gnulib-tool (func_import, func_create_testdir): Define automake
84668         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84669         Makefile.am snippet),
84670         suggested by Bruno Haible <bruno@clisp.org>.
84671
84672         * modules/gc (Makefile.am): Use it.
84673
84674 2005-10-21  Bruno Haible  <bruno@clisp.org>
84675
84676         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84677         patch.
84678
84679 2005-10-19  Simon Josefsson  <jas@extundo.com>
84680
84681         * tests/test-gc-rijndael.c: New file.
84682
84683         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84684
84685 2005-10-19  Simon Josefsson  <jas@extundo.com>
84686
84687         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84688         interface too.
84689
84690 2005-10-19  Simon Josefsson  <jas@extundo.com>
84691
84692         * tests/test-gc-arcfour.c: New file.
84693
84694         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84695
84696 2005-10-19  Simon Josefsson  <jas@extundo.com>
84697
84698         * modules/gc-md4, modules/gc-md4-tests: New file.
84699
84700         * tests/test-gc-md4.c: New file.
84701
84702 2005-10-19  Simon Josefsson  <jas@extundo.com>
84703
84704         * m4/gc-md4.m4: New file.
84705
84706 2005-10-19  Simon Josefsson  <jas@extundo.com>
84707
84708         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84709         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84710         <kasal@ucw.cz>.
84711
84712 2005-10-19  Simon Josefsson  <jas@extundo.com>
84713
84714         * m4/gc-arcfour.m4: New file.
84715
84716         * m4/gc-rijndael.m4: New file.
84717
84718 2005-10-19  Simon Josefsson  <jas@extundo.com>
84719
84720         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84721
84722 2005-10-19  Simon Josefsson  <jas@extundo.com>
84723
84724         * lib/gc-gnulib.c: Support ARCFOUR.
84725
84726 2005-10-19  Simon Josefsson  <jas@extundo.com>
84727
84728         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84729         support.
84730
84731         * lib/gc.h: Add ECB enum type.
84732
84733         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84734
84735 2005-10-18  Simon Josefsson  <jas@extundo.com>
84736
84737         * tests/test-md5.c: New file.
84738
84739         * modules/md5-tests: New file.
84740
84741 2005-10-18  Simon Josefsson  <jas@extundo.com>
84742
84743         * tests/test-md4.c: New file.
84744
84745         * modules/md4, modules/md4-tests: New files.
84746
84747 2005-10-18  Simon Josefsson  <jas@extundo.com>
84748
84749         * m4/md4.m4: New file.
84750
84751 2005-10-18  Simon Josefsson  <jas@extundo.com>
84752
84753         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84754
84755 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84756
84757         * gnulib-tool (func_create_testdir): Omit the second check whether
84758         BUILT_SOURCES in nonempty.
84759
84760 2005-10-17  Simon Josefsson  <jas@extundo.com>
84761
84762         * tests/test-rijndael.c: New file.
84763
84764 2005-10-17  Simon Josefsson  <jas@extundo.com>
84765
84766         * modules/sha1: Depend on stdint instead of md5.
84767
84768         * modules/md5: Depend on stdint, remove uint32_t.
84769
84770 2005-10-17  Simon Josefsson  <jas@extundo.com>
84771
84772         * modules/gc-sha1-tests: New file.
84773
84774         * tests/test-gc-sha1.c: New file.
84775
84776 2005-10-17  Simon Josefsson  <jas@extundo.com>
84777
84778         * m4/md5.m4: Remove call to uint32_t.m4.
84779
84780 2005-10-17  Simon Josefsson  <jas@extundo.com>
84781
84782         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84783
84784         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84785         md5.h.
84786
84787         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84788
84789         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84790
84791 2005-10-17  Simon Josefsson  <jas@extundo.com>
84792
84793         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84794
84795 2005-10-17  Simon Josefsson  <jas@extundo.com>
84796
84797         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84798
84799 2005-10-17  Simon Josefsson  <jas@extundo.com>
84800
84801         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84802
84803         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84804
84805 2005-10-17  Bruno Haible  <bruno@clisp.org>
84806
84807         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84808         that it can also be used in a test.
84809
84810 2005-10-16  Bruno Haible  <bruno@clisp.org>
84811
84812         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84813         TESTS_ENVIRONMENT, so that individual tests can augment it.
84814
84815         * gnulib-tool (func_create_testdir): Use an intermediate target for
84816         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84817         macros, like $(ALLOCA_H), which cannot be passed through the command
84818         line.
84819
84820 2005-10-15  Simon Josefsson  <jas@extundo.com>
84821
84822         * modules/rijndael-tests: New file.
84823
84824         * modules/rijndael: New file.
84825
84826 2005-10-15  Simon Josefsson  <jas@extundo.com>
84827
84828         * m4/rijndael.m4: New file.
84829
84830 2005-10-15  Simon Josefsson  <jas@extundo.com>
84831
84832         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84833
84834         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84835
84836 2005-10-14  Simon Josefsson  <jas@extundo.com>
84837
84838         * tests/test-arcfour.c: New file.
84839
84840         * modules/arcfour, modules/arcfour-tests: New files.
84841
84842 2005-10-14  Simon Josefsson  <jas@extundo.com>
84843
84844         * m4/arcfour.m4: New file.
84845
84846 2005-10-14  Simon Josefsson  <jas@extundo.com>
84847
84848         * lib/arcfour.h, lib/arcfour.c: New files.
84849
84850 2005-10-14  Roland McGrath  <roland@redhat.com>
84851
84852         Import from libc.  [BZ #1331]
84853         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84854         macro argument.
84855         Reported by Matej Vela <vela@debian.org>.
84856
84857 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84860         include <wchar.h>; no longer needed.
84861
84862 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84865
84866 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84867         and  Ulrich Drepper  <drepper@redhat.com>
84868
84869         Import from libc.
84870         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84871         instead of inline stream orientation test and two separate
84872         function calls.  Pay no attention to USE_IN_LIBIO.
84873
84874 2005-10-13  Simon Josefsson  <jas@extundo.com>
84875
84876         * modules/gc-hmac-md5-tests: New file.
84877
84878         * tests/test-gc-hmac-sha1.c: New file.
84879
84880         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84881
84882         * modules/gc-hmac-md5-tests: New file.
84883
84884         * tests/test-gc-md5.c: New file.
84885
84886         * modules/gc-md5-tests: New file.
84887
84888 2005-10-13  Simon Josefsson  <jas@extundo.com>
84889
84890         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84891         Move memory allocation outside of loop.
84892
84893 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84896         intermediate directory is in a read-only file system.  Problem
84897         reported by Eric Blake.
84898
84899 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84900
84901         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84902
84903 2005-10-12  Simon Josefsson  <jas@extundo.com>
84904
84905         * tests/test-hmac-sha1.c: New file.
84906
84907         * modules/hmac-sha1-tests: New file.
84908
84909         * modules/hmac-sha1: New file.
84910
84911 2005-10-12  Simon Josefsson  <jas@extundo.com>
84912
84913         * modules/gc-sha1: New file.
84914
84915 2005-10-12  Simon Josefsson  <jas@extundo.com>
84916
84917         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84918
84919         * tests/test-gc-pbkdf2-sha1.c: New file.
84920
84921 2005-10-12  Simon Josefsson  <jas@extundo.com>
84922
84923         * modules/gc-md5, modules/gc-hmac-md5: New files.
84924
84925         * modules/gc (Files): Remove md5, memxor and hmac files.
84926
84927 2005-10-12  Simon Josefsson  <jas@extundo.com>
84928
84929         * m4/gc-pbkdf2-sha1.m4: New file.
84930
84931         * m4/gc-hmac-sha1.m4: New file.
84932
84933         * m4/gc-sha1: New file.
84934
84935         * m4/hmac-sha1.m4: New file.
84936
84937 2005-10-12  Simon Josefsson  <jas@extundo.com>
84938
84939         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84940
84941         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84942
84943 2005-10-12  Simon Josefsson  <jas@extundo.com>
84944
84945         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84946         suggested by Bruno Haible <bruno@clisp.org>.
84947
84948 2005-10-12  Simon Josefsson  <jas@extundo.com>
84949
84950         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84951
84952 2005-10-12  Simon Josefsson  <jas@extundo.com>
84953
84954         * lib/gc-pbkdf2-sha1.c: New file.
84955
84956         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84957
84958 2005-10-12  Simon Josefsson  <jas@extundo.com>
84959
84960         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84961
84962         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84963
84964 2005-10-12  Simon Josefsson  <jas@extundo.com>
84965
84966         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84967         GC_USE_HMAC_MD5, respectively.
84968
84969         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84970         (gc_md5): Fix typo.
84971
84972         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84973
84974         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84975
84976         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84977
84978 2005-10-12  Bruno Haible  <bruno@clisp.org>
84979
84980         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84981         Reported by Stepan Kasal <kasal@ucw.cz>.
84982
84983 2005-10-11  Simon Josefsson  <jas@extundo.com>
84984
84985         * tests/test-crc.c: New file.
84986
84987         * modules/crc, modules/crc-tests: New files.
84988
84989 2005-10-11  Simon Josefsson  <jas@extundo.com>
84990
84991         * m4/crc.m4: New file.
84992
84993 2005-10-11  Simon Josefsson  <jas@extundo.com>
84994
84995         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84996
84997         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84998
84999         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85000
85001 2005-10-11  Simon Josefsson  <jas@extundo.com>
85002
85003         * lib/crc.h, lib/crc.c: New files.
85004
85005         * lib/gc.h (gc_hash_buffer): Add doc.
85006
85007 2005-10-11  Bruno Haible  <bruno@clisp.org>
85008
85009         * modules/c-strcasestr: New file.
85010         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85011
85012 2005-10-11  Bruno Haible  <bruno@clisp.org>
85013
85014         * modules/c-strcase: New file.
85015         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85016
85017 2005-10-11  Bruno Haible  <bruno@clisp.org>
85018
85019         * lib/strcasecmp.c: Include limits.h.
85020         (strcasecmp): Avoid integer overflow on exotic platforms.
85021         * lib/strncasecmp.c: Include limits.h.
85022         (strncasecmp): Avoid integer overflow on exotic platforms.
85023         Reported by Paul Eggert.
85024
85025 2005-10-11  Bruno Haible  <bruno@clisp.org>
85026
85027         * lib/c-strcasestr.h: New file, from GNU gettext.
85028         * lib/c-strcasestr.c: New file, from GNU gettext.
85029
85030 2005-10-11  Bruno Haible  <bruno@clisp.org>
85031
85032         * lib/c-strcase.h: New file, from GNU gettext.
85033         * lib/c-strcasecmp.c: New file, from GNU gettext.
85034         * lib/c-strncasecmp.c: New file, from GNU gettext.
85035
85036 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * modules/mempcpy (License): GPL -> LGPL.
85039         * modules/strchrnul (License): Likewise.
85040         * modules/sysexits (License): Likewise.
85041
85042 2005-10-08  Simon Josefsson  <jas@extundo.com>
85043
85044         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85045
85046 2005-10-07  Simon Josefsson  <jas@extundo.com>
85047
85048         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85049
85050 2005-10-06  Simon Josefsson  <jas@extundo.com>
85051
85052         * tests/test-hmac-md5.c: New file.
85053
85054         * modules/hmac-md5-tests: New file.
85055
85056         * modules/hmac-md5: New file.
85057
85058 2005-10-06  Simon Josefsson  <jas@extundo.com>
85059
85060         * m4/hmac-md5.m4: New file.
85061
85062         * m4/memxor.m4: Require gl_C_RESTRICT.
85063
85064 2005-10-06  Simon Josefsson  <jas@extundo.com>
85065
85066         * lib/memxor.c (memxor): Avoid casts and warnings.
85067
85068 2005-10-06  Simon Josefsson  <jas@extundo.com>
85069
85070         * lib/hmac-md5.c: New file.
85071
85072         * lib/hmac.h: New file.
85073
85074 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85077         promotes to int, not unsigned int, to catch the AIX 5.3
85078         compiler bug.
85079
85080 2005-10-05  Simon Josefsson  <jas@extundo.com>
85081
85082         * modules/memxor: New file.
85083
85084         * modules/iconv (Files): Move config.rpath to havelib, it is used
85085         there.
85086
85087         * modules/havelib (Files): Add config.rpath.
85088
85089 2005-10-05  Simon Josefsson  <jas@extundo.com>
85090
85091         * m4/memxor.m4: New file.
85092
85093 2005-10-05  Simon Josefsson  <jas@extundo.com>
85094
85095         * lib/memxor.c (memxor): Fix compiler error.
85096
85097         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85098         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85099
85100         * lib/memxor.h, lib/memxor.c: New files.
85101
85102         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85103         we assume all systems have it, suggested by Jim Meyering
85104         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85105         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85106         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85107         same reasons.
85108
85109 2005-10-05  Simon Josefsson  <jas@extundo.com>
85110
85111         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85112
85113 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85114
85115         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85116         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85117         needed, since the source code now assumes these .h files.
85118
85119 2005-10-05  Derek Price  <derek@ximbiot.com>
85120
85121         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85122
85123 2005-10-05  Bruno Haible  <bruno@clisp.org>
85124
85125         * modules/stdint (License): Change to LGPL.
85126
85127 2005-10-04  Simon Josefsson  <jas@extundo.com>
85128
85129         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85130         D. Baushke" <mdb@gnu.org>.
85131
85132 2005-10-04  Bruno Haible  <bruno@clisp.org>
85133
85134         * lib/verify.h (verify_true): Provide alternative definition for C++.
85135
85136 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85137
85138         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85139         (SSIZE_MAX): New macro, if not already defined.
85140         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85141         than 2 GiB.
85142
85143 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85144
85145         Sync from coreutils.
85146         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85147         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85148         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85149         ULLONG_MAX doesn't work with 2.7.2.1.
85150
85151 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85152
85153         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85154         From Ben Pfaff.
85155
85156         * modules/exclude (Depends-on): Depend on verify.
85157         * modules/strtoimax (Depends-on): Likewise.
85158         * modules/utimecmp (Depends-on): Likewise.
85159
85160 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * lib/exclude.c: Include verify.h.
85163         (verify): Remove.  All callers changed to use verify.h's version.
85164         * lib/strtoimax.c: Likewise.
85165         * lib/utimecmp.c: Likewis.e
85166
85167         Sync from coreutils.
85168         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85169         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85170         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85171         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85172         bother returning ENOSYS if settimeofday or stime fails; just let
85173         them return whatever errno they want to return.
85174         * lib/utimens.c: Include unistd.h, for dup2.
85175         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85176         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85177
85178 2005-10-02  Jim Meyering  <jim@meyering.net>
85179
85180         Sync from coreutils.
85181         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85182         from glibc-2.2.5 that fails for read-only files.
85183
85184 2005-10-02  Jim Meyering  <jim@meyering.net>
85185
85186         Sync from coreutils.
85187         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85188         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85189         `#if HAVE_CONFIG_H'.
85190         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85191         Remove AT_FDCWD test.
85192         Do not consume the fd unless successful.
85193         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85194         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85195         block, so that we don't even try to compile it if settimeofday is
85196         available.  This works around a compilation failure on OSF1 V5.1,
85197         due to stime requiring a `long int*' while tv_sec is `int'.
85198
85199 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85200
85201         Sync from coreutils.
85202         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85203         against `yes', rather than just testing for nonempty.
85204
85205 2005-10-01  Simon Josefsson  <jas@extundo.com>
85206
85207         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85208         and Darwin.
85209
85210         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85211         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85212         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85213         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85214         Check if struct addrinfo is declared.
85215
85216 2005-10-01  Simon Josefsson  <jas@extundo.com>
85217
85218         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85219         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85220         AI_* and EAI_* definitions.  Protect function declarations.
85221
85222 2005-10-01  Jim Meyering  <jim@meyering.net>
85223
85224         Sync from coreutils.
85225
85226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85227         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85228         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85230         in the inet and nsl libraries.  Required on Solaris 5.7.
85231
85232 2005-10-01  Jim Meyering  <jim@meyering.net>
85233
85234         Sync from coreutils.
85235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85236         in the inet and nsl libraries.  Required on Solaris 5.7.
85237
85238 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85239
85240         * lib/getdelim.c (getdelim): Remove unused variables.
85241
85242 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85245         so that the code works even with ancient cpp.  Portability problem
85246         with GCC 2.7.2.1 reported by Thomas M.Ott.
85247
85248 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * modules/regex (Depends-on): Add strcase.
85251
85252         * modules/gethostname (Licence): Change from GPL to LGPL, since
85253         gethostname.c is a trivial implementation of a standard library
85254         function.
85255         * modules/poll (License): Change from GPL to LGPL, since it's
85256         derived from LGPL code.
85257
85258 2005-09-27  Jim Meyering  <jim@meyering.net>
85259
85260         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85261         HAVE_CONFIG_H.
85262
85263         * lib/intprops.h (signed_type_or_expr__): Define.
85264         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85265         for unsigned types.
85266
85267 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * lib/verify.h (verify_expr): Remove, replacing with:
85270         (verify_true): New macro that returns true instead of void.
85271         (verify_type__): Remove.
85272         (verify): Use verify_true rather than verify_type__.
85273
85274 2005-09-26  Bruno Haible  <bruno@clisp.org>
85275
85276         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85277         is necessary.
85278         (lib_SOURCES): Remove mbchar.c.
85279         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85280         (Files): Add m4/mbrtowc.m4.
85281         * modules/mbiter: Likewise.
85282         * modules/mbuiter: Likewise.
85283
85284 2005-09-26  Bruno Haible  <bruno@clisp.org>
85285
85286         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85287         compile mbchar.c if they are not both present.
85288         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85289         * m4/mbiter.m4 (gl_MBITER): Likewise.
85290         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85291         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85292         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85293
85294 2005-09-25  Jim Meyering  <jim@meyering.net>
85295
85296         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85297         also uses socklen_t.
85298
85299 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85300
85301         * lib/utimens.c (ENOSYS): Define if not already defined.
85302         (futimens): Support having a null PATH if the file descriptor
85303         is nonnegative.
85304
85305         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85306         Remove.
85307         (__attribute): Define to empty unless GCC 3.1 or later.
85308         This works around a core dump on OpenBSD 3.4, which has GCC
85309         2.95.3, which dumps core when given __attribute__(()).  It also
85310         simplifies other tests, since we really don't want to bother with
85311         worrying about which ancient version of GCC supported what.
85312         Original problem reported by Yoann Vandoorselaere, with part of
85313         the fix suggested by Derek Price.
85314
85315 2005-09-24  Jim Meyering  <jim@meyering.net>
85316
85317         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85318         so we can once again use a positive bitfield width of 1 -- now we
85319         don't have to explain why we were using a bitfield width of 2.
85320
85321 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85324         and similarly for the other external symbols.  Problem reported
85325         by James Gallager.
85326
85327         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85328         bug reported by Jim Meyering.
85329
85330         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85331         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85332         not needed, since socklen is a prerequisite module.
85333
85334 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85337         Problem reported by Eric Blake.
85338         (getaddrinfo): Initialize se so that it's not garbage.
85339         Redo internal storage allocation so that it doesn't make unportable
85340         assumptions about alignment.
85341         Fix a memory leak.
85342
85343         * lib/utimens.c (futimens): Use futimesat if available.
85344         Prefer it to futimes since it doesn't have the futimes bug.
85345
85346         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85347         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85348         Instead, declare a function that returns a pointer to an array,
85349         and use verify_type__ to declare the size of the array.
85350         Problem and germ of a solution reported by Bruno Haible.
85351         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85352         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85353
85354 2005-09-23  Jim Meyering  <jim@meyering.net>
85355
85356         Sync from coreutils.
85357         Correct build failure (socklen_t not defined) on at least
85358         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85360
85361 2005-09-23  Jim Meyering  <jim@meyering.net>
85362
85363         * modules/getaddrinfo (Depends-on): Add socklen.
85364
85365 2005-09-23  Bruno Haible  <bruno@clisp.org>
85366
85367         * tests/test-verify.c: New file.
85368
85369 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85370
85371         Sync from coreutils.
85372
85373         * modules/argmatch (Depends-on): Add verify.
85374         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85375         unistd-safer.
85376         * modules/save-cwd (Depends-on): Likewise.
85377
85378         * modules/openat (Files): Add lib/openat-die.c.
85379         (Depends-on): Remove error, exitfail.
85380         Add dirname.
85381
85382         * modules/verify: New file.
85383         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85384         with "verify" module.
85385
85386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         Sync from coreutils.
85389
85390         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85391         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85392         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85393         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85394         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85395         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85396         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85397         Don't bother checking for string.h, stdlib.h, unistd.h.
85398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85399         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85400         module's job.
85401         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85402         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85403
85404         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85405         (gl_GETDATE): Use it.
85406
85407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85408
85409 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         Sync from coreutils.
85412
85413         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85414         stat-time.h.
85415         * lib/argmatch.h: Include verify.h
85416         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85417         (ARGMATCH_ASSERT): Remove; unused.
85418         * lib/canonicalize.c: Assume STDC_HEADERS.
85419         * lib/exclude.c: Include "strcase.h".
85420         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85421         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85422         and stdio-safer.h.
85423         (getusershell): Call fopen, not fopen_safer.
85424         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85425         Do not include unistd-safer.h.
85426         (save_cwd): Don't call fd_safer; no longer needed
85427         now that we include fcntl--.h.
85428
85429         * lib/getdate.y (relative_time): New type.
85430         (RELATIVE_TIME_0): New constant.
85431         (parser_control): Use relative_time instead of doing it ourselves.
85432         (%union): Add new relative_time rel member.
85433         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85434         Now typeless.
85435         (relunit, relunit_snumber): Now of type rel.
85436         (zone, rel, relunit, get_date): Adjust to above changes.
85437
85438         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85439         Do not include unistd-safer.h.
85440         (getloadavg): Don't call fd_safer; no longer needed
85441         now that we include fcntl--.h.
85442
85443         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85444         (make_dir_parents): Treat ENOSYS like EEXIST.
85445
85446         Improve quality of diagnostics on restore_cwd failure.
85447         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85448         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85449         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85450         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85451         each time through the loop.  Do not diagnose restore_cwd failure;
85452         that is the caller's job (and perhaps the caller does not care).
85453
85454         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85455         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85456         If the file already exists but is not a directory, don't bother
85457         to try to make its parents.
85458         Close potential file descriptor leak if we can't chdir("/") (!).
85459         Don't always return true if chdir($PWD) fails; return true only
85460         if the requested action was done successfully (except for the
85461         chdir($PWD)).
85462         Don't log final directory unless we actually made it.
85463         Refactor to avoid duplicate code to fix up permissions.
85464         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85465
85466         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85467         to make it a bit faster and (I hope) clearer.
85468         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85469         Fix bug in formats like %2N.
85470
85471         * lib/verify.h: New file.
85472
85473 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         Sync from coreutils.
85476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85477
85478 2005-09-22  Jim Meyering  <jim@meyering.net>
85479
85480         Sync from coreutils.
85481
85482         * m4/lstat.m4 (gl_FUNC_LSTAT):
85483         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85484         Remove obsolete comment.
85485         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85486         * m4/xstrtod.m4: Likewise.
85487
85488         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85489
85490 2005-09-22  Jim Meyering  <jim@meyering.net>
85491
85492         Sync from coreutils.
85493
85494         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85495
85496         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85497         the .tm_year member, since otherwise gcc-4.0 would now warn about
85498         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85499
85500         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85501         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85502
85503         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85504         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85505         when run in a time zone for which daylight savings time is in effect
85506         for the starting date.
85507
85508         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85509         stop us from restricting permissions of just-created absolute-named
85510         directories.
85511         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85512         to restore initial working directory.
85513         * lib/mkdir-p.c (make_dir_parents): New parameter:
85514         different_working_dir, to tell caller if/when we change the working
85515         directory and are unable to return to the initial one.
85516         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85517         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85518         `return false'.  This fixes a bug introduced on 2004-07-30.
85519
85520         * lib/openat.c (fdopendir): Be sure to close the supplied
85521         file descriptor before returning.  This makes our replacement
85522         implementation a little closer to Solaris's, where fdopendir
85523         ties the file descriptor to the returned DIR* pointer.
85524         * lib/openat.c (unlinkat): New function.
85525         * lib/openat.h (unlinkat): Add prototype.
85526         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85527         (openat_restore_fail): Rename from openat_restore_die.
85528         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85529
85530         Provide an alternative to exiting immediately upon save_cwd or
85531         restore_cwd failure.  Now, an application can arrange e.g.,
85532         to perform a longjump in that case.
85533         * lib/openat.c: Include dirname.h.
85534         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85535         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85536         and openat_restore_die rather than calling error directly.
85537         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85538
85539         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85540         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85541         define.
85542
85543         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85544         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85545                             int utc, int nanoseconds);
85546         Background:
85547         date should not have to allocate a megabyte of virtual memory to
85548         handle a format argument like +%1048575T.  When implemented with
85549         strftime, it must allocate such a buffer, use strftime to fill it
85550         in, print it, then free it.
85551         With fprintftime, it simply prints everything and exits.
85552         With no need for memory allocation, that's one fewer way to fail.
85553         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85554         optional field width, not before, so we accept %9:z, not %:9z.
85555         (my_strftime): Be sure to use L_('x') for literals.
85556
85557         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85558         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85559         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85560         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85561         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85562         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85563         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85564         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85565         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85566         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85567         * lib/xgethostname.c, lib/xreadlink.c:
85568         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85569
85570         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85571         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85572         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85573         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85574         and don't include <sys/file.h>).
85575
85576 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85577
85578         Sync from coreutils.
85579
85580         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85581         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85582         [!LDAV_DONE]: Avoid unused variable warning.
85583
85584 2005-09-21  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/unicodeio.h (unicode_to_mb): New declaration.
85587
85588 2005-09-20  Derek Price  <derek@ximbiot.com>
85589
85590         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85591         getaddrinfo.h.
85592
85593 2005-09-20  Bruno Haible  <bruno@clisp.org>
85594
85595         * gnulib-tool: Remove trailing slashes from the values specified for
85596         --source-base, --m4-base, --tests-base, --aux-dir.
85597         Suggested by Simon Josefsson <jas@extundo.com>.
85598
85599 2005-09-20  Bruno Haible  <bruno@clisp.org>
85600
85601         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85602         func_modules_to_filelist, func_import, func_create_testdir): Make all
85603         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85604         change when gnulib-tool is invoked in a different locale.
85605
85606 2005-09-19  Simon Josefsson  <jas@extundo.com>
85607
85608         * m4/socklen.m4: Fix typo.
85609
85610 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85611
85612         Use a consistent style for including <config.h>.
85613         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85614         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85615         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85616         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85617         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85618         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85619         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85620         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85621         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85622         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85623         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85624         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85625         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85626         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85627         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85628         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85629         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85630         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85631         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85632         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85633         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85634         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85635         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85636         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85637         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85638         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85639         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85640         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85641         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85642         lib/xstrtoumax.c, lib/yesno.c:
85643         Standardize inclusion of config.h.
85644         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85645         lib/inttostr.h:  Removed inclusion of config.h from header files.
85646         * lib/inttostr.c:  Adjusted in-tree users.
85647         * lib/timespec.h: Remove superfluous warning to include config.h.
85648         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85649         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85650         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85651         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85652         config.h with HAVE_CONFIG_H.
85653
85654 2005-09-19  Jim Meyering  <jim@meyering.net>
85655
85656         * modules/pathmax (License): Change to LGPL.
85657
85658 2005-09-19  Derek Price  <derek@ximbiot.com>
85659
85660         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85661
85662 2005-09-19  Bruno Haible  <bruno@clisp.org>
85663
85664         * gnulib-tool (import): Provide default for --tests-base.
85665
85666 2005-09-19  Bruno Haible  <bruno@clisp.org>
85667
85668         * doc/quote.texi: New file, extracted from gnulib.texi.
85669         * doc/ctime.texi: New file, extracted from gnulib.texi.
85670         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85671         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85672         * doc/gnulib.texi: Include them.
85673
85674 2005-09-18  Bruno Haible  <bruno@clisp.org>
85675
85676         Portability fix.
85677         * gnulib-tool (func_readlink): New function.
85678         (func_ln_if_changed): Use it.
85679
85680 2005-09-18  Bruno Haible  <bruno@clisp.org>
85681
85682         * gnulib-tool: Support --with-tests also with --import.
85683         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85684         (func_import): Use variables $testsbase and $inctests. Emit a
85685         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85686         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85687         SUBDIRS += $testsdir.
85688         (func_create_testdir): Update.
85689
85690 2005-09-18  Bruno Haible  <bruno@clisp.org>
85691
85692         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85693         instead of $dry_run.
85694         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85695         (func_ln_if_changed): Don't handle dry-run here.
85696         (func_import): In dry-run mode, detect more precisely which actions
85697         would be performed, and don't use "...ing" verbs.
85698
85699 2005-09-18  Bruno Haible  <bruno@clisp.org>
85700
85701         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85702         (func_import): Use join on two temporary files instead of three nested
85703         loops, in order to determine which files are new or old.
85704
85705 2005-09-18  Bruno Haible  <bruno@clisp.org>
85706
85707         * gnulib-tool (func_import): Comment out code that spits out the
85708         new files with --dry-run.
85709
85710 2005-09-18  Bruno Haible  <bruno@clisp.org>
85711
85712         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85713
85714 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85715
85716         * lib/stat-time.h: New file.
85717         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85718         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85719         in a different way.
85720         (timespec_cmp): New function.
85721         * lib/utimecmp.c: Include stat-time.h.
85722         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85723         members exist, not on the obsolescent ST_MTIM_NSEC.
85724         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85725
85726 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85727
85728         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85729
85730 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85731
85732         * MODULES.html.sh (File system functions): Add stat-time.
85733         * modules/stat-time: New file.
85734         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85735         is now done in a different way, by the stat-time module.
85736         * modules/utimecmp (Depends-on): Add stat-time.
85737
85738 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85739
85740         * m4/st_mtim.m4: Remove.  Superseded by...
85741         * m4/stat-time.m4: New file.
85742         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85743         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85744
85745 2005-09-15  Derek Price  <derek@ximbiot.com>
85746
85747         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85748
85749 2005-09-15  Derek Price  <derek@ximbiot.com>
85750
85751         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85752         * lib/regex_internal.c: Ditto, using this...
85753         (__GNUC_PREREQ): ...new macro.
85754         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85755         using...
85756         (__GNUC_PREREQ): ...this new macro.
85757
85758         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85759
85760 2005-09-15  Derek Price  <derek@ximbiot.com>
85761             Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85764         changes, consolidating in...
85765         * lib/regex_internal.h: ...this file.
85766
85767 2005-09-13  Jim Meyering  <jim@meyering.net>
85768
85769         * lib/canon-host.c: Filter through gnu indent and reword comments
85770         slightly.
85771         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85772
85773 2005-09-13  Derek Price  <derek@ximbiot.com>
85774
85775         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85776         failure.
85777         Reported by Jim Meyering  <jim@meyering.net>.
85778
85779 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85780
85781         * lib/base64.c: Typo.
85782         (base64_encode): Put b64str in initialized data section.
85783
85784 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85785
85786         Merge glibc and coreutils changes into gnulib, plus a few
85787         extra fixes.
85788         * lib/md5.c: Use #error rather than a string.
85789         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85790         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85791         (__attribute__): Define to empty for non recent-GCC.
85792         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85793         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85794         Renamed from their non-__ counterparts, with new macros replacing
85795         them if not _LIBC.  Add __THROW attribute.
85796         (rol): Remove.
85797         (struct md5_ctx): Align buffer if using GCC.
85798         * lib/sha1.h (struct sha1_ctx): Likewise.
85799         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85800         The old name was backwards.
85801         (NOTSWAP): Remove; not used.
85802         (rol): New macro, moved here from md5.h.
85803         (sha1_process_block): Remove a FIXME that doesn't make sense.
85804
85805 2005-09-12  Derek Price  <derek@ximbiot.com>
85806
85807         Return usable errors from canon-host.
85808         * lib/canon-host.h: New file.
85809         * lib/canon-host.c (canon_host): Wrap...
85810         (canon_host_r): ...this new function, which now relies exclusively on
85811         getaddrinfo.
85812         (ch_strerror): New function.
85813         (last_cherror): New global.
85814         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85815         interface.
85816         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85817         void *.
85818         (freeaddrinfo): Free ai->ai_canonname when set.
85819
85820 2005-09-12  Derek Price  <derek@ximbiot.com>
85821
85822         Make canon-host require getaddrinfo.
85823         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85824         AC_LIBSOURCE canon-host.h.  Call...
85825         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85826         gl_GETADDRINFO.
85827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85828
85829 2005-09-12  Derek Price  <derek@ximbiot.com>
85830
85831         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85832         LGPL.
85833         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85834
85835 2005-09-12  Derek Price  <derek@ximbiot.com>
85836
85837         * lib/gai_strerror.c: Include config.h when available.  Include
85838         getaddrinfo.h before other headers to test interface.
85839         Reported by Larry Jones <lawrence.jones@ugs.com>.
85840
85841 2005-09-12  Derek Price  <derek@ximbiot.com>
85842             Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * modules/glob (Files): Add glob-libc.h.
85845
85846 2005-09-12  Derek Price  <derek@ximbiot.com>
85847             Paul Eggert  <eggert@cs.ucla.edu>
85848
85849         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85850         glob_.h, glob-libc.h.
85851         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85852
85853 2005-09-12  Derek Price  <derek@ximbiot.com>
85854             Paul Eggert  <eggert@cs.ucla.edu>
85855
85856         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85857         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85858         protecting things that should be done only in gnulib contexts.
85859         * lib/glob_.h: New file, containing only the glob things needed for
85860         gnulib.
85861         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85862         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85863         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85864         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85865         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85866         and to respect the namespace rules better.
85867
85868 2005-09-08  Simon Josefsson  <jas@extundo.com>
85869
85870         * modules/socklen: New file.
85871
85872 2005-09-08  Simon Josefsson  <jas@extundo.com>
85873
85874         * m4/socklen.m4: New file.
85875
85876 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * modules/utimens (Files): Add m4/utimbuf.m4, since
85879         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85880         Reported by Sergey Poznyakoff.
85881
85882 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85885         definitions, since that's the preferred style in glibc.
85886         Fix a minor spacing issue, and update copyright notice to match
85887         glibc's.
85888
85889 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85892
85893 2005-09-06  Simon Josefsson  <jas@extundo.com>
85894
85895         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85896         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85897
85898 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85901         warning.
85902
85903 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85904
85905         * config/srclist.txt: Add glibc bug 1302.
85906
85907 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85908
85909         Change bitset word type from unsigned int to unsigned long int,
85910         as this has better performance on typical 64-bit hosts.
85911         Port bitset code to hosts with unusual word sizes.
85912         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85913         (build_collating_symbol):
85914         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85915         argument is a bitset.  This is merely a style issue, but it makes
85916         it clearer that an entire array is expected.
85917         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85918         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85919         Port to the case where bitset_word is not the same as unsigned int.
85920         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85921         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85922         Likewise.
85923         * lib/regexec.c (check_dst_limits_calc_pos_1,
85924         check_subexp_matching_top):
85925         (build_trtable, group_nodes_into_DFAstates):
85926         Likewise.
85927         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85928         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85929         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85930         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85931         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85932         * lib/regcomp.c (optimize_subexps, lower_subexp):
85933         Work even if bitset_word has holes in its bitwise representation.
85934         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85935         * lib/regexec.c (check_dst_limits_calc_pos_1,
85936         check_subexp_matching_top):
85937         Likewise.
85938         * lib/regex_internal.c (re_string_reconstruct):
85939         Don't assume UCHAR_MAX == 255.
85940         * lib/regex_internal.h (bitset_set_all): Likewise.
85941         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85942         All uses changed.
85943         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85944         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85945         All uses changed.
85946         (BITSET_WORD_MAX): New macro.
85947         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85948         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85949         (bitset_empty, bitset_copy):
85950         Prefer sizeof (bitset) to multiplying it out ourselves.
85951         (bitset_not_merge): Remove; unused.
85952         (bitset_contain): Return bool, not unsigned int with one bit on.
85953         All callers changed.
85954         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85955         alignment than re_node_set; do this by defining a new internal
85956         type struct dests_alloc and using it to allocate memory.
85957
85958 2005-09-05  Bruno Haible  <bruno@clisp.org>
85959
85960         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85961         links.
85962
85963 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85964
85965         * modules/size_max (Makefile.am): Add size_max.h
85966
85967 2005-09-04  Derek Price  <derek@ximbiot.com>
85968
85969         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85970
85971 2005-09-03  Simon Josefsson  <jas@extundo.com>
85972
85973         * gnulib-tool: Fix typo.
85974
85975 2005-09-03  Simon Josefsson  <jas@extundo.com>
85976
85977         * config/srclist.txt: Add glibc bug 1293.
85978
85979 2005-09-03  Derek Price  <derek@ximbiot.com>
85980
85981         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85982         From Larry Jones <lawrence.jones@ugs.com>.
85983
85984 2005-09-02  Simon Josefsson  <jas@extundo.com>
85985
85986         * modules/socklen: New file.
85987
85988 2005-09-02  Simon Josefsson  <jas@extundo.com>
85989
85990         * modules/havelib: New module.
85991
85992         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85993         Use havelib.
85994
85995 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85996
85997         Check for arithmetic overflow when calculating sizes, to prevent
85998         some buffer-overflow issues.  These patches are conservative, in the
85999         sense that when I couldn't determine whether an overflow was possible,
86000         I inserted a run-time check.
86001         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86002         macros.
86003         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86004         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86005         (re_xnrealloc, re_x2nrealloc): New inline functions.
86006         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86007         parse_bracket_exp):
86008         (build_equiv_class, build_charclass): Check for arithmetic overflow
86009         in size expression calculations.
86010         * lib/regex_internal.c (re_string_realloc_buffers):
86011         (build_wcs_upper_buffer, re_node_set_add_intersect):
86012         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86013         (re_dfa_add_node, register_state): Likewise.
86014         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86015         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86016         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86017         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86018
86019 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86020
86021         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86022         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86023
86024 2005-09-02  Bruno Haible  <bruno@clisp.org>
86025
86026         Support for lib vs. lib64 distinction on biarch platforms.
86027         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86028         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86030
86031 2005-09-02  Bruno Haible  <bruno@clisp.org>
86032
86033         * gnulib-tool (import): In the other first-use case, provide defaults
86034         as well.
86035
86036 2005-09-02  Bruno Haible  <bruno@clisp.org>
86037
86038         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86039         patches not yet found in the latest gettext release.
86040
86041 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86042
86043         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86044         to avoid a collision with bits/local_lim.h in glibc.
86045         All uses changed.  Problem reported by Dmitry V. Levin in
86046         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86047
86048         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86049         bugs in int versus size_t comparisons.
86050         (re_string_context_at): Fix bug where the code assumed that
86051         Idx is signed.
86052
86053         Use bool where appropriate.
86054         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86055         All callers changed.
86056         (calc_eclosure_iter): Likewise, for ROOT arg.
86057         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86058         (build_charclass_op): Likewise, for NON_MATCH arg.
86059         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86060         (re_string_construct_common): Likewise, for ICASE arg.
86061         * lib/regexec.c (re_search_2_stub, re_search_stub):
86062         Likewise, for RET_LEN arg.
86063         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86064         (set_regs): Likewise, for FL_BACKTRACK arg.
86065         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86066         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86067         (calc_eclosure_iter, parse_bracket_exp):
86068         Use bool for internal variables that are booleans.
86069         * lib/regexec.c (re_search_internal, check_matching,
86070         proceed_next_node):
86071         (set_regs, build_sifted_states, sift_states_bkref):
86072         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86073         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86074         (find_collation_sequence_value):
86075         Likewise.
86076         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86077         (re_node_set_compare):
86078         Return bool, not int. All callers changed.
86079         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86080         (build_trtable, check_node_accept): Likewise.
86081         * lib/regex_internal.h: Include stdbool.h.
86082
86083         Fix bugs uncovered when converting to bool.
86084         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86085         failure instead of charging ahead blindly.
86086         * lib/regex_internal.c (register_state): Likewise.
86087         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86088         for freeing internal storage.
86089         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86090         bitset pieces used as boolean, to avoid undefined behavior
86091         on hosts that do int overflow checking.
86092
86093 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * config/srclist.txt: Add glibc bugs 1285-1287.
86096
86097 2005-09-01  Jim Meyering  <jim@meyering.net>
86098
86099         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86100         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86101         Require gl_STAT_MACROS, too.
86102
86103 2005-09-01  Bruno Haible  <bruno@clisp.org>
86104
86105         * gnulib-tool (import): In the first-use case, provide defaults.
86106
86107 2005-09-01  Bruno Haible  <bruno@clisp.org>
86108
86109         * gnulib-tool (func_import): Remove the .tmp files.
86110
86111 2005-09-01  Bruno Haible  <bruno@clisp.org>
86112
86113         * gnulib-tool (func_import): Fix handling of symbolic links.
86114
86115 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86118         old glibc regex code mishandles strings longer than 2**31 bytes.
86119         This patch fixes this when the regex code is used in gnulib
86120         (i.e., outside glibc).
86121
86122         This patch should not affect the use of the regex code inside
86123         glibc.  No doubt this problem also needs to be handled for glibc
86124         as well, but the result will be an incompatible change to the
86125         glibc ABI, and the old ABI will have to be supported too.  That
86126         can be the the subject for another patch.
86127
86128         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86129         governing whether the rest of this patch is active.  By default,
86130         the macro is disabled and the patch has no effect.
86131         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86132         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86133         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86134         (re_match_2, re_set_registers): Use the new types.
86135         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86136         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86137         New macros.
86138         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86139         (re_string_context_at, bin_tree_t, re_dfastate_t):
86140         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86141         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86142         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86143         (re_string_char_size_at, re_string_wchar_at):
86144         (re_string_elem_size_at):
86145         Use the new types and macros to port to 64-bit hosts.
86146         Use unsigned types for internal values, so that the code
86147         mostly works even for arrays larger than SSIZE_MAX.
86148         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86149         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86150         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86151         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86152         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86153         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86154         (calc_inveclosure, parse_dup_op, build_range_exp):
86155         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86156         (fetch_number, create_token_tree, mark_opt_subexp):
86157         Likewise.
86158         * lib/regex_internal.c (re_string_construct_common,
86159         create_ci_newstate):
86160         (create_cd_newstate, re_string_allocate, re_string_construct):
86161         (re_string_realloc_buffers, build_wcs_upper_buffer):
86162         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86163         (re_string_reconstruct, re_string_peek_byte_case):
86164         (re_string_fetch_byte_case, re_string_context_at):
86165         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86166         (re_node_set_init_copy, re_node_set_add_intersect):
86167         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86168         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86169         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86170         (re_acquire_state, re_acquire_state_context, register_state):
86171         Likewise.
86172         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86173         search_cur_bkref_entry):
86174         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86175         (re_search_internal, re_search_2_stub, re_search_stub)
86176         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86177         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86178         (update_cur_sifted_state, check_dst_limits):
86179         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86180         (check_subexp_limits, sift_states_bkref, merge_state_array):
86181         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86182         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86183         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86184         (expand_bkref_cache, check_node_accept_bytes):
86185         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86186         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86187         (acquire_init_state_context, check_halt_node_context):
86188         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86189         (sift_states_backward, clean_state_log_if_needed):
86190         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86191         (find_recover_state, transit_state_sb, transit_state_mb):
86192         (transit_state_bkref, build_trtable, match_ctx_clean):
86193         Likewise.
86194         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86195         to work around an assumption that REG_MISSING is negative.
86196
86197         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86198         (seek_collating_symbol_entry) [defined _LIBC]:
86199         (lookup_collation_sequence_value) [defined _LIBC]:
86200         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86201         Use prototypes rather than old-style function definitions.
86202         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86203         (transit_state_sb) [0]:
86204         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86205
86206         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86207         rm_eo.
86208
86209         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86210         (optimize_subexps, lower_subexp):
86211         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86212         since the signed shift might overflow.  Use 1u<<31 instead.
86213         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86214         Likewise.
86215         * lib/regexec.c (check_dst_limits_calc_pos_1,
86216         check_subexp_matching_top): Likewise.
86217
86218         * lib/regcomp.c (optimize_subexps, lower_subexp):
86219         Use CHAR_BIT rather than 8, for clarity.
86220         * lib/regexec.c (check_dst_limits_calc_pos_1):
86221         (check_subexp_matching_top): Likewise.
86222         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86223         have to worry about portability issues when shifting it left.
86224         Remove no-longer-needed test for table_size > 0.
86225         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86226         in a word, as the resulting behavior is undefined.
86227         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86228         in one case, a <= should have been an <, and in another case the
86229         whole test was missing.
86230         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86231         the standard name CHAR_BIT.
86232         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86233         this is not true on one's complement and signed-magnitude hosts.
86234
86235         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86236         next_last_offset.
86237         (struct re_dfa_t): Remove unused member states_alloc.
86238         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86239
86240 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86243         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86244         and large-file glibc and in 32-bit large-file Solaris.
86245
86246 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86247
86248         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86249         lengths fit in regoff_t; this isn't true if regoff_t is the same
86250         width as size_t.
86251         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86252         (= START + RANGE) instead of RANGE.  This avoids overflow
86253         problems when regoff_t is the same width as size_t.
86254         All callers changed.
86255         (re_search_2_stub): Check for overflow when adding the
86256         sizes of the two strings.
86257         (re_search_stub): Check for overflow when adding START
86258         to RANGE; if it occurs, substitute the extreme value.
86259
86260 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86263
86264 2005-08-31  Jim Meyering  <jim@meyering.net>
86265
86266         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86267         a pointer-to-const.
86268         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86269         (register_state): Likewise.
86270         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86271         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86272         (group_nodes_into_DFAstates): Likewise.
86273
86274 2005-08-31  Jim Meyering  <jim@meyering.net>
86275
86276         * check-module: Add a FIXME comment.
86277
86278 2005-08-31  Eric Blake  <ebb9@byu.net>
86279
86280         * modules/unistd-safer (Files): Add unistd--.h.
86281         * modules/stdio-safer (Files): Add stdio--.h.
86282
86283 2005-08-31  Derek Price  <derek@ximbiot.com>
86284
86285         * lib/getdelim.c (getdelim): Return EOF on EOF.
86286         Reported by Larry Jones <lawrence.jones@ugs.com>.
86287
86288 2005-08-31  Bruno Haible  <bruno@clisp.org>
86289
86290         Avoid unnecessary diffs in the generated lib/Makefile.am.
86291         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86292         the generated files.
86293         (func_import): Don't set cmd.
86294
86295 2005-08-31  Bruno Haible  <bruno@clisp.org>
86296
86297         * lib/strstr.c: Include <stddef.h>, for NULL.
86298         * lib/strcasestr.c: Likewise.
86299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86300
86301 2005-08-31  Bruno Haible  <bruno@clisp.org>
86302
86303         * gnulib-tool: New option --macro-prefix.
86304         (func_import): Use macro_prefix.
86305         (import): Handle option --macro-prefix.
86306
86307 2005-08-31  Bruno Haible  <bruno@clisp.org>
86308
86309         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86310         Also use new variables cached_lgpl, cached_libtool.
86311
86312 2005-08-31  Bruno Haible  <bruno@clisp.org>
86313
86314         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86315         always instantiating them.
86316
86317 2005-08-31  Bruno Haible  <bruno@clisp.org>
86318
86319         * gnulib-tool (func_import): Read the previous cached settings
86320         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86321         earlier added by gnulib but are now dropped. Warn when a gnulib file
86322         overwrites a non-gnulib file.
86323
86324 2005-08-31  Bruno Haible  <bruno@clisp.org>
86325
86326         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86327         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86328         projects that don't keep autogenerated files in CVS. Put into
86329         actioncmd only the specified modules, not the transitive closure.
86330
86331 2005-08-31  Bruno Haible  <bruno@clisp.org>
86332
86333         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86334         Create directories that shall be filled.
86335         (import): Don't look for gl_* macros in configure.ac. Recurse across
86336         all directories containing a gnulib-cache.m4 files, if meaningful.
86337
86338 2005-08-31  Bruno Haible  <bruno@clisp.org>
86339
86340         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86341         (import): Set seen_libtool when we see gl_LIBTOOL.
86342
86343 2005-08-31  Bruno Haible  <bruno@clisp.org>
86344
86345         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86346         declaration macro definitions from generated gnulib.m4.
86347
86348 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86349
86350         * lib/iconvme.h: Add prototype for iconv_alloc.
86351
86352 2005-08-29  Simon Josefsson  <jas@extundo.com>
86353
86354         * lib/iconvme.c: Fix errno.
86355
86356 2005-08-29  Bruno Haible  <bruno@clisp.org>
86357
86358         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86359         that it works when the directory contains spaces.
86360
86361 2005-08-29  Bruno Haible  <bruno@clisp.org>
86362
86363         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86364
86365 2005-08-29  Bruno Haible  <bruno@clisp.org>
86366
86367         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86368         Emit more advice.
86369
86370 2005-08-29  Bruno Haible  <bruno@clisp.org>
86371         and Stepan Kasal  <kasal@ucw.cz>
86372
86373         * check-module: If more parameters are given, check each of them
86374         separately; add more exceptions, as noted by Jim Meyering.
86375         (check_module): New procedure.
86376         (%exempt_header): Now contains all exceptions.
86377
86378 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86379
86380         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86381
86382 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86383
86384         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86385
86386 2005-08-28  Bruno Haible  <bruno@clisp.org>
86387
86388         * m4/gnulib-tool.m4: New file.
86389
86390 2005-08-27  Jim Meyering  <jim@meyering.net>
86391
86392         * modules/unistd-safer (Files): Add pipe-safer.c.
86393         * modules/fcntl-safer (Files): Add creat-safer.c.
86394
86395 2005-08-27  Jim Meyering  <jim@meyering.net>
86396
86397         * m4/stdlib-safer.m4: New file.  From coreutils.
86398         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86399         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86400         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86401         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86402         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86403
86404 2005-08-27  Jim Meyering  <jim@meyering.net>
86405
86406         * lib/fopen-safer.c: Merge minor changes from coreutils.
86407         * lib/dup-safer.c: Likewise.
86408         * lib/fd-safer.c: Likewise.
86409
86410         Merge from coreutils.
86411         * lib/stdio--.h: New file.
86412         * lib/stdlib--.h: New file.
86413         * lib/mkstemp-safer.c: New file.
86414
86415         GNU tar needs these.
86416         * lib/pipe-safer.c: New file.
86417         * lib/creat-safer.c: New file.
86418         * lib/fcntl--.h (creat): Define to creat_safer.
86419         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86420         * lib/unistd--.h (pipe): Define to pipe_safer.
86421         * lib/unistd-safer.h: Declare pipe_safer.
86422
86423 2005-08-26  Simon Josefsson  <jas@extundo.com>
86424
86425         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86426         Haible <bruno@clisp.org>.
86427
86428 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86429
86430         * lib/regex_internal.h: Remove all references to
86431         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86432         or better.
86433         (bitset_not, bitset_merge, bitset_not_merge):
86434         (bitset_mask, re_string_allocate, re_string_construct):
86435         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86436         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86437         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86438         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86439         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86440         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86441         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86442         (re_acquire_state_context):
86443         Remove unnecessary forward decls.
86444         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86445         Put __attribute at function definition,
86446         now that the function decl has been removed.
86447         * lib/regex_internal.c (re_string_peek_byte_case):
86448         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86449         Likewise.
86450
86451 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86452
86453         * m4/regex.m4: Add AC_PREREQ(2.50).
86454         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86455
86456 2005-08-25  Simon Josefsson  <jas@extundo.com>
86457
86458         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86459         __fsetlocking.
86460
86461 2005-08-25  Simon Josefsson  <jas@extundo.com>
86462
86463         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86464         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86465         GLIBC specific code.
86466
86467 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         Make regex safe for g++.  This fixes one real bug (an "err"
86470         that should have been "*err").  g++ problem reported by
86471         Sam Steingold.
86472         * lib/regex_internal.h (re_calloc): New macro, consistent with
86473         re_malloc etc.  All callers of calloc changed to use re_calloc.
86474         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86475         not int.  All callers changed.
86476         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86477         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86478         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86479         (find_recover_state): Change "err" to "*err"; this fixes what
86480         appears to be a real bug.
86481         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86482         versus int.
86483
86484 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86485
86486         * modules/regex (Depends-on): Add malloc, since the code
86487         assumes that !malloc(0) means failure.
86488
86489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86490
86491         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86492
86493         alloca modernization/simplification for regex.
86494         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86495         needs to be at the start of the file, and can be moved into
86496         regex_internal.h and simplified.
86497         * lib/regex_internal.h: Include <alloca.h>.
86498         (__libc_use_alloca) [!defined _LIBC]: New macro.
86499         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86500         now works outside glibc.
86501
86502 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * config/srclist.txt: Add glibc bugs 1241, 1245.
86505
86506 2005-08-25  Jim Meyering  <jim@meyering.net>
86507
86508         * lib/open-safer.c: Include <config.h>.
86509         Otherwise, we'd lose LARGEFILE support in any file using
86510         e.g. "fcntl--.h"
86511
86512 2005-08-25  Bruno Haible  <bruno@clisp.org>
86513
86514         * m4/minmax.m4: Require autoconf 2.52.
86515         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86516         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86517         alternatives of translit over the alphabet.
86518         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86519
86520 2005-08-24  Simon Josefsson  <jas@extundo.com>
86521
86522         * tests/test-getpass.c: New file.
86523
86524 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86525
86526         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86527         for GNU regex features.
86528
86529 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86530
86531         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86532         * lib/regex.h (regerror): Likewise.
86533
86534         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86535         requires this.  (The code never needed it.)
86536
86537         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86538         All uses of recently-renamed identifiers changed to use the new,
86539         POSIX-compliant names.  The code will build and run just fine
86540         without these changes, but it's better to eat our own dog food
86541         and use the standard-conforming names.
86542
86543         * lib/regex.h: Fix a multitude of POSIX name space violations.
86544         These changes have an effect only for programs that define
86545         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86546         do not change anything for programs compiled in the normal way.
86547         Also, there is no effect on the ABI.
86548
86549         (_REGEX_SOURCE): New macro.
86550         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86551         defined and _GNU_SOURCE is not; this fixes a name space violation.
86552
86553         Rename the following macros to obey POSIX requirements.
86554         The old names are still visible as macros if _REGEX_SOURCE is defined.
86555         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86556         RE_BACKSLASH_ESCAPE_IN_LISTS.
86557         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86558         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86559         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86560         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86561         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86562         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86563         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86564         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86565         (REG_INTERVALS): renamed from RE_INTERVALS.
86566         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86567         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86568         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86569         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86570         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86571         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86572         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86573         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86574         RE_UNMATCHED_RIGHT_PAREN_ORD.
86575         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86576         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86577         (REG_DEBUG): renamed from RE_DEBUG.
86578         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86579         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86580         unusual, since we can't clash with the POSIX REG_ICASE.
86581         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86582         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86583         (REG_NO_SUB): renamed from RE_NO_SUB.
86584         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86585         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86586         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86587         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86588         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86589         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86590         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86591         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86592         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86593         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86594         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86595         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86596         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86597         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86598         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86599         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86600         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86601         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86602         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86603         (REG_FIXED): Renamed from REGS_FIXED.
86604         (REG_NREGS): Renamed from RE_NREGS.
86605
86606         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86607         of other REG_* macros, since POSIX says the user is allowed to
86608         #undef these macros selectively.
86609
86610         (reg_errcode_t): Update comment stating what other tables need
86611         to be consistent.
86612
86613         Rename the following enum values to obey POSIX requirements.
86614         The old names are still visible as macros.
86615         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86616         is not defined, since GNU is supposed to be a superset of POSIX as
86617         much as possible, and since we want reg_errcode_t to be a signed
86618         type for implementation consistency.
86619         (_REG_NOERROR): Renamed from REG_NOERROR.
86620         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86621         (_REG_BADPAT): Renamed from REG_BADPAT.
86622         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86623         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86624         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86625         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86626         (_REG_EBRACK): Renamed from REG_EBRACK.
86627         (_REG_EPAREN): Renamed from REG_EPAREN.
86628         (_REG_EBRACE): Renamed from REG_EBRACE.
86629         (_REG_BADBR): Renamed from REG_BADBR.
86630         (_REG_ERANGE): Renamed from REG_ERANGE.
86631         (_REG_ESPACE): Renamed from REG_ESPACE.
86632         (_REG_BADRPT): Renamed from REG_BADRPT.
86633         (_REG_EEND): Renamed from REG_EEND.
86634         (_REG_ESIZE): Renamed from REG_ESIZE.
86635         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86636         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86637         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86638         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86639         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86640
86641         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86642         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86643         changed.  But support the old name if the new one is not defined
86644         and if _REGEX_SOURCE.
86645
86646         Change the following member names in struct re_pattern_buffer.
86647         The old names are still supported if !_REGEX_SOURCE.
86648         The new names are always supported, regardless of _REGEX_SOURCE.
86649         (re_buffer): Renamed from buffer.
86650         (re_allocated): Renamed from allocated.
86651         (re_used): Renamed from used.
86652         (re_syntax): Renamed from syntax.
86653         (re_fastmap): Renamed from fastmap.
86654         (re_translate): Renamed from translate.
86655         (re_can_be_null): Renamed from can_be_null.
86656         (re_regs_allocated): Renamed from regs_allocated.
86657         (re_fastmap_accurate): Renamed from fastmap_accurate.
86658         (re_no_sub): Renamed from no_sub.
86659         (re_not_bol): Renamed from not_bol.
86660         (re_not_eol): Renamed from not_eol.
86661         (re_newline_anchor): Renamed from newline_anchor.
86662
86663         Change the following member names in struct re_registers.
86664         The old names are still supported if !_REGEX_SOURCE.
86665         The new names are always supported, regardless of _REGEX_SOURCE.
86666         (rm_num_regs): Renamed from num_regs.
86667         (rm_start): Renamed from start.
86668         (rm_end): Renamed from end.
86669
86670         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86671         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86672         Prepend __ to parameter names.
86673
86674         Undo yesterday's changes.
86675
86676 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86677
86678         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86679         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86680         lib/regex.c.
86681
86682 2005-08-24  Jim Meyering  <jim@meyering.net>
86683
86684         Sync from coreutils.
86685         * m4/fcntl-safer.m4: New file.
86686
86687         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86688         and object files for this module.
86689
86690 2005-08-24  Jim Meyering  <jim@meyering.net>
86691
86692         Sync from coreutils.
86693         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86694
86695 2005-08-24  Jim Meyering  <jim@meyering.net>
86696
86697         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86698         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86699
86700 2005-08-24  Jim Meyering  <jim@meyering.net>
86701
86702         * modules/fcntl-safer: New module.
86703         * modules/fts (Depends-on): Add fcntl-safer.
86704         * MODULES.html.sh (File descriptor based Input/Output):
86705         Add fcntl-safer.
86706
86707 2005-08-24  Bruno Haible  <bruno@clisp.org>
86708
86709         Support for unit test modules.
86710         * modules/README: Mention tests modules.
86711         * modules/TEMPLATE-TESTS: New file.
86712         * gnulib-tool: New options --extract-tests-module, --with-tests and
86713         --tests-base (unused for the moment).
86714         (testsbase, inctests): New variables.
86715         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86716         (func_verify_module): Exclude TEMPLATE-TESTS.
86717         (func_verify_nontests_module, func_verify_tests_module): New functions.
86718         (func_get_dependencies): Add implicit dependency for tests modules.
86719         (func_get_tests_module): New function.
86720         (func_modules_transitive_closure): When --with-tests was specified,
86721         include the unit tests as well, unless explicitly avoided.
86722         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86723         (func_emit_tests_Makefile_am): New function.
86724         (func_create_testdir): When --with-tests was specified, emit a
86725         tests/ directory.
86726         * MODULES.html.sh (Future developments): Update.
86727
86728 2005-08-24  Bruno Haible  <bruno@clisp.org>
86729
86730         * modules/tls-tests: New file.
86731         * tests/test-tls.c: New file, from GNU gettext.
86732
86733 2005-08-24  Bruno Haible  <bruno@clisp.org>
86734
86735         * modules/lock-tests: New file.
86736         * tests/test-lock.c: New file, from GNU gettext.
86737
86738 2005-08-24  Bruno Haible  <bruno@clisp.org>
86739
86740         * lib/lock.h: Add multiple inclusion guard.
86741         * lib/tls.h: Add multiple inclusion guard.
86742
86743 2005-08-24  Bruno Haible  <bruno@clisp.org>
86744
86745         * gnulib-tool: Add support for the --aux-dir option to
86746         --create-testdir, --create-megatestdir, --test, --megatest.
86747         (func_create_testdir, func_create_megatestdir): Optionally emit a
86748         AC_CONFIG_AUX_DIR directive.
86749         (create-testdir, create-megatestdir, test, megatest): Provide a
86750         default value for $auxdir.
86751
86752 2005-08-24  Bruno Haible  <bruno@clisp.org>
86753
86754         * gnulib-tool (import): Use compound statement instead of subshell
86755         where possible.
86756
86757 2005-08-24  Bruno Haible  <bruno@clisp.org>
86758
86759         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86760
86761 2005-08-24  Bruno Haible  <bruno@clisp.org>
86762
86763         * gnulib-tool (func_version): Update.
86764
86765 2005-08-24  Bruno Haible  <bruno@clisp.org>
86766
86767         * gnulib-tool (func_import, func_create_testdir,
86768         func_create_megatestdir): Quote all autoconf macro arguments.
86769
86770 2005-08-24  Bruno Haible  <bruno@clisp.org>
86771
86772         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86773         option --force, because --force causes the aclocal.m4 of each
86774         subdirectory to be newer than the corresponding config.h.in.
86775
86776 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86777
86778         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86779         All contents moved to gl_REGEX.
86780         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86781         assume that it does.
86782
86783 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86784
86785         * lib/regex.h (REG_NOSYS)
86786         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86787         Define, since POSIX requires it as of 2001.
86788         (_REG_ENOSYS)
86789         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86790         New private symbol, used to keep the enum signed in all cases.
86791         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86792         Youngman in
86793         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86794
86795         * lib/regex_internal.c (re_string_skip_chars, register_state):
86796         (calc_state_hash):
86797         Remove forward decls; no longer needed now that we use prototypes.
86798         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86799         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86800         (clean_state_log_if_needed): Likewise.
86801
86802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86803
86804         * config/srclist.txt: Add glibc bugs 1231-1233.
86805
86806 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86807
86808         Fix problems reported by Sam Steingold in
86809         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86810         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86811         assumed that reg_errcode_t is a signed type, which is not
86812         necessarily true if _XOPEN_SOURCE is not defined.
86813         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86814         since some compilers warn about it otherwise.
86815
86816 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86817
86818         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86819         (init_word_char, create_initial_state, duplicate_node_closure):
86820         (fetch_token, peek_token_bracket, build_range_exp):
86821         (build_collating_symbol): Remove forward decls; no longer needed
86822         now that we use prototypes.
86823
86824         * lib/regcomp.c:
86825         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86826         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86827         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86828         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86829         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86830         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86831         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86832         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86833         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86834         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86835         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86836         (build_charclass, build_charclass_op, fetch_number, create_tree):
86837         (create_token_tree, mark_opt_subexp, duplicate_tree):
86838         Use prototypes rather than old-style definitions.
86839
86840         * lib/regex_internal.c:
86841         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86842         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86843         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86844         (re_string_reconstruct, re_string_peek_byte_case):
86845         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86846         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86847         (re_node_set_init_copy, re_node_set_add_intersect):
86848         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86849         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86850         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86851         (re_acquire_state, re_acquire_state_context, register_state):
86852         (create_ci_newstate, create_cd_newstate, free_state):
86853         Likewise.
86854         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86855         re_search_2):
86856         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86857         (re_search_internal, prune_impossible_nodes):
86858         (acquire_init_state_context, check_matching, static):
86859         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86860         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86861         (update_regs, sift_states_backward, build_sifted_states):
86862         (clean_state_log_if_needed, merge_state_array):
86863         (update_cur_sifted_state, add_epsilon_src_nodes):
86864         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86865         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86866         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86867         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86868         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86869         (check_arrival, check_arrival_add_next_nodes):
86870         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86871         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86872         (check_node_accept_bytes, check_node_accept, extend_buffers):
86873         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86874         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86875         (sift_ctx_init):
86876         Likewise.
86877
86878         * lib/regex_internal.h:
86879         (re_string_allocate, re_string_construct, re_string_reconstruct):
86880         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86881         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86882         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86883         (re_string_context_at, re_string_peek_byte_case):
86884         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86885         is defined, since we now use prototypes always.
86886
86887         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86888         C89 or better.  All uses removed.
86889
86890 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86891
86892         * config/srclist.txt: Add glibc bugs 1220-1227.
86893
86894 2005-08-20  Jim Meyering  <jim@meyering.net>
86895
86896         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86897         of unused local, dfa.
86898
86899 2005-08-20  Bruno Haible  <bruno@clisp.org>
86900
86901         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86902
86903 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86906         (re_node_set_insert_last, re_dfa_add_node):
86907         Rename local variables to avoid GCC shadowing warnings.
86908
86909 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86912         [defined lint]: Suppress bogus uninitialized-variable warnings.
86913
86914         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86915         and let the caller return REG_ESPACE if out of space.  This
86916         removes an uninitialied-variable warning with GCC 4.0.1, and also
86917         avoids taking the address of a local variable.  All callers
86918         changed.
86919
86920 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86921
86922         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86923         $LIBCSRC/posix/regexec.c.
86924         Add glibc bug 1217 for regcomp.c.
86925
86926 2005-08-19  Jim Meyering  <jim@meyering.net>
86927
86928         * lib/regexec.c (proceed_next_node): Redo local variables to
86929         avoid GCC shadowing warnings.
86930
86931 2005-08-18  Bruno Haible  <bruno@clisp.org>
86932
86933         * lib/strstr.c (strstr): Fix return value in multibyte case.
86934         * lib/strcasestr.c (strcasestr): Likewise.
86935
86936 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86937
86938         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86939
86940 2005-08-17  Jim Meyering  <jim@meyering.net>
86941
86942         Make the %s format (seconds since the epoch) work for a negative
86943         number and when used with a zero-padded field width, e.g. %015s.
86944
86945         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86946         label so that it precedes the code to set `digits'.  Otherwise,
86947         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86948         print `00-22'.  Now, it prints `-0022', as it should.
86949
86950 2005-08-17  Bruno Haible  <bruno@clisp.org>
86951
86952         * modules/strstr (Files): Add m4/mbrtowc.m4.
86953         (Depends-on): Add mbuiter.
86954
86955 2005-08-17  Bruno Haible  <bruno@clisp.org>
86956
86957         * modules/strcasestr: New file.
86958         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86959         strcasestr.
86960
86961 2005-08-17  Bruno Haible  <bruno@clisp.org>
86962
86963         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86964
86965 2005-08-17  Bruno Haible  <bruno@clisp.org>
86966
86967         * modules/mbuiter: New file.
86968         * MODULES.html.sh (Extended multibyte and wide character utilities):
86969         Add mbuiter.
86970
86971 2005-08-17  Bruno Haible  <bruno@clisp.org>
86972
86973         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86974         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86975
86976 2005-08-17  Bruno Haible  <bruno@clisp.org>
86977
86978         * m4/strcasestr.m4: New file.
86979
86980 2005-08-17  Bruno Haible  <bruno@clisp.org>
86981
86982         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86983         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86984
86985 2005-08-17  Bruno Haible  <bruno@clisp.org>
86986
86987         * lib/strcasestr.h: New file.
86988         * lib/strcasestr.c: New file.
86989
86990 2005-08-17  Bruno Haible  <bruno@clisp.org>
86991
86992         * lib/strcasecmp.c: Use mbuiter.h.
86993
86994 2005-08-17  Bruno Haible  <bruno@clisp.org>
86995
86996         * lib/mbuiter.h: New file.
86997
86998 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86999
87000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87001         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87002         and gl_GETOPT are both invoked via different paths (as happens
87003         with GNU tar CVS because it uses both argp and getopt), the former
87004         wins.
87005
87006 2005-08-16  Bruno Haible  <bruno@clisp.org>
87007
87008         * modules/tls: New file.
87009         * MODULES.html.sh (Multithreading): Add tls.
87010
87011 2005-08-16  Bruno Haible  <bruno@clisp.org>
87012
87013         * modules/strnlen1: New file.
87014         * MODULES.html.sh (String handling): Add strnlen1.
87015
87016 2005-08-16  Bruno Haible  <bruno@clisp.org>
87017
87018         * modules/strcase (Files): Add m4/mbrtowc.m4.
87019         (Depends-on): Add strnlen1, mbchar.
87020
87021 2005-08-16  Bruno Haible  <bruno@clisp.org>
87022
87023         * modules/mbiter: New file.
87024         * MODULES.html.sh (Extended multibyte and wide character utilities):
87025         Add mbiter.
87026
87027 2005-08-16  Bruno Haible  <bruno@clisp.org>
87028
87029         * modules/mbfile: New file.
87030         * MODULES.html.sh (Extended multibyte and wide character utilities):
87031         Add mbfile.
87032
87033 2005-08-16  Bruno Haible  <bruno@clisp.org>
87034
87035         * modules/mbchar: New file.
87036         * MODULES.html.sh (Extended multibyte and wide character utilities):
87037         New section.
87038
87039 2005-08-16  Bruno Haible  <bruno@clisp.org>
87040
87041         * m4/tls.m4: New file, from GNU gettext.
87042
87043 2005-08-16  Bruno Haible  <bruno@clisp.org>
87044
87045         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87046         always.
87047         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87048
87049 2005-08-16  Bruno Haible  <bruno@clisp.org>
87050
87051         * m4/mbiter.m4: New file.
87052
87053 2005-08-16  Bruno Haible  <bruno@clisp.org>
87054
87055         * m4/mbfile.m4: New file.
87056
87057 2005-08-16  Bruno Haible  <bruno@clisp.org>
87058
87059         * m4/mbchar.m4: New file.
87060
87061 2005-08-16  Bruno Haible  <bruno@clisp.org>
87062
87063         * lib/tls.h: New file, from GNU gettext.
87064         * lib/tls.c: New file, from GNU gettext.
87065
87066 2005-08-16  Bruno Haible  <bruno@clisp.org>
87067
87068         * lib/strnlen1.h: New file.
87069         * lib/strnlen1.c: New file.
87070
87071 2005-08-16  Bruno Haible  <bruno@clisp.org>
87072
87073         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87074         (mbi_init): Update.
87075         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87076         NUL byte, not after it.
87077
87078 2005-08-16  Bruno Haible  <bruno@clisp.org>
87079
87080         * lib/strcase.h (strcasecmp): Add note in comments.
87081         * lib/strncasecmp.c: Use code from strcasecmp.c.
87082         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87083         (strcasecmp): Work correctly in multibyte locales.
87084
87085 2005-08-16  Bruno Haible  <bruno@clisp.org>
87086
87087         * lib/mbiter.h: New file.
87088
87089 2005-08-16  Bruno Haible  <bruno@clisp.org>
87090
87091         * lib/mbfile.h: New file.
87092
87093 2005-08-16  Bruno Haible  <bruno@clisp.org>
87094
87095         * lib/mbchar.h: New file.
87096         * lib/mbchar.c: New file.
87097
87098 2005-08-16  Bruno Haible  <bruno@clisp.org>
87099
87100         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87101         the valid ones. Makes the comparison operations transitive:
87102         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87103         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87104
87105 2005-08-15  Simon Josefsson  <jas@extundo.com>
87106
87107         * modules/ssize_t (License): Change to 'unlimited'.
87108
87109         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87110
87111 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87114         Add comments for each pending glibc patch.
87115
87116 2005-08-15  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87119         __cplusplus is defined.
87120
87121 2005-08-14  Jim Meyering  <jim@meyering.net>
87122
87123         Sync from coreutils.
87124
87125         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87126         Use the hash-table-based cycle-detection code not just when
87127         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87128         Reported by James Youngman in
87129         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87130         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87131         FTS_TIGHT_CYCLE_CHECK.
87132         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87133         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87134         once again.
87135         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87136         * lib/fts.c (fd_safer): Remove decl.
87137         Include fcntl--.h rather than unistd-safer.h
87138         (fts_safe_changedir): Don't call fd_safer; no longer needed
87139         now that we include fcntl--.h.
87140
87141 2005-08-12  Simon Josefsson  <jas@extundo.com>
87142
87143         * modules/getndelim2: Use ssize_t module.
87144         * modules/getnline: Likewise.
87145         * modules/safe-read: Likewise.
87146         * modules/xreadlink: Likewise.
87147
87148         * modules/ssize_t: New file.
87149
87150 2005-08-12  Simon Josefsson  <jas@extundo.com>
87151
87152         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87153
87154 2005-08-12  Simon Josefsson  <jas@extundo.com>
87155
87156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87157         ssize_t.
87158
87159 2005-08-12  Simon Josefsson  <jas@extundo.com>
87160
87161         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87162         readline, getdelim and check_version.
87163         (Support for systems lacking ISO C 99: Sizes of integer types):
87164         Add size_max.
87165
87166 2005-08-12  Bruno Haible  <bruno@clisp.org>
87167
87168         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87169
87170 2005-08-11  Simon Josefsson  <jas@extundo.com>
87171
87172         * modules/readline: New file.
87173
87174         * modules/strnlen (Files): Add strnlen.h.
87175
87176 2005-08-11  Simon Josefsson  <jas@extundo.com>
87177
87178         * m4/readline.m4: New file.
87179
87180 2005-08-11  Simon Josefsson  <jas@extundo.com>
87181
87182         * lib/readline.h, readline.c: New file.
87183
87184 2005-08-11  Simon Josefsson  <jas@extundo.com>
87185
87186         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87187         gl_AVOID.
87188
87189 2005-08-11  Bruno Haible  <bruno@clisp.org>
87190
87191         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87192
87193 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87194
87195         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87196
87197 2005-08-10  Simon Josefsson  <jas@extundo.com>
87198
87199         * tests/test-iconvme.c: New file.
87200
87201 2005-08-10  Simon Josefsson  <jas@extundo.com>
87202
87203         * m4/strnlen.m4: New file.
87204
87205         * m4/strndup.m4: Don't check for strnlen declaration, done in
87206         strnlen.m4.
87207
87208 2005-08-10  Simon Josefsson  <jas@extundo.com>
87209
87210         * lib/strndup.c: Use strnlen.h.
87211
87212         * lib/strnlen.h: New file.
87213
87214 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87215
87216         * README: Typos.
87217
87218 2005-08-02  Simon Josefsson  <jas@extundo.com>
87219
87220         * modules/readline: New file.
87221
87222 2005-08-02  Simon Josefsson  <jas@extundo.com>
87223
87224         * modules/getdelim: New file.
87225
87226         * modules/getline: Rewrite, don't use getndelim2.
87227
87228 2005-08-02  Simon Josefsson  <jas@extundo.com>
87229
87230         * m4/getline.m4: Separate out getdelim stuff into separate module.
87231
87232         * m4/getdelim.m4: New file.
87233
87234 2005-08-02  Simon Josefsson  <jas@extundo.com>
87235
87236         * lib/getline.h, getline.c: Rewrite.
87237
87238         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87239
87240 2005-07-31  Bruno Haible  <bruno@clisp.org>
87241
87242         * lib/lock.h (gl_lock_initializer): New macro.
87243         (gl_lock_define_initialized): Use it.
87244         (gl_rwlock_initializer): New macro.
87245         (gl_rwlock_define_initialized): Use it.
87246         (gl_recursive_lock_initializer): New macro.
87247         (gl_recursive_lock_define_initialized): Use it.
87248
87249 2005-07-30  Karl Berry  <karl@gnu.org>
87250
87251         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87252         Report from Ben Pfaff, regarding getopt.
87253
87254 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87257         normal way.
87258         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87259         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87260         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87261         (gl_GETOPT): Use the new macros.  Most of the implementation
87262         is moved to the new macros.  This is for programs like Emacs
87263         that don't want all the functionality of gl_GETOPT.
87264
87265 2005-07-26  Bruno Haible  <bruno@clisp.org>
87266
87267         * m4/lock.m4: Update from GNU gettext.
87268
87269 2005-07-26  Bruno Haible  <bruno@clisp.org>
87270
87271         * lib/lock.h: Update from GNU gettext.
87272         * lib/lock.c: Update from GNU gettext.
87273
87274 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87277         obsolescent AC_TRY_RUN.  Include the default includes files, for
87278         'exit'.
87279
87280 2005-07-24  Bruno Haible  <bruno@clisp.org>
87281
87282         * modules/visibility: New file.
87283         * MODULES.html.sh (Misc): Add visibility.
87284
87285 2005-07-24  Bruno Haible  <bruno@clisp.org>
87286
87287         * m4/visibility.m4: New file.
87288
87289 2005-07-24  Bruno Haible  <bruno@clisp.org>
87290
87291         * doc/visibility.texi: New file.
87292
87293 2005-07-22  Bruno Haible  <bruno@clisp.org>
87294
87295         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87296         $(ALLOCA_H), redundant through BUILT_SOURCES.
87297         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87298         redundant through BUILT_SOURCES.
87299         * modules/byteswap (Makefile.am): Remove explicit dependency on
87300         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87301         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87302         $(FNMATCH_H), redundant through BUILT_SOURCES.
87303         * modules/getopt (Makefile.am): Remove explicit dependency on
87304         $(GETOPT_H), redundant through BUILT_SOURCES.
87305         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87306         redundant through BUILT_SOURCES.
87307         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87308         redundant through BUILT_SOURCES.
87309         * modules/stdbool (Makefile.am): Remove explicit dependency on
87310         $(STDBOOL_H), redundant through BUILT_SOURCES.
87311         * modules/stdint (Makefile.am): Remove explicit dependency on
87312         $(STDINT_H), redundant through BUILT_SOURCES.
87313         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87314         Remove explicit dependency on $(SYSEXITS_H).
87315         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87316
87317 2005-07-18  Simon Josefsson  <jas@extundo.com>
87318
87319         * lib/check-version.c (check_version): Accept identical versions too.
87320
87321 2005-07-18  Bruno Haible  <bruno@clisp.org>
87322
87323         * modules/lock: New file.
87324         * MODULES.html.sh (Multithreading): New section.
87325
87326 2005-07-18  Bruno Haible  <bruno@clisp.org>
87327
87328         * m4/lock.m4: New file, from GNU gettext.
87329
87330 2005-07-18  Bruno Haible  <bruno@clisp.org>
87331
87332         * lib/lock.h: New file, from GNU gettext.
87333         * lib/lock.c: New file, from GNU gettext.
87334
87335 2005-07-18  Bruno Haible  <bruno@clisp.org>
87336
87337         * lib/lock.h (gl_once_t): New type.
87338         (gl_once_define, gl_once): New macros.
87339         * lib/lock.c (fresh_once): New variable.
87340         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87341         functions.
87342
87343 2005-07-16  Simon Josefsson  <jas@extundo.com>
87344
87345         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87346         workaround, suggested by Bruno.
87347
87348 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87349
87350         * modules/xalloc (Depends-on): Add xalloc-die.
87351         * modules/xvasprintf (Depends-on): Add xalloc-die.
87352
87353 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87354
87355         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87356         with a minor change.
87357
87358 2005-07-15  Bruno Haible  <bruno@clisp.org>
87359
87360         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87361         When using lib/poll.c, define poll as rpl_poll.
87362
87363 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * modules/argp (Depends-on): Remove unlocked-io.
87366
87367 2005-07-14  Derek Price  <derek@ximbiot.com>
87368
87369         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87370         for glob symlink bug.
87371
87372 2005-07-14  Bruno Haible  <bruno@clisp.org>
87373
87374         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87375         Instead, test for *_unlocked function declarations directly.
87376
87377 2005-07-11  Simon Josefsson  <jas@extundo.com>
87378
87379         * modules/size_max: New file.
87380
87381         * modules/xsize: Depend on size_max module for size_max.m4.
87382
87383 2005-07-11  Simon Josefsson  <jas@extundo.com>
87384
87385         * lib/size_max.h: New file.
87386
87387 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87388
87389         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87390         copyright symbol and the year.
87391         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87392         (version_etc_va): Use parameterized copyright notice.
87393         Reword to conform to the current GNU coding standards.
87394
87395 2005-07-11  Karl Berry  <karl@gnu.org>
87396
87397         * doc/gnulib.texi (Quoting): new node.
87398         (Initial import): more info, from Patrice.
87399
87400 2005-07-11  Bruno Haible  <bruno@clisp.org>
87401
87402         * gnulib-tool (func_usage): Document option --avoid.
87403         (Command line options): Handle --avoid.
87404         (func_acceptable): New function.
87405         (func_modules_transitive_closure): Use it.
87406
87407 2005-07-11  Bruno Haible  <bruno@clisp.org>
87408
87409         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87410         Reported by Jim Meyering.
87411
87412 2005-07-10  Bruno Haible  <bruno@clisp.org>
87413
87414         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87415         Needed when size_t is smaller than 'unsigned int'.
87416         Reported by Paul Eggert.
87417
87418 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87419
87420         * modules/argp (Depends-on): Add unlocked-io
87421
87422 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87423
87424         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87425         block of defines.
87426
87427 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87428
87429         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87430         fix now.
87431
87432 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87433         and Paul Eggert  <eggert@cs.ucla.edu>
87434
87435         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87436         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87437
87438 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87439
87440         * modules/regex (Files): Add lib/regex_internal.c,
87441         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87442         (Depends-on): Add extensions.
87443         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87444
87445 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87446
87447         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87448         pathconf.
87449         * m4/same.m4 (gl_SAME): Likewise.
87450         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87451
87452         * m4/regex.m4: Adjust to new libc regex implementation.
87453         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87454         all the .c and .h parts of (the new) regex.
87455         Quote the m4 stuff better.
87456         Check for RE_ICASE bug of old gnulib.
87457         Check for REG_STARTEND of recent libc.
87458         Rename local variables from jm_* to gl_*.
87459         Quote operand of "test -f".
87460         Say "recent enough" version of libc, not "version 2".
87461         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87462         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87463         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87464         Remove check for btowc, isascii.
87465         Require AM_LANGINFO_CODESET.
87466
87467 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87468
87469         * lib/regex.c, regex.h: Sync from libc.
87470         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87471         * lib/regexec.c:
87472         New files, synced from libc, except that regex_internal.h
87473         currently has a small porting fix.
87474
87475 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87476
87477         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87478         regex_internal.c, regexec.c.
87479         Add regex_internal.h too, but as a comment, since the libc version
87480         is currently broken in gnulib mode.
87481
87482 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         Support programs like Emacs that use gnulib but not gettext.
87485         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87486         * modules/gettext-h: New file.
87487         * modules/gettext (Files): Remove lib/gettext.h.
87488         (Depends-on): Add gettext-h.
87489         (Makefile.am): Remove lib_SOURCES.
87490         * modules/argmatch, modules/c-stack, modules/closeout:
87491         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87492         * modules/execute, modules/file-type, modules/getaddrinfo:
87493         * modules/getopt, modules/human, modules/javacomp:
87494         * modules/javaexec, modules/mkdir-p, modules/obstack:
87495         * modules/openat, modules/pagealign_alloc, modules/pipe:
87496         * modules/quotearg, modules/regex, modules/rpmatch:
87497         * modules/unicodeio, modules/userspec, modules/version-etc:
87498         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87499         * modules/xsetenv:
87500         Depend on gettext-h, not gettext.
87501
87502 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * gnulib-tool (func_import): Add support for 'public domain' license.
87505         * modules/alloca, modules/atexit, modules/memmove:
87506         Now public domain, not GPL.
87507         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87508         * modules/realloc, modules/strerror, modules/strtod:
87509         Now LGPL, not GPL.
87510
87511 2005-07-05  Bruno Haible  <bruno@clisp.org>
87512
87513         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87514         autoconf CVS. Needed for mingw.
87515
87516 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87517
87518         Remove the dependency of the strftime module on the tzset module.
87519         * modules/strftime (Depends-on): Remove dependency on tzset.
87520
87521 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87522
87523         Remove the dependency of the strftime module on the tzset module.
87524         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87525         gl_FUNC_TZSET_CLOBBER.
87526
87527 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87528
87529         Remove the dependency of the strftime module on the tzset module.
87530         * lib/strftime.c (my_strftime)
87531         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87532         Copy the input structure, to work around some of the bug with
87533         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87534         Solaris releases, you should also use the tzset module, but we won't
87535         require it as a dependency any more since we don't want LGPLed code
87536         to depend on GPLed code.
87537
87538 2005-07-02  Jim Meyering  <jim@meyering.net>
87539
87540         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87541         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87542         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87543         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87544
87545 2005-07-02  Jim Meyering  <jim@meyering.net>
87546
87547         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87548
87549 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87550
87551         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87552         declares only 'struct timespec;' (!).
87553
87554 2005-07-01  Jim Meyering  <jim@meyering.net>
87555
87556         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87557         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87558         * lib/save-cwd.c, tempname.c:
87559         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87560         and don't include <sys/file.h>).
87561
87562 2005-06-29  Jim Meyering  <jim@meyering.net>
87563
87564         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87565         type name.  Use the variable name instead.
87566         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87567         Likewise.
87568
87569 2005-06-28  Simon Josefsson  <jas@extundo.com>
87570
87571         * modules/check-version (Files): Add check-version.m4.
87572
87573 2005-06-28  Simon Josefsson  <jas@extundo.com>
87574
87575         * m4/check-version.m4: New file, suggested by Jim Meyering
87576         <jim@meyering.net>.
87577
87578 2005-06-28  Simon Josefsson  <jas@extundo.com>
87579
87580         * lib/check-version.h, lib/check-version.c: New files.
87581
87582 2005-06-28  Simon Josefsson  <jas@extundo.com>
87583
87584         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87585         collision with global variable.  Better indentation.  Don't
87586         increment buffer pointer beyond buffer end.  Based on comments
87587         from Paul Eggert <eggert@cs.ucla.edu>.
87588
87589         * lib/base64.h: Indent.
87590
87591 2005-06-28  Simon Josefsson  <jas@extundo.com>
87592
87593         * doc/gnulib.texi (Library version handling): New section.
87594
87595 2005-06-28  Jim Meyering  <jim@meyering.net>
87596
87597         * check-module (find_included_lib_files): Hard-code another
87598         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87599         but modules/fts-lgpl (correctly) does not list those files.
87600
87601         * modules/canonicalize (Files): Add lib/pathmax.h.
87602
87603 2005-06-25  Simon Josefsson  <jas@extundo.com>
87604
87605         * modules/check-version: New file.
87606
87607 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87608
87609         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87610         initializer of struct addrinfo, as an indication that we don't
87611         care how many members the structure has.
87612
87613 2005-06-24  Derek Price  <derek@ximbiot.com>
87614         and Bruno Haible  <bruno@clisp.org>
87615
87616         Remove stat module & update lstat.
87617         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87618         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87619         * m4/stat.m4: Remove this file.
87620
87621 2005-06-24  Derek Price  <derek@ximbiot.com>
87622         and Bruno Haible  <bruno@clisp.org>
87623
87624         Remove stat module & update lstat.
87625         * lib/stat.c: Remove this file...
87626         (slash_aware_lstat): ...moving this content and its support...
87627         * lib/lstat.c (rpl_lstat): ...into here.
87628         * lib/lstat.h: New file.
87629
87630 2005-06-24  Derek Price  <derek@ximbiot.com>
87631         and Bruno Haible  <bruno@clisp.org>
87632
87633         Remove stat module & update lstat.
87634         * config/srclist.txt (libc sources): Remove stat.
87635
87636 2005-06-24  Derek Price  <derek@ximbiot.com>
87637         and Bruno Haible  <bruno@clisp.org>
87638
87639         Remove stat module & update lstat.
87640         * MODULES.html.sh (stat): Remove.
87641         * MODULES.html: Regenerated.
87642         * modules/lstat (Description): Correct function name.
87643         (Files): Add "lstat.h".
87644         (Depends-on): Remove stat, add xalloc, stat-macros.
87645         * modules/stat: Remove this file.
87646         (Include): Add "lstat.h", remove <sys/stat.h>.
87647
87648 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87651         (ranged_convert): Don't save conversion in a temporary struct.
87652         This causes a warning with GCC 4.0.0, and anyway in the typical
87653         case it's not worth the extra 100 bytes or so of code.
87654         (ranged_convert, __mktime_internal): When calling a function via a
87655         pointer P, use P () rather than (*P) (), as we now assume C89 or
87656         better.
87657
87658 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87659
87660         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87661         "who -r" failed to give output.  Problem reported by Tim Waugh.
87662
87663         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87664         (xcalloc): Use it to avoid needless tests.
87665         Problem reported by Jim Meyering.
87666
87667 2005-06-20  Derek Price  <derek@ximbiot.com>
87668
87669         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87670         unnecessary for Autoconfs > 2.59c.
87671
87672 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87673
87674         * lib/argp.h (__option_is_short): Check upper limit of
87675         __key. Isprint() requires its argument to have the value
87676         of an unsigned char or EOF.
87677
87678 2005-06-16  Jim Meyering  <jim@meyering.net>
87679
87680         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87681         when either N or S is zero.
87682
87683 2005-06-16  Derek Price  <derek@ximbiot.com>
87684
87685         * m4/bison.m4: Declare YACC & YFLAGS precious.
87686
87687 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87688
87689         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87690         multibyte string or pattern, fall back on unibyte matching.
87691         Problem reported by James Youngman.
87692
87693 2005-06-08  Bruno Haible  <bruno@clisp.org>
87694
87695         * modules/csharpcomp: New file.
87696         * MODULES.html.sh (C#): Add csharpcomp.
87697
87698 2005-06-08  Bruno Haible  <bruno@clisp.org>
87699
87700         * m4/csharpcomp.m4: New file, from GNU gettext.
87701
87702 2005-06-08  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/csharpcomp.h: New file, from GNU gettext.
87705         * lib/csharpcomp.c: New file, from GNU gettext.
87706         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87707
87708 2005-06-08  Bruno Haible  <bruno@clisp.org>
87709
87710         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87711         warning on mingw.
87712
87713 2005-06-07  Derek Price  <derek@ximbiot.com>
87714
87715         Sync from CVS.
87716         * lib/glob_.h: Indent nested #ifdef.
87717
87718 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87719
87720         Sync from coreutils.
87721         Use "file name" when talking about file names, instead of "filename"
87722         or "path", as per the GNU coding standards.
87723         * lib/mkdir-p.c: Renamed from makepath.c.
87724         (make_dir_parents): Renamed from make_path.  All callers changed.
87725         * lib/mkdir-p.h: Likewise.  All includers changed.
87726         * lib/filenamecat.c: Renamed from path-concat.c.
87727         (file_name_concat): Renamed from path_concat.  All callers changed.
87728         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87729         * lib/filenamecat.h: Likewise.  All includers changed.
87730         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87731         in comments or local variable names.
87732         * lib/basename.c: Likewise.
87733         * lib/canonicalize.c, canonicalize.h: Likewise.
87734         * lib/dirname.c, dirname.h: Likewise.
87735         * lib/euidaccess.c: Likewise.
87736         * lib/exclude.c: Likewise
87737         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87738         * lib/fsusage.c, fsuage.h: Likewise.
87739         * lib/fts.c, fts_.h: Likewise.
87740         * lib/getcwd.c: Likewise.
87741         * lib/getloadavg.c: Likewise.
87742         * lib/mkstemp.c: Likewise.
87743         * lib/mountlist.c, mountlist.h: Likewise.
87744         * lib/openat.c, openat.h: Likewise.
87745         * lib/readlink-stub.c: Likewise.
87746         * lib/readutmp.c, readutmp.h: Likewise.
87747         * lib/rename.c: Likewise.
87748         * lib/rmdir.c: Likewise.
87749         * lib/same.c: Likewise.
87750         * lib/savedir.c: Likewise.
87751         * lib/stripslash.c: Likewise.
87752         * lib/tempname.c: Likewise.
87753         * lib/xreadlink.c: Likewise.
87754         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87755         All uses changed.
87756         * lib/exclude.h: Likewise.
87757
87758         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87759         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87760         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87761         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87762         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87763         files have been getting away with it for years (MORE/BSD 4.3
87764         is extinct now).
87765         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87766         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87767
87768         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87769         Define to 256, not 255, as per modern POSIX.
87770
87771 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87772
87773         Sync from coreutils.
87774         Use "file name" when talking about file names, instead of "filename"
87775         or "path", as per the GNU coding standards.
87776         * MODULES.html.sh: mkdir-p renamed from makepath.
87777         filenamecat renamed from path-concat.
87778         * modules/filenamecat: Renamed from modules/path-concat.
87779         (Files): filenamecat.h and filenamecat.c renamed from
87780         path-concat.h and path-concat.c.
87781         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87782         (Include): filenamecat.h, not path-concat.h.
87783         * modules/mkdir-p: Renamed from modules/makepath.
87784         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87785         makepath.c.
87786         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87787         (Include): mkdir-p.h, not makepath.h.
87788
87789 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87790
87791         Sync from coreutils.
87792         * m4/mkdir-p.m4: Renamed from makepath.m4.
87793         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87794         Rename files from makepath.c to mkdir-p.c, and from
87795         makepath.h to mkdir-p.h.
87796         * m4/filenamecat.m4: Renamed from path-concat.m4.
87797         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87798         Rename files from path-concat.c to filenamecat.c,
87799         and from path-concat.h to filenamecat.h.
87800         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87801         "file name" in local variables or comments.
87802         * m4/rename.m4: Likewise.
87803
87804 2005-06-01  Bruno Haible  <bruno@clisp.org>
87805
87806         * modules/csharpexec: New file.
87807         * MODULES.html.sh (C#): New section.
87808
87809 2005-06-01  Bruno Haible  <bruno@clisp.org>
87810
87811         * m4/csharp.m4: New file, from GNU gettext.
87812         * m4/csharpexec.m4: New file, from GNU gettext.
87813
87814 2005-06-01  Bruno Haible  <bruno@clisp.org>
87815
87816         * lib/csharpexec.h: New file, from GNU gettext.
87817         * lib/csharpexec.c: New file, from GNU gettext.
87818         * lib/csharpexec.sh.in: New file, from GNU gettext.
87819
87820 2005-05-31  Derek Price  <derek@ximbiot.com>
87821             Paul Eggert  <eggert@cs.ucla.edu>
87822
87823         Sync from cvs.
87824         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87825
87826 2005-05-31  Derek Price  <derek@ximbiot.com>
87827             Paul Eggert  <eggert@cs.ucla.edu>
87828
87829         Sync from cvs.
87830         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87831
87832 2005-05-29  Derek Price  <derek@ximbiot.com>
87833
87834         * config/srclist.txt (glob_.h, glob.c): Add these files.
87835
87836 2005-05-29  Derek Price  <derek@ximbiot.com>
87837
87838         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87839         * modules/glob: New file.
87840         * modules/getlogin_r: Add link to POSIX spec in description.
87841
87842 2005-05-29  Derek Price  <derek@ximbiot.com>
87843             Paul Eggert  <eggert@cs.ucla.edu>
87844
87845         * m4/glob.m4: New file.
87846
87847 2005-05-29  Derek Price  <derek@ximbiot.com>
87848             Paul Eggert  <eggert@cs.ucla.edu>
87849
87850         * lib/glob_.h, lib/glob.c: New files.
87851
87852 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87853
87854         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87855         * modules/fts-lgpl (Depends-on): Remove gettext.
87856
87857 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87858
87859         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87860         and don't require gt_INTTYPES_PRI.
87861
87862 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87865
87866         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87867         the configuration hassle isn't worth it.
87868         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87869         (LONGEST_MODIFIER, PRIuMAX): Remove.
87870
87871 2005-05-27  Bruno Haible  <bruno@clisp.org>
87872
87873         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87874
87875 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87876
87877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87878         _POSIX_PTHREAD_SEMANTICS for Solaris.
87879
87880 2005-05-25  Derek Price  <derek@ximbiot.com>
87881
87882         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87883
87884 2005-05-25  Derek Price  <derek@ximbiot.com>
87885             Paul Eggert  <eggert@cs.ucla.edu>
87886
87887         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87888         * lib/getlogin_r.c, getlogin_r.h: New files.
87889
87890 2005-05-25  Bruno Haible  <bruno@clisp.org>
87891             Derek Price  <derek@ximbiot.com>
87892
87893         * lib/getlogin_r.h: Simplify API documentation.
87894
87895 2005-05-23  Derek Price  <derek@ximbiot.com>
87896
87897         * modules/minmax (Files): Add m4/minmax.m4.
87898         (configure.ac): Add gl_MINMAX.
87899
87900 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87901
87902         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87903         so that unistd-safer.h (GPL'ed code) need not be included.
87904
87905 2005-05-22  Bruno Haible  <bruno@clisp.org>
87906
87907         * m4/minmax.m4: New file.
87908         Based on a patch by Derek Price <derek@ximbiot.com>.
87909
87910 2005-05-22  Bruno Haible  <bruno@clisp.org>
87911
87912         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87913         (INT64_MIN): Fix definition.
87914         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87915
87916         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87917         NEED_SIGNED_INT_TYPES.
87918
87919         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87920         HAVE_SYSTEM_INTTYPES.
87921
87922 2005-05-22  Bruno Haible  <bruno@clisp.org>
87923
87924         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87925         Also include <sys/param.h> if it defines MIN, MAX.
87926         Based on a patch by Derek Price <derek@ximbiot.com>.
87927
87928 2005-05-21  Jim Meyering  <jim@meyering.net>
87929
87930         * modules/fts (Files): Add m4/inttypes-pri.m4.
87931         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87932
87933 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87934
87935         New fts module.
87936         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87937         (setup_dir, free_dir): New functions.
87938         (enter_dir, leave_dir): Define trivial
87939         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87940         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87941         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87942         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87943         Move to fts-cycle.c.
87944         (fts_open): Use setup_dir.
87945         (fts_close): Use free_dir.
87946         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87947         This adds a label and some gotos, but the alternatives were messier.
87948         Check for memory allocation failure when entering a dir.
87949         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87950         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87951         (FTS): New member fts_cycle, that is a union that contains the
87952         old active_dir_ht and cycle_state.  All uses changed to mention
87953         fts_cycle.ht and fts_cycle.state.
87954         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87955         fts.c, with the following changes:
87956         (setup_dir, free_dir): New functions.
87957         (enter_dir): Now returns bool.  Return true if successful, false
87958         if memory exhausted.  All callers changed.
87959         Do not bother partly cleaning up on
87960         memory allocation failure; that is free_dir's job.
87961         However, free ad if hash_insert fails, to avoid memory leak.
87962         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87963         fts->fts_options to see which union member to use.
87964
87965 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87966
87967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87968         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87969
87970 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87971
87972         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87973
87974 2005-05-20  Jim Meyering  <jim@meyering.net>
87975
87976         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87977         Now a macro, to pacify GCC.
87978
87979 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87980
87981         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87982         of -1.
87983
87984 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87985
87986         * lib/chown.c (rpl_chown): Return -1 on failure.
87987
87988 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87991         Don't check for stddef.h.
87992         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87993         don't use its results.
87994         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87995         since we include them unconditionally.  Don't require
87996         AM_STDBOOL_H, since stdbool is a prerequisite.
87997         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87998         since we assume C89 or better.
87999         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88000         as we don't use their results.
88001         Don't check for fchdir, memmove, memset, strrchr, as we use
88002         them unconditionally.
88003         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88004         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88005
88006 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88007
88008         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88009         Include <stddef.h> unconditionally, since we assume C89 now.
88010         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88011         * lib/fts.c: Include fts_.h first, to check interface.
88012         Do not include intprops.h; no longer needed.
88013         Include cycle-check.h and hash.h, since fts_.h no longer does.
88014         Remove unnecessary casts of closedir to void.
88015         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88016         decide whether to decrement nlinks.
88017         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88018         (FTS): Use struct hash_table * instead of Hash_table, so that
88019         we no longer need to include hash.h here.
88020
88021 2005-05-18  Jim Meyering  <jim@meyering.net>
88022
88023         * modules/dirfd (License): Change to LGPL.  Most of the code
88024         is already in the public domain.
88025
88026 2005-05-18  Jim Meyering  <jim@meyering.net>
88027
88028         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88029         Reported by Yoann Vandoorselaere.
88030
88031 2005-05-17  Jim Meyering  <jim@meyering.net>
88032
88033         * m4/fts.m4: New file, from coreutils.
88034
88035 2005-05-17  Jim Meyering  <jim@meyering.net>
88036
88037         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88038
88039 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88040
88041         Sync from coreutils.
88042         * m4/unlinkdir.m4: New file.
88043
88044 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88045
88046         Sync from coreutils.
88047         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88048         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88049         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88050         White space changes only.
88051         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88052         special.
88053         * lib/yesno.c: Include getline.h, not ctype.h.
88054         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88055         Use getline to remove arbitrary restriction on response length.
88056
88057 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88058
88059         * config/srclist-update: Spell out "Street" in FSF postal
88060         mail address; this is the style the FSF seems to prefer.
88061
88062         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88063         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88064         this updates FSF postal mail address.
88065
88066         Sync from coreutils.
88067         * modules/unlinkdir: New file.
88068         * modules/yesno (Depends-on): Add getline.
88069         * MODULES.html.sh (File system functions): Add unlinkdir.
88070
88071 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88072
88073         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88074         lib/strsep.h:
88075         Change the initial comment to refer to GPL, not LGPL.
88076         gnulib-tool will change it to LGPL as needed.
88077
88078         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88079         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88080         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88081         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88082         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88083         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88084         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88085         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88086         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88087         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88088         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88089         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88090         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88091         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88092         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88093         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88094         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88095         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88096         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88097         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88098         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88099         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88100         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88101         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88102         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88103         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88104         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88105         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88106         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88107         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88108         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88109         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88110         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88111         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88112         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88113         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88114         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88115         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88116         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88117         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88118         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88119         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88120         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88121         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88122         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88123         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88124         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88125         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88126         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88127         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88128         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88129         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88130         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88131         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88132         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88133         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88134         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88135         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88136         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88137         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88138         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88139         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88140         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88141         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88142         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88143         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88144         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88145         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88146         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88147         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88148         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88149         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88150         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88151         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88152         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88153         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88154         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88155         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88156         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88157         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88158         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88159         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88160         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88161         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88162         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88163         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88164         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88165         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88166         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88167         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88168         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88169         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88170         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88171         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88172         lib/yesno.c, lib/yesno.h:
88173         Update FSF postal mail address.
88174
88175 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88176
88177         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88178         tests/test-memmem.c, tests/test-stpncpy.c:
88179         Update FSF postal mail address.
88180
88181 2005-05-13  Bruno Haible  <bruno@clisp.org>
88182
88183         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88184         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88185         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88186         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88187         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88188         Add support for 64-bit integers in the MSVC compiler.
88189
88190 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88191
88192         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88193
88194 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88195
88196         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88197
88198 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88199
88200         * doc/getdate.texi (General date syntax): Don't say that date
88201         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88202         Problem reported by Nic Ferrier.
88203
88204 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88205
88206         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88207         specified in ai_socktype. Fix invalid ai_protocol
88208         check. ai_protocol is usually set to 0 or depending on
88209         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88210         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88211         ai_socktype / ai_protocol in the returned addrinfo structure.
88212
88213 2005-05-10  Simon Josefsson  <jas@extundo.com>
88214
88215         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88216         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88217
88218 2005-05-10  Karl Berry  <karl@gnu.org>
88219
88220         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88221         (from http://www.gnu.org/licenses).
88222         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88223         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88224         fdl.texi suffices.
88225
88226 2005-05-10  Karl Berry  <karl@gnu.org>
88227
88228         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88229         (COPYING.DOC): remove.
88230
88231         * config/srclist-update: new FSF address.
88232
88233 2005-05-10  Derek Price  <derek@ximbiot.com>
88234
88235         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88236         possible.
88237
88238 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88239             Bruno Haible  <bruno@clisp.org>
88240
88241         * modules/inet_ntop: New file.
88242         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88243         inet_ntop.
88244
88245 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88246             Bruno Haible  <bruno@clisp.org>
88247
88248         * m4/inet_ntop.m4: New file.
88249
88250 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88251             Bruno Haible  <bruno@clisp.org>
88252
88253         * lib/inet_ntop.h: New file.
88254         * lib/inet_ntop.c: New file, from glibc with modifications.
88255
88256 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88257
88258         * modules/time_r (License): Change to LGPL.
88259         * modules/extensions (License): Change to LGPL.  Actually,
88260         the license is more permissive than that, but currently gnulib-tool
88261         doesn't know how to handle more-permissive licenses.
88262
88263         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88264         Problem reported by Dave Love.
88265
88266 2005-05-08  Jim Meyering  <jim@meyering.net>
88267
88268         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88269         blank.
88270
88271 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88272
88273         * modules/argmatch (Depends-on): Add stdbool.
88274         * modules/backupfile (Depends-on): Likewise.
88275         * modules/chdir-long (Depends-on): Likewise.
88276         * modules/closeout (Depends-on): Likewise.
88277         * modules/cycle-check (Depends-on): Likewise.
88278         * modules/dirname (Depends-on): Likewise.
88279         * modules/fnmatch (Depends-on): Likewise.
88280         * modules/fsusage (Depends-on): Likewise.
88281         * modules/fwriteerror (Depends-on): Likewise.
88282         * modules/getcwd (Depends-on): Likewise.
88283         * modules/getloadavg (Depends-on): Likewise.
88284         * modules/hard-locale (Depends-on): Likewise.
88285         * modules/makepath (Depends-on): Likewise.
88286         * modules/mountlist (Depends-on): Likewise.
88287         * modules/nanosleep (Depends-on): Likewise.
88288         * modules/posixtm (Depends-on): Likewise.
88289         * modules/quotearg (Depends-on): Likewise.
88290         * modules/readtokens (Depends-on): Likewise.
88291         * modules/readtokens0 (Depends-on): Likewise.
88292         * modules/readutmp (Depends-on): Likewise.
88293         * modules/save-cwd (Depends-on): Likewise.
88294         * modules/strftime (Depends-on): Likewise.
88295         * modules/userspec (Depends-on): Likewise.
88296         * modules/utimecmp (Depends-on): Likewise.
88297         * modules/xgetcwd (Depends-on): Likewise.
88298         * modules/xnanosleep (Depends-on): Likewise.
88299         * modules/xstrtod (Depends-on): Likewise.
88300         * modules/yesno (Depends-on): Likewise.
88301
88302 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88303
88304         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88305         needless checks.
88306
88307 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88308
88309         Merge from coreutils.  Among other things,
88310         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88311         * lib/fd-safer.c: New file.
88312         * lib/fcntl-safer.h, open-safer.c: Remove.
88313         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88314         * lib/dup-safer.c: Include unistd-safer.h first.
88315         Don't include errno.h.
88316         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88317         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88318         * lib/file-type.c: Rely on file-type.h change.
88319         * lib/getloadavg.c: Include unistd-safer.h.
88320         (getloadavg): Use safer open.
88321         * lib/getusershell.c: Include "stdio-safer.h".
88322         (getusershell): Use safer fopen.
88323         * lib/long-options.c (long_options): Use NULL rather than 0.
88324         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88325         'free'.
88326         * lib/modechange.c: Likewise.
88327         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88328         (MODE_DONE): New constant.
88329         (struct mode_change): Remove 'next' member.
88330         (make_node_op_equals): New function; like the old one of the
88331         same name, except it allocates an array.
88332         (mode_compile, mode_create_from_ref): Use it.
88333         (mode_compile): Allocate result as an array, not a linked list.
88334         Parse octal string ourself, so that we catch mistakes like "+0".
88335         (mode_adjust): Arg is an array, not a linked list.
88336         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88337         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88338         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88339         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88340         Remove.  This is now stat-macros.h's job.
88341         (talloc): Remove.  All callers replaced by xalloc, so that
88342         our invokers don't have to worry about reporting memory failures.
88343         (make_node_op_equals): Remove.
88344         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88345         New constants.
88346         (struct mode_change): Moved here from modechange.h.
88347         (mode_append_entry): Remove.
88348         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88349         apps to have incorrect behavior.  Use simpler algorithm for head
88350         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88351         Detect more invalid usages rather than having somewhat-random behavior.
88352         Don't insert an "a=" action, as that leads to incorrect behavior.
88353         (mode_compile, mode_create_from_ref): Return NULL on error instead
88354         of an enum, since now there's only one way to have an error.  All
88355         callers changed.
88356         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88357         at the correct time.  Simplify calculation of "+u" and its ilk.
88358         Don't mishandle "+X".
88359         (mode_free): Remove "register" and localize decls.
88360         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88361         (struct mode_change): Move to modechange.c; callers don't
88362         need to see this stuff.
88363         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88364         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88365         (mode_change, mode_adjust): Reflect the new signatures noted above.
88366         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88367         that might redefine system include files.
88368         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88369         (my_usleep): Use NULL rather than (void *) 0.
88370         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88371         Use siginterrupt to specify that system calls should be interrupted.
88372         (rpl_nanosleep): Move initialization of suspended closer to call of
88373         my_usleep.
88374         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88375         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88376         (desirable_utmp_entry): New function.
88377         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88378         using x2nrealloc, to simplify logic.
88379         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88380         size calculation.  Do not assume utmp file is a regular file.
88381         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88382         (READ_UTMP_CHECK_PIDS): New constant.
88383         * lib/save-cwd.c: Include unistd-safer.h.
88384         (save_cwd): Use fd_safer.
88385         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88386         [!_LIBC] Include "stat-macros.h" instead.
88387         * lib/unistd-safer.h (fd_safer): New decl.
88388
88389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88390
88391         * modules/getloadavg (Depends-on): Add unistd-safer.
88392         * modules/getusershell (Depends-on): Add stdio-safer.
88393         * modules/lstat (Depends-on): Remove xalloc.
88394         * modules/mkstemp (Depends-on): Add stat-macros.
88395         * modules/modechange (Depends-on): Remove xstrtol.
88396         Add stat-macros, xalloc.
88397         * modules/save-cwd (Depends-on): Add unistd-safer.
88398         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88399         * modules/unistd-safer (Files): Add lib/fd-safer.c
88400         (Makefile.am): Remove lib_SOURCES.
88401
88402         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88403         Remove fcntl-safer; unistd-safer supersedes it.
88404
88405 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88406
88407         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88408         AC_HEADER_STAT.
88409         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88410         (gl_PREREQ_CHOWN): Remove.
88411         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88412         it.  Don't require AC_HEADER_STAT.
88413         (gl_PREREQ_LSTAT): Remove.
88414         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88415         Don't require AC_HEADER_STAT.
88416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88417         (gl_PREREQ_RMDIR): Remove.
88418         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88419         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88420         the stat-macros module a prerequisite.
88421         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88422         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88423         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88424         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88425         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88426         variable names.
88427         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88428         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88429         variable prefixes.
88430         * m4/fcntl-safer.m4: Remove.
88431         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88432         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88433         Invoke gl_PREREQ_FD_SAFER.
88434         (gl_PREREQ_FD_SAFER): New macro.
88435         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88436         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88437         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88438         Remove duplicate call to AC_LIBOBJ(readutmp).
88439         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88440
88441         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88442         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88443
88444 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88445
88446         * MODULES.html.sh (Misc): Add byteswap.
88447
88448 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88449
88450         * modules/getcwd (Depends-on): Add extensions.
88451         * modules/openat (Depends-on): Likewise.
88452
88453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88454
88455         * modules/byteswap: New file.
88456
88457 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88458
88459         * m4/byteswap.m4: New file.
88460
88461 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88462
88463         * lib/byteswap_.h: New file.
88464
88465 2005-04-25  Karl Berry  <karl@gnu.org>
88466
88467         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88468
88469 2005-04-25  Albert Chin  <china@thewrittenword.com>
88470
88471         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88472         Toolkit C bug.
88473
88474 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88475
88476         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88477         (func_ln_if_changed): Remove forcibly for no error message
88478         in case file does not exist.
88479
88480 2005-04-19  Simon Josefsson  <jas@extundo.com>
88481
88482         * gnulib-tool (Options): Make --symlink mean --symbolic.
88483
88484 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88485
88486         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88487
88488 2005-04-16  Simon Josefsson  <jas@extundo.com>
88489
88490         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88491
88492 2005-04-15  Simon Josefsson  <jas@extundo.com>
88493
88494         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88495
88496 2005-04-15  Simon Josefsson  <jas@extundo.com>
88497
88498         * gnulib-tool: Rename --symlink to --symbolic.
88499
88500 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88501
88502         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88503         symbolic links to files instead of copying/moving.  Add --aux-dir,
88504         specifying directory relative --dir where auxiliary build tools
88505         are placed.
88506
88507 2005-04-14  Bruno Haible  <bruno@clisp.org>
88508
88509         * modules/allocsa (License): Change to LGPL.
88510         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88511
88512 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88513
88514         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88515         that "UTC +1 second" continues to work.  Problem reported
88516         by Dmitry V. Levin.
88517         (relunit_snumber): New rule.
88518         (relunit): Use it.
88519
88520 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88521
88522         * lib/getdate.y (universal_time_zone_table): New constant.
88523         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88524         universal_time_zone_table.
88525         (lookup_zone): Prefer universal_time_zone_table to
88526         local_time_zone_table, so that "GMT" time stamps are allowed in
88527         London during the summer.  Problem reported by Ian Abbott.
88528
88529 2005-04-12  Jim Meyering  <jim@meyering.net>
88530
88531         * lib/human.c (humblock): Set *options even when returning due to
88532         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88533         warning from gcc-4.
88534
88535 2005-04-09  Jim Meyering  <jim@meyering.net>
88536
88537         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88538         -Wuninitialized: initialize tm0.tm_year.
88539
88540 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88541
88542         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88543         count, since there's no maximum.  All uses changed.
88544         Add member dsts_seen.
88545         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88546         not being INT_MAX.
88547         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88548         Use pc_rels_seen to decide whether a date is absolute.
88549
88550         * lib/getdate.y (number): Don't overwrite year.
88551         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88552         check.
88553
88554 2005-04-02  Simon Josefsson  <jas@extundo.com>
88555
88556         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88557         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88558
88559 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88560
88561         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88562         where no absolute path name can be longer than PATH_MAX.
88563
88564 2005-03-27  Jim Meyering  <jim@meyering.net>
88565
88566         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88567
88568 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88569
88570         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88571         "one's complement" -> "ones' complement" in comment, as per Knuth.
88572         "value of type" -> "type or expression" in comment.
88573         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88574
88575 2005-03-26  Jim Meyering  <jim@meyering.net>
88576
88577         Comment nits.
88578         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88579         Correct typos: s/or/of/.
88580
88581 2005-03-26  Jim Meyering  <jim@meyering.net>
88582
88583         * modules/check-include-files: Move to ../ and rename to...
88584         * check-module: ...this.
88585
88586 2005-03-25  Jim Meyering  <jim@meyering.net>
88587
88588         * modules/xvasprintf (Files): Add xalloc.h.
88589
88590 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88591
88592         * modules/gettext (Files): config/config.rpath ->
88593         build-aux/config.rpath
88594         * modules/iconv (Files): Likewise.
88595         Problem reported by Oskar Liljeblad.
88596
88597 2005-03-23  Jim Meyering  <jim@meyering.net>
88598
88599         * modules/check-include-files: New script to check for
88600         missing dependencies, multiple includes, etc.
88601
88602         * modules/c-strtold (Depends-on): Add xalloc.
88603         * modules/c-strtod (Depends-on): Add xalloc.
88604         * modules/hash (Depends-on): Add xalloc.
88605         (Files): Remove lib/xalloc.h.
88606
88607         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88608         * modules/userspec (Files): Add lib/inttostr.h.
88609
88610 2005-03-23  Jim Meyering  <jim@meyering.net>
88611
88612         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88613
88614 2005-03-22  Jim Meyering  <jim@meyering.net>
88615
88616         * modules/stat-macros: New module.
88617         * modules/canonicalize, modules/euidaccess, modules/file-type,
88618         * modules/filemode, modules/lchown, modules/makepath,
88619         * modules/rmdir, modules/stat: Depend on new stat-macros module
88620         rather than listing lib/stat-macros.h manually.
88621         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88622
88623 2005-03-22  Jim Meyering  <jim@meyering.net>
88624
88625         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88626
88627 2005-03-22  Bruno Haible  <bruno@clisp.org>
88628
88629         * config/srclist.txt: Replace target directory 'config' with
88630         'build-aux'.
88631         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88632         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88633         ../build-aux/.
88634
88635 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88636
88637         * modules/chdir-long (Depends-on): Add mempcpy.
88638
88639         * modules/acl, modules/backupfile, modules/c-strtod,
88640         modules/c-strtold, modules/canon-host, modules/canonicalize,
88641         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88642         modules/exclude, modules/exitfail, modules/file-type,
88643         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88644         modules/getdate, modules/getline, modules/getpagesize,
88645         modules/getpass, modules/getugroups, modules/group-member,
88646         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88647         modules/inttostr, modules/long-options, modules/makepath,
88648         modules/md5, modules/memcasecmp, modules/memcoll,
88649         modules/modechange, modules/mountlist, modules/path-concat,
88650         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88651         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88652         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88653         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88654         modules/strftime, modules/strndup, modules/strverscmp,
88655         modules/timespec, modules/unlocked-io, modules/userspec,
88656         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88657         modules/yesno:
88658         Remove lib_SOURCES line from Makefile.am section, as this is now
88659         done automatically by the corresponding Autoconf macro.
88660
88661 2005-03-21  Jim Meyering  <jim@meyering.net>
88662
88663         Changes imported from coreutils.
88664
88665         * lib/cycle-check.c: Don't include xalloc.h.
88666
88667         * lib/path-concat.c: Don't include assert.h.
88668         (path_concat): Remove assertion that would have triggered
88669         for ABASE starting with more than one slash.
88670         Reported by Andreas Schwab.
88671
88672         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88673         properly when ABASE is an absolute file name.
88674         Correct the description of this function.
88675         Include <assert.h>.
88676         Add an assertion and a test driver.
88677         This fixes a bug introduced on 2004-07-02.
88678         Andreas Schwab reported the resulting failure of cp --parents:
88679         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88680
88681 2005-03-21  Jim Meyering  <jim@meyering.net>
88682
88683         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88685
88686 2005-03-21  Jim Meyering  <jim@meyering.net>
88687         and  Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88690         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88691         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88692         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88693         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88694         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88695         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88696         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88697         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88698         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88699         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88700         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88701         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88702         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88703         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88704         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88705         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88706         for these modules.
88707
88708 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88711         (which shouldn't happen), generate nothing instead of returning 0
88712         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88713
88714 2005-03-16  Bruno Haible  <bruno@clisp.org>
88715
88716         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88717         HAVE_LONGLONG_64BIT.
88718
88719 2005-03-16  Bruno Haible  <bruno@clisp.org>
88720
88721         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88722         HAVE_LONGLONG_64BIT.
88723
88724 2005-03-16  Bruno Haible  <bruno@clisp.org>
88725
88726         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88727         HAVE_LONGLONG_64BIT.
88728
88729 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88730
88731         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88732         reliably distinguish strftime failure from empty output on POSIX
88733         hosts.
88734
88735 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88736
88737         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88738         (iconv_string): Don't guess a size-zero buffer, as that might cause
88739         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88740         result would be 'too large', where 'too large' is (heuristically)
88741         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88742         overflow concerns.  This will prevent some unwanted malloc failures
88743         when the inputs are very large.
88744
88745 2005-03-15  Karl Berry  <karl@gnu.org>
88746
88747         * config/srclist.txt (config.rpath): from gettext.
88748         * config/config.rpath: update.
88749
88750 2005-03-15  Bruno Haible  <bruno@clisp.org>
88751
88752         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88753         to 'negate'.
88754
88755         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88756         variable.
88757
88758         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88759         results.
88760
88761 2005-03-14  Simon Josefsson  <jas@extundo.com>
88762
88763         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88764         <fx@gnu.org>.
88765
88766 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88767
88768         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88769         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88770         intprops.h.
88771         * lib/strtol.c: Likewise.
88772
88773 2005-03-14  Jim Meyering  <jim@meyering.net>
88774
88775         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88776         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88777         to be nonzero so that we (and caller) can detect the difference
88778         between a valid zero-length expansion and an error return, even
88779         when the underlying strftime fails before writing anything into
88780         that location.
88781
88782 2005-03-14  Bruno Haible  <bruno@clisp.org>
88783
88784         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88785         Update from GNU gettext 0.14.3.
88786
88787 2005-03-10  Jim Meyering  <jim@meyering.net>
88788
88789         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88790
88791 2005-03-10  Jim Meyering  <jim@meyering.net>
88792
88793         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88794         so that this module works on systems without fchdir.
88795
88796 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         Factor int-properties macros into a single file, except for
88799         glibc-related files.
88800         * lib/intprops.h: New file.
88801         * lib/getloadavg.c: Include it instead of limits.h.
88802         (INT_STRLEN_BOUND): Remove.
88803         * lib/human.c: Include intprops.h.
88804         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88805         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88806         302/1000.
88807         * lib/inttostr.h: Include intprops.h instead of limits.h.
88808         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88809         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88810         for consistency with intprops.h.
88811         (time_t_is_integer, twos_complement_arithmetic): Use them.
88812         * lib/sig2str.h: Include <signal.h>, intprops.h.
88813         (INT_STRLEN_BOUND): Remove.
88814         * lib/strftime.c (TYPE_SIGNED): Remove.
88815         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88816         * lib/strtol.c: Adjust comments to match intprops.h.
88817         * lib/userspec.c: Include intprops.h.
88818         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88819         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88820         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88821         instead of rolling our own expressions.
88822         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88823
88824         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88825         instead of int.
88826         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88827         the right thing even if adding 1900 would overflow.  Similarly
88828         for tm_mon + 1 and tm_yday + 1.
88829         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88830         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88831         (DO_SIGNED_NUMBER): New macro.
88832         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88833
88834 2005-03-07  Bruno Haible  <bruno@clisp.org>
88835
88836         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88837
88838 2005-03-07  Bruno Haible  <bruno@clisp.org>
88839
88840         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88841
88842 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88843
88844         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88845         (func_import): Only replace files via --import when they have actually
88846         changed.
88847
88848 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88849
88850         * m4/mmap-anon.m4: New file.
88851         * m4/pagealign_alloc.m4: New file.
88852
88853 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88854             Bruno Haible  <bruno@clisp.org>
88855
88856         * modules/pagealign_alloc: New file.
88857         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88858
88859 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88860             Bruno Haible  <bruno@clisp.org>
88861
88862         * lib/pagealign_alloc.h: New file.
88863         * lib/pagealign_alloc.c: New file.
88864
88865 2005-03-03  Bruno Haible  <bruno@clisp.org>
88866
88867         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88868         Use an all-permissive copyright notice, recommended by RMS.
88869
88870 2005-03-02  Bruno Haible  <bruno@clisp.org>
88871
88872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88873         of AIX, the replacement has to be done only after <string.h> is
88874         included, therefore not in config.h. stpncpy.h does the replacement,
88875         and stpncpy.c uses it.
88876
88877 2005-03-02  Bruno Haible  <bruno@clisp.org>
88878
88879         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88880         stpncpy.c uses it.
88881
88882 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88883
88884         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88885         The workaround isn't strictly needed for POSIX conformance, and
88886         it's too much of a pain to configure and maintain.  We'll ask
88887         people to fix their kernels instead.
88888         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88889         (NANOSLEEP_BUG_WORKAROUND): Remove.
88890         (xnanosleep): Remove the workaround.
88891
88892 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88895         Reported by Derek Price.
88896         (Include): Add "timespec.h".
88897
88898         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88899
88900 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88901
88902         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88903         to detect nanosleep bug.
88904
88905 2005-03-01  Bruno Haible  <bruno@clisp.org>
88906
88907         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88908
88909 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88910
88911         * modules/gethrxtime: New file.
88912         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88913         (Depends-on): Add gethrxtime.
88914         (configure.ac): Add gl_XNANOSLEEP.
88915         (Makefile.am): Remove lib_SOURCES line.
88916
88917 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88918
88919         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88920         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88921
88922 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88923
88924         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88925         * lib/timespec.h (gettime): Return void, since it always
88926         succeeds now.  All uses changed.
88927         * lib/gettime.c (gettime): Likewise.
88928         [HAVE_NANOTIME]: Prefer nanotime.
88929         Assume gettimeofday succeeds, as POSIX requires.
88930         Assime time () succeeds, since other code already does.
88931         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88932         (timespec_subtract): Remove.
88933         (NANOSLEEP_BUG_WORKAROUND): New constant.
88934         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88935         things considerably.  Use it only on GNU/Linux hosts, since the
88936         workaround shouldn't be needed elsewhere.
88937
88938 2005-02-24  Bruno Haible  <bruno@clisp.org>
88939
88940         * modules/gettext (Files): Add m4/glibc2.m4.
88941
88942 2005-02-24  Bruno Haible  <bruno@clisp.org>
88943
88944         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88945         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88946         * m4/progtest.m4:
88947         Update from GNU gettext 0.14.2.
88948         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88949
88950 2005-02-24  Bruno Haible  <bruno@clisp.org>
88951
88952         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88953         * lib/config.charset: Update from GNU gettext 0.14.2.
88954
88955 2005-02-24  Bruno Haible  <bruno@clisp.org>
88956
88957         * lib/gettext.h: Update from GNU gettext 0.14.2.
88958
88959 2005-02-23  Simon Josefsson  <jas@extundo.com>
88960
88961         * m4/iconvme.m4: New file.
88962
88963 2005-02-23  Jim Meyering  <jim@meyering.net>
88964
88965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88966         change.
88967         Thanks to Bruno Haible for catching it.
88968
88969 2005-02-22  Simon Josefsson  <jas@extundo.com>
88970
88971         * modules/iconvme: New file.
88972
88973         * MODULES.html.sh: Add iconvme.
88974
88975 2005-02-22  Simon Josefsson  <jas@extundo.com>
88976
88977         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88978
88979 2005-02-22  Simon Josefsson  <jas@extundo.com>
88980
88981         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88982
88983 2005-02-22  Jim Meyering  <jim@meyering.net>
88984
88985         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88986         s/ifndef/ifdef/.
88987
88988 2005-02-20  Neil Conway  <neilc@samurai.com>
88989
88990         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88991         returned by OSX/Darwin if the specified buffer is not large
88992         enough for the hostname.
88993
88994 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88995
88996         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88997         pass it to _help, otherwise the latter coredumps trying to
88998         dereference state.root_argp.
88999
89000 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89001
89002         * modules/chdir-long (Depends-on): Add memrchr.
89003         * modules/memrchr (Files): Add lib/memrchr.h.
89004         (Include): "memrchr.h".
89005
89006 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89009
89010 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89011
89012         * lib/memrchr.h: New file.
89013         * lib/chdir-long.c: Include it.
89014         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89015         Don't bother including stddef.h.
89016
89017 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89018
89019         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89020         inclusion.
89021         Include <sys/types.h>, for dev_t.
89022         (ME_DUMMY, ME_REMOTE): Move from here....
89023         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89024         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89025         Dmitry V. Levin.
89026         Include mountlist.h first, to test the interface.
89027
89028 2005-01-29  Bruno Haible  <bruno@clisp.org>
89029
89030         * lib/progname.c (program_name): Initialize.
89031         Needed when linking statically on MacOS X.
89032
89033 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89034
89035         Sync from coreutils.
89036         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89037         (Depends-on): Add c-strtod.
89038         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89039
89040 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89041
89042         Sync from coreutils.
89043         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89044
89045         Remove files that are specific to coreutils.
89046         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89047
89048 2005-01-28  Bruno Haible  <bruno@clisp.org>
89049
89050         * modules/javacomp: New file.
89051         * MODULES.html.sh (Java): Add javacomp.
89052
89053 2005-01-28  Bruno Haible  <bruno@clisp.org>
89054
89055         * m4/javacomp.m4: New file, from GNU gettext.
89056
89057 2005-01-28  Bruno Haible  <bruno@clisp.org>
89058
89059         * lib/javacomp.sh.in: New file, from GNU gettext.
89060         * lib/javacomp.h: New file, from GNU gettext.
89061         * lib/javacomp.c: New file, from GNU gettext.
89062
89063 2005-01-26  Simon Josefsson  <jas@extundo.com>
89064
89065         * lib/gai_strerror.c: Use GPL in header.
89066
89067 2005-01-26  Bruno Haible  <bruno@clisp.org>
89068
89069         * modules/javaexec: New file.
89070         * MODULES.html.sh (Java): Add javaexec.
89071
89072 2005-01-26  Bruno Haible  <bruno@clisp.org>
89073
89074         * m4/javaexec.m4: New file, from GNU gettext.
89075
89076 2005-01-26  Bruno Haible  <bruno@clisp.org>
89077
89078         * lib/javaexec.sh.in: New file, from GNU gettext.
89079         * lib/javaexec.h: New file, from GNU gettext.
89080         * lib/javaexec.c: New file, from GNU gettext.
89081
89082 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89083
89084         * modules/lchown (Depends-on): Remove lchown.h
89085
89086 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89087
89088         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89089         must be defined if the header file was not found, in order
89090         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89091
89092 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89093
89094         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89095         initializers for struct pentry_state.
89096         (__argp_error): Check return value of __asprintf
89097         (__argp_failure): Translate error message
89098
89099         * lib/argp-parse.c: Removed braces around the expansion of N_()
89100
89101 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89102
89103         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89104         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89105         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89106         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89107         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89108         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89109         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89110         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89111         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89112         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89113         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89114         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89115         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89116         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89117         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89118         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89119         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89120         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89121         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89122         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89123         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89124         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89125         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89126         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89127         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89128         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89129         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89130         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89131         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89132         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89133         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89134         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89135         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89136         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89137         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89138         Use an all-permissive copyright notice, recommended by RMS.
89139
89140 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89141
89142         * modules/chdir-long (Depends-on): Remove mempcpy.
89143
89144 2005-01-21  Jim Meyering  <jim@meyering.net>
89145
89146         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89147         same value as for Solaris 9.
89148
89149         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89150         component length.  This included changing the parameter to be
89151         of type `char *' rather than `char const *'.
89152         * lib/chdir-long.h (chdir_long): Update prototype.
89153
89154         * lib/openat.c (fdopendir, fstatat): New functions.
89155         * lib/openat.h: Include headers required for use of DIR and struct
89156         stat.
89157         [AT_SYMLINK_NOFOLLOW]: Define.
89158         (fdopendir, fstatat): Add prototypes.
89159
89160 2005-01-21  Bruno Haible  <bruno@clisp.org>
89161
89162         * modules/classpath: New file.
89163         * MODULES.html.sh (Java): Add classpath.
89164
89165 2005-01-21  Bruno Haible  <bruno@clisp.org>
89166
89167         * lib/classpath.h: New file, from GNU gettext.
89168         * lib/classpath.c: New file, from GNU gettext.
89169
89170 2005-01-20  Simon Josefsson  <jas@extundo.com>
89171
89172         * modules/version-etc-fsf: New file.
89173
89174 2005-01-20  Simon Josefsson  <jas@extundo.com>
89175
89176         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89177         * lib/version-etc.c: Remove version_etc_copyright.
89178         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89179         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89180
89181 2005-01-20  Simon Josefsson  <jas@extundo.com>
89182
89183         * lib/base64.h (isbase64): Add.
89184
89185         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89186         using a unsigned prototype, don't inline.
89187         (base64_decode): Use it.
89188
89189 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89192         it.
89193
89194 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89195
89196         * lib/save-cwd.c (save_cwd): Remove code to support the case
89197         where fchdir is missing or flaky.
89198
89199 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89200
89201         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89202
89203 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89204
89205         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89206         AC_LIBSOURCES now does this.
89207         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89208         with new ullong_max module.
89209
89210 2005-01-19  Bruno Haible  <bruno@clisp.org>
89211
89212         * modules/sh-quote: New file.
89213         * MODULES.html.sh (Executing programs): Add sh-quote.
89214
89215 2005-01-19  Bruno Haible  <bruno@clisp.org>
89216
89217         * lib/sh-quote.h: New file, from GNU gettext.
89218         * lib/sh-quote.c: New file, from GNU gettext.
89219
89220 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89221
89222         Merge from coreutils.
89223         * m4/ullong_max.m4: New file.
89224         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89225         (gl_MACROS): Assume localeconv exists.
89226
89227 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89228
89229         Merge changes from coreutils, as described below in several
89230         changelogs dated today.
89231
89232         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89233         (O_DIRECTORY): Remove; not needed here, since "." must be
89234         a directory.  All uses removed.
89235         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89236         universal on Suns, and we also need to test for IRIX.
89237         Revamp code to use 'if' rather than '#if'.
89238         Avoid unnecessary comparison of cwd->desc to 0.
89239
89240         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89241         for known valid error numbers rather than observed invalid ones.
89242
89243 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * modules/ullong_max: New file.
89246
89247         * modules/chdir-long, modules/openat: New files.
89248         * modules/save-cwd (Depends-on): Depend on chdir-long.
89249         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89250
89251 2005-01-18  Jim Meyering  <jim@meyering.net>
89252
89253         Merge from coreutils.
89254         * m4/chdir-long.m4, m4/openat.m4: New files.
89255         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89256         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89257         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89258         is sane and DOES follow symlinks.  Besides, testing 20 different
89259         systems found no broken chown implementations.
89260         Prompted by a change in rsync's copy of this macro.
89261         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89262
89263         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89264
89265         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89266         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89267         NULL-means-set-to-current-time semantics.
89268         Remove temporary file immediately, rather than waiting
89269         for configure's at-exit trap code to do it.
89270
89271 2005-01-18  Jim Meyering  <jim@meyering.net>
89272
89273         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89274
89275         * lib/utimens.c (futimens): Account for the fact that futimes
89276         can also fail with errno == ENOSYS or errno == ENOENT.
89277         Patch from Dmitry V. Levin.
89278
89279         Change the name of the robust chdir function from chdir to chdir_long.
89280         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89281         (restore_cwd): Use chdir_long, not chdir.
89282         * lib/chdir-long.c: Renamed from chdir.c.
89283         * lib/chdir-long.h: Renamed from chdir.h.
89284         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89285         Hurd.
89286
89287 2005-01-18  Bruno Haible  <bruno@clisp.org>
89288
89289         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89290         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89291         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89292         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89293         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89294         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89295         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89296         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89297         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89298         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89299         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89300         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89301         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89302         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89303         Use an all-permissive copyright notice, recommended by RMS.
89304
89305 2005-01-18  Bob Proulx  <bob@proulx.com>
89306
89307         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89308         simplify offsetof() macro construct to avoid compile failure with
89309         native HP-UX 11.0 ANSI C compiler.
89310
89311 2005-01-17  Bruno Haible  <bruno@clisp.org>
89312
89313         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89314         redundant because stpncpy.m4 takes care of it.
89315
89316 2005-01-17  Bruno Haible  <bruno@clisp.org>
89317
89318         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89319
89320 2005-01-17  Bruno Haible  <bruno@clisp.org>
89321
89322         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89323         used.
89324
89325 2005-01-17  Bruno Haible  <bruno@clisp.org>
89326
89327         * lib/fwriteerror.h (fwriteerror): Change specification to include
89328         fclose.
89329         * lib/fwriteerror.c: Include <stdbool.h>.
89330         (fwriteerror): At the end, close the file stream. Record whether
89331         stdout was already closed.
89332
89333 2005-01-17  Bruno Haible  <bruno@clisp.org>
89334
89335         * lib/execute.c (environ): Declare if needed.
89336         * lib/pipe.c (environ): Likewise.
89337         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89338
89339 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89340
89341         * modules/argp: Depend on vsnprintf
89342
89343 2005-01-10  Jim Meyering  <jim@meyering.net>
89344
89345         * modules/closeout (Depends-on): Add atexit.
89346
89347 2005-01-06  Bruno Haible  <bruno@clisp.org>
89348
89349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89350
89351 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89352
89353         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89354         definitions to be after all include files, to avoid collisions.
89355         Problem reported by Bob Proulx.
89356
89357 2005-01-04  Jim Meyering  <jim@meyering.net>
89358
89359         Changes imported from coreutils.
89360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89361         as the mkstemp template, use a temporary directory and an
89362         8.3-friendly template to avoid trouble on systems like DJGPP.
89363         Reported by Juan M. Guerrero via Stepan Kasal.
89364         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89365         close. Remove the temporary directory right away, rather than waiting
89366         for configure's at-exit trap code to do it.
89367         Suggestion from Stepan Kasal.
89368
89369 2005-01-01  Simon Josefsson  <jas@extundo.com>
89370
89371         * gnulib-tool: Print #include directives when --import'ing.
89372
89373 2004-12-28  Simon Josefsson  <jas@extundo.com>
89374
89375         * tests/test-base64.c: Include required header files.  Remove
89376         unused variables.
89377
89378 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89379
89380         * modules/error (Depends-on): Remove gettext.
89381
89382 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89385         not needed.  This removes a dependency on the gettext module.
89386         [defined _LIBC]: Do not include <libintl.h>; not needed.
89387
89388 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89391         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89392
89393 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89394
89395         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89396         HAVE_DECL_STRTOLD.
89397
89398 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89399
89400         * modules/getdate (Depends-on): Remove alloca-opt.
89401
89402 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89403
89404         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89405
89406 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89407
89408         * lib/argp-parse.c: Include <stddef.h>.
89409         (alignof, alignto): New macros.
89410         (parser_init): Don't assume that void * is aligned sufficiently
89411         for struct option.
89412
89413         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89414         need to extend the stack.
89415         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89416         large.
89417
89418 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89419
89420         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89421
89422 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89423
89424         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89425         (2004-10-24) change.  Apparently this was a false alarm.
89426
89427         * modules/getdate: Depend on alloca-opt, not alloca.
89428
89429 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89430
89431         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89432         Remove now-obsolete comment about AIX.
89433         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89434         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89435         (YYMAXDEPTH): New macro.
89436
89437 2004-12-18  Simon Josefsson  <jas@extundo.com>
89438
89439         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89440
89441 2004-12-18  Bruno Haible  <bruno@clisp.org>
89442
89443         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89444
89445 2004-12-18  Bruno Haible  <bruno@clisp.org>
89446
89447         * lib/fatal-signal.c (fatal_signals): Make non-const.
89448         (init_fatal_signals): New function.
89449         (uninstall_handlers, install_handlers): Ignore signals that were set to
89450         SIG_IGN.
89451         (at_fatal_signal): Call init_fatal_signals.
89452         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89453         SIG_IGN.
89454         Reported by Paul Eggert.
89455
89456 2004-12-18  Bruno Haible  <bruno@clisp.org>
89457
89458         * doc/alloca.texi: New file.
89459         * doc/alloca-opt.texi: New file.
89460
89461 2004-12-17  Jim Meyering  <jim@meyering.net>
89462
89463         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89464         Otherwise, install-sh could exit with improper exit status when
89465         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89466
89467 2004-12-16  Simon Josefsson  <jas@extundo.com>
89468
89469         * tests/test-base64.c: Add license.
89470
89471 2004-12-15  Stepan Kasal  <address@hidden>
89472
89473         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89474
89475 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89476
89477         * modules/getcwd (Files): Add m4/d-ino.m4.
89478         Suggested by Mark D. Baushke.
89479
89480 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89481
89482         * lib/getdate.y (textint): New member "negative".
89483         (time_zone_hhmm): New function.
89484         Expect 14 shift-reduce conflicts, not 13.
89485         (o_colon_minutes): New rule.
89486         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89487         (yylex): Set the "negative" member of signed numbers.
89488
89489 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89490
89491         * doc/getdate.texi (Time of day items, Time zone items):
89492         Describe new formats +00:00, UTC+00:00.
89493
89494 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89495
89496         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89497         spurious "-l"s.  Problem reported by Stepan Kasal.
89498
89499 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89500
89501         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89502         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89503
89504 2004-12-04  Simon Josefsson  <jas@extundo.com>
89505
89506         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89507         Vandoorselaere <yoann@prelude-ids.org>.
89508
89509 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89510
89511         Changes imported from coreutils.
89512         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89513         exist.
89514         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89515
89516 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89517
89518         Changes imported from coreutils.
89519         * lib/hard-locale.c: Assume <locale.h> exists.
89520         Include "strdup.h".
89521         (GLIBC_VERSION): New macro.
89522         (hard_locale): Assume setlocale exists.
89523         Rewrite to avoid #ifdef.
89524         Use strdup rather than malloc + strcpy.
89525         * lib/human.c: Assume <locale.h> exists.
89526         (human_readable): Assume localeconv exists.
89527
89528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * modules/hard-locale (Depends-on): Add strdup.
89531
89532 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89533
89534         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89535         convert T2, not T.  (Imported from libc.)
89536
89537 2004-11-30  Simon Josefsson  <jas@extundo.com>
89538
89539         * modules/restrict (License): Change to LGPL.
89540
89541 2004-11-30  Simon Josefsson  <jas@extundo.com>
89542
89543         * m4/restrict.m4: Add copyright and copying conditions.
89544
89545 2004-11-30  Simon Josefsson  <jas@extundo.com>
89546
89547         * m4/base64.m4: New file.
89548
89549 2004-11-30  Simon Josefsson  <jas@extundo.com>
89550
89551         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89552         base64.
89553
89554         * tests/test-base64.c: New file.
89555
89556         * modules/base64: New file.
89557
89558 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89559
89560         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89561         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89562
89563         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89564
89565 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89566
89567         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89568         (__getcwd.c): Don't restore errno; glibc doesn't.
89569         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89570         first, falling back to our code only if its results look suspicious.
89571         Ensure that the resulting buffer is only as large as necessary.
89572
89573         * lib/readutmp.c: Include readutmp.h first.
89574         Include <errno.h>, since readutmp.h no longer does that.
89575         * lib/readutmp.h: Don't include <errno.h>,
89576         <sys/param.h>, <time.h>; not needed to establish interface.
89577         (errno): Remove decl.
89578         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89579         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89580         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89581
89582 2004-11-28  Simon Josefsson  <jas@extundo.com>
89583
89584         * lib/base64.h, base64.c: New file.
89585
89586 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89587
89588         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89589
89590 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89591
89592         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89593         (Depends-on): Remove pathmax, same.  Add mempcpy.
89594         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89595         (Makefile.am): Append getcwd.h to lib_SOURCES.
89596         (Include): Add getcwd.h.
89597         (Maintainer): Change from Jim Meyering to "all, glibc",
89598         since getdate now uses intended-for-glibc code.
89599         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89600         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89601
89602 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89603
89604         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89605         HP's ANSI C compiler.
89606         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89607         Declaring int functions causes warnings on some modern systems and
89608         shouldn't be needed to compile on ancient ones.
89609         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89610         defined.
89611
89612         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89613         with the following changes.
89614         (__set_errno): Parenthesize properly.
89615         Include <stdbool.h>.
89616         (MIN, MAX, MATCHING_INO): New macros.
89617         (__getcwd): Define with prototype, not K&R form.
89618         Use heuristics to allocate default buffer on stack if possible.
89619         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89620         behavior, and to avoid the PATH_MAX limit when computing
89621         ../../../../...
89622         Use MATCHING_INO to compare inode number to file.
89623         Check for arithmetic overflow in size calculations.
89624         Fix bug in reallocation of dot array that caused getcwd to fail
89625         on directories nested deeper than 75.
89626         Be more careful about saving errno on error.
89627         Do not use realloc; use only free+malloc, as this is a bit
89628         more flexible and avoids a needless copy operation.
89629         Do not inspect st_dev and st_ino for symbolic links; POSIX
89630         doesn't specify the latter.
89631         Check for closedir errors.
89632         Avoid needless casts.
89633         Use "#ifdef weak_alias" around weak_alias, to be like other
89634         glibc code.
89635         The following changes to getcwd.c have effect only when used in
89636         gnulib; they have no effect inside glibc proper.
89637         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89638         as alloca isn't used.
89639         (alloca, __alloca): Likewise.
89640         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89641         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89642         unconditionally, as gnulib assumes C89 or better.
89643         Do not include <sys/param.h>.
89644         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89645         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89646         better.
89647         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89648         Include <dirent.h> in a way that is compatible with modern Autoconf.
89649         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89650         New macros, if not already defined.
89651         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89652         Use "_LIBC", not "defined _LIBC", for consistency.
89653         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89654         a mempcpy module.
89655         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89656         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89657         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89658         credit only to Jim Meyering and adjust the copyright dates.
89659         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89660         <stdlib.h>, <unistd.h>, "pathmax.h".
89661         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89662         (INITIAL_BUFFER_SIZE): Remove.
89663         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89664
89665 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89666
89667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89668         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89669         Use the _ONCE methods, for efficiency.
89670         Check for fcntl.h.  In test program, include <errno.h>
89671         and <fcntl.h> if available.  Remove old K&R cruft from
89672         test program.  Check for common errors in GNU/Linux,
89673         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89674         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89675         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89676         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89677         name accordingly.
89678         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89679         accommodate new getcwd.c.
89680         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89681         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89682         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89683         that's all we need now.
89684
89685 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89686
89687         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89688         argp-parse.c depends on getopt internals, that means we should
89689         always use our getopt, to be on the safe side.
89690         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89691         order not to spoil the result of an eventual previous invocation
89692         of gl_GETOPT_SUBSTITUTE.
89693
89694 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89695
89696         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89697         redefinition warnings. To avoid them, include the defines
89698         in `#if !defined __need_getopt ... #endif'. The only place
89699         where __getopt_argv_const is used is in definitions
89700         of getopt_long and getopt_long_only below, which are as well
89701         protected by `#ifndef __need_getopt'.
89702         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89703         __need_getopt after including <stdio.h> and <unistd.h> These
89704         headers might have defined it.
89705
89706 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89707
89708         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89709
89710 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89711
89712         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89713         (futimens): New function, which uses futimes if available.
89714         (futimens, utimens): Support timespec==NULL, with same semantics
89715         as utime and utimens.
89716         * lib/utimens.h (futimens): New decl.
89717
89718 2004-11-23  Jim Meyering  <jim@meyering.net>
89719
89720         * lib/getopt_.h: Remove trailing blanks.
89721
89722 2004-11-23  Jim Meyering  <jim@meyering.net>
89723
89724         * lib/__fpending.c: Add comment.
89725
89726 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89727
89728         * modules/canonicalize (Depends-on): Add xreadlink.
89729         Problem reported by James Youngman.
89730
89731 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89732
89733         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89734         New macros.
89735         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89736         optopt): Use them instead of invoking ## directly; otherwise, the
89737         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89738
89739 2004-11-19  Bruno Haible  <bruno@clisp.org>
89740
89741         * lib/strtok_r.c: Move comments from here...
89742         * lib/strtok_r.h: ... to here.
89743
89744 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89745
89746         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89747         implementations that mishandle size_t overflow.
89748
89749 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89752         might fail.  Problem reported by Yoann Vandoorselaere.
89753         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89754         implementations that mishandle size_t overflow.
89755
89756 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89757
89758         * modules/canon-host (Depends-on): Add strdup.
89759
89760 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89761
89762         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89763
89764 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         * lib/canon-host.c: Include "strdup.h".
89767         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89768         Use strdup instead of malloc/strcpy to duplicate strings.
89769
89770         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89771         (human_space_before_unit): New constant.
89772         * lib/human.c (human_readable): Support it.
89773
89774         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89775         (xgetcwd): Set errno correctly when failing.
89776         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89777         the failure is actually due to a PATH_MAX problem.
89778
89779         Further getopt changes to make it more likely that glibc will
89780         buy the changes back.
89781         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89782         (getopt): Use it, so to preserve glibc semantic
89783         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89784         when compiling for libc.
89785         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89786         (getopt_long, getopt_long_only): Use it.
89787
89788         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89789         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89790         (getopt): Argv is now char * const *, as per standard.
89791         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89792         not char *__getopt_argv_const *.
89793         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89794         _getopt_long_only_r): Likewise.
89795         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89796         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89797         _getopt_long_r, _getopt_long_only_r): Likewise.
89798         * lib/getopt_.h (__getopt_argv_const): Remove.
89799         (getopt): Argv is now char * const *, as per standard.
89800
89801         * lib/getdate.y (tORDINAL): New token.
89802         (day, relunit): Allow it for relative times.
89803         (relative_time_table): Use tORDINAL for ordinals.
89804
89805 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89806
89807         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89808         Document that "second" isn't allowed as an ordinal number.
89809
89810 2004-11-16  Jim Meyering  <jim@meyering.net>
89811
89812         * modules/closeout (Depends-on): Add fpending.
89813
89814 2004-11-15  Jim Meyering  <jim@meyering.net>
89815
89816         * lib/closeout.c: Include "__fpending.h" once again.
89817         Include <stdbool.h>.
89818         (close_stdout): Don't fail just because stdout was closed initially,
89819         since some programs don't write to stdout in the normal course of
89820         operation (other than --version and --help), and we don't want this
89821         function to make e.g. `touch file >&-' fail.
89822         But do fail if it was closed and someone has tried to write to it.
89823         E.g., `printf foo >&-' must fail.
89824
89825 2004-11-13  Jim Meyering  <jim@meyering.net>
89826
89827         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89828
89829 2004-11-12  Simon Josefsson  <jas@extundo.com>
89830
89831         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89832         small doc fix is still pending.
89833
89834 2004-11-11  Simon Josefsson  <jas@extundo.com>
89835
89836         * modules/strtok_r: New file.
89837
89838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89839         strtok_r.
89840
89841 2004-11-11  Simon Josefsson  <jas@extundo.com>
89842
89843         * m4/strtok_r.m4: New file.
89844
89845         * m4/getopt.m4: Replace opterr.
89846
89847 2004-11-11  Simon Josefsson  <jas@extundo.com>
89848
89849         * lib/strtok_r.h, strtok_r.c: New file.
89850
89851 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89852
89853         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89854         of replacing opterr, getopt, etc.  This should handle the
89855         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89856
89857 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89858
89859         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89860         we can stop lying to compilers about the constness of argv when we
89861         are compiled outside glibc.
89862         (getopt, getopt_long, getopt_long_only): Use it.
89863         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89864         _getopt_internal, getopt): Likewise.
89865         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89866         _getopt_long_only_r): Likewise.
89867         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89868         _getopt_long_r, _getopt_long_only_r): Likewise.
89869
89870         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89871         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89872         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89873         the other external symbols.
89874         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89875         declaration, since the above renaming now works around collisions.
89876
89877 2004-11-11  Jim Meyering  <jim@meyering.net>
89878
89879         * lib/linebreak.c: Remove trailing blanks.
89880         * lib/alloca_.h: Likewise.
89881         * lib/acosl.c: Likewise.
89882         * lib/euidaccess.c: Likewise.
89883         * lib/allocsa.h: Likewise.
89884
89885 2004-11-10  Simon Josefsson  <jas@extundo.com>
89886
89887         * m4/getaddrinfo.m4: New file.
89888
89889 2004-11-10  Simon Josefsson  <jas@extundo.com>
89890
89891         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89892
89893 2004-11-10  Simon Josefsson  <jas@extundo.com>
89894
89895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89896         getaddrinfo.
89897
89898         * modules/getaddrinfo: New file.
89899
89900 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89901
89902         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89903
89904 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89905
89906         * lib/mktime.c (SHR): New macro, which is a portable
89907         substitute for >> that should work even on Crays.
89908         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89909         Problem reported by Mark D. Baushke in
89910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89911         * lib/getdate.y (SHR): Likewise.
89912         (tm_diff): Use it.
89913         * lib/strftime.c (SHR): Likewise.
89914         (tm_diff): Use it.
89915         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89916         quote_these_too, so that right shifts are well defined.  All uses
89917         changed.
89918
89919 2004-11-10  Jim Meyering  <jim@meyering.net>
89920
89921         Ensure that no close failure goes unreported.
89922         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89923         return early when it seems there's nothing to flush.
89924         Don't include __fpending.h.
89925
89926 2004-11-10  Jim Meyering  <jim@meyering.net>
89927
89928         * modules/closeout (Depends-on): Remove fpending.
89929
89930 2004-11-10  Jim Meyering  <jim@meyering.net>
89931
89932         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89933
89934 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89935
89936         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89937         gl_FUNC_STRFTIME.
89938         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89939         and AC_REQUIRE when possible, to avoid duplicate checks.
89940         Check for <wchar.h>.
89941
89942 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89943
89944         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89945
89946 2004-11-09  Bruno Haible  <bruno@clisp.org>
89947
89948         * m4/sockpfaf.m4: New file.
89949
89950 2004-11-05  Bruno Haible  <bruno@clisp.org>
89951
89952         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89953         Reported by Mark D. Baushke <mdb@cvshome.org>.
89954
89955 2004-11-04  Bruno Haible  <bruno@clisp.org>
89956
89957         2004-09-11  Bruno Haible  <bruno@clisp.org>
89958                 * allocsa.valgrind: New file.
89959         2004-02-06  Bruno Haible  <bruno@clisp.org>
89960                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89961                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89962                 Reported by Christopher Seip <chris.seip@hp.com>.
89963
89964 2004-11-04  Bruno Haible  <bruno@clisp.org>
89965
89966         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89967         (Makefile.am): Distribute it.
89968
89969 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89970
89971         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89972         with errno == ERANGE if the buffer is too small.
89973         Problem reported by Mark D. Baushke.
89974
89975 2004-11-03  Albert Chin  <china@thewrittenword.com>
89976             Paul Eggert  <eggert@cs.ucla.edu>
89977
89978         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89979         equivalent, substitute $ac_type for equivalent type rather than
89980         blindly using uint32_t *always* which won't work if uint32_t is not
89981         available.  Define _UINT32_T to work around typedef of uint32_t if
89982         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89983         2.5.1.
89984
89985 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89986
89987         * m4/jm-macros.m4: Sync from coreutils.
89988         (gl_MACROS): Check for mbrlen, for pathchk.
89989         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89990
89991 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89992
89993         * lib/xreadlink.c (MAXSIZE): New macro.
89994         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89995         size does not exceed MAXSIZE.  Avoid cast.
89996         As suggested by Mark D. Baushke in
89997         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89998         if readlink fails with buffer size just under MAXSIZE, try again
89999         with MAXSIZE.
90000
90001 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90002
90003         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90004
90005 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90006         and  Paul Eggert  <eggert@cs.ucla.edu>
90007
90008         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90009         (get_date): Overparenthesize to avoid GCC warning.
90010
90011 2004-11-02  Bruno Haible  <bruno@clisp.org>
90012
90013         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90014         returns void.
90015
90016 2004-11-02  Bruno Haible  <bruno@clisp.org>
90017
90018         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90019         function returns void.
90020
90021 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90022
90023         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90024         fflush_unlocked, flockfile, funlockfile, funlockfile,
90025         fputs_unlocked, putc_unlocked.
90026
90027 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90028
90029         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90030         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90031         already declared.
90032
90033 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90034
90035         * modules/getdate (Files): Add doc/getdate.texi.
90036         (Depends-on): Add setenv, xalloc.
90037
90038 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90039
90040         * lib/getdate.y: Add support for TZ="foo" within a date string.
90041         Fix some bugs near time_t boundaries.  Reject dates with
90042         out-of-range components, e.g., "Sept 31".
90043         Include <stdlib.h>, "setenv.h", "xalloc.h".
90044         (ISDIGIT_LOCALE): Remove; unused.
90045         Note that the TZ and time functions used here are not reentrant.
90046         (mktime_ok, get_tz): New functions.
90047         (TZBUFSIZE): New constant.
90048         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90049         This requires that we sometimes generate our own TZ="XXX..." setting.
90050
90051 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90052
90053         * doc/getdate.texi: New file, from coreutils with modifications for
90054         the new TZ parsing.
90055
90056 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90057
90058         * lib/mktime.c (not_equal_tm): Remove redundant check.
90059
90060 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90061
90062         * modules/regex (lib_SOURCES): Add regex.c.
90063         Reported by James Youngman in
90064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90065
90066 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90067
90068         * lib/getdate.y: Use Bison 1.875 features, and some minor
90069         code cleanups.  This change does not affect semantics.
90070         Don't include <stdlib.h>; no longer needed.
90071         Don't include unlocked-io.h; only the "#if TEST" code uses
90072         stdio, and performance isn't crucial there.
90073         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90074         Bison 1.875 features as described below.
90075         All uses of "PC." replaced by "pc->".
90076         (YYSTYPE): Add a forward declaration.
90077         (yylex, yyerror): Use full prototypes in forward decls.
90078         Use "%pure-parser" rather than obsolescent "%pure_parser".
90079         Use %parse-param and %lex-param instead of obsolescent
90080         YYPARSE_PARAM and YYLEX_PARAM.
90081         (meridian_table, month_and_day_table, time_units_table,
90082         relative_time_table, time_zone_table, military_table,
90083         lookup_zone, lookup_word, get_date):
90084         Use NULL instead of 0 where appropriate.
90085         (to_hour): Avoid abort (), to avoid a dependency on
90086         stdlib.h.
90087         (yyerror, yylex): Now accepts parser_control * arg.
90088         (main) [TEST]: Use '\0' rather than 0 for char.
90089
90090 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90091
90092         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90093
90094 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90095
90096         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90097         It's now the caller's responsibility to handle the case where
90098         !HAVE_GETPAGESIZE && !defined getpagesize.
90099
90100         * lib/mktime.c (leapyear): Arg is long int, not int.
90101
90102 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90103
90104         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90105
90106 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90107
90108         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90109         missing.  Problem reported by James Youngman.
90110
90111 2004-10-16  Simon Josefsson  <jas@extundo.com>
90112
90113         * gnulib-tool: Fix comments.  Fix parse problem.
90114         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90115
90116 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90117
90118         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90119         implementation of getopt_long.  Problem reported by Alexander Taler in:
90120         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90121
90122 2004-10-15  Bruno Haible  <bruno@clisp.org>
90123
90124         * gnulib-tool: Untabify. Initialize supplied_libname.
90125         (func_usage): More homogenous output.
90126         (func_modules_transitive_closure, func_modules_to_filelist,
90127         func_emit_lib_Makefile_am): New functions.
90128         (func_import): New function, extracted from big case statement. Use
90129         func_get_license, func_modules_transitive_closure,
90130         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90131         opt_lgpl. Don't use test -a, as it's not portable.
90132         (func_create_testdir): Use func_modules_transitive_closure,
90133         func_modules_to_filelist, func_emit_lib_Makefile_am.
90134
90135 2004-10-15  Bruno Haible  <bruno@clisp.org>
90136
90137         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90138
90139 2004-10-15  Bruno Haible  <bruno@clisp.org>
90140
90141         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90142         the portions belonging to each module.
90143         Suggested by Derek Robert Price <derek@ximbiot.com>.
90144
90145 2004-10-12  Simon Josefsson  <jas@extundo.com>
90146
90147         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90148         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90149         to real functions.
90150
90151 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90152
90153         * modules/vsnprintf: New file.
90154
90155 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90156
90157         * m4/vsnprintf.m4: New file.
90158
90159 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90160
90161         * lib/vsnprintf.h: New file.
90162         * lib/vsnprintf.c: New file.
90163
90164 2004-10-11  Bruno Haible  <bruno@clisp.org>
90165
90166         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90167         vsnprintf.
90168
90169 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90170
90171         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90172
90173 2004-10-07  Bruno Haible  <bruno@clisp.org>
90174
90175         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90176         fits into the provided buffer.
90177
90178 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90179
90180         * lib/diacrit.c, diacrit.h: Add GPL notice.
90181
90182         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90183         notice.
90184         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90185         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90186         This avoids a potential constant-folding bug.
90187
90188 2004-10-05  Bruno Haible  <bruno@clisp.org>
90189
90190         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90191         for the declaration of strsep.
90192
90193 2004-10-05  Bruno Haible  <bruno@clisp.org>
90194
90195         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90196
90197 2004-10-04  Simon Josefsson  <jas@extundo.com>
90198
90199         * modules/memmem: New file.
90200         * tests/test-memmem.c: New file.
90201         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90202
90203 2004-10-04  Simon Josefsson  <jas@extundo.com>
90204
90205         * m4/memmem.m4: New file.
90206
90207 2004-10-04  Simon Josefsson  <jas@extundo.com>
90208
90209         * lib/memmem.h: New file.
90210         * lib/memmem.c: New file, taken from glibc.
90211
90212 2004-10-04  Simon Josefsson  <jas@extundo.com>
90213
90214         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90215         '#ifdef USE_UNLOCKED_IO'.
90216
90217 2004-10-04  Simon Josefsson  <jas@extundo.com>
90218
90219         * config/srclist.txt: Add memmem from glibc.
90220
90221 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90222
90223         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90224
90225         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90226         modules/exclude, modules/getdate, modules/getline,
90227         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90228         modules/getusershell, modules/linebuffer, modules/md5,
90229         modules/mountlist, modules/posixtm, modules/readtokens,
90230         modules/readutmp, modules/regex, modules/sha1,
90231         modules/version-etc, modules/yesno:
90232         Remove dependency on unlocked-io.
90233
90234 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90235
90236         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90237
90238         * m4/unlocked-io.m4: Add copyright notice.
90239         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90240
90241 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90242
90243         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90244         * lib/xmalloc.c (xmemdup): Likewise.
90245         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90246         XFREE): Remove these long-obsolescent macros.
90247         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90248         * lib/xstrdup.c: Remove.
90249
90250         * lib/regex.c (re_comp): Cast gettext return value to char *,
90251         Problem reported by Martin Neitzel via Mark D. Baushke.
90252
90253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90254
90255         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90256         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90257         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90258         regex.c, sha1.c, version-etc.c, yesno.c:
90259         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90260         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90261         the includer's responsibility.
90262
90263         Sync from coreutils.
90264
90265         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90266         points to the start of a string, as the C Standard says the
90267         resulting behavior is undefined.
90268
90269         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90270         simple -> simple_backups, numbered_existing ->
90271         numbered_existing_backups, numbered -> numbered_backups
90272         to avoid shadowing problems.  All uses changed.
90273         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90274         * lib/backupfile.c (check_extension, numbered_backup):
90275         Rename locals to avoid shadowing 'basename'.
90276         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90277         once.
90278
90279         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90280         * lib/.cvsignore: Add getopt.h.
90281
90282 2004-10-04  Bruno Haible  <bruno@clisp.org>
90283
90284         * modules/README: New file.
90285         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90286         not a module.
90287
90288 2004-10-02  Jim Meyering  <jim@meyering.net>
90289
90290         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90291
90292 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90293
90294         * modules/strsep: New file.
90295
90296 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90297
90298         * m4/strsep.m4: New file.
90299
90300 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90301
90302         * lib/strsep.h: New file.
90303         * lib/strsep.c: New file.
90304
90305 2004-10-01  Simon Josefsson  <jas@extundo.com>
90306
90307         * lib/snprintf.c (snprintf): Handle size==0.
90308
90309 2004-10-01  Simon Josefsson  <jas@extundo.com>
90310             Bruno Haible  <bruno@clisp.org>
90311
90312         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90313         (snprintf): Declare 'args'.
90314
90315 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90316
90317         * lib/snprintf.c: Remove comments as to why each header is needed.
90318
90319 2004-10-01  Bruno Haible  <bruno@clisp.org>
90320
90321         * MODULES.html.sh: Add strsep.
90322
90323 2004-09-30  Simon Josefsson  <jas@extundo.com>
90324
90325         * modules/snprintf: New file.
90326
90327 2004-09-30  Simon Josefsson  <jas@extundo.com>
90328
90329         * m4/snprintf.m4: New file.
90330
90331 2004-09-30  Simon Josefsson  <jas@extundo.com>
90332
90333         * lib/snprintf.h, lib/snprintf.c: New files.
90334
90335 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90336
90337         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90338         (hol_entry_help): Never translate an empty string.
90339         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90340         * lib/argp.h (OPTION_NO_TRANS): New option.
90341
90342 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90343
90344         * modules/argp (Maintainer): Replace Simon Josefsson
90345         by Sergey Poznyakoff.
90346
90347 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90348
90349         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90350         changes merged back into glibc.
90351
90352 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90353
90354         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90355
90356 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90357
90358         * lib/xvasprintf.c: Include xalloc.h.
90359         (xvasprintf): Use xalloc_die, not xmalloc_die.
90360
90361 2004-09-29  Bruno Haible  <bruno@clisp.org>
90362
90363         * modules/alloca-opt: New file, derived from modules/alloca.
90364         * modules/allocsa: Depend on alloca-opt instead of alloca.
90365         * modules/setenv: Likewise.
90366         * modules/vasnprintf: Likewise.
90367         * MODULES.html.sh: Add alloca-opt.
90368
90369 2004-09-28  Simon Josefsson  <jas@extundo.com>
90370
90371         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90372         LGPL, and to replace license template from GPL to LGPL.
90373
90374 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90375
90376         * modules/dummy: Change license to LGPL.
90377
90378 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90379
90380         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90381
90382 2004-09-24  Simon Josefsson  <jas@extundo.com>
90383
90384         * modules/minmax (License): Change from GPL to LGPL.
90385
90386 2004-09-23  Simon Josefsson  <jas@extundo.com>
90387
90388         * gnulib-tool (--import): Typo.
90389
90390 2004-09-23  Simon Josefsson  <jas@extundo.com>
90391
90392         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90393
90394 2004-09-22  Bruno Haible  <bruno@clisp.org>
90395
90396         * modules/*: Add 'License' field.
90397         * gnulib-tool: Accept --extract-license option.
90398         (func_get_license): New function.
90399
90400 2004-09-21  Bruno Haible  <bruno@clisp.org>
90401
90402         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90403         Reported by Simon Josefsson.
90404
90405 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90406
90407         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90408         gl_AC_TYPE_LONG_LONG.
90409
90410 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90411
90412         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90413
90414 2004-09-18  Simon Josefsson  <jas@extundo.com>
90415         and  Paul Eggert  <eggert@cs.ucla.edu>
90416
90417         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90418         calls with autoreconf.  Define GL_LIB.
90419
90420 2004-09-14  Karl Berry  <karl@gnu.org>
90421
90422         * config/srclist.txt: unsync setenv.c, sigh.
90423
90424 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90425
90426         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90427         Problem reported by Bruno Haible in:
90428         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90429
90430 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90431
90432         * config/srclist.txt: Comment out argp-pvh.c.
90433
90434 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90435
90436         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90437         in case some system header has #define'd it.  Problem reported by
90438         Soeren D. Schulze in
90439         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90440
90441 2004-09-09  Karl Berry  <karl@gnu.org>
90442
90443         * regex.[ch]: delete from the root.  These were supposed to be
90444                 synced with emacs cvs, but this has not happened for about
90445                 a year, and anyway nothing else uses emacs regex.[ch].
90446                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90447                 lib/regex[.ch] is untouched.
90448
90449 2004-09-09  Bruno Haible  <bruno@clisp.org>
90450
90451         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90452
90453 2004-09-09  Bruno Haible  <bruno@clisp.org>
90454
90455         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90456         modifications.
90457         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90458
90459 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90460
90461         * modules/xvasprintf: New file.
90462         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90463
90464 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90465
90466         * lib/xvasprintf.h: New file.
90467         * lib/xvasprintf.c: New file.
90468         * lib/xasprintf.c: New file.
90469
90470 2004-09-08  Bruno Haible  <bruno@clisp.org>
90471
90472         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90473
90474 2004-09-08  Bruno Haible  <bruno@clisp.org>
90475
90476         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90477         length is > INT_MAX.
90478         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90479         more.
90480
90481 2004-09-08  Bruno Haible  <bruno@clisp.org>
90482
90483         * lib/stdint_.h: New file, taken from GNU clisp.
90484
90485 2004-09-08  Bruno Haible  <bruno@clisp.org>
90486             Oskar Liljeblad  <oskar@osk.mine.nu>
90487
90488         * modules/stdint: New file.
90489         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90490
90491 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90492
90493         Import from coreutils.
90494         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90495         strings on unbounded length.  alloca's performance benefits aren't
90496         that important here.
90497         (V_STRDUP): Remove.
90498         (parse_with_separator): New function, with most of the internals
90499         of the old parse_user_spec.  Allow user to omit both user and group,
90500         for compatibility with FreeBSD.
90501         Clone only the user name, not the entire spec.
90502         Do not set *uid, *gid unless entirely successful.
90503         Avoid memory leak in some failing cases.
90504         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90505         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90506         (parse_user_spec): Rewrite to use parse_with_separator.
90507
90508 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90509
90510         * modules/userspec: Don't depend on alloca.
90511
90512 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90513
90514         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90515
90516 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90517
90518         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90519         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90520         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90521
90522 2004-08-16  Simon Josefsson  <jas@extundo.com>
90523
90524         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90525         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90526         Add --dry-run for --import.
90527         Let user provided command line parameters override configure.ac
90528         settings.
90529
90530 2004-08-12  Simon Josefsson  <jas@extundo.com>
90531
90532         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90533         as discussed with Paul Eggert in threads rooted at
90534         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90535         and
90536         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90537         Before, the test was empty, and relied on ELIDE_CODE in source
90538         code.)
90539         (gl_PREREQ_GETOPT): New macro.
90540         (gl_GETOPT): Use them.
90541
90542 2004-08-12  Simon Josefsson  <jas@extundo.com>
90543
90544         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90545         * lib/getopt_.h: Renamed from getopt.h.
90546
90547 2004-08-12  Simon Josefsson  <jas@extundo.com>
90548
90549         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90550         Change default library name from libfoo to libgnu.
90551         Now, if you have a configure.ac that says:
90552                 gl_SOURCE_BASE(gl)
90553                 gl_M4_BASE(gl/m4)
90554                 gl_MODULES(error getopt etcetera)
90555                 gl_INIT
90556         you can import all you need by running:
90557                 ../gnulib/gnulib-tool --import
90558
90559         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90560         (Makefile.am): Rewrite, use logic from argz.
90561         (Include): Use <getopt.h> instead of "getopt.h".
90562
90563 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90564
90565         * modules/argp (Files): Add m4/unlocked-io.m4.
90566         (Depends-on): Add extensions.
90567
90568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90569
90570         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90571         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90572         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90573         Check for program_invocation_name, program_invocation_short_name,
90574         flockfile, funlockfile, features.h, _getopt_long_only_r.
90575
90576 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90577
90578         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90579         its complicated substitute.
90580         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90581         and program_invocation_name.
90582         (__argp_basename) [!_LIBC]: Remove; the only use was
90583         replaced by its body.
90584         (__argp_short_program_name): Change condition from
90585         !defined __argp_short_program_name to
90586         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90587         to match argp-namefrob.h.
90588         (__argp_failure): Don't assume strerror_r returns char *.
90589         * lib/argp-parse.c (N_): Define unconditionally.
90590         (argp_default_options): Fill out initializers with 0 to avoid
90591         gcc warnings.
90592
90593 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90594
90595         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90596         getopt1.c.
90597
90598 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90599
90600         Merge from coreutils.
90601
90602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90603
90604         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90605         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90606
90607 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90608
90609         Merge from coreutils.
90610
90611         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90612         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90613         for Reliant Unix 5.43.
90614
90615         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90616         (union fooround): Use uintmax_t, not long int.
90617         The rest is a merge from libc:
90618         [defined _LIBC]: Include <shlib-compat.h>.
90619         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90620
90621         * lib/settime.c (settime): Recode to avoid warning with
90622         Sun Forte C 6U2.
90623
90624         * lib/strverscmp.c: Convert to UTF-8.
90625
90626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90627
90628         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90629         m4/uintmax_t.m4.
90630
90631 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90632
90633         * modules/xalloc-die: New file.
90634         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90635
90636         * modules/md5 (Files): Add m4/uint32_t.m4.
90637         * modules/sha1: Renamed from modules/sha.
90638         (Files):
90639         Rename lib/sha.h to lib/sha1.h.
90640         Rename lib/sha.c to lib/sha1.c.
90641         Rename m4/sha.m4 to m4/sha1.m4.
90642         (lib_SOURCES): Likewise.
90643         (configure.ac): Rename gl_SHA to gl_SHA1.
90644         (Include): sha.h -> sha1.h.
90645
90646 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90647
90648         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90649         * m4/sha1.m4: Renamed from sha.m4.
90650         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90651
90652 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90653
90654         * lib/obstack.h (obstack_empty_p):
90655         Don't assume that chunk->contents is suitably aligned.
90656         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90657         Likewise. Problem reported by Benno in
90658         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90659
90660         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90661         readable.  This could be improved further but it'd take some work.
90662
90663 2004-08-08  Simon Josefsson  <jas@extundo.com>
90664
90665         * modules/xgethostname (Depends-on): Remove exit and error (not
90666         used).
90667
90668         * modules/getpass-gnu: Add getpass.h.
90669         (Depends-on): Add stdbool.
90670         * modules/getpass: Add getpass.h.
90671
90672 2004-08-08  Simon Josefsson  <jas@extundo.com>
90673
90674         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90675         Check getpass declaration.
90676
90677 2004-08-08  Simon Josefsson  <jas@extundo.com>
90678
90679         * lib/xgethostname.c: Don't include error.h (not used).
90680
90681         * lib/getpass.h: Add.
90682         * lib/getpass.c: Include getpass.h first.
90683
90684 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90685
90686         * lib/xalloc-die.c: New file.
90687         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90688         All uses removed.
90689         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90690         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90691         xalloc-die.c.
90692         (_, N_, xalloc_die): Move to xalloc-die.c.
90693         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90694         so that we needn't mess with xalloc_msg_memory_exhausted.
90695
90696         * lib/sha1.h: Renamed from sha.h.
90697         (SHA1_H): Renamed from _SHA_H.
90698         (sha1_ctx): Renamed from sha_ctx.
90699         (sha1_init_ctx): Renamed from sha_init_ctx.
90700         (sha1_process_block): Renamed from sha_process_block.
90701         (sha1_process_bytes): Renamed from sha_process_bytes.
90702         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90703         (sha1_read_ctx): Renamed from sha_read_ctx.
90704         (sha1_stream): Renamed from sha_stream.
90705         (sha1_buffer): Renamed from sha_buffer.
90706         * lib/sha1.c: Likewise; renamed from sha.c.
90707         Do not include <sys/types.h>.
90708         Include <stddef.h> rather than <stdlib.h>.
90709
90710 2004-08-08  Bruno Haible  <bruno@clisp.org>
90711
90712         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90713         FILESYSTEM_PREFIX_LEN.
90714         * lib/progreloc.c: Likewise.
90715         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90716
90717 2004-08-06  Simon Josefsson  <jas@extundo.com>
90718
90719         * modules/progname (Depends-on): Don't depend on stdbool.
90720
90721 2004-08-06  Simon Josefsson  <jas@extundo.com>
90722
90723         * modules/getsubopt: New file.
90724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90725         getsubopt.
90726
90727 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90728
90729         More merge from coreutils.
90730
90731         * m4/utimens.m4, m4/utimecmp.m4: New files.
90732         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90733         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90734         prereq.m4, sha.m4: Import changes from coreutils.
90735
90736 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90737
90738         More merge from coreutils.
90739         * modules/raise, modules/readtokens0, modules/utimens:
90740         * modules/utimecmp, module/xnanosleep: New files.
90741         * modules/strftime: Add lib/strftime.h.
90742         Change include from <time.h> to "strftime.h".
90743         * modules/yesno: Add lib/yesno.h.
90744         * modules/backupfile: Remove lib/addext.c.
90745         * modules/euidaccess: Add stat-macros.h.
90746         * modules/canonicalize, modules/euidaccess,
90747         modules/filemode, modules/lchown, modules/makepath,
90748         modules/rmdir, modules/stat: Likewise.
90749
90750 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90751
90752         Merge from tar.
90753         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90754         SIZE_MAX is a valid preprocessor constant.
90755         (__argp_basename): Change from "#ifndef _LIBC"
90756         to "#ifndef __argp_short_program_name", so that
90757         we don't compile these functions for tar.
90758
90759         More merges from coreutils.
90760         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90761         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90762         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90763         * lib/addext.c: Remove; no longer needed.
90764         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90765         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90766         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90767         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90768         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90769         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90770         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90771         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90772         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90773         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90774         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90775         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90776         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90777         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90778         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90779         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90780         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90781         Import changes from coreutils.
90782
90783 2004-08-05  Simon Josefsson  <jas@extundo.com>
90784
90785         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90786
90787 2004-08-05  Simon Josefsson  <jas@extundo.com>
90788
90789         * m4/getsubopt.m4: New file.
90790
90791 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90792
90793         Merge from coreutils.
90794
90795         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90796         * m4/getcwd-path-max.m4: New files.
90797
90798         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90799         FILESYSTEM_PREFIX_LEN ->
90800         FILE_SYSTEM_PREFIX_LEN.
90801         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90802         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90803         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90804         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90805
90806         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90807         prerequisite modules now handle the DOS stuff.
90808         Don't check for unistd.h.
90809
90810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90811
90812         Merge from coreutils.
90813
90814         * lib/.gdb-history: Remove; this doesn't belong here.
90815
90816         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90817         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90818         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90819         * lib/getcwd.c: New files.
90820
90821         * lib/dirname.h: Include <stdbool.h>.
90822         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90823         for consistency with POSIX terminology.  All uses changed.
90824         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90825         (strip_trailing_slashes): Use bool for booleans.
90826         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90827
90828         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90829         sometimes returns a positive errno value even when it succeeds.
90830         (print_errno_message) [!LIBC]: Fall back on strerror if
90831         __strerror_r fails.
90832
90833         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90834         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90835         (longest_relative_suffix): New function.
90836         (path_concat): Use it.  Assume first argument is not NULL.
90837         Port to DOS.  Omit redundant separators.
90838         Report an error instead of returning NULL.
90839         Use mempcpy instead of memcpy.
90840         (xpath_concat): Remove: not declared or used.
90841
90842         * lib/same.h: Include <stdbool.h>
90843         (same_name): Return bool, not int.
90844         * lib/same.c (same_name): Likewise.
90845         (errno): Don't declare; we assume C89 or better now.
90846
90847         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90848         if not already defined.
90849
90850         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90851         * lib/dup-safer.c (errno): Likewise.
90852
90853 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90854
90855         Merge from coreutils.
90856         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90857         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90858         * modules/path-concat: Don't depend on strdup.
90859
90860 2004-08-03  Simon Josefsson  <jas@extundo.com>
90861
90862         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90863         * lib/progname.h: Don't include stdbool.h.
90864
90865 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90866
90867         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90868         * MODULES.html.sh (func_all_modules): Remove fatal.
90869
90870 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90871
90872         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90873
90874 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90875
90876         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90877         working.
90878
90879 2004-08-02  Simon Josefsson  <jas@extundo.com>
90880
90881         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90882         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90883         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90884
90885 2004-08-01  Simon Josefsson  <jas@extundo.com>
90886
90887         * lib/xgetdomainname.c: Include stdlib.h, for free().
90888
90889 2004-07-19  Bruno Haible  <bruno@clisp.org>
90890
90891         * MODULES.html.sh (func_all_modules): Add dummy.
90892
90893 2004-07-16  Simon Josefsson  <jas@extundo.com>
90894
90895         * modules/dummy: New file.
90896
90897 2004-07-16  Simon Josefsson  <jas@extundo.com>
90898
90899         * lib/dummy.c: New file.
90900
90901 2004-07-16  Bruno Haible  <bruno@clisp.org>
90902
90903         * lib/backupfile.h: Add extern "C" for C++.
90904         * lib/closeout.h: Likewise.
90905         * lib/copy-file.h: Likewise.
90906         * lib/findprog.h: Likewise.
90907         * lib/full-write.h: Likewise.
90908         * lib/pathname.h: Likewise.
90909         * lib/progname.h: Likewise.
90910         * lib/stpcpy.h: Likewise.
90911         * lib/stpncpy.h: Likewise.
90912         * lib/strcase.h: Likewise.
90913         * lib/strstr.h: Likewise.
90914         * lib/xalloc.h: Likewise.
90915
90916         * lib/mbswidth.h: Add extern "C" for C++.
90917         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90918
90919 2004-07-13  Robert Millan  <robertmh@gnu.org>
90920
90921         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90922
90923 2004-07-09  Simon Josefsson  <jas@extundo.com>
90924
90925         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90926         failed without this.)
90927
90928 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90929
90930         * modules/chown (Files): Add lib/fchown-stub.c, since
90931         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90932
90933 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90934
90935         * lib/fchown-stub.c: New file.
90936
90937 2004-06-24  Jim Meyering  <jim@meyering.net>
90938
90939         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90940
90941 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90942
90943         * modules/argz: Omit "#include".
90944
90945         * MODULES.html.sh (func_all_modules): Add calloc, to match
90946         2004-06-01 addition of calloc module.
90947
90948 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90949
90950         * m4/argz.m4: New file, which is autoupdated from libtool.
90951
90952 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90953
90954         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90955         libtool.
90956
90957 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90958
90959         * config/srclist-update: Don't insist on "USA." before the
90960         close-comment, as libtool omits the period and puts the */ on a
90961         separate line.
90962         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90963         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90964
90965 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90966
90967         * modules/argz: New file.
90968         * MODULES.html.sh (func_all_modules): Add argz.
90969
90970 2004-06-12  Jim Meyering  <jim@meyering.net>
90971         and  Paul Eggert  <eggert@cs.ucla.edu>
90972
90973         * modules/hash (Files): Add lib/xalloc.h.
90974         * modules/pipe (Depends-on): Add wait-process.
90975         * modules/stat (Depends-on): Add xalloc.
90976         * modules/userspec (Files): Add lib/userspec.h.
90977         * modules/xstrto
90978
90979         Upgrade from gettext-0.13.
90980         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90981         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90982         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90983
90984 2004-06-10  Jim Meyering  <jim@meyering.net>
90985
90986         * lib/calloc.c: New file.
90987
90988 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90989
90990         * lib/getdate.y (yylex): Allow space between sign and number.
90991         Problem reported by Dan Jacobson.
90992
90993 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90994
90995         Merge from coreutils CVS.
90996
90997         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90998         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90999         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91000         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91001         xstrtol.m4: Fix copyright date and/or serial number.
91002
91003         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91004         See if we need an fchown replacement.
91005         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91006         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91007         and use the replacement function if we detect either defect.
91008
91009         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91010         gl_UTIMECMP.
91011
91012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91013         and  Jim Meyering  <jim@meyering.net>
91014
91015         Merge from coreutils CVS.
91016
91017         * lib/stat-macros.h: New file, with contents from file-type.h
91018         and coreutils' system.h.
91019         * lib/file-type.c: Include "stat-macros.h".
91020         * lib/file-type.h (file_type): Move all macro definitions to new file,
91021         stat-macros.h.
91022
91023         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91024         Wrap old code with this conditional.
91025         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91026         function that does not dereference symlinks.
91027         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91028
91029         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91030         dependency problems.
91031         (xreadlink): Accept new arg SIZE, for efficiency.
91032         All decls and uses changed.
91033         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91034
91035         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91036         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91037
91038         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91039         sysexits.h.
91040
91041 2004-06-01  Jim Meyering  <jim@meyering.net>
91042
91043         * m4/calloc.m4: New file.
91044
91045 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91046
91047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91048         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91049         Also, fix a typo in a diagnostic.
91050
91051 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91052
91053         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91054         or AC_FUNC_REALLOC.
91055
91056 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91057
91058         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91059         macros to be defined.
91060         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91061         the allocator returns NULL because the requested size is zero.
91062
91063 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91064
91065         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91066         var.  Add comment explaining why libc still defines it.  This
91067         merges the following patch from glibc:
91068         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91069
91070 2004-05-20  Andreas Schwab  <schwab@suse.de>
91071
91072         * m4/free.m4: Replace free if it not known to work, not the other
91073         way round.
91074
91075 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91076
91077         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91078         present in glibc since revision 1.1 of this file.
91079         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91080         obstack_alignment_mask, obstack_alloc, obstack_base,
91081         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91082         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91083         obstack_grow0, obstack_init, obstack_int_grow,
91084         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91085         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91086         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91087         nonexistent functions.
91088
91089 2004-05-18  Karl Berry  <karl@gnu.org>
91090
91091         * config/srclist.txt: break link for vasnprintf.c.
91092
91093 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91094
91095         Port obstack to the AS/400, where pointers are 16 bytes wide and
91096         you cannot cast an integer to a valid pointer.  This patch is
91097         currently waiting to be integrated into glibc; see
91098         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91099
91100         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91101         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91102         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91103         (struct obstack): temp member is now a union of a pointer and
91104         an integer, instead of an integer.  All integer uses changed.
91105         This does not affect the physical layout of struct obstack,
91106         except on hosts (like the AS/400) where the size or alignment of
91107         void * is greater than that of ptrdiff_t.
91108         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91109         __STDC__)]: Store temporary in pointer member of union, not
91110         integer member.
91111         * lib/obstack.c: Include <stddef.h>, for offsetof.
91112         (struct fooalign): Remove; it doesn't need a name.
91113         (union fooround): Change double to long double, and add void *.
91114         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91115         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91116         not a macro.  Hence the values are always int; so remove all
91117         casts-to-int in uses.
91118
91119 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91120
91121         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91122         we can get this patch merged into glibc.
91123
91124 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91125             Paul Eggert  <eggert@cs.ucla.edu>
91126
91127         * m4/argp: Depend on alloca.
91128
91129 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91130             Paul Eggert  <eggert@cs.ucla.edu>
91131
91132         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91133         freecoding.
91134
91135 2004-05-17  Bruno Haible  <bruno@clisp.org>
91136
91137         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91138         precision that consists of a '.' followed by an empty digit string.
91139         Patch by Tor Lillqvist <tml@iki.fi>.
91140
91141 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91142
91143         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91144         for backward compatibility with older code.  We need our own
91145         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91146         it under some other name, and our alloca.h will define it.
91147
91148 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91149             Derek Price  <derek@ximbiot.com>
91150
91151         * lib/alloca.c: Include <alloca.h>, to get our interface.
91152         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91153         include <alloca.h> first.  Use C89 prototype for alloca; this
91154         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91155         Use #elif for simplicity, since we can assume C89 now.
91156         Don't try to source the system alloca.h since it will not be found
91157         and to prevent recursively including its replacement.
91158         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91159         * lib/regex.c: Likewise.
91160
91161 2004-05-16  Derek Price  <derek@ximbiot.com>
91162             Paul Eggert  <eggert@cs.ucla.edu>
91163
91164         getline cleanup.  This changes the getndelim2 API: both order of
91165         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91166         no delimiter).
91167
91168         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91169         interface does that.
91170         (getline): Always use getdelim, so that we don't have two
91171         copies of this code.
91172         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91173         if available.
91174         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91175         (GETNDELIM2_MAXIMUM): New macro.
91176         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91177         instead of the old practice of delim2==0.  All callers changed.
91178         Return -1 on overflow, instead of returning junk.
91179         Do not set *linesize unless allocation succeeds.
91180         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91181         that we include sys/types.h.
91182         * lib/getnline.h: Likewise.
91183         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91184         (getndelim2): Reorder arguments.
91185         * lib/getnline.c (getnline, getndelim):
91186         Don't discard the NMAX argument.
91187         (getnline): Invoke getndelim, to avoid code duplication.
91188         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91189         of (size_t) -1 by callers of the getnline family.
91190
91191 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91192
91193         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91194         Check for gettimeofday.
91195         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91196         Check for settimeofday, stime.
91197
91198 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91199
91200         * lib/nanosleep.c (suspended): Change its type from int to
91201         sig_atomic_t volatile.
91202         (first_call): Make it private to rpl_nanosleep, and have it
91203         be zero initially as that's a bit faster.
91204         (my_usleep): Round up fractional times instead of truncating them,
91205         as this is the usual meaning for 'sleep'.
91206
91207         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91208         doesn't work.
91209         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91210         (ENOSYS): Define if not defined.
91211         (settime): Fall back on stime if it exists and settimeofday fails.
91212         But don't bother with fallbacks if a method fails with errno == EPERM.
91213
91214 2004-05-11  Jim Meyering  <jim@meyering.net>
91215
91216         Prior to this change, the save_cwd caller required read access to the
91217         current directory on most systems (ones with the fchdir function).
91218
91219         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91220         fails, try write-only, and finally, resort to using xgetcwd.
91221
91222 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91223
91224         * lib/obstack.c, obstack.h: Import changes from libc.
91225
91226 2004-04-28  Bruno Haible  <bruno@clisp.org>
91227
91228         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91229         also implicitly appends .exe to executables.
91230         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91231         accepts Windows pathnames.
91232         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91233         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91234         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91235         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91236         Reported by Derek Robert Price <derek@ximbiot.com>.
91237
91238 2004-04-21  Karl Berry  <karl@gnu.org>
91239
91240         * config/srclist.txt (localcharset.c): break sync.
91241
91242 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91243
91244         * m4/host-os.m4: Add a copyright notice.
91245
91246 2004-04-20  Jim Meyering  <jim@meyering.net>
91247
91248         Change UTILS_ to gl_ in AC_DEFINE'd names.
91249         Change utils_- and jm_-prefixed variables, too.
91250         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91251         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91253
91254         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91255         Don't emit trailing blanks.
91256         Also rename jm_-prefixed variables to have gl_ prefix.
91257
91258         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91259         Also rename jm_-prefixed variables to have gl_ prefix.
91260
91261         * m4/jm-macros.m4: Reflect the renamings.
91262         * m4/prereq.m4: Likewise.
91263
91264 2004-04-20  Jim Meyering  <jim@meyering.net>
91265
91266         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91267         memory.
91268
91269 2004-04-20  Jim Meyering  <jim@meyering.net>
91270             Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91273         memory when realloc fails.
91274
91275 2004-04-19  Jim Meyering  <jim@meyering.net>
91276
91277         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91278         now that readutmp.c may call `free (0)'.
91279
91280 2004-04-19  Bruno Haible  <bruno@clisp.org>
91281
91282         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91283         * m4/inttypes_h.m4: Likewise.
91284         * m4/stdint_h.m4: Likewise.
91285         * m4/intmax_t.m4: Likewise.
91286         * m4/uintmax_t.m4: Likewise.
91287
91288 2004-04-18  Jim Meyering  <jim@meyering.net>
91289
91290         * m4/prereq.m4: Don't forbid jm_ prefix.
91291
91292         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91293         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91294         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91295         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91296         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91297         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91298         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91299         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91300         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91301         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91302         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91303         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91304         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91305         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91306         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91307         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91308         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91309         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91310         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91311
91312 2004-04-18  Jim Meyering  <jim@meyering.net>
91313
91314         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91315         failure, don't leak memory and do call END_UTMP_ENT.
91316
91317 2004-04-16  Jim Meyering  <jim@meyering.net>
91318
91319         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91320         coreutils' stat program.
91321         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91322
91323 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91324
91325         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91326         C89.
91327         (CHAR_BIT): Remove, since we assume C89.
91328         Include <stdint.h> if available, as per current Autoconf CVS advice.
91329
91330 2004-03-31  Jim Meyering  <jim@meyering.net>
91331
91332         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91333         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91334         * m4/xalloc.m4: Likewise.
91335
91336 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91337
91338         Merge from coreutils.
91339
91340         * m4/inttostr.m4: New file.
91341         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91342         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91343         Require gl_CLOCK_TIME.
91344         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91345
91346 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91347
91348         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91349         not bool, to be more consistent with Unix conventions.
91350         Suggested by Bruno Haible.
91351
91352         Merge from coreutils.
91353
91354         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91355         * lib/umaxtostr.c: New files.
91356
91357         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91358         the usual <time.h> dance.
91359         (get_date): Change signature to support fractional time stamps.
91360         All callers changed.
91361         * lib/getdate.y: Include "getdate.h" first, as we can now
91362         assume C89 and don't need to worry about 'const'.
91363         Similarly, include "unlocked-io.h" near start, not in middle.
91364         Include <limits.h>.
91365         (textint.value): Use long int rather than int.
91366         (textint.digits): Use size_t rather than int.
91367         (BILLION, LOG10_BILLION): New constants.
91368         (parser_control): New member rel_ns.  Members day_ordinal,
91369         time_zone, month, day, hour, minutes, rel_year, rel_month,
91370         rel_day, rel_hour, rel_minutes, rel_seconds
91371         are now long int, not int.  Member seconds is now struct timespec,
91372         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91373         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91374         not int.
91375         (%union.intval): Now long int, not int.
91376         New member timespec.
91377         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91378         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91379         (spec): Now is a timespec or an item list.
91380         (timespec, items): New nonterminals.
91381         (time, rel, relunit, number, get_date):
91382         Add support for fractional seconds.
91383         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91384         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91385         (to_hour): First arg is now long int, not int.
91386         (to_year): Returns long int, not int.
91387         Don't treat year -70 like 70.
91388         (tm_diff): Returns long int, not int.
91389         (lookup_word): Use bool instead of int when appropriate.
91390         (yylex): Use size_t for count, not int.
91391         Detect overflow when parsing large integer constants.
91392         Add support for fractions.
91393         (get_date): Make pointers 'const' if possible.
91394         Use more-portable code to detect integer overflow.
91395         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91396         Don't use ctime; it's not reliable if the year has >4 digits.
91397
91398         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91399         This is for compatibility with BSD.
91400
91401         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91402         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91403         From coreutils' system.h.
91404
91405         * lib/userspec.c: Don't include "posixver.h".
91406         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91407         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91408         compatible extension.  Simplify code by removing a boolean int
91409         that was always nonzero if a string was nonnull.
91410
91411 2004-03-30  Jim Meyering  <jim@meyering.net>
91412
91413         Merge from coreutils.
91414
91415         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91416         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91417         on some systems one must include <grp.h> before it.
91418         Reported by Christian Krackowizer.
91419
91420 2004-03-30  Jim Meyering  <jim@meyering.net>
91421
91422         Merge from coreutils.
91423
91424         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91425
91426         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91427         an empty input stream.
91428
91429         * lib/readtokens.c: Include <stdbool.h>.
91430         (readtoken): Use `size_t' rather than int/long.
91431         All callers adjusted.
91432         Use `bool' rather than `int' where appropriate.
91433         Use memset rather than an explicit loop.
91434         Use x2nrealloc rather than xrealloc.
91435         Allow the use of `\0' as a delimiter.
91436         (readtokens): Likewise.
91437         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91438
91439 2004-03-30  Jim Meyering  <jim@meyering.net>
91440
91441         * m4/realloc.m4: Remove file, since now it does no more than
91442         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91443         the `configure.ac' section of module/realloc.
91444         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91445
91446 2004-03-30  Bruno Haible  <bruno@clisp.org>
91447
91448         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91449         nonnull.
91450
91451 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91452
91453         Merge changes to getloadavg.c from coreutils and Emacs.
91454
91455         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91456         Define to an expression, not to the empty string.
91457         Include cloexec.h and xalloc.h.
91458         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91459         Use set_cloexec_flag rather than rolling our own.
91460         * lib/cloexec.c, lib/cloexec.h: New files.
91461
91462 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91463
91464         * m4/cloexec.m4: New file.
91465
91466 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91467
91468         * lib/getopt.h: Sync with libc CVS.
91469
91470 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91471             Bruno Haible  <bruno@clisp.org>
91472
91473         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91474         mbswidth.
91475
91476 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91477             Bruno Haible  <bruno@clisp.org>
91478
91479         * lib/mbswidth.h: Include <wchar.h> only if
91480         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91481         <wchar.h>.
91482         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91483
91484 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91485
91486         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91487         Sync with libc CVS.
91488         * lib/getopt_int.h: New file, also synced from libc.
91489
91490 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91491
91492         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91493         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91494         Bring back getopt.c, getopt.h, getopt1.c.
91495
91496 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91497
91498         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91499         All uses changed.  Check for sa_sigaction member; this fixes
91500         a bug first reported by Jason Andrade in
91501         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91502
91503 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91504
91505         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91506         '#if' expressions.  Unlike the code it replaces, it does not
91507         depend on (defined _SC_PAGESIZE).  However, it does depend on
91508         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91509         first reported by Jason Andrade in
91510         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91511
91512 2004-02-25  Simon Josefsson  <jas@extundo.com>
91513
91514         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91515
91516 2004-02-25  Simon Josefsson  <jas@extundo.com>
91517
91518         * lib/strdup.h: New file.
91519         * lib/strdup.c: Include it.
91520         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91521         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91522
91523 2004-02-23  Karl Berry  <karl@gnu.org>
91524
91525         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91526         (from fencepost.gnu.org:/gd/gnuorg).
91527
91528 2004-02-23  Karl Berry  <karl@gnu.org>
91529
91530         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91531         * config/srclist.txt: add maintain/standards documents.
91532
91533 2004-02-18  Bruno Haible  <bruno@clisp.org>
91534
91535         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91536         Reported by Derek Robert Price <derek@ximbiot.com>.
91537
91538 2004-02-16  Karl Berry  <karl@gnu.org>
91539
91540         * config/mkinstalldirs, install-sh: update from automake.
91541
91542 2004-02-06  Karl Berry  <karl@gnu.org>
91543
91544         * m4/po.m4: update from gettext 0.14.1.
91545
91546 2004-02-06  Karl Berry  <karl@gnu.org>
91547
91548         * lib/config.charset: update from gettext 0.14.1.
91549
91550 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91551
91552         Add comments and code, prompted by suggestions from Bruno Haible
91553         for sh-quote.
91554         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91555         describing the enum quoting_style values.
91556         * lib/quotearg.c (quotearg_alloc): New function.
91557         (quotearg_buffer_restyled): Treat lone { and } as special.
91558         Treat = as special.  Work around bug with older shells
91559         that "see" a '\' that is really the 2nd byte of a multibyte char.
91560         Quote empty string with shell_quoting_style.
91561
91562 2004-02-03  Bruno Haible  <bruno@clisp.org>
91563
91564         * m4/pipe.m4: New file, from GNU gettext.
91565
91566 2004-02-03  Bruno Haible  <bruno@clisp.org>
91567
91568         * lib/pipe.h: New file, from GNU gettext.
91569         * lib/pipe.c: New file, from GNU gettext.
91570
91571 2004-01-27  Bruno Haible  <bruno@clisp.org>
91572
91573         * m4/execute.m4: New file, from GNU gettext.
91574
91575 2004-01-27  Bruno Haible  <bruno@clisp.org>
91576
91577         * lib/execute.h: New file, from GNU gettext.
91578         * lib/execute.c: New file, from GNU gettext.
91579         * lib/w32spawn.h: New file, from GNU gettext.
91580
91581 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91582
91583         Merge from diffutils.
91584
91585         * lib/file-type.c (file_type): Add typed memory objects.
91586         * lib/file-type.h (S_TYPEISTMO): New macro.
91587
91588         * lib/c-stack.h (c_stack_action): Remove argv argument.
91589         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91590         (die): Don't calculate message unless segv_action returns.
91591         (get_stack_location, min_address_from_argv, max_address_from_argv,
91592         volatile stack_base, volatile_stack_size): Remove.
91593         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91594         that every segmentation violation is a stack overflow.  (Ouch!)
91595         See Debian bug 136249 (still outstanding) for more info about why
91596         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91597
91598 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91599
91600         Exit-status fix from coreutils.
91601
91602         Use exit_failure consistently in place of EXIT_FAILURE,
91603         so that program exit statuses are consistent on failure.
91604
91605         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91606         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91607         * lib/argmatch.h: Comment fix to match the above.
91608         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91609         Now a macro referring to exit_failure, instead of a separate
91610         variable.  Include "exitfail.h" to get it.
91611         * lib/xstrtol.h: Include "exitfail.h".
91612         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91613
91614         * lib/long-options.c (parse_long_options): Use prototype
91615         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91616         for clarity.
91617
91618 2004-01-21  Jim Meyering  <jim@meyering.net>
91619
91620         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91621         so as not to conflict with a different-sized __mktime_internal
91622         function in GNU libc.
91623         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91624         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91625
91626 2004-01-20  Karl Berry  <karl@gnu.org>
91627
91628         * config/config.guess: update from config.
91629
91630         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91631
91632 2004-01-20  Bruno Haible  <bruno@clisp.org>
91633
91634         Safer stack allocation.
91635         * lib/setenv.c: Include allocsa.h.
91636         (alloca): Remove fallback definition.
91637         (freea): Remove macro.
91638         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91639         instead of freea.
91640
91641 2004-01-20  Bruno Haible  <bruno@clisp.org>
91642
91643         * m4/eealloc.m4: New file, from GNU gettext.
91644
91645 2004-01-20  Bruno Haible  <bruno@clisp.org>
91646
91647         * m4/allocsa.m4: New file, from GNU gettext.
91648
91649 2004-01-20  Bruno Haible  <bruno@clisp.org>
91650
91651         * lib/xallocsa.h: New file, from GNU gettext.
91652         * lib/xallocsa.c: New file, from GNU gettext.
91653
91654 2004-01-20  Bruno Haible  <bruno@clisp.org>
91655
91656         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91657
91658 2004-01-20  Bruno Haible  <bruno@clisp.org>
91659
91660         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91661         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91662         specially.
91663
91664 2004-01-20  Bruno Haible  <bruno@clisp.org>
91665
91666         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91667         patch.
91668
91669 2004-01-20  Bruno Haible  <bruno@clisp.org>
91670
91671         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91672
91673 2004-01-20  Bruno Haible  <bruno@clisp.org>
91674
91675         * lib/eealloc.h: New file.
91676
91677 2004-01-20  Bruno Haible  <bruno@clisp.org>
91678
91679         * lib/binary-io.h: Avoid warnings on Cygwin.
91680
91681 2004-01-20  Bruno Haible  <bruno@clisp.org>
91682
91683         * lib/allocsa.h: New file, from GNU gettext.
91684         * lib/allocsa.c: New file, from GNU gettext.
91685
91686 2004-01-18  Karl Berry  <karl@gnu.org>
91687
91688         * doc/gpl.texi, doc/lgpl.texi: new files.
91689
91690 2004-01-18  Karl Berry  <karl@gnu.org>
91691
91692         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91693         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91694
91695 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91696
91697         Merge from coreutils.
91698
91699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91700         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91701         (gl_DEFAULT_POSIX2_VERSION): Move
91702         the documentation from 'configure' into 'config.hin',
91703         so that 'configure --help' isn't burdened by it and
91704         we don't have to worry about its formatting there.
91705         Reword the documentation so that it's more succinct
91706         and can be run together into a single paragraph.
91707         * m4/same.m4 (gl_SAME): Check for pathconf.
91708
91709 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91710
91711         Merge from coreutils.
91712
91713         * lib/posixver.c: Include posixver.h.
91714
91715         * lib/same.c: Include <stdbool.h>, <limits.h>.
91716         (_POSIX_NAME_MAX): Define if not defined.
91717         (MIN): New macro.
91718         (same_name): If file names are silently truncated, report
91719         that the file names are the same if they are the same after
91720         the silent truncation.
91721
91722         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91723         conversion function.
91724         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91725         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91726         longer needed.
91727
91728 2004-01-15  Jim Meyering  <jim@meyering.net>
91729
91730         Merge from coreutils.
91731
91732         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91733         if no library is required.
91734         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91735         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91736         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91737         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91738         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91739         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91740         value, $ac_cv_search_crypt, if it's "none required".
91741         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91742         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91743         not gl_FUNC_GETLOADAVG.
91744         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91745         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91746
91747 2004-01-15  Jim Meyering  <jim@meyering.net>
91748
91749         Merge from coreutils.
91750
91751         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91752         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91753         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91754
91755         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91756         optional configure-time default.
91757
91758         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91759
91760         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91761
91762 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91763
91764         Merge from coreutils.
91765
91766         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91767         value, $ac_cv_search_nanosleep, if it's "none required".
91768
91769 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91770
91771         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91772         with like-named macro in fnmatch.c.
91773         (EXT): Use an internal constant instead.
91774
91775         Merge fnmatch patches from glibc.
91776         * lib/fnmatch.c (mbsinit): Remove define.
91777         Add libc_hidden_ver (__fnmatch, fnmatch).
91778         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91779         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91780
91781 2004-01-14  Karl Berry  <karl@gnu.org>
91782
91783         * config/install-sh: update from automake.
91784
91785 2004-01-13  Karl Berry  <karl@gnu.org>
91786
91787         * config/install-sh: update from automake.
91788
91789 2004-01-09  Karl Berry  <karl@gnu.org>
91790
91791         * config/install-sh: update from automake.
91792
91793 2004-01-05  Karl Berry  <karl@gnu.org>
91794
91795         * config/config.{sub,guess}: update from config.
91796
91797 2003-12-31  Karl Berry  <karl@gnu.org>
91798
91799         * config/depcomp: update from automake.
91800
91801 2003-12-14  Karl Berry  <karl@gnu.org>
91802
91803         * lib/config.charset: update from gettext-runtime.
91804
91805 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91808         Bug reported by Alfred M. Szmidt.
91809
91810 2003-12-03  Bruno Haible  <bruno@clisp.org>
91811
91812         * m4/gettext.m4: Upgrade from gettext-0.13.
91813         * m4/po.m4: Upgrade from gettext-0.13.
91814         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91815         * m4/intmax.m4: New file, from gettext-0.13.
91816         * m4/printf-posix.m4: New file, from gettext-0.13.
91817
91818 2003-11-29  Karl Berry  <karl@gnu.org>
91819
91820         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91821
91822 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91823             Bruno Haible  <bruno@clisp.org>
91824
91825         * lib/printf-parse.h: Don't include sys/types.h.
91826         (ARG_NONE): New macro.
91827         (char_directive): Change type of *arg_index fields to size_t.
91828         * lib/printf-parse.c: Don't include sys/types.h.
91829         (SSIZE_MAX): Remove macro.
91830         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91831         Remove unnecessary overflow check.
91832         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91833         fields.
91834
91835 2003-11-25  Bruno Haible  <bruno@clisp.org>
91836
91837         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91838
91839 2003-11-25  Bruno Haible  <bruno@clisp.org>
91840
91841         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91842         gt_TYPE_SSIZE_T.
91843
91844 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91845
91846         * modules/alloca: Remove dependency on xalloc.
91847
91848 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91849
91850         * lib/alloca.c: Remove dependency on xalloc module.
91851         (xalloc_die): Remove.
91852         (memory_full) [!defined emacs]: New macro.
91853         [!defined emacs]: Don't include xalloc.h.
91854         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91855         address arithmetic overflows.  Change datatypes a bit to avoid
91856         unnecessary casts.
91857
91858 2003-11-22  Jim Meyering  <jim@meyering.net>
91859
91860         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91861         s/size/size_t/.
91862
91863 2003-11-21  Karl Berry  <karl@gnu.org>
91864
91865         * config/config.{sub,guess}: update from config.
91866
91867 2003-11-18  Karl Berry  <karl@gnu.org>
91868
91869         * config/config.{sub,guess}: update from config.
91870
91871         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91872
91873 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91874
91875         * README: Mention that S+T cannot overflow if S is the size of
91876         an existing object and T is sufficiently small.
91877
91878 2003-11-17  Jim Meyering  <jim@meyering.net>
91879
91880         On systems without utime and without a utimes function capable of
91881         dealing with a NULL struct utimbuf* argument, this utime replacement
91882         could -- in unusual circumstances -- leak a file descriptor.
91883         * lib/utime.c: Include <unistd.h> and <errno.h>.
91884         (utime_null): Be sure to close `fd' and to preserve errno.
91885         Reported by Geoff Collyer via Arnold Robbins.
91886
91887 2003-11-17  Bruno Haible  <bruno@clisp.org>
91888
91889         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91890         (Depends-on): Add xsize.
91891
91892 2003-11-17  Bruno Haible  <bruno@clisp.org>
91893
91894         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91895
91896 2003-11-17  Bruno Haible  <bruno@clisp.org>
91897
91898         * lib/vasnprintf.c (alloca): Remove fallback definition.
91899         (freea): Remove definition.
91900         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91901         Reported by Paul Eggert.
91902
91903 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91904             Bruno Haible  <bruno@clisp.org>
91905
91906         Protect against address arithmetic overflow.
91907         * lib/printf-args.h: Include stddef.h.
91908         (arguments): Change type of field 'count' to size_t.
91909         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91910         'unsigned int' where appropriate.
91911         * lib/printf-parse.h: Include sys/types.h.
91912         (char_directive): Change type of *arg_index fields to ssize_t.
91913         (char_directives): Change type of fields 'count', max_*_length to
91914         size_t.
91915         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91916         (SSIZE_MAX): Define fallback value.
91917         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91918         instead of 'int' where appropriate. Check a_allocated, d_allocated
91919         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91920         * lib/vasnprintf.c: Include xsize.h.
91921         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91922         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91923         overflow. Avoid wraparound when converting a width or precision from
91924         decimal to binary.
91925
91926 2003-11-16  Bruno Haible  <bruno@clisp.org>
91927
91928         Update from GNU gettext.
91929         * lib/printf-parse.c: Generalize to it can be compiled for wide
91930         strings.
91931         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91932         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91933         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91934         SNPRINTF): New macros.
91935         Don't include <alloca.h> if the file is used inside libintl.
91936         (local_wcslen): New function, for Solaris 2.5.1.
91937         (VASNPRINTF): Use it instead of wcslen.
91938
91939 2003-11-16  Bruno Haible  <bruno@clisp.org>
91940
91941         * lib/xsize.h (xmax): New function.
91942         (xsum, xsum3, xsum4): Declare as "pure" functions.
91943
91944 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91945
91946         * modules/xalloc (Files): Undo latest change, since xalloc.h
91947         no longer needs SIZE_MAX or PTRDIFF_MAX.
91948
91949 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91950
91951         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91952         gl_PTRDIFF_MAX.
91953
91954 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91955
91956         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91957         "return", to pacify some unknown compiler.  Problem reported
91958         by Joerg Schilling.
91959
91960 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91961
91962         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91963         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91964         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91965         heuristic is just as accurate as far as we know, and it removes a
91966         dependency on size_max.m4 and ptrdiff_max.m4.
91967
91968 2003-11-11  Bruno Haible  <bruno@clisp.org>
91969
91970         * modules/xsize (Files): Add m4/size_max.m4.
91971         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91972
91973 2003-11-11  Bruno Haible  <bruno@clisp.org>
91974
91975         * m4/size_max.m4: New file.
91976         * m4/ptrdiff_max.m4: New file.
91977         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91978         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91979         (gl_XALLOC): Invoke it.
91980
91981 2003-11-11  Bruno Haible  <bruno@clisp.org>
91982
91983         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91984         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91985         defined.
91986
91987 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91988
91989         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91990         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91991         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91992         From Bruno Haible.
91993         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91994         not (size_t) -1, since it's defined here.
91995
91996 2003-11-09  Karl Berry  <karl@gnu.org>
91997
91998         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91999
92000 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92001
92002         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92003         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92004         Reject sizes of exactly SIZE_MAX bytes.
92005         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92006         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92007
92008 2003-11-05  Bruno Haible  <bruno@clisp.org>
92009
92010         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92011         SIZE_MAX defined in <limits.h> on Solaris.
92012
92013 2003-11-04  Jim Meyering  <jim@meyering.net>
92014
92015         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92016         variable names, rather than @VAR@.
92017         * modules/poll: Likewise.
92018
92019 2003-11-04  Bruno Haible  <bruno@clisp.org>
92020
92021         * modules/xsize: New file.
92022         * modules/linebreak: Depend on xsize.
92023         * MODULES.html.sh (func_all_modules): Add xsize.
92024
92025 2003-11-04  Bruno Haible  <bruno@clisp.org>
92026
92027         * m4/xsize.m4: New file.
92028
92029 2003-11-04  Bruno Haible  <bruno@clisp.org>
92030
92031         * lib/xsize.h: New file.
92032         * lib/linebreak.c: Include xsize.h.
92033         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92034         argument for overflow.
92035         Suggested by Paul Eggert.
92036
92037 2003-11-03  Karl Berry  <karl@gnu.org>
92038
92039         * config/config.{guess,sub}: update from config.
92040
92041 2003-11-03  Jim Meyering  <jim@meyering.net>
92042
92043         * modules/userspec (lib_SOURCES): Add userspec.h.
92044         (Include): Add "userspec.h".
92045         Improve description.
92046
92047 2003-11-03  Jim Meyering  <jim@meyering.net>
92048
92049         * lib/userspec.c: Include "userspec.h".
92050         * lib/userspec.h: New file.
92051
92052 2003-11-03  Bruno Haible  <bruno@clisp.org>
92053
92054         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92055
92056 2003-11-03  Bruno Haible  <bruno@clisp.org>
92057
92058         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92059         available, to avoid (extremely rare) race condition.
92060         Suggested by Paul Eggert.
92061
92062 2003-11-02  Karl Berry  <karl@gnu.org>
92063
92064         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92065
92066 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92067
92068         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92069         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92070         (read_filesystem_list): Set and use me_type_malloced.
92071         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92072         whatever the type happens to be), for brevity and consistency.
92073         Check for size calculation overflow on Alphas running OSF/1.
92074
92075 2003-10-31  Jim Meyering  <jim@meyering.net>
92076
92077         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92078
92079         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92080
92081 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92082             Bruno Haible  <bruno@clisp.org>
92083
92084         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92085         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92086
92087 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92088
92089         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92090         netbsd*-gnu*.  Suggested by Robert Millan.
92091
92092 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92093
92094         * modules/group-member: Depend on stdbool.
92095
92096 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92097
92098         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92099
92100 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92101
92102         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92103         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92104         after the 'gnu' in these cases.  This fixes some bugs in the
92105         previous change, and is based on suggestions by Robert Millan.
92106
92107 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92108
92109         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92110         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92111         no longer needed.
92112         * lib/quotearg.c (quotearg_n_options): Use it.
92113         * lib/group-member.c: Include <stdbool.h>.
92114         (free_group_info): Arg is now const *; don't free arg.
92115         (get_group_info): Now returns bool and accepts struct group_info *,
92116         rather than returning a malloc'ed struct group_info *.
92117         All uses changed.  Check for overflow in internal size calculation.
92118
92119         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92120         rather than xmalloc/xrealloc.
92121         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92122         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92123         conformance bug: the old code used a pointer after freeing the
92124         storage that it addressed.
92125         * lib/hash.c (hash_initialize): Simplify the code by using
92126         xalloc_oversized rather than doing it by hand.
92127         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92128         the buffer preserved.  Use free and xmalloc instead.
92129         * lib/quotearg.c (quotearg_n_options): Likewise.
92130         Use a simpler test for size overflow.  Don't use xalloc_oversized
92131         because unsigned int might be wider than size_t (!); this suggests
92132         that we should switch from unsigned int to size_t for slot numbers.
92133
92134 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92135
92136         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92137         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92138         NetBSD kernels.  Requested by Richard Stallman.
92139
92140 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92141
92142         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92143         to allocate the returned structure.  Do not allocate a subarray,
92144         as x2nrealloc will do that.
92145         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92146         instead of xnrealloc.
92147         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92148
92149 2003-10-27  Bruno Haible  <bruno@clisp.org>
92150
92151         * lib/stdbool_.h: Better support for BeOS.
92152
92153 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92154
92155         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92156         now uses inline.
92157
92158 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92159
92160         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92161         callers that want to do their own size-overflow checking.  Include
92162         <stdbool.h>, since xalloc_oversized returns bool.
92163         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92164         to use xalloc_oversized.
92165
92166         Add two functions x2realloc, x2nrealloc, for programs that grow
92167         arrays dynamically by doubling their sizes.
92168         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92169         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92170         New functions.
92171
92172         Port to C99 semantics for 'inline' of external functions.
92173         Bug reported by Bruno Haible.
92174         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92175         with the old contents of xnmalloc.
92176         (xnmalloc, xmalloc): Use it.
92177         (xnrealloc_inline): New static inline function,
92178         with the old contents of xnrealloc.
92179         (xnrealloc, xrealloc): Use it.
92180
92181         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92182         that.
92183
92184 2003-10-26  Karl Berry  <karl@gnu.org>
92185
92186         * config/srclist.txt (COPYING.DOC): no longer available from
92187         /gd/gnuorg; don't know where the ultimate source is.
92188
92189 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92190
92191         Fix several address-calculation bugs in the hash modules,
92192         plus some minor code cleanup.
92193
92194         * lib/hash.h: Include <stdbool.h>, for bool.
92195         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92196         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92197         hash_get_n_entries, hash_get_max_bucket_length,
92198         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92199         hash_rehash): Use size_t rather than unsigned.
92200         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92201         hash_get_n_buckets_used, hash_get_n_entries,
92202         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92203         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92204         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92205         Likewise.
92206         (SIZE_MAX): Define if not defined.
92207         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92208         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92209         hash_print):
92210         Use const * when possible.
92211         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92212         (check_tuning): Fix bug: if tuning parameters were very close to
92213         0 or 1, rounding errors could have caused subscript violations.
92214         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92215         (hash_initialize): Add 'fail:' label
92216         to free table and return NULL, and use it to simplify code.
92217         Use calloc rather than clearing the storage ourself.
92218         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92219         buffer size calculations.
92220         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92221         Include <stddef.h>, for size_t.
92222         * lib/hash-pjw.c (hash_pjw): Likewise.
92223         Switch to method described by Bruno Haible.
92224         Include <limits.h>, for CHAR_BIT.
92225         (SIZE_BITS): New macro.
92226
92227 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92228
92229         * m4/getline.m4 (AM_FUNC_GETLINE):
92230         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92231         hosts.  Problem reported by Derek Robert Price in
92232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92233         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92234         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92235
92236 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92237
92238         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92239         ceiling the allocation at NMAX bytes rather than silently
92240         discarding input bytes before NMAX is reached.  This makes
92241         a difference only if NMAX exceeds SIZE_MAX / 2.
92242
92243         * lib/obstack.c: Merge from glibc.
92244         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92245         Add libc_hidden_def (_obstack_newchunk).
92246         (_obstack_free) [! defined _LIBC]: Remove.
92247         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92248         a clone of the function body.
92249         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92250         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92251
92252         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92253         glibc.
92254         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92255         arg to memcpy.
92256
92257         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92258         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92259         Don't use lvalue casts, as GCC plans to remove support for them
92260         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92261         was also present in the non-GCC version, indicating that this
92262         code had always been buggy and had never been widely used.
92263         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92264         Use the fast variant of each macro, rather than copying the
92265         definiens of the fast variant; that way, we'll be more likely to
92266         catch future bugs in the fast variants.
92267
92268 2003-10-20  Bruno Haible  <bruno@clisp.org>
92269
92270         * modules/wait-process: New file.
92271         * MODULES.html.sh (func_all_modules): Add wait-process.
92272
92273 2003-10-20  Bruno Haible  <bruno@clisp.org>
92274
92275         * m4/wait-process.m4: New file.
92276
92277 2003-10-20  Bruno Haible  <bruno@clisp.org>
92278
92279         * lib/wait-process.h: New file, from GNU gettext.
92280         * lib/wait-process.c: New file, from GNU gettext.
92281
92282 2003-10-19  Jim Meyering  <jim@meyering.net>
92283
92284         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92285         HPUX 10.20.
92286
92287 2003-10-18  Karl Berry  <karl@gnu.org>
92288
92289         * config/config.guess: update from config.
92290
92291 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92292
92293         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92294         (getgroups): First arg is int, not size_t.
92295         Don't let 'free' mangle errno.
92296
92297 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92298
92299         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92300
92301 2003-10-16  Karl Berry  <karl@gnu.org>
92302
92303         * config/config.{guess,sub}: update from config.
92304
92305 2003-10-16  Jim Meyering  <jim@meyering.net>
92306
92307         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92308         memcpy.
92309
92310 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92313         (SIZE_MAX): Remove.
92314         (new_exclude, add_exclude_file): Initial size no longer needs to
92315         be a power of 2.
92316         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92317         our own address arithmetic overflow checking.
92318
92319         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92320         (fnmatch): Do not alloca more than 2000 wide characters;
92321         instead, use malloc for large buffers.
92322         Check for address arithmetic overflow, and return -1
92323         with errno set to ENOMEM in that case.
92324         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92325         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92326         instead, return -1.  Check for address arithmetic overflow.
92327
92328 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92329
92330         Handle invalid suffixes and overflow independently, so that
92331         callers can treat them independently as needed.  Fix some bugs in
92332         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92333         suffix for a human-readable blocksize.  The major caller-visible
92334         change is the addition of a new
92335         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92336         that both overflow and suffix chars were found.
92337
92338         * lib/human.c (humblock): Don't check separately for invalid suffix
92339         char; that is xstrtoumax's job (now that its bug is fixed).
92340         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92341         INTMAX_MAX]: New macros.
92342         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92343         TYPE_MAXIMUM): New macros.
92344         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92345         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92346         if overflow occurs, as it's what __strtol does and it's more useful
92347         in practice.
92348         (__xstrtol): If __strtol reports some error other than ERANGE,
92349         reflect it to the caller as LONGINT_INVALID.  If it reports
92350         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92351         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92352         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92353         value.
92354         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92355         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92356         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92357         [defined UINTMAX_MAX]: New macros.
92358
92359 2003-10-14  Bruno Haible  <bruno@clisp.org>
92360
92361         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92362
92363 2003-10-14  Bruno Haible  <bruno@clisp.org>
92364
92365         * m4/sig_atomic_t: New file, from GNU gettext.
92366         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92367
92368 2003-10-14  Bruno Haible  <bruno@clisp.org>
92369
92370         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92371         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92372         Also use volatile where needed.
92373
92374 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92375
92376         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92377         Change maintainer from Bruno Haible to 'all'.
92378
92379 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92380
92381         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92382
92383 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92384
92385         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92386         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92387         and define in terms of the other primitives.
92388         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92389         (SIZE_MAX): Define if not already defined.
92390         (array_size_overflow): New function.
92391         (xalloc_die): Abort instead of exiting if 'error' returns.
92392         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92393         (xmalloc, xrealloc): Use them.
92394         (xcalloc): Check for address arithmetic overflow.
92395         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92396         a bit faster than strcpy.
92397
92398 2003-10-10  Simon Josefsson  <jas@extundo.com>
92399
92400         * modules/argp (Depends-on): Add restrict and strcase.
92401
92402 2003-10-10  Simon Josefsson  <jas@extundo.com>
92403
92404         * m4/argp.m4: Add AC_C_INLINE.
92405
92406 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92407
92408         Merge getpass from libc, plus a few fixes.
92409
92410         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92411         Include <stdbool.h>.
92412         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92413         __fsetlocking to empty.
92414         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92415         do include <bits/libc-lock.h>.
92416         Do not include <fcntl.h>; not needed.
92417         [_LIBC]: Include <wchar.h>.
92418         (NOTCANCEL_MODE): New macro.
92419         (flockfile, funlockfile) [_LIBC]: New macros.
92420         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92421         [!_LIBC]: New macros.
92422         (call_fclose): New function.
92423         (getpass): Use it.  Save tty stream separately; this simplifies the
92424         code and makes it more reliable if stdin happens to equal stdout.
92425         Invoke __fsetlocking on tty.
92426         Handle thread cancellation if needed.
92427         Namespace cleanup (use __tcgetattr, __getline).
92428         Use bool for Booleans.
92429         [USE_IN_LIBIO]: Handle wide streams.
92430         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92431         stream might go where.
92432
92433         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92434         doesn't have to include <stdio.h> before us.
92435         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92436         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92437         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92438         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92439         if not declared, so that we can use getpass.c code from libc without
92440         rewriting it.
92441         (flockfile, ftrylockfile, funlockfile): New macros.
92442
92443 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92444
92445         * modules/getpass: Depend on stdbool.
92446
92447 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92448
92449         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92450
92451 2003-10-07  Karl Berry  <karl@gnu.org>
92452
92453         * config/config.{guess,sub}: update from config.
92454
92455 2003-10-06  Jim Meyering  <jim@meyering.net>
92456             Bruno Haible  <bruno@clisp.org>
92457
92458         This lets translators provide better translations for the
92459         "Written by ..." part of --version output.
92460         * lib/version-etc.h: Include stdarg.h.
92461         (version_etc_copyright): Declare as readonly.
92462         (version_etc): Make this function variadic with a NULL-terminated list
92463         of author name strings.
92464         (version_etc_va): New declaration.
92465         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92466         (version_etc_copyright): Declare as readonly.
92467         (version_etc_va): New function. Provide a different translatable string
92468         for each possible number of authors < 10. Abbreviate when there are 10
92469         authors or more.
92470         (version_etc): Make this function variadic. Call version_etc_va.
92471         Suggestion from Gary V. Vaughan.
92472
92473         * lib/long-options.h (parse_long_options): Change prototype: the
92474         authors string is moved to the end and becomes variadic.
92475         * lib/long-options.c: Include stdarg.h.
92476         (parse_long_options): Make this function variadic, too.
92477         Call version_etc_va, not version_etc.
92478
92479 2003-10-06  Bruno Haible  <bruno@clisp.org>
92480
92481         * modules/version-etc-2: Remove file.
92482         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92483
92484 2003-10-06  Bruno Haible  <bruno@clisp.org>
92485
92486         * modules/fatal-signal: New file.
92487         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92488
92489 2003-10-06  Bruno Haible  <bruno@clisp.org>
92490
92491         * m4/fatal-signal.m4: New file.
92492         * m4/signalblocking.m4: New file, from GNU gettext.
92493
92494 2003-10-06  Bruno Haible  <bruno@clisp.org>
92495
92496         * lib/version-etc-2.h: Remove file.
92497         * lib/version-etc-2.c: Remove file.
92498
92499 2003-10-06  Bruno Haible  <bruno@clisp.org>
92500
92501         * lib/fatal-signal.h: New file, from GNU gettext.
92502         * lib/fatal-signal.c: New file, from GNU gettext.
92503
92504 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92505
92506         * README: Rework advice for preventing empty .o files.
92507         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92508         not <sys/types.h>.
92509
92510 2003-10-04  Karl Berry  <karl@gnu.org>
92511
92512         * lib/argp*: update from libc.
92513
92514 2003-10-04  Karl Berry  <karl@gnu.org>
92515
92516         * config/config.{guess,sub}: update from config.
92517
92518 2003-10-02  Bruno Haible  <bruno@clisp.org>
92519
92520         * modules/lchown (Include): Add lchown.h.
92521         * modules/time_r (Include): Use "..." syntax.
92522         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92523
92524 2003-10-01  Simon Josefsson  <jas@extundo.com>
92525
92526         * MODULES.html.sh (func_all_modules): Move gethostname from section
92527         'based on' to section 'lacking' POSIX:2001.
92528
92529 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92530
92531         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92532         to output mode on the same stream.
92533
92534 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92535
92536         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92537         Fix arg typo in previous patch.
92538
92539 2003-09-28  Jim Meyering  <jim@meyering.net>
92540
92541         * lib/error.c: Correct cpp indentation.
92542
92543 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92544
92545         * modules/free: New file.
92546
92547 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92548
92549         * m4/free.m4: New file.
92550
92551 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92552
92553         * lib/minmax.h (MIN, MAX)
92554         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92555         Omit the special code that used __typeof__, since we worry that
92556         it could be more trouble than it's worth.  See:
92557         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92558         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92559
92560         * lib/free.c: New file.
92561
92562 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92563
92564         Trivial fixes to Makefile.am parts of module listings.
92565         * modules/strstr: Append strstr.h to lib_SOURCES.
92566         * modules/strcase: Likewise, for strcase.h.
92567
92568 2003-09-27  Karl Berry  <karl@gnu.org>
92569
92570         * config/mkinstalldirs: update from automake.
92571
92572 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92573
92574         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92575         (error_tail): Do not loop, reallocating temporary buffer, since
92576         the output cannot contain more wide characters than the input
92577         contains bytes, the size must be big enough already.  This avoids
92578         one potential size overflow calculation.  Check for size overflow
92579         when calculating temporary buffer size.  Free temporary buffer
92580         when done, if it was allocated with malloc; this plugs a memory
92581         leak.  Remove casts from void * to pointers, that are no longer
92582         needed now that we're assuming C89 or better.
92583
92584         Merge error changes from glibc.
92585
92586         * lib/error.c, error.h: Update copyright notice header to match glibc.
92587         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92588         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92589         Disable cancellation while printing error.
92590         * lib/error.h: Prepend __ to parameter names.
92591
92592 2003-09-26  Jim Meyering  <jim@meyering.net>
92593
92594         * lib/error.c (error_tail): Move some declarations
92595         into inner scope where the local variables are used.
92596
92597 2003-09-26  Bruno Haible  <bruno@clisp.org>
92598
92599         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92600         stpncpy().
92601         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92602
92603 2003-09-26  Bruno Haible  <bruno@clisp.org>
92604
92605         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92606         (stpncpy): Define as alias for gnu_stpncpy.
92607         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92608
92609 2003-09-25  Simon Josefsson  <jas@extundo.com>
92610
92611         * lib/xgetdomainname.h: New file.
92612         * lib/xgetdomainname.c: New file.
92613
92614 2003-09-25  Simon Josefsson  <jas@extundo.com>
92615             Bruno Haible  <bruno@clisp.org>
92616
92617         * modules/getdomainname: New file.
92618         * modules/xgetdomainname: New file.
92619         * MODULES.html.sh (func_all_modules): Add getdomainname,
92620         xgetdomainname.
92621
92622 2003-09-25  Simon Josefsson  <jas@extundo.com>
92623             Bruno Haible  <bruno@clisp.org>
92624
92625         * m4/getdomainname.m4: New file.
92626
92627 2003-09-25  Simon Josefsson  <jas@extundo.com>
92628             Bruno Haible  <bruno@clisp.org>
92629
92630         * lib/getdomainname.h: New file.
92631         * lib/getdomainname.c: New file.
92632
92633 2003-09-25  Karl Berry  <karl@gnu.org>
92634
92635         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92636
92637 2003-09-25  Karl Berry  <karl@gnu.org>
92638
92639         * config/install-sh: update from automake.
92640
92641 2003-09-25  Bruno Haible  <bruno@clisp.org>
92642
92643         * modules/version-etc-2: New file, from modules/version-etc with
92644         modifications.
92645         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92646
92647 2003-09-25  Bruno Haible  <bruno@clisp.org>
92648
92649         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92650         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92651
92652 2003-09-24  Simon Josefsson  <jas@extundo.com>
92653
92654         * modules/xgethostname: Add xgethostname.h.
92655
92656 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92657
92658         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92659         the buffer associated with the argument.  Bug reported by
92660         Simon Josefsson.
92661
92662 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92663
92664         * README: Document assumptions that 'int' is at least 32 bits
92665         wide, that integer arithmetic is 2's complement without overflow,
92666         that there are no holes in integer values, that adding sizes of
92667         two nonoverlapping objects can't overflow, and that all-bits-zero
92668         yields scalar zero.  Fix spelling and capitalization typos.
92669
92670 2003-09-19  Karl Berry  <karl@gnu.org>
92671
92672         * lib/argp.h: update from libc.
92673
92674 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92675
92676         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92677         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92678         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92679
92680 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92681
92682         * gnulib-tool: Use "test -h", not "test -L", for portability
92683         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92684         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92685         (sed_extract_prog): Issue s commands one-by-one, rather than
92686         using \| in one s command.
92687
92688 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92689
92690         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92691         input error, instead of returning NULL the next time we are called
92692         (and therefore losing track of errno).
92693
92694 2003-09-16  Bruno Haible  <bruno@clisp.org>
92695
92696         * gnulib-tool (func_create_testdir): Warn about duplicated
92697         dependencies.
92698
92699 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92700
92701         * modules/argmatch, modules/fatal, modules/obstack,
92702         modules/xalloc, modules/xgethostname: Sort dependencies by
92703         importance, not alphabetically.
92704
92705 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92706
92707         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92708         fails, so that the caller gets the proper errno.
92709
92710         * lib/readutmp.c (read_utmp): Likewise.
92711         Check for fstat error.  Close stream and free storage
92712         when failing.
92713
92714 2003-09-14  Karl Berry  <karl@gnu.org>
92715
92716         * config/srclist.txt (strdup.c): disable for c89 changes.
92717
92718 2003-09-14  Jim Meyering  <jim@meyering.net>
92719
92720         * lib/getloadavg.c: Correct cpp indentation.
92721         * lib/strdup.c: Likewise.
92722         * lib/vasnprintf.c: Likewise.
92723
92724 2003-09-14  Bruno Haible  <bruno@clisp.org>
92725
92726         * modules/fwriteerror: New file.
92727         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92728
92729 2003-09-14  Bruno Haible  <bruno@clisp.org>
92730
92731         * lib/fwriteerror.h: New file.
92732         * lib/fwriteerror.c: New file.
92733
92734 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92735
92736         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92737         modules/xgethostname, modules/xalloc: Depend on exit.
92738
92739 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92740
92741         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92742
92743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92744         and AC_MINIX, too, so that their extensions are available.
92745
92746         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92747         This macro has been superseded by gl_BACKUPFILE.
92748
92749         More patches to assume C89 or better.
92750
92751         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92752
92753         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92754         unconditionally.
92755         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92756         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92757         Include <string.h>, <stdlib.h> unconditionally.
92758         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92759         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92760         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92761         headers or for string.h.
92762         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92763         or strtoul.
92764
92765         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92766         headers.
92767         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92768         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92769         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92770         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92773         memcpy, memset.
92774         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92775         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92776         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92777         strtol.
92778         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92779         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92780         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92781         strtoul.
92782
92783 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92784
92785         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92786         * lib/obstack.c [!defined _LIBC]: Likewise.
92787         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92788         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92789         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92790
92791         More changes to assume C89 or better.
92792
92793         * lib/error.c (error_tail): Assume vprintf.
92794
92795         * lib/argmatch.c (getenv): Remove decl.
92796         * lib/progreloc.c (get_full_program_name): Define via prototype.
92797         * lib/setenv.c (clearenv): Likewise.
92798         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92799         needed.
92800         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92801         (malloc, memcpy): Remove decls.
92802         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92803         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92804         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92805         (memcpy): Remove macro.
92806         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92807         (__P): Remove.  All uses removed.
92808         (PTR): Remove.  All uses changed to void *.
92809         (CHAR_BIT, NULL): Remove.
92810         (spaces, zeros, memset_space, memset_zero)
92811         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92812         Remove.
92813         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92814         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92815         Define with prototype.
92816         Remove now-unnecessary prototype decl.
92817         (extra_args_spec): Assume ANSI C.  All uses changed.
92818         (extra_args_spec_iso): Remove.
92819         (my_strftime, emacs_strftimeu): Define via prototype.
92820         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92821         unconditionally.
92822         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92823         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92824         (strtoul, strtol): Remove decls.
92825         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92826         LONG_MAX): Remove.
92827         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92828         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92829         (LOCALE_PARAM_PROTO): New macro.
92830         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92831         (INTERNAL (strtol), strtol): Define with a prototype.
92832         (PARAMS): Remove.  All uses removed.
92833         * lib/tempname.c: Include <string.h> unconditionally.
92834         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92835         * lib/xgethostname.c (main): Define with a prototype.
92836         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92837         Include <stdlib.h> unconditionally.
92838         (calloc, malloc, realloc, free): Remove decls.
92839         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92840         Include <stdlib.h> unconditionally.  Sort include file names.
92841         (strtod): Remove.
92842         (xstrtod): Define with a prototype.
92843         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92844         (strtol, strtoul): Remove decls.
92845
92846 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92847
92848         More patches to assume C89 or better.
92849         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92850         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92851         string.h, memchr, STDC_HEADERS.
92852
92853 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92854
92855         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92856         Include <stdlib.h>, <string.h> unconditionally.
92857         Remove now-unnecessary cast to char *.
92858         * lib/strnlen.c: Include <string.h> unconditionally.
92859         * lib/yesno.c (yesno): Define with a prototype.
92860
92861 2003-09-11  Bruno Haible  <bruno@clisp.org>
92862
92863         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92864
92865 2003-09-10  Jim Meyering  <jim@meyering.net>
92866
92867         * lib/error.c: Correct indentation of cpp directives.
92868
92869 2003-09-10  Bruno Haible  <bruno@clisp.org>
92870
92871         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92872         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92873         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92874         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92875         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92876         <stdlib.h> and <string.h> checks.
92877         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92878         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92879
92880 2003-09-10  Bruno Haible  <bruno@clisp.org>
92881
92882         * lib/strcspn.c: Include <string.h> unconditionally.
92883         * lib/strpbrk.c: Include <string.h> unconditionally.
92884         * lib/strstr.c: Include <string.h> unconditionally.
92885         * lib/unicodeio.c: Include <string.h> unconditionally.
92886         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92887         * lib/unsetenv.c: Likewise.
92888         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92889         * lib/yesno.c: Include <stdlib.h> unconditionally.
92890         (rpmatch): Add prototype.
92891
92892 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92893
92894         More patches to assume C89 or better.
92895         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92896         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92897         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92898         or for string.h.
92899         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92900         stdlib.h.
92901         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92902         C headers.
92903         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92904         string.h.
92905         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92906         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92907         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92908         or for string.h.
92909         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92910         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92911         C headers.
92912         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92913         memcpy.
92914         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92915         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92916         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92917         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92918         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92919         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92920         string.h, free.
92921         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92922         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92923         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92924         C headers, or for string.h.
92925         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92926         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92927         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92928         headers, memory.h, stdlib.h, string.h, strings.h.
92929         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92930         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92931         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92932         strchr.
92933         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92934         headers, memory.h, string.h.
92935         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92936         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92937         free.
92938         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92939         headers.
92940         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92941         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92942         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92943         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92944         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92945
92946 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92947
92948         More K&R removal.
92949
92950         * lib/acosl.c (main): Use a prototype.
92951         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92952         tanl.c: Likewise.
92953
92954         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92955
92956         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92957         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92958         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92959         with a prototype.
92960         * lib/getopt.c (const): Remove macro.
92961         Include <string.h> unconditionally.
92962         (my_index): Remove; all uses changed to strchr.
92963         (strlen): Remove decl.
92964         (exchange): Remove forward decl; no longer needed.
92965         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92966         Define with prototype.
92967         * lib/getopt1.c (const): Remove macro.
92968         (getopt_long, getopt_long_only, main): Define with prototype.
92969
92970         * lib/getugroups.c: Include <string.h> unconditionally.
92971
92972         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92973         (getusershell, setusershell, endusershell, readname, main):
92974         Define with prototypes.
92975
92976         * lib/group-member.c: Include group-member.h first.
92977         Include <stdlib.h> unconditionally.
92978
92979         * lib/hard-locale.c: Include hard-locale.h first.
92980         Include <stdlib.h>, <string.h> unconditionally.
92981
92982         * lib/hash.c (free, malloc): Remove decls.
92983         Include <stdlib.h> unconditionally.
92984
92985         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92986         (getenv): Do not declare.
92987
92988         * lib/idcache.c: Include <string.h> unconditionally.
92989
92990         * lib/long-options.c: Include long-options.h first, to test interface.
92991         Include <stdlib.h> unconditionally.
92992
92993         * lib/makepath.c: Include makepath.h first, to test interface.
92994         Include <stdlib.h> and <string.h> unconditionally.
92995
92996         * lib/linebuffer.c: Include <stdlib.h>.
92997         (free): Remove decl.
92998
92999         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93000         stddef.h. rpl_malloc returns void *, not char *.
93001         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93002         prototype.
93003
93004         * lib/md5.h: Include <limits.h> unconditionally.
93005         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93006         (__P): Remove; all uses removed.
93007         * lib/md5.c: Include "md5.h" first.
93008         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93009         md5_buffer, md5_process_bytes, md5_process_block):
93010         Define with prototypes.
93011         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93012         * lib/sha.c: Include "sha.h" first.
93013         Include <stdlib.h>, <string.h> unconditionally.
93014
93015         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93016         * lib/memcmp.c (__ptr_t): Likewise.
93017         * lib/memrchr.c (__ptr_t): Likewise.
93018         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93019         Include <string.h> unconditionally.
93020         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93021         * lib/memchr.c: Include <stdlib.h> unconditionally.
93022         * lib/memchr.c (LONG_MAX): Remove.
93023         * lib/memrchr.c (LONG_MAX): Likewise.
93024         * lib/memchr.c (__memchr): Define via a prototype.
93025         * lib/memrchr.c (__memrchr): Likewise.
93026         * lib/memcmp.c (__P): Remove, and remove all uses.
93027         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93028         Remove forward decls; no longer needed.
93029         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93030         Use types required by C89 in prototype.
93031
93032         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93033         * lib/savedir.c: Likewise.
93034         * lib/mkdir.c (free): Remove decl.
93035         * lib/rmdir.c (rmdir): Define with a prototype.
93036         * lib/savedir.c: Include savedir.h first, to test interface.
93037
93038         * lib/mktime.c (STDC_HEADERS): Remove.
93039         Include <stdlib.h>, <string.h> unconditionally.
93040
93041         * lib/modechange.c: Include <stdlib.h> unconditionally.
93042         (malloc): Remove decl.
93043
93044         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93045         (free): Remove decl.
93046
93047         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93048         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93049         (This type really should be intptr_t, but that's a C99ism.)
93050         (_obstack_memcpy): Remove: all uses changed to memcpy.
93051         Include <string.h> unconditionally.
93052         (struct obstack): Assume __STDC__ for types of members
93053         chunkfun, freefun, extra_arg.
93054         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93055         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93056         obstack_begin, obstack_specify_allocation,
93057         obstack_specify_allocation_with_arg, obstack_chunkfun,
93058         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93059         Remove unprototyped decls and the macros that use them.
93060         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93061         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93062         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93063         (defined __STDC__ && __STDC__)]:
93064         Remove nonprototyped code.
93065         Include <stdlib.h> unconditionally.
93066         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93067         _obstack_allocated_p, _obstack_free, obstack_free,
93068         _obstack_memory_used, print_and_abort):
93069         Define using prototypes.
93070         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93071         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93072         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93073         obstack_next_free, obstack_object_size, obstack_room) [0]:
93074         Remove unused, unprototyped code.
93075
93076         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93077
93078         * lib/physmem.c (physmem_total, physmem_available, main): Define
93079         with prototypes.
93080
93081         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93082         (main): Define with a prototype.
93083
93084         * lib/posixver.c (getenv): Remove decl.
93085
93086         * lib/putenv.c (malloc): Returns void *, not char *.
93087         Include <string.h> unconditionally.
93088         (strchr, memcpy, NULL): Do not define.
93089
93090         * lib/readtokens.c: Include readtokens.h first, to test interface.
93091         Include <stdlib.h>, <string.h> unconditionally.
93092         (init_tokenbuffer): Define with a prototype.
93093
93094         * lib/regex.c (PARAMS): Remove.  All uses removed.
93095         All uses of _RE_ARGS removed, too.
93096         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93097         unconditionally.
93098         (bzero): Assume memset exists.
93099         (memcmp, memcpy, NULL): Remove.
93100         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93101         char, or assignments to local vars of type signed char.
93102         (init_syntax_once, PREFIX(extract_number_and_incr),
93103         PREFIX(print_partial_compiled_pattern),
93104         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93105         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93106         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93107         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93108         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93109         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93110         wcs_compile_range, byte_compile_range, truncate_wchar,
93111         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93112         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93113         count_mbs_length, wcs_re_match_2_internal,
93114         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93115         PREFIX(alt_match_null_string_p),
93116         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93117         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93118         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93119         now-unnecessary declaration, if any.
93120         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93121         regcomp, regexec):
93122         Remove now-unnecessary casts among pointer types.
93123         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93124
93125         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93126         (free): Remove decl.
93127
93128         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93129
93130         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93131         (free): Remove decl.
93132
93133         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93134         * lib/xgetcwd.c: Likewise.
93135
93136         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93137         (free): Remove decl.
93138
93139         * lib/strchrnul.c (strchrnul): Define with a prototype.
93140         Fix bug: c_in was not converted to char before searching.
93141
93142         The following changes are not K&R related:
93143
93144         * lib/group-member.h: Include <sys/types.h>, so that this file is
93145         self-contained.
93146         * lib/makepath.h: Likewise.
93147
93148         * lib/getusershell.c (readname, default_index, line_size, readname):
93149         Use size_t, not int, for sizes.
93150         (readname): If the size overflows, report an error instead of
93151         looping forever.
93152
93153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93154
93155         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93156         libc.
93157
93158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93159
93160         * README: New section: portability guidelines.
93161
93162 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93163
93164         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93165         C89 spec.
93166
93167 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93168
93169         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93170
93171 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93172
93173         Assume C89 or better; remove K&R cruft.
93174         A few of these changes were first proposed by Derek Robert Price
93175         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93176
93177         * lib/addext.c: Include <string.h> unconditionally.
93178         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93179         Don't declare getenv or malloc.
93180
93181         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93182         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93183         (NULL): Remove.
93184         (find_stack_direction, alloca): Use prototypes.
93185
93186         * lib/atexit.c (atexit): Define using a prototype.
93187
93188         * lib/basename.c, dirname.c, stripslash.c:
93189         Include <string.h> unconditionally.
93190
93191         * lib/bcopy.c: Include <stddef.h>.
93192         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93193
93194         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93195
93196         * lib/error.h (error, error_at_line, error_print_progname)
93197         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93198         * lib/error.c: Include error.h first, to check interface.
93199         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93200         (VA_START): Remove; all uses changeed to va_start.
93201         (exit, strerror): Remove decls.
93202         (error_print_progname): Prototype uncondionally.
93203         Don't include <errno.h>; no longer needed.
93204         (private_strerror): Remove.
93205         (error_tail): Always define.
93206         (error, error_at_line): Assume C89 or better; always use prototypes.
93207         * lib/fatal.c: Include "fatal.h" first, to test interface.
93208         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93209         (VA_START): Remove; all uses changed to va_start.
93210         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93211         this case.
93212         (exit): Remove decl.
93213         (fatal): Prototype unconditionally.  Assume va_start works.
93214         Abort at end, to pacify gcc.
93215
93216         * lib/euidaccess.c (main): Define with a prototype.
93217
93218         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93219
93220         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93221
93222         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93223         prototypes.
93224         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93225         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93226         (getenv): Remove decl.
93227         (fnmatch): Define using a prototype.
93228         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93229         (FCT): Define using a prototype.
93230
93231         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93232
93233         * lib/gethostname.c: Include <stddef.h>.
93234         (gethostname): Define with prototype.  Length is size_t, not int.
93235
93236 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93237
93238         Assume C89 or better; remove K&R cruft.
93239         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93240         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93241         string.h, getenv, malloc.
93242         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93243         headers.
93244         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93245         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93246         do not check for strerror.
93247         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93248         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93249         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93250         do not check for doprnt or vprintf.
93251         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93252         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93253
93254 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93255
93256         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93257         getversion.c should have been removed then, but was accidentally
93258         preserved.
93259
93260         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93261         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93262
93263 2003-09-08  Karl Berry  <karl@gnu.org>
93264
93265         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93266                 config, forget about prep.
93267
93268         * config/depcomp, missing: update from automake.
93269
93270 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93271
93272         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93273         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93274
93275 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93276
93277         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93278         copy_tm_result.  Bug reported by Simon Josefsson in
93279         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93280
93281 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93282
93283         * m4/time_r.m4: New file.
93284         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93285         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93286         is. Check for timegm declaration.
93287         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93288         Do not check for gmtime_r.
93289         Replace mktime if __mktime_internal does not exist and if mktime
93290         hasn't been replaced already.
93291
93292 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93293
93294         * lib/time_r.c, lib/time_r.h: New files.
93295
93296         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93297         __localtime_r.
93298         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93299         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93300
93301         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93302         __gmtime_r.
93303         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93304         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93305         Include <time_r.h>.
93306
93307         * lib/timegm.c: Switch to glibc implementation, with the following
93308         changes:
93309         [defined HAVE_CONFIG_H]: Include <config.h>.
93310         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93311         (__mktime_internal) [!defined _LIBC]: New decl.
93312         (__gmtime_r) [!defined _LIBC]: New macro and function.
93313         (timegm): Use a prototype, since gnulib assumes C89.
93314         Do not bother declaring tmp to be const, as it's not really usefu.
93315         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93316         (timegm): Declare only if HAVE_DECL_TIMEGM.
93317
93318 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93319
93320         * MODULES.html.sh (func_all_modules): Add time_r.
93321         * modules/time_r: New file.
93322         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93323         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93324
93325 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93326
93327         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93328         Bug reported by Lute Kamstra in
93329         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93330
93331         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93332         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93333         course with correspondingly smaller numbers for tomorrow and
93334         yesterday.  From Tadayoshi Funaba.  Originally installed into
93335         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93336         coreutils merge?).
93337
93338 2003-08-31  Simon Josefsson  <jas@extundo.com>
93339
93340         * modules/timegm: New file.
93341         * MODULES.html.sh (func_all_modules): Add timegm.
93342
93343 2003-08-31  Simon Josefsson  <jas@extundo.com>
93344
93345         * m4/timegm.m4: New file.
93346
93347 2003-08-31  Simon Josefsson  <jas@extundo.com>
93348
93349         * lib/timegm.h: New file.
93350         * lib/timegm.c: New file.  Based on
93351         wget-1.8.2/src/http.c:mktime_from_utc.
93352
93353 2003-08-31  Karl Berry  <karl@gnu.org>
93354
93355         * lib/argp.h: update from libc.
93356
93357 2003-08-28  Bruno Haible  <bruno@clisp.org>
93358
93359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93360         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93361         followed by '#define fnmatch fnmatch_posix' gives an error.
93362
93363 2003-08-28  Bruno Haible  <bruno@clisp.org>
93364
93365         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93366         warning on QNX, which defines O_BINARY to 000000.
93367
93368 2003-08-27  Jim Meyering  <jim@meyering.net>
93369
93370         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93371         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93372         would fail after 32.  Reported by Danny Levinson.  Details here:
93373         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93374
93375 2003-08-24  Bruno Haible  <bruno@clisp.org>
93376
93377         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93378         MSVC7 <stdio.h> is included later.
93379
93380 2003-08-22  Simon Josefsson  <jas@extundo.com>
93381
93382         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93383
93384 2003-08-20  Karl Berry  <karl@gnu.org>
93385
93386         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93387
93388 2003-08-20  Bruno Haible  <bruno@clisp.org>
93389
93390         * modules/progname: New file.
93391         * MODULES.html.sh (func_all_modules): Add progname.
93392
93393 2003-08-20  Bruno Haible  <bruno@clisp.org>
93394
93395         * lib/progname.h: New file, from GNU gettext.
93396         * lib/progname.c: New file, from GNU gettext.
93397         * lib/progreloc.c: New file, from GNU gettext.
93398
93399 2003-08-19  Jim Meyering  <jim@meyering.net>
93400
93401         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93402         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93403
93404 2003-08-19  Bruno Haible  <bruno@clisp.org>
93405
93406         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93407         more.
93408
93409 2003-08-19  Bruno Haible  <bruno@clisp.org>
93410
93411         * lib/xstrdup.c: Assume <string.h> exists.
93412
93413 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93414
93415         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93416         in makefile rules.
93417
93418 2003-08-18  Jim Meyering  <jim@meyering.net>
93419
93420         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93421         * m4/lib-ld.m4: Likewise.
93422
93423 2003-08-18  Jim Meyering  <jim@meyering.net>
93424
93425         * lib/setenv.h: Indent nested cpp directive.
93426         * lib/vasnprintf.c: Remove trailing blanks.
93427
93428 2003-08-17  Simon Josefsson  <jas@extundo.com>
93429
93430         * modules/xstrndup: New file.
93431         * MODULES.html.sh (func_all_modules): Add xstrndup.
93432
93433 2003-08-17  Simon Josefsson  <jas@extundo.com>
93434
93435         * modules/argp: Fix autoconf macro name. Add more dependencies.
93436
93437 2003-08-17  Simon Josefsson  <jas@extundo.com>
93438
93439         * m4/xstrndup.m4: New file.
93440
93441 2003-08-17  Simon Josefsson  <jas@extundo.com>
93442
93443         * m4/argp.m4: New file.
93444
93445 2003-08-17  Simon Josefsson  <jas@extundo.com>
93446             Bruno Haible  <bruno@clisp.org>
93447
93448         * lib/xstrndup.h: New file.
93449         * lib/xstrndup.c: New file.
93450
93451 2003-08-17  Bruno Haible  <bruno@clisp.org>
93452
93453         * modules/strndup (Files, Include): Add lib/strndup.h.
93454
93455 2003-08-17  Bruno Haible  <bruno@clisp.org>
93456
93457         * modules/euidaccess (Files): Add lib/euidaccess.h.
93458
93459 2003-08-17  Bruno Haible  <bruno@clisp.org>
93460
93461         * lib/strndup.h: New file.
93462
93463 2003-08-17  Bruno Haible  <bruno@clisp.org>
93464
93465         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93466         like AC_GNU_SOURCE.
93467         * modules/extensions (configure.ac): Comment out the invocation of
93468         gl_USE_SYSTEM_EXTENSIONS.
93469
93470 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93471
93472         Merges from coreutils, etc.
93473         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93474         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93475         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93476         fixing a typo.
93477         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93478         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93479
93480 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93481
93482         Document merge from coreutils.
93483         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93484         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93485         * modules/utime: Add m4/utimes-null.m4.
93486
93487 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93488
93489         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93490         space, undoing this 2003-08-12 change:
93491         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93492
93493 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93494
93495         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93496         strtoul.c from libc, undoing this 2003-08-12 change:
93497         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93498
93499 2003-08-16  Jim Meyering  <jim@meyering.net>
93500
93501         Merges from coreutils.
93502         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93503         prefix.  Adjust cache variables similarly.  Create 500 rather than
93504         just 300 files, to exercise bug on Darwin6.5, too.
93505         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93506         $missing_dir.
93507         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93508         AM_SYS_POSIX_TERMIOS.
93509         Reported by mkc@mathdogs.com.
93510         Also change use of $am_cv_sys_posix_termios
93511         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93512         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93513         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93514         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93515         in /proc/mounts until it finds one with matching device number.  This
93516         is unnecessary when the FILE argument *is* a mount point.  No stat call
93517         is necessary in that case.  So, disable the statvfs-testing code on
93518         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93519         as RedHat bug# 84846.
93520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93521         to 1MB, so as not to render systems with no stack size limit (e.g.,
93522         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93523         Include <unistd.h>.  On some systems,
93524         it is required for the definition of _SC_PAGESIZE.
93525
93526 2003-08-16  Jim Meyering  <jim@meyering.net>
93527
93528         Merge from coreutils.
93529         * lib/xstrtoimax.c: #else #if -> #elif.
93530         * lib/xstrtoumax.c: Likewise.
93531
93532 2003-08-16  Jim Meyering  <jim@meyering.net>
93533
93534         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93535         * m4/utimes.m4: Removed.
93536         * m4/utimes-null.m4: Renamed from utimes.m4.
93537
93538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93539         to 1MB, so as not to render systems with no stack size limit (e.g.,
93540         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93541         Include <unistd.h>.  On some systems,
93542         it is required for the definition of _SC_PAGESIZE.
93543
93544 2003-08-16  Jim Meyering  <jim@meyering.net>
93545         and Paul Eggert  <eggert@cs.ucla.edu>
93546
93547         Merges from coreutils, etc.
93548
93549         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93550         using the latest version from cvs.  This avoids problems with #line
93551         directives using a vendor (Sun) compiler.
93552         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93553         Don't set GETGROUPS_LIB here; now it's
93554         done via getgroups.m4's wrapper function.
93555         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93556         rather than just in sh-util/configure.in, so that the
93557         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93558         same.
93559         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93560         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93561         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93562         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93563         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93564         Remove code that is now done by the newly-required macros.
93565         Append $(EXEEXT) to DF_PROG.
93566         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93567         Do not invoke or require the following here,
93568         since prereq.m4 or some gnulib .m4 now does this for us:
93569         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93570         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93571         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93572         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93573         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93574         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93575         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93576         AC_FUNC_OBSTACK.
93577         Do not replace the following functions, as this is now the job
93578         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93579         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93580         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93581         atexit getpass, strdup, getpagesize.
93582         Replace 'raise'.
93583         Do not check for the following functions, as this is now the job
93584         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93585         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93586         setregid.
93587         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93588         Check for sys/sysctl.h.
93589         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93590         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93591         of checking for ssize_t ourselves.
93592
93593         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93594         Require every macro that gnulib/modules/* suggests for us.
93595         (jm_PREREQ_ADDEXT): New macro.
93596         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93597         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93598
93599         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93600         (gl_PHYSMEM): Use it.
93601         Also check for `table' function.
93602         Check for new headers and functions.
93603         Add check for sys/sysmp.h.
93604         With suggestions from Kaveh Ghazi.
93605         Ignore headers that are present but cannot be compiled.  This
93606         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93607         C 5.4.
93608
93609 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93610
93611         Document merge from coreutils.
93612         * modules/userspec: Depend on posixver.
93613         * modules/strftime: Depend on tzset.
93614
93615 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93616
93617         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93618         rather than tab, after '#' in shell-script copyright notices.
93619         Suggested by Bruno Haible.
93620
93621 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93622
93623         * config/srclist-update: Use three spaces, rather than tab, after '#'
93624         in shell-script copyright notices.  Suggested by Bruno Haible.
93625         Remove unnecessary parenthesization in regular expression.
93626
93627 2003-08-15  Jim Meyering  <jim@meyering.net>
93628
93629         Merge from coreutils.
93630         * lib/xgethostname.c: Include <stdlib.h>.
93631         (xghostname): Don't exit for anything other than memory-related
93632         failure; just return NULL.
93633         * lib/userspec.c: Include "posixver.h".
93634         (parse_user_spec): Accept `.' as a separator only
93635         in pre-POSIX-200112 mode.
93636         * lib/strtoimax.c: Use #elif rather than #else #if.
93637         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93638         Remove function, now that we can rely on a working tzset function.
93639         [!_LIBC]: Ensure that the required autoconf test has been run.
93640         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93641         Use underlying_strftime for %r.
93642         * lib/sha.c: Merge in some clean-up and optimization changes from
93643         glibc.
93644         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93645         Ensure that it is a multiple of 64.
93646         Rearrange loop exit tests so as to avoid performing an
93647         additional fread after encountering an error or EOF.
93648         * lib/realloc.c: Update copyright date.
93649
93650 2003-08-15  Jim Meyering  <jim@meyering.net>
93651         and Paul Eggert  <eggert@twinsun.com>
93652
93653         Merge from coreutils.
93654         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93655         member but strut utmpx does not.  Needed for AIX 4.3.3.
93656         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93657
93658 2003-08-15  Jim Meyering  <jim@meyering.net>
93659         and Paul Eggert  <eggert@cs.ucla.edu>
93660
93661         Merges from coreutils, etc.
93662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93663         Require gl_FUNC_TZSET_CLOBBER.
93664         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93665         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93666         members.
93667
93668 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93669
93670         Help the merge from coreutils.
93671         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93672         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93673         * m4/tzset.m4: Use it too.
93674
93675 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93676
93677         * modules/tzset: New file.
93678
93679 2003-08-14  Jim Meyering  <jim@meyering.net>
93680
93681         Merges from coreutils.
93682         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93683         variable names, rather than @FNMATCH_H@.
93684         * modules/alloca: Likewise for $(ALLOCA_H).
93685
93686         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93687         the three copies of the literal target, `fnmatch.h'.
93688         * modules/alloca (alloca.h): Likewise.
93689
93690 2003-08-14  Jim Meyering  <jim@meyering.net>
93691
93692         Merge from coreutils.
93693         * m4/tzset.m4: New file.
93694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93695         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93696         otherwise, AIX 5.1 systems would end up using the latter.
93697         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93698         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93699         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93700         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93701
93702 2003-08-14  Jim Meyering  <jim@meyering.net>
93703
93704         Merge from coreutils.
93705         * lib/obstack.h: Whitespace changes.
93706         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93707         and xcalloc return values.
93708         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93709         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93710         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93711         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93712         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93713         error from mntctl.
93714         Use mntctl's return value to drive the entry-processing loop, since
93715         we can't rely on the value of the vmt_length member in the last
93716         entry.  On some systems doing so could result in exhausting
93717         virtual memory.  Based in part on a patch from Mike Jetzer.
93718
93719 2003-08-14  Jim Meyering  <jim@meyering.net>
93720         and Paul Eggert  <eggert@twinsun.com>
93721
93722         Merges from coreutils, plus other fixes.
93723         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93724         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93725         for credits and details.  Thanks to Kaveh Ghazi for helping
93726         to keep these files in sync.
93727         (ARRAY_SIZE): Define it.
93728         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93729         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93730         (memcasecmp): Don't assume size_t fits in unsigned int.
93731         Remove casts and duplicate code.
93732         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93733         (memcpy): Remove definition.
93734         Merge in some clean-up and optimization changes from glibc.
93735         [BLOCKSIZE]: Move definition to top of file.
93736         Ensure that it is a multiple of 64.
93737         Rearrange loop exit tests so as to avoid performing an
93738         additional fread after encountering an error or EOF.
93739         * lib/md5.h (md5_uintptr): Define.
93740         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93741         return to the initial working directory.  Preserve errno
93742         for caller.
93743         * lib/idcache.c: Include "xalloc.h".
93744         (xmalloc, xrealloc): Remove decls.
93745         (getuser): Remove casts no longer required in C89.
93746         * lib/human.c: Include stdio.h, for sprintf.
93747         * lib/group-member.c: Include "xalloc.h".
93748         (xmalloc, xrealloc): Remove decls.
93749         (get_group_info): Remove casts no longer required in C89.
93750         * lib/getusershell.c (readname): Remove casts no longer required in
93751         C89.
93752         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93753         * lib/getline.c: Whitespace fix, from coreutils.
93754
93755 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93756
93757         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93758         Check for isascii.
93759
93760         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93761         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93762         Undo previous (whitespace-only) change.
93763
93764 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93765
93766         * lib/exclude.c: Include <ctype.h>
93767         (IN_CTYPE_DOMAIN): New macro.
93768         (is_space): New fn.
93769         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93770         and empty lines.
93771
93772         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93773         Undo previous (whitespace-only) change.
93774
93775 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93776
93777         * config/srclist-update: Change update back to the old behavior,
93778         leaving whitespace alone.  Use one 'sed' command rather than a
93779         pipeline.
93780         (fixlicense): Now a variable, not a function.
93781         (remove_trailing_blanks): Remove.
93782         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93783         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93784         Undo previous (whitespace-only) change.
93785
93786 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93787
93788         Merge from coreutils.
93789         * modules/euidaccess: Add lib_SOURCES, include for new
93790         file euidaccess.h
93791
93792 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93793
93794         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93795         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93796         Normalize leading white space and remove trailing white space.
93797
93798         Merge from coreutils
93799         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93800
93801         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93802         0.12.1.  These files are now being upgraded automatically by
93803         ../config/srclist-update.
93804
93805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93806
93807         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93808         Normalize leading white space and remove trailing white space.
93809         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93810         notice, as per ../config/srclist-update.
93811
93812         Merge from coreutils.
93813         * lib/euidaccess.h: New file.
93814         * lib/euidaccess.c: Include it.
93815         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93816         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93817         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93818
93819 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93820
93821         * config/srclist-update: Add copyright notice.
93822         (remove_id_lines, remove_trailing_blanks): New constants.
93823         (fixfile): Use them to normalize spacing a bit in copied files.
93824         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93825         Normalize leading white space and remove trailing white space.
93826
93827         * config/texinfo.tex: Sync with texinfo.
93828
93829         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93830         strtoul.c from libc, to merge coreutils whitespace changes.
93831
93832         * config/srclist.txt: Get the following m4 files from gettext:
93833         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93834         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93835         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93836         wint_t.m4.
93837
93838 2003-08-12  Karl Berry  <karl@gnu.org>
93839
93840         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93841         been made.
93842
93843 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93844
93845         * modules/gnu-source, m4/gnu-source.m4:
93846         Remove; we're assuming Autoconf 2.54 or later now.
93847         Suggested by Bruno Haible.
93848         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93849
93850 2003-08-11  Bruno Haible  <bruno@clisp.org>
93851
93852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93853
93854 2003-08-11  Bruno Haible  <bruno@clisp.org>
93855
93856         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93857         (vasnprintf): Use it instead of wcslen.
93858
93859 2003-08-11  Bruno Haible  <bruno@clisp.org>
93860
93861         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93862         value to ensure that _Bool promotes to int. Use #define for _Bool when
93863         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93864
93865 2003-08-10  Karl Berry  <karl@gnu.org>
93866
93867         * lib/regex.h: update from libc (whitespace fix).
93868
93869 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93870
93871         Merge some files from coreutils.  These changes were
93872         originally made by Jim Meyering.
93873         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93874         many older Unixes require this.
93875         * lib/alloca.c (alloca): Remove cast to argument of free;
93876         no longer needed in C89.
93877         * lib/alloca_.h, regex.h: Fix white space to match
93878         what GNU indent does.
93879
93880 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93881
93882         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93883         apparently Emacs's Unicode mode got confused before my 2003-08-05
93884         checkin.
93885
93886 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93887
93888         * m4/extensions.m4: New file.
93889         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93890         Require gl_USE_SYSTEM_EXTENSIONS.
93891         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93892         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93893
93894 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93895
93896         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93897         * modules/extensions, modules/gnu-source: New files.
93898         * modules/timespec, modules/unlocked-io: Depend on extensions.
93899
93900 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93901
93902         * modules/restrict: New file.
93903         * MODULES.html.sh (func_all_modules): Add restrict.
93904         * modules/regex: Depend on restrict.
93905
93906 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93907
93908         * m4/restrict.m4: New file.
93909         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93910
93911 2003-08-07  Bruno Haible  <bruno@clisp.org>
93912
93913         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93914         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93915
93916 2003-08-07  Bruno Haible  <bruno@clisp.org>
93917
93918         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93919         makes the module 'getndelim2' compatible with the module 'getline'.
93920
93921 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93922
93923         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93924         byte with "\201" to avoid glitches when editing that source file
93925         with multi-gnome-terminal.
93926
93927 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93928
93929         * lib/bumpalloc.h: Remove.
93930
93931 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93932
93933         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93934         * modules/bumpalloc: Remove.
93935
93936 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93937
93938         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93939         GNU coding style.
93940
93941         Merge from coreutils.
93942         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93943         1. From glibc.
93944         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93945         from Karl Berry, implemented by Jim Meyering.
93946         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93947         from Dmitry V. Levin.
93948         Remove anachronistic cast of xrealloc.
93949         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93950         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93951         type. Otherwise, it wouldn't compile with at least /bin/cc on
93952         ymp-cray-unicos9.0.2.X.
93953         Combine two mostly-identical uses of alloca into one.
93954         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93955
93956 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93957
93958         [From Emacs.]
93959
93960         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93961         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93962         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93963         obsolete NLIST_NAME_UNION.
93964         [__GNU__]: Undef BSD and FSCALE.
93965         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93966
93967 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93968
93969         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93970         an enum type, so that it's guaranteed to promote to int.  See:
93971         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93972
93973 2003-08-03  Karl Berry  <karl@gnu.org>
93974
93975         * config/depcomp: update from automake.
93976
93977 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93978
93979         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93980         (strerror): Don't assume that a printable int fits in 14 bytes.
93981
93982 2003-07-31  Bruno Haible  <bruno@clisp.org>
93983
93984         * modules/getpass-gnu: New file.
93985         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93986
93987 2003-07-31  Bruno Haible  <bruno@clisp.org>
93988
93989         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93990
93991 2003-07-24  Karl Berry  <karl@gnu.org>
93992
93993         * config/missing: update from automake.
93994
93995 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93996             Bruno Haible  <bruno@clisp.org>
93997
93998         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93999         * lib/getline.c (getline, getdelim): Likewise.
94000         Remove _GNU_SOURCE define; now it's defined in config.h through
94001         m4/getline.m4.
94002
94003 2003-07-23  Karl Berry  <karl@gnu.org>
94004
94005         * config/config.sub: update from prep.
94006
94007 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94008
94009         * modules/xalloc (Depends-on): Add exitfail.
94010         * modules/xmemcoll: Likewise.
94011
94012 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94013
94014         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94015         over-parenthesization in macros.
94016
94017         Sync with coreutils.
94018
94019         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94020         required by C99.
94021
94022         Use `exit_failure' for xalloc and xmemcoll instead of their own
94023         private exit-failure variables.
94024         * lib/xalloc.h (xalloc_exit_failure): Remove.
94025         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94026         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94027         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94028         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94029         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94030
94031 2003-07-20  Jim Meyering  <jim@meyering.net>
94032
94033         * modules/closeout (Depends-on): Add exitfail.
94034         Suggestion from Bruno Haible.
94035
94036 2003-07-19  Karl Berry  <karl@gnu.org>
94037
94038         * config/config.sub: update from prep.
94039
94040 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94041
94042         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94043         Remove.
94044         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94045         to test that it can stand by itself.  Include "exitfail.h".
94046         Clients should set exit_failure instead.
94047         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94048
94049 2003-07-18  Bruno Haible  <bruno@clisp.org>
94050
94051         * modules/getndelim2: New file.
94052         * modules/getline: Share files with module getndelim2.
94053         * modules/getnline: Depend on getndelim2 instead of sharing files with
94054         it. Add getnline.c to lib_SOURCES.
94055         * MODULES.html.sh (func_all_modules): Add getndelim2.
94056
94057 2003-07-18  Bruno Haible  <bruno@clisp.org>
94058
94059         * m4/getndelim2.m4: New file.
94060         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94061         invoke gl_PREREQ_GETNDELIM2.
94062         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94063         gl_PREREQ_GETNDELIM2.
94064         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94065         gl_GETNDELIM2.
94066
94067 2003-07-18  Bruno Haible  <bruno@clisp.org>
94068
94069         * lib/getndelim2.h: New file.
94070         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94071         getndelim2.h.
94072         (getndelim2): Make non-static. Change return type to ssize_t.
94073         * lib/getline.h: Change argument names.
94074         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94075         * lib/getnline.c: Include getndelim2.h.
94076
94077 2003-07-18  Andreas Schwab  <schwab@suse.de>
94078
94079         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94080
94081 2003-07-17  Karl Berry  <karl@gnu.org>
94082
94083         * config/config.sub: update from prep.
94084
94085 2003-07-17  Bruno Haible  <bruno@clisp.org>
94086
94087         * modules/getnline: New file.
94088         * modules/getline: Add lib/getndelim2.c to source file list.
94089         * MODULES.html.sh (func_all_modules): Add getnline.
94090
94091 2003-07-17  Bruno Haible  <bruno@clisp.org>
94092
94093         * m4/getnline.m4: New file.
94094
94095 2003-07-17  Bruno Haible  <bruno@clisp.org>
94096
94097         * m4/Makefile.am.in: Remove file.
94098         * m4/Makefile.am: Remove file.
94099         * m4/Makefile.in: Remove file.
94100
94101 2003-07-17  Bruno Haible  <bruno@clisp.org>
94102
94103         * lib/getnline.h: New file.
94104         * lib/getnline.c: New file.
94105         * lib/getndelim2.c: New file, extracted from getline.c.
94106         (getndelim2): Renamed from getdelim2, with added nmax argument.
94107         * lib/getline.c: Include getndelim2.c.
94108         (getdelim2): Moved out to getndelim2.c.
94109         (getline, getdelim): Update.
94110
94111 2003-07-17  Bruno Haible  <bruno@clisp.org>
94112
94113         * lib/Makefile.am: Remove file.
94114         * lib/Makefile.in: Remove file.
94115
94116 2003-07-17  Bruno Haible  <bruno@clisp.org>
94117
94118         * configure.in: Remove file.
94119         * Makefile.in: Remove file.
94120
94121 2003-07-17  Bruno Haible  <bruno@clisp.org>
94122
94123         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94124
94125 2003-07-16  Karl Berry  <karl@gnu.org>
94126
94127         * config/srclist-update: was running fixlicense twice, which caused
94128                 texinfo.tex to be nullified for some reason.  Simplify,
94129                 $gplsrc is no longer needed as far as I can see?
94130
94131 2003-07-16  Jim Meyering  <jim@meyering.net>
94132
94133         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94134
94135 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94136
94137         * config/srclist.txt: Get the following files from gettext-runtime/intl
94138         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94139         ref-del.sin.  From Bruno Haible.
94140         * config/srclist-update (fixfile): Change grep pattern again, since the
94141         previous fix didn't work (there was another trailing $).  Use
94142         '[$]' to escape the $s.
94143
94144 2003-07-15  Karl Berry  <karl@gnu.org>
94145
94146         * lib/vasnprintf.c: update from gettext.
94147
94148 2003-07-15  Karl Berry  <karl@gnu.org>
94149
94150         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94151         gets expanded when surrounded by '$'.
94152
94153 2003-07-15  Jim Meyering  <jim@meyering.net>
94154
94155         * modules/save-cwd: Don't depend on error.  From Derek Price.
94156
94157 2003-07-15  Jim Meyering  <jim@meyering.net>
94158
94159         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94160
94161 2003-07-14  Simon Josefsson  <jas@extundo.com>
94162
94163         * modules/mempcpy: New file.
94164         * MODULES.html.sh (func_all_modules): Add mempcpy.
94165
94166 2003-07-14  Simon Josefsson  <jas@extundo.com>
94167
94168         * m4/mempcpy.m4: New file.
94169
94170 2003-07-14  Simon Josefsson  <jas@extundo.com>
94171
94172         * lib/mempcpy.h: New file.
94173         * lib/mempcpy.c: New file.
94174
94175 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94176
94177         * modules/getdate, modules/posixtm: Depend on mktime.
94178
94179 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94180
94181         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94182         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94183         unicodeio.c, unicodeio.h, unlocked-io.h:
94184         Switch from LGPL to GPL.
94185
94186 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94187
94188         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94189         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94190         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94191         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94192         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94193         updated automatically by ../config/srclist-update.  This changes
94194         their license from LPGL to GPL.
94195
94196 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94197
94198         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94199         assumed to refer to the root of the most recent stable gettext version.
94200         * config/srclistvars.sh: Add defaults for eggert.
94201         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94202         Match "This program" as well as "The program".  This is needed
94203         for gettext.
94204
94205 2003-07-14  Jim Meyering  <jim@meyering.net>
94206
94207         Don't emit diagnostics.  Let callers do that.
94208         * lib/save-cwd.c: Don't include "error.h".
94209         (save_cwd): Don't call error.  Ensure that errno is valid
94210         when returning nonzero.
94211
94212         * lib/save-cwd.h (restore_cwd): Update prototype.
94213         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94214         Simplify.  Don't call error upon failure.  Let callers do that.
94215         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94216         when auditing is enabled.  But don't bother updating the #if.
94217
94218 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94219
94220         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94221         it breaks C++ compilation.
94222         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94223
94224 2003-07-10  Simon Josefsson  <jas@extundo.com>
94225
94226         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94227
94228 2003-07-10  Jim Meyering  <jim@meyering.net>
94229
94230         * m4/clock_time.m4: Remove trailing blank.
94231         * m4/intmax_t.m4: Likewise.
94232
94233 2003-07-10  Jim Meyering  <jim@meyering.net>
94234
94235         * lib/vasnprintf.c: Remove trailing blanks.
94236         Make cpp indentation consistent.
94237
94238 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94239
94240         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94241         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94242         Switch from LGPL to GPL.
94243
94244 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94245
94246         * config/srclist.txt: Sort sublists.  Add
94247         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94248         that differ from gnulib for one reason or another; we'd like this list
94249         to be smaller but for now let's document what we have.
94250
94251 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94252
94253         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94254         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94255         and sweeter "eval x=$x".
94256         * config/srclist.txt: Get lib/argp* from glibc.
94257
94258 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94259
94260         * lib/mktime.c: Fix some boundary cases and remove need for floating
94261         point.
94262
94263         Issue a compile-time diagnostic if time_t is floating point, or if
94264         two's complement arithmetic is not in effect, or if arithmetic
94265         right shift does not propagate the sign.  These assumptions were
94266         all in the original code but they weren't checked.
94267
94268         (TIME_T_MIDPOINT, verify): New macros.
94269         (__isleap): Remove; it has integer overflow problems.
94270         (leapyear): New function, without those problems.
94271         (ydhms_tm_diff): Remove; splitting into two parts.
94272         (ydhms_diff): New function, containing the arithmetic part of
94273         the old ydhms_tm_diff function.  Issue a compile-time
94274         diagnostic if we are not using C99 integer division.
94275         Avoid casts when possible.
94276         (guess_time_tm): New function, containing the checking part of
94277         the old ydhms_tm_diff function.  Return the new value, rather than
94278         the difference between it and the old.  Accept a new argument T
94279         so that *T specifies the old value.  Check for overflow in the result.
94280
94281         (__mktime_internal): Use a time_t offset, not a long int offset.
94282         This undoes the 2003-06-04 change, which is no longer needed now
94283         that we have better overflow checking.
94284         (localtime_offset): Likewise.
94285
94286         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94287         and long are 64-bit but int is only 32-bit.
94288         (ydhms_diff): Use long int to store year1 and yday1.
94289         Issue a compile-time diagnostic if long int is not wide enough.
94290
94291         (__mktime_internal): Use long int to store adjusted year and yday.
94292         Use plain C rather than preprocessor commands, if that doesn't
94293         affect efficiency.
94294         Check for overflow (and try to repair) after each probe
94295         rather than checking only at the very end.  This avoids some bugs
94296         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94297         does not equal GMT offset at maximum time).
94298         Use integer to check for overflow rather than floating point; this
94299         is more portable to non-IEEE hosts, and is a tad faster.
94300         When we detect that we are oscillating between two values,
94301         don't check whether tm_isdst has the requested value, since
94302         we already know the answer.  When tm_isdst has the wrong value,
94303         use a different heuristic to find the right one, based on the
94304         extreme values actually observed in practice in tz2003a,
94305         rather than the (overly optimistic) "previous 3 calendar quarters".
94306
94307         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94308         "T const" to accommodate glibc style.
94309         (check_result): Use less-confusing report format.  "long" -> "long int.
94310         (main): Likewise.
94311         Don't loop if the iteration overflows time_t.
94312         Allow a negative step in the iteration.
94313
94314 2003-07-06  Karl Berry  <karl@gnu.org>
94315
94316         * config/depcomp: update from automake.
94317         * config/config.sub: update from prep.
94318
94319 2003-07-03  Karl Berry  <karl@gnu.org>
94320
94321         * config/config.guess: update from prep.
94322
94323 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94324
94325         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94326         xreadlink.c now includes it unconditionally.
94327
94328 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94329
94330         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94331         having it depend on HAVE_SYS_TYPES_H.
94332
94333 2003-07-01  Bruno Haible  <bruno@clisp.org>
94334
94335         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94336         <sys/types.h> should be sufficient.
94337         Reported by Paul Eggert.
94338
94339 2003-06-26  Karl Berry  <karl@gnu.org>
94340
94341         * config/depcomp: update from automake.
94342
94343 2003-06-26  Bruno Haible  <bruno@clisp.org>
94344
94345         * modules/human: Depend on module stdbool.
94346
94347 2003-06-25  Bruno Haible  <bruno@clisp.org>
94348
94349         * modules/readlink: New file.
94350         * modules/xreadlink: Depend on it.
94351         * MODULES.html.sh (func_all_modules): Add readlink.
94352
94353 2003-06-25  Bruno Haible  <bruno@clisp.org>
94354
94355         * m4/readlink.m4: New file.
94356
94357 2003-06-25  Bruno Haible  <bruno@clisp.org>
94358
94359         * lib/readlink.c: New file.
94360
94361 2003-06-22  Karl Berry  <karl@gnu.org>
94362
94363         * config/srclist.txt: update mkinstalldirs from automake.
94364         * config/mkinstalldirs: update.
94365
94366 2003-06-22  Bruno Haible  <bruno@clisp.org>
94367
94368         Portability to mingw32.
94369         * m4/ssize_t.m4: New file, from GNU gettext.
94370         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94371         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94372
94373 2003-06-22  Bruno Haible  <bruno@clisp.org>
94374
94375         * modules/safe-read: Add m4/ssize_t.m4.
94376         * modules/xreadlink: Add m4/ssize_t.m4.
94377
94378 2003-06-20  Bruno Haible  <bruno@clisp.org>
94379
94380         Assume C89, so PARAMS isn't needed.
94381         * lib/unicodeio.h (PARAMS): Remove.
94382         * lib/unicodeio.c: Don't use PARAMS.
94383
94384 2003-06-18  Karl Berry  <karl@gnu.org>
94385
94386         * config/config.{guess,sub}: update from prep.
94387
94388 2003-06-18  Jim Meyering  <jim@meyering.net>
94389
94390         Merge changes from coreutils.
94391         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94392         Remove explicit declarations of xmalloc and realloc.
94393         Include xalloc.h.
94394         (read_utmp): Remove anachronistic cast of xmalloc.
94395
94396 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94397
94398         Assume C89, so PARAMS isn't needed.
94399         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94400         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94401         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94402         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94403         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94404         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94405         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94406         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94407         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94408         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94409         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94410         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94411         no longer needed. Anyway, config.h should always be included before any
94412         other file.
94413
94414 2003-06-11  Simon Josefsson  <jas@extundo.com>
94415
94416         * modules/sysexits: New file.
94417         * MODULES.html.sh (func_all_modules): Add sysexits.
94418
94419 2003-06-11  Simon Josefsson  <jas@extundo.com>
94420
94421         * lib/sysexit_.h: New file.
94422
94423 2003-06-11  Derek Price  <derek@ximbiot.com>
94424
94425         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94426         necessary.
94427
94428 2003-06-11  Bruno Haible  <bruno@clisp.org>
94429
94430         * m4/sysexits.m4: New file.
94431
94432 2003-06-10  Simon Josefsson  <jas@extundo.com>
94433
94434         * lib/argp.h: New file, from glibc.
94435         * lib/argp-ba.c: New file, from glibc.
94436         * lib/argp-eexst.c: New file, from glibc.
94437         * lib/argp-fmtstream.c: New file, from glibc.
94438         * lib/argp-fmtstream.h: New file, from glibc.
94439         * lib/argp-fs-xinl.c: New file, from glibc.
94440         * lib/argp-help.c: New file, from glibc.
94441         * lib/argp-namefrob.h: New file, from glibc.
94442         * lib/argp-parse.c: New file, from glibc.
94443         * lib/argp-pv.c: New file, from glibc.
94444         * lib/argp-pvh.c: New file, from glibc.
94445         * lib/argp-xinl.c: New file, from glibc.
94446
94447 2003-06-10  Simon Josefsson  <jas@extundo.com>
94448
94449         * modules/strchrnul: New file.
94450
94451 2003-06-10  Simon Josefsson  <jas@extundo.com>
94452
94453         * modules/argp: New file.
94454
94455 2003-06-10  Simon Josefsson  <jas@extundo.com>
94456
94457         * m4/strchrnul.m4: New file.
94458
94459 2003-06-10  Simon Josefsson  <jas@extundo.com>
94460
94461         * lib/strchrnul.h: New file.
94462         * lib/strchrnul.c: New file.
94463
94464 2003-06-10  Bruno Haible  <bruno@clisp.org>
94465
94466         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94467
94468 2003-06-07  Karl Berry  <karl@gnu.org>
94469
94470         * config/config.{guess,sub}: update from prep.
94471
94472 2003-06-07  Jim Meyering  <jim@meyering.net>
94473
94474         * modules/strtod: Use $(...) notation, not @...@ for
94475         AC_REPLACE'd variables.
94476         * modules/localcharset: Likewise.
94477
94478 2003-06-07  Jim Meyering  <jim@meyering.net>
94479
94480         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94481         in place of my name in the copyright comment.
94482         Remove definition and uses of __P.
94483
94484         From coreutils.
94485         * lib/stat.c: Don't declare xmalloc explicitly.
94486         Instead, include "xalloc.h".
94487         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94488         xrealloc, and xcalloc return values.
94489         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94490         Improve comment.
94491         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94492
94493 2003-06-07  Bruno Haible  <bruno@clisp.org>
94494
94495         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94496         avoid AC_CONFIG_LINKS.
94497         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94498         fnmatch.h, to avoid AC_CONFIG_LINKS.
94499         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94500
94501 2003-06-07  Bruno Haible  <bruno@clisp.org>
94502
94503         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94504         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94505         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94506         directory.
94507         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94508         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94509         directory.
94510
94511 2003-06-06  Jim Meyering  <jim@meyering.net>
94512
94513         Merge from coreutils.
94514         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94515         Consolidate declarations and initializations of *_base* locals.
94516
94517         Merge from coreutils.
94518         This avoids a core dump on systems without GNU putenv,
94519         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94520         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94521         (unsetenv): New static function, from GNU libc.
94522         (rpl_putenv): Use it.
94523
94524         * lib/modechange.c: Remove trailing blanks.
94525
94526         Merge from coreutils.
94527         * lib/fsusage.c: Remove declaration of statfs.
94528         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94529
94530         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94531
94532 2003-06-06  Jim Meyering  <jim@meyering.net>
94533
94534         * lib/stdbool_.h: Renamed from stdbool.h.in.
94535
94536 2003-06-06  Jim Meyering  <jim@meyering.net>
94537             Bruno Haible  <bruno@clisp.org>
94538
94539         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94540         Adjust Makefile.am snippet not to redirect directly to target.
94541         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94542
94543 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94544
94545         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94546         mismatch, look in future quarters as well as past.  This fixes a
94547         bug when processing fall-backwards gaps immediately after a long
94548         period of daylight-saving time.
94549
94550         * lib/mktime.c: Assume freestanding C89 or better.
94551         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94552         (__P): Remove; not used.
94553         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94554         (mktime, not_equal_tm, print_tm, check_result,
94555         main): Use prototypes.  Use const * where appropriate.
94556         (main): Fix typo in testing code that uncovered by above changes.
94557         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94558
94559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94560
94561         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94562         locale.h, localeconv.  This merges changes from coreutils.
94563
94564         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94565         It can be removed after the next Autoconf is released.
94566         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94567         needed.
94568
94569 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94570
94571         * lib/mktime.c: Fix Debian bug 177940
94572         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94573         (localtime_offset): Now long int, not time_t, because we want it
94574         to be guaranteed to be signed.  All uses changed.
94575         (__mktime_internal): If overflow would occur when adding offset,
94576         don't add it.
94577
94578         Merge 'human' changes from coreutils.  Rewrite to support
94579         locale-specific notations like thousands separators.
94580         * lib/human.c: Simplify authorship notice.
94581         Include human.h immediately after config.h.
94582         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94583         <limits.h>: Do not include, since human.h does.
94584         (SIZE_MAX, UINTMAX_MAX): New macros.
94585         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94586         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94587         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94588         (power_letter): Renamed from suffixes.
94589         (generate_suffix_backwards): Remove.
94590         (adjust_value): Now takes int style (because of human.h changes)
94591         and long double value (for greater precision on some platforms).
94592         (group_number): New function.
94593         (human_readable): Use it.  Use integer options, not enum.
94594         Put the options before the sizes in the arg list.
94595         Support all the new options.
94596         The old human_readable function has been removed;
94597         use inttostr.h instead.
94598         (human_readable, default_block_size, humblock):
94599         Use uintmax_t, not int, for block sizes.
94600         (human_readable_inexact, block_size_types): Remove.
94601         (block_size_opts): New constant.
94602         (human_options): Renamed from human_block_size, with new signature
94603         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94604         * lib/human.h: Add copyright and authorship notice.
94605         Include <limits.h> and <stdbool.h> unconditionally.
94606         (PARAMS): Remove.  All uses removed.
94607         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94608         (enum human_inexact_style): Remove tag; now a nameless enum.
94609         (human_floor, human_ceiling, human_round_to_even): Now have
94610         values 2, 0, 1 rather than -1, 1, 0.
94611         (human_group_digits, human_suppress_point_zero, human_autoscale,
94612         human_base_1024, human_SI, human_B): New constants.
94613         (human_readable_inexact, human_block_size): Remove.
94614         (human_readable): Size args are now uintmax_t, not int.
94615         (human_options): New decl.
94616
94617         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94618         unnecessary now that we assume C89 or better.  This change
94619         imported from coreutils.
94620
94621         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94622         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94623         in the 2003-05-30 sync from glibc.
94624
94625         .h files should stand alone, but we shouldn't include <sys/types.h>
94626         if we can get away with just <stddef.h>.
94627
94628         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94629         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94630         rather than <sys/types.h>, as we merely need size_t.
94631         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94632         to get size_t.
94633         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94634         Include <stdio.h>, to get FILE.
94635         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94636         memcasecmp.h has included <stddef.h> and all we need is size_t.
94637         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94638         our interface, instead of including <sys/types.h>
94639
94640 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94641
94642         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94643         now, as glibc mktime is buggy on non-glibc systems.
94644
94645 2003-06-03  Karl Berry  <karl@gnu.org>
94646
94647         * config/config.sub: update from prep.
94648
94649 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94650
94651         [from coreutils]
94652         Fix some minor time-related bugs with POSIX time arguments.
94653         Some valid time stamps were being rejected (notably -1, and
94654         time stamps before 1900 on 64-bit hosts).  And some invalid
94655         time stamps were being accepted, e.g. September 31.
94656
94657         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94658         that we can return (time_t) -1 successfully.
94659         * lib/posixtm.c: Likewise.
94660         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94661         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94662         (t): Remove static var.
94663         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94664         of static var.  All uses changed.
94665         (year): Do not reject years before 1900; they can occur with
94666         64-bit time_t.
94667         (posix_time_parse): Do not check for out-of-range components;
94668         that is now the caller's responsibility, since our checks were
94669         only approximations.
94670         (posixtime): Use mktime to check for out-of-range components,
94671         since it knows them exactly.
94672         If mktime returns (time_t) -1, check whether an error actually occurred
94673         by invoking localtime on -1.
94674         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94675         posixtime failures better.
94676         Improve the test data (in comments only).
94677
94678 2003-06-02  Karl Berry  <karl@gnu.org>
94679
94680         * config/mkinstalldirs (version): new variable.
94681         (--version): new option.
94682         (usage): improve message.
94683
94684 2003-05-30  Karl Berry  <karl@gnu.org>
94685
94686         * lib/mktime.c: update from libc.
94687
94688 2003-05-30  Bruno Haible  <bruno@clisp.org>
94689
94690         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94691         * config/config.rpath: Upgrade to gettext-0.12.1.
94692
94693 2003-05-30  Bruno Haible  <bruno@clisp.org>
94694
94695         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94696         * m4/nls.m4: New file, from gettext-0.12.1.
94697         * m4/po.m4: New file, from gettext-0.12.1.
94698         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94699
94700 2003-05-30  Bruno Haible  <bruno@clisp.org>
94701
94702         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94703         * lib/localcharset.h: Likewise.
94704         * lib/localcharset.c: Likewise.
94705
94706 2003-05-29  Karl Berry  <karl@gnu.org>
94707
94708         * config/config.rpath: update from gettext.
94709
94710 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94711
94712         Assume the headers required for C89 freestanding compilers.
94713         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94714         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94715         * m4/human.m4 (gl_HUMAN): Likewise.
94716         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94717         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94718         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94719         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94721         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94722
94723 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94724
94725         Assume the headers required for C89 freestanding compilers.
94726         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94727         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94728         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94729         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94730         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94731         define, since <limits.h> is guaranteed to do that.
94732         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94733         * lib/exclude.c: Include <stdbool.h> unconditionally.
94734         * lib/tempname.c: Include <stddef.h> unconditionally.
94735         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94736         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94737         <stddef.h> does that.
94738         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94739         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94740         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94741         needed.
94742         * lib/xstrtol.c: Likewise.
94743         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94744         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94745
94746         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94747         warnings on some platforms.
94748
94749         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94750         arbitrarily.
94751
94752 2003-05-26  Jim Meyering  <jim@meyering.net>
94753
94754         Merge in a change from coreutils:
94755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94756         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94757         that condition, rather than `-1' which is slightly misleading.
94758         Change the name of the cache variable to have the gl_ prefix.
94759         Prompted by a patch from Richard Dawe for DJGPP.
94760
94761 2003-05-24  Karl Berry  <karl@gnu.org>
94762
94763         * config/config.guess: update from prep.
94764
94765 2003-05-22  Karl Berry  <karl@gnu.org>
94766
94767         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94768
94769 2003-05-20  Karl Berry  <karl@gnu.org>
94770
94771         * config/config.guess: update from prep.
94772
94773 2003-05-18  Karl Berry  <karl@gnu.org>
94774
94775         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94776         might actually be set by the user.
94777
94778         * config/depcomp, install-sh, mdate-sh: update from automake.
94779
94780 2003-05-17  Bruno Haible  <bruno@clisp.org>
94781
94782         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94783         invalid expansion for AC_EGREP_CPP.
94784         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94785         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94786         Suggested by Akim Demaille <akim@epita.fr> in
94787         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94788
94789 2003-05-12  Jim Meyering  <jim@meyering.net>
94790
94791         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94792         the space-padded-by-default conversion specifiers, %e, %k, %l.
94793
94794 2003-05-12  Bruno Haible  <bruno@clisp.org>
94795
94796         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94797         the string is longer than 4 KB.
94798
94799 2003-05-11  Karl Berry  <karl@gnu.org>
94800
94801         * config/config.{guess,sub}: update from prep.
94802
94803 2003-05-09  Bruno Haible  <bruno@clisp.org>
94804
94805         * modules/error: Add m4/strerror_r.m4 to file list.
94806
94807 2003-05-03  Bruno Haible  <bruno@clisp.org>
94808
94809         Upgrade to Unicode-4.0.
94810         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94811         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94812         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94813         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94814         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94815         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94816         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94817         Change width of U+E0100..U+E01EF from 1 to 0.
94818
94819 2003-04-25  Jim Meyering  <jim@meyering.net>
94820
94821         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94822         of type size_t, not int.
94823
94824 2003-04-25  Bruno Haible  <bruno@clisp.org>
94825
94826         * lib/copy-file.c: Include <stddef.h>, for size_t.
94827
94828 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94829
94830         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94831         code which expansion is under static control.  Patch imported from
94832         Akim Demaille's patch to Bison; see
94833         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94834
94835 2003-04-14  Bruno Haible  <bruno@clisp.org>
94836
94837         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94838
94839 2003-04-11  Jim Meyering  <jim@meyering.net>
94840
94841         Merge changes from Coreutils.
94842
94843         2003-03-22  Jim Meyering  <jim@meyering.net>
94844
94845         * lib/strftime.c (widen): Cast alloca return value to proper type.
94846
94847         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94848
94849         From GNU libc.
94850         * lib/strftime.c (my_strftime): Handle very large width
94851         specifications for numeric values correctly.  Improve checks for
94852         overflow.
94853
94854         2003-01-19  Jim Meyering  <jim@meyering.net>
94855
94856         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94857         definitions.
94858         (nl_get_alt_digit) [! defined my_strftime]: Define.
94859         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94860         _nl_get_alt_digit and _nl_get_walt_digit.
94861
94862         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94863         libc. These changes have no effect outside of _LIBC.
94864
94865 2003-04-10  Bruno Haible  <bruno@clisp.org>
94866
94867         * modules/findprog: New file.
94868         * MODULES.html.sh (func_all_modules): Add it.
94869
94870 2003-04-10  Bruno Haible  <bruno@clisp.org>
94871
94872         * m4/findprog.m4: New file.
94873         * m4/eaccess.m4: New file.
94874
94875 2003-04-10  Bruno Haible  <bruno@clisp.org>
94876
94877         * lib/findprog.h: New file, from GNU gettext.
94878         * lib/findprog.c: New file, from GNU gettext.
94879
94880 2003-04-05  Jim Meyering  <jim@meyering.net>
94881
94882         Merge changes from Coreutils.
94883
94884         * lib/exclude.h (PARAMS): Remove definition and uses.
94885         * lib/exclude.c: Remove uses of `PARAMS'.
94886
94887         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94888         Add test-cases for DOS filenames. Declare program_name.
94889         (main): Set up program_name.  Patch by Rich Dawe.
94890
94891         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94892         error from mntctl.
94893         Use mntctl's return value to drive the entry-processing loop, since
94894         we can't rely on the value of the vmt_length member in the last
94895         entry.  On some systems doing so could result in exhausting
94896         virtual memory.  Based in part on a patch from Mike Jetzer.
94897
94898 2003-04-04  Bruno Haible  <bruno@clisp.org>
94899
94900         * modules/linebreak: New file.
94901         * MODULES.html.sh (func_all_modules): Add it.
94902
94903 2003-04-04  Bruno Haible  <bruno@clisp.org>
94904
94905         * m4/linebreak.m4: New file.
94906
94907 2003-04-04  Bruno Haible  <bruno@clisp.org>
94908
94909         * lib/linebreak.h: New file, from GNU gettext.
94910         * lib/linebreak.c: New file, from GNU gettext with slight
94911         modifications.
94912         * lib/lbrkprop.h: New file, from GNU gettext.
94913
94914 2003-04-03  Bruno Haible  <bruno@clisp.org>
94915
94916         * modules/utf8-ucs4: New file.
94917         * modules/utf16-ucs4: New file.
94918         * modules/ucs4-utf8: New file.
94919         * modules/ucs4-utf16: New file.
94920         * MODULES.html.sh (func_all_modules): Add them.
94921
94922 2003-04-03  Bruno Haible  <bruno@clisp.org>
94923
94924         * m4/utf-ucs4.m4: New file.
94925         * m4/ucs4-utf.m4: New file.
94926
94927 2003-04-03  Bruno Haible  <bruno@clisp.org>
94928
94929         * lib/utf8-ucs4.h: New file, from GNU gettext.
94930         * lib/utf16-ucs4.h: New file, from GNU gettext.
94931         * lib/ucs4-utf8.h: New file, from GNU gettext.
94932         * lib/ucs4-utf16.h: New file, from GNU gettext.
94933
94934 2003-04-02  Bruno Haible  <bruno@clisp.org>
94935
94936         * modules/binary-io: New file.
94937         * MODULES.html.sh (func_all_modules): Add it.
94938
94939 2003-04-02  Bruno Haible  <bruno@clisp.org>
94940
94941         * lib/binary-io.h: New file, from GNU gettext.
94942
94943 2003-04-01  Bruno Haible  <bruno@clisp.org>
94944
94945         * modules/pathname: New file.
94946         * MODULES.html.sh (func_all_modules): Add it.
94947
94948 2003-04-01  Bruno Haible  <bruno@clisp.org>
94949
94950         * lib/pathname.h: New file, from GNU gettext.
94951         * lib/concatpath.c: New file, from GNU gettext.
94952
94953 2003-03-30  Bruno Haible  <bruno@clisp.org>
94954
94955         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94956
94957 2003-03-30  Bruno Haible  <bruno@clisp.org>
94958
94959         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94960         function chown() doesn't exist.
94961
94962 2003-03-28  Bruno Haible  <bruno@clisp.org>
94963
94964         * modules/copy-file: New file.
94965         * MODULES.html.sh (func_all_modules): Add it.
94966
94967 2003-03-28  Bruno Haible  <bruno@clisp.org>
94968
94969         * m4/copy-file.m4: New file.
94970
94971 2003-03-28  Bruno Haible  <bruno@clisp.org>
94972
94973         * lib/copy-file.h: New file, from GNU gettext.
94974         * lib/copy-file.c: New file, from GNU gettext.
94975
94976 2003-03-18  Jim Meyering  <jim@meyering.net>
94977
94978         * lib/quote.c (quote_n): Fix typo in comment.
94979
94980 2003-03-18  Bruno Haible  <bruno@clisp.org>
94981
94982         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94983         checking.
94984         * m4/onceonly_2_57.m4: Likewise.
94985
94986 2003-03-17  Bruno Haible  <bruno@clisp.org>
94987
94988         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94989         (m4_quote): Remove macro.
94990         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94991
94992 2003-03-14  Jim Meyering  <jim@meyering.net>
94993
94994         Merge changes from Coreutils.
94995         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94996         to be const, in order to avoid warnings.
94997         (obstack_room): Likewise.
94998         (obstack_empty_p): Likewise.
94999
95000 2003-03-14  Bruno Haible  <bruno@clisp.org>
95001
95002         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95003         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95004
95005 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95006
95007         Merge changes from Bison.
95008         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95009         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95010         when compiling Bison 1.875's `bitset bset = obstack_alloc
95011         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95012         * lib/hash.c: Include <stdbool.h> unconditionally.
95013
95014 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95015
95016         * m4/onceonly.m4 (m4_quote): New macro.
95017         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95018         Quote AC_FOREACH variable-expansions properly.
95019
95020 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95021
95022         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95023
95024 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95025
95026         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95027         Reported by Bruce Becker; see:
95028         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95029
95030 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95031             Bruno Haible  <bruno@clisp.org>
95032
95033         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95034         Reported by John Hughes, see
95035         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95036
95037 2003-02-20  Bruno Haible  <bruno@clisp.org>
95038
95039         * MODULES.html.sh (func_all_modules): Add poll.
95040
95041 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95042
95043         * modules/poll: New file.
95044
95045 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95046
95047         * lib/poll_.h: New file.
95048         * lib/poll.c: New file.
95049
95050 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95051
95052         * m4/poll.m4: New file.
95053
95054 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95055
95056         * modules/mathl: New file.
95057
95058 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95059
95060         * lib/mathl.h: New file.
95061         * lib/acosl.c: New file.
95062         * lib/asinl.c: New file.
95063         * lib/atanl.c: New file.
95064         * lib/ceill.c: New file.
95065         * lib/cosl.c: New file.
95066         * lib/expl.c: New file.
95067         * lib/floorl.c: New file.
95068         * lib/frexpl.c: New file.
95069         * lib/ldexpl.c: New file.
95070         * lib/logl.c: New file.
95071         * lib/sincosl.c: New file.
95072         * lib/sinl.c: New file.
95073         * lib/sqrtl.c: New file.
95074         * lib/tanl.c: New file.
95075         * lib/trigl.c: New file.
95076         * lib/trigl.h: New file.
95077
95078 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95079
95080         * m4/mathl.m4: New file.
95081
95082 2003-02-18  Bruno Haible  <bruno@clisp.org>
95083
95084         * MODULES.html.sh (func_all_modules): Add mathl.
95085
95086 2003-02-17  Bruno Haible  <bruno@clisp.org>
95087
95088         * modules/mkdtemp: New module.
95089         * MODULES.html.sh (func_all_modules): Add it.
95090
95091 2003-02-17  Bruno Haible  <bruno@clisp.org>
95092
95093         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95094
95095 2003-02-17  Bruno Haible  <bruno@clisp.org>
95096
95097         * lib/mkdtemp.h: New file, from GNU gettext.
95098         * lib/mkdtemp.c: New file, from GNU gettext.
95099
95100 2003-02-02  Jim Meyering  <jim@meyering.net>
95101
95102         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95103         e.g. glibc-2.2.93.
95104
95105 2003-01-31  Bruno Haible  <bruno@clisp.org>
95106
95107         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95108         'rpl_rename'.
95109         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95110         'rpl_strnlen'.
95111         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95112         'rpl_strtod'.
95113         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95114         'rpl_utime'.
95115
95116 2003-01-31  Bruno Haible  <bruno@clisp.org>
95117
95118         * lib/rename.c: #undef rename before defining rpl_rename.
95119         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95120
95121 2003-01-30  Bruno Haible  <bruno@clisp.org>
95122
95123         * modules/vasnprintf, modules/vasprintf: New modules.
95124         * MODULES.html.sh (func_all_modules): Add them.
95125
95126 2003-01-30  Bruno Haible  <bruno@clisp.org>
95127
95128         * m4/signed.m4: New file, from GNU gettext.
95129         * m4/longdouble.m4: New file, from GNU gettext.
95130         * m4/wchar_t.m4: New file, from GNU gettext.
95131         * m4/wint_t.m4: New file, from GNU gettext.
95132         * m4/vasnprintf.m4: New file.
95133         * m4/vasprintf.m4: New file.
95134
95135 2003-01-30  Bruno Haible  <bruno@clisp.org>
95136
95137         * lib/printf-args.h: New file, from GNU gettext.
95138         * lib/printf-args.c: New file, from GNU gettext.
95139         * lib/printf-parse.h: New file, from GNU gettext.
95140         * lib/printf-parse.c: New file, from GNU gettext.
95141         * lib/vasnprintf.h: New file, from GNU gettext.
95142         * lib/vasnprintf.c: New file, from GNU gettext.
95143         * lib/asnprintf.c: New file, from GNU gettext.
95144         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95145         * lib/vasprintf.c: New file, from GNU gettext.
95146         * lib/asprintf.c: New file, from GNU gettext.
95147
95148 2003-01-29  Bruno Haible  <bruno@clisp.org>
95149
95150         * modules/stpncpy: New module.
95151         * MODULES.html.sh (func_all_modules): Add it.
95152
95153 2003-01-29  Bruno Haible  <bruno@clisp.org>
95154
95155         * m4/stpncpy.m4: New file.
95156
95157 2003-01-29  Bruno Haible  <bruno@clisp.org>
95158
95159         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95160         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95161
95162 2003-01-28  Bruno Haible  <bruno@clisp.org>
95163
95164         * modules/c-ctype: New module.
95165         * MODULES.html.sh (func_all_modules): Add it.
95166
95167 2003-01-28  Bruno Haible  <bruno@clisp.org>
95168
95169         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95170         Paul Eggert.
95171         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95172         Paul Eggert.
95173
95174 2003-01-27  Bruno Haible  <bruno@clisp.org>
95175
95176         * modules/xsetenv: New module.
95177         * MODULES.html.sh (func_all_modules): Add it.
95178
95179 2003-01-27  Bruno Haible  <bruno@clisp.org>
95180
95181         * lib/xsetenv.h: New file, from GNU gettext.
95182         * lib/xsetenv.c: New file, from GNU gettext.
95183
95184 2003-01-23  Jim Meyering  <jim@meyering.net>
95185
95186         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95187         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95188
95189 2003-01-23  Bruno Haible  <bruno@clisp.org>
95190
95191         * modules/minmax: New module.
95192         * MODULES.html.sh (func_all_modules): Add it.
95193
95194 2003-01-23  Bruno Haible  <bruno@clisp.org>
95195
95196         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95197         Eggert.
95198
95199 2003-01-22  Bruno Haible  <bruno@clisp.org>
95200
95201         * modules/exit: New module.
95202         * MODULES.html.sh (func_all_modules): Add it.
95203
95204 2003-01-22  Bruno Haible  <bruno@clisp.org>
95205
95206         * lib/exit.h: New file, from GNU gettext.
95207
95208 2003-01-19  Bruno Haible  <bruno@clisp.org>
95209
95210         * gnulib-tool: Recognize option --extract-maintainer.
95211         (func_get_maintainer): New function.
95212         * modules/*: Add Maintainer entry.
95213
95214 2003-01-16  Jim Meyering  <jim@meyering.net>
95215
95216         * m4/regex.m4: The `regex' struct is both input and output.
95217         Initialize it before each use.  Patch by Tim Waugh.
95218
95219 2003-01-16  Bruno Haible  <bruno@clisp.org>
95220
95221         * MODULES.html.sh: Add a table of contents. Add the module name as
95222         leftmost column. Add hyperlinks.
95223
95224 2003-01-15  Bruno Haible  <bruno@clisp.org>
95225
95226         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95227
95228 2003-01-15  Bruno Haible  <bruno@clisp.org>
95229
95230         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95231         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95232         suffix.
95233
95234 2003-01-15  Bruno Haible  <bruno@clisp.org>
95235
95236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95237
95238 2003-01-15  Bruno Haible  <bruno@clisp.org>
95239
95240         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95241         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95242
95243 2003-01-14  Jim Meyering  <jim@meyering.net>
95244
95245         * lib/same.c (same_name): Tweak a comment.
95246
95247 2003-01-14  Bruno Haible  <bruno@clisp.org>
95248
95249         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95250         when a string comparison is sufficient.
95251
95252 2003-01-14  Bruno Haible  <bruno@clisp.org>
95253
95254         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95255         'unsigned int'.
95256
95257 2003-01-14  Bruno Haible  <bruno@clisp.org>
95258
95259         * lib/hash-pjw.c: Add comment about low quality of this function.
95260
95261 2003-01-13  Bruno Haible  <bruno@clisp.org>
95262
95263         * modules/stpcpy: Distribute lib/stpcpy.h.
95264         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95265
95266 2003-01-13  Bruno Haible  <bruno@clisp.org>
95267
95268         * modules/*: Add a description.
95269         * modules/strpbrk: Fix Makefile.am snippet.
95270         * modules/strtoimax: Fix dependencies.
95271         * modules/strtoumax: Likewise.
95272
95273 2003-01-13  Bruno Haible  <bruno@clisp.org>
95274
95275         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95276         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95277         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95278
95279 2003-01-13  Bruno Haible  <bruno@clisp.org>
95280
95281         * gnulib-tool (func_create_testdir): Store config/* files in the main
95282         directory.
95283         * config.rpath: Move to ...
95284         * config/config.rpath: ... here.
95285         * modules/gettext: Contains config/config.rpath, not config.rpath.
95286         * modules/iconv: Likewise.
95287
95288 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95289
95290         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95291         to avoid collisions with libcurses and libreadline.
95292
95293         * m4/getstr.m4: Remove.
95294         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95295
95296 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95297
95298         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95299         to avoid collisions with libcurses and libreadline.
95300
95301         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95302         * lib/getstr.h, getstr.c: Remove.
95303         * lib/getline.c: Include "getline.h", to check interface.
95304         Move body of old getstr.c here: this defines MIN_CHUNK and
95305         declares getdelim2, which is renamed from getstr.
95306         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95307
95308         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95309         All uses changed.
95310         * lib/linebuffer.h: Likewise.
95311         (readline): Remove backward-compatibility macro.
95312
95313 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95314
95315         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95316         to avoid collisions with libcurses and libreadline.
95317         * getstr: Remove.
95318         * MODULES.html.sh: Remove getstr.
95319         * modules/getline: Depend on unlocked-io, not getstr.
95320
95321 2003-01-12  Jim Meyering  <jim@meyering.net>
95322
95323         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95324
95325 2003-01-10  Bruno Haible  <bruno@clisp.org>
95326
95327         * modules/alloca: Change Makefile.am requirements. Simplify Include
95328         requirements. Add lib/alloca_.h to file list.
95329
95330 2003-01-10  Bruno Haible  <bruno@clisp.org>
95331
95332         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95333
95334 2003-01-10  Bruno Haible  <bruno@clisp.org>
95335
95336         * lib/alloca_.h: New file.
95337         * lib/getdate.y: Unconditionally include alloca.h.
95338         * lib/makepath.c: Likewise.
95339         * lib/setenv.c: Likewise.
95340         * lib/userspec.c: Likewise.
95341
95342 2003-01-09  Karl Berry  <karl@gnu.org>
95343
95344         * MODULES.html.sh: include `dirname $0` in PATH, to find
95345         gnulib-tool.
95346
95347 2003-01-09  Bruno Haible  <bruno@clisp.org>
95348
95349         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95350         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95351
95352 2003-01-09  Bruno Haible  <bruno@clisp.org>
95353
95354         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95355
95356 2003-01-09  Bruno Haible  <bruno@clisp.org>
95357
95358         * lib/stdbool.h.in: New file.
95359
95360 2003-01-09  Bruno Haible  <bruno@clisp.org>
95361
95362         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95363         * MODULES.html.sh: Likewise.
95364
95365 2003-01-08  Jim Meyering  <jim@meyering.net>
95366
95367         * lib/full-write.c: Undefine and define-away `const' after inclusion
95368         of errno.h, not before.  Suggestion from Bruno Haible.
95369
95370 2003-01-08  Bruno Haible  <bruno@clisp.org>
95371
95372         * modules/full-read: Depend on full-write.
95373
95374 2003-01-08  Bruno Haible  <bruno@clisp.org>
95375
95376         * lib/safe-read.c: Include specification header first, to ensure its
95377         selfcontainedness.
95378         * lib/full-write.c: Likewise.
95379
95380 2003-01-07  Jim Meyering  <jim@meyering.net>
95381
95382         * lib/full-write.c: Rework so that it may serve to define full_read,
95383         too.
95384         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95385
95386 2003-01-07  Bruno Haible  <bruno@clisp.org>
95387
95388         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95389         <inttypes.h>.
95390         * lib/xstrtol.h: Likewise.
95391         * lib/xstrtoimax.c: Likewise.
95392         * lib/xstrtoumax.c: Likewise.
95393         * lib/human.h: Likewise.
95394
95395         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95396         on systems that have <inttypes.h> but not <stdint.h>.
95397
95398 2003-01-07  Bruno Haible  <bruno@clisp.org>
95399
95400         * MODULES.html.sh: Add copyright notice.
95401         (missed_files): Omit CVS directory entries.
95402         (func_module): Make it work with sed-3.02.
95403         * MODULES.txt: Remove file.
95404
95405 2003-01-06  Jim Meyering  <jim@meyering.net>
95406
95407         * lib/version-etc.c: Update year in translatable copyright string.
95408
95409 2003-01-03  Karl Berry  <karl@gnu.org>
95410
95411         * config/config.{guess,sub}: update from prep.
95412
95413 2003-01-02  Karl Berry  <karl@gnu.org>
95414
95415         * doc/COPYING.DOC: belatedly updated to 1.2.
95416
95417 2003-01-01  Karl Berry  <karl@gnu.org>
95418
95419         * gnulib-tool (func_verify_module): report module name $module in
95420         error message, not $1.
95421         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95422         be created, only if it doesn't exist.
95423         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95424
95425 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95426
95427         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95428
95429 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95430
95431         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95432         memcmp if strcoll doesn't work.
95433
95434 2002-12-31  Bruno Haible  <bruno@clisp.org>
95435
95436         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95437         nonempty.
95438
95439 2002-12-31  Bruno Haible  <bruno@clisp.org>
95440
95441         * lib/memcoll.c (STRCOLL): New macro.
95442         (memcoll): Use it.
95443
95444 2002-12-31  Bruno Haible  <bruno@clisp.org>
95445
95446         * lib/localcharset.h: New file.
95447         * lib/localcharset.c: Include it.
95448         * lib/unicodeio.c: Likewise.
95449
95450 2002-12-31  Bruno Haible  <bruno@clisp.org>
95451
95452         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95453         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95454
95455 2002-12-31  Bruno Haible  <bruno@clisp.org>
95456
95457         * lib/getline.h: Include <stddef.h>, for size_t.
95458
95459         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95460         * lib/unicodeio.c: Don't include <stddef.h>.
95461
95462 2002-12-31  Bruno Haible  <bruno@clisp.org>
95463
95464         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95465         HAVE_TM_ZONE.
95466
95467 2002-12-24  Karl Berry  <karl@gnu.org>
95468
95469         * config/config.guess: update from prep.
95470
95471 2002-12-24  Bruno Haible  <bruno@clisp.org>
95472
95473         General infrasructure.
95474         * m4/README: Rewritten.
95475         * m4/onceonly.m4: New file.
95476         * m4/onceonly_2_57.m4: New file.
95477
95478         Module atexit.
95479         * m4/atexit.m4: New file.
95480
95481         Module strtod.
95482         * m4/strtod.m4: New file.
95483
95484         Module strtol.
95485         * m4/strtol.m4: New file.
95486
95487         Module strtoul.
95488         * m4/strtoul.m4: New file.
95489
95490         Module memchr.
95491         * m4/memchr.m4: New file.
95492
95493         Module memcmp.
95494         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95495         (jm_FUNC_MEMCMP): Invoke it.
95496
95497         Module memcpy.
95498         * m4/memcpy.m4: New file.
95499
95500         Module memmove.
95501         * m4/memmove.m4: New file.
95502
95503         Module memset.
95504         * m4/memset.m4: New file.
95505
95506         Module strcspn.
95507         * m4/strcspn.m4: New file.
95508
95509         Module strpbrk.
95510         * m4/strpbrk.m4: New file.
95511
95512         Module strstr.
95513         * m4/strstr.m4: New file.
95514
95515         Module strerror.
95516         * m4/strerror.m4: New file.
95517
95518         Module mktime.
95519         * m4/mktime.m4: Renamed from jm-mktime.m4.
95520         (gl_PREREQ_MKTIME): New macro.
95521         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95522
95523         Module malloc.
95524         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95525         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95526         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95527
95528         Module realloc.
95529         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95530         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95531         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95532
95533         Module strftime.
95534         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95535         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95536         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95537         gl_TM_GMTOFF.
95538         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95539
95540         Module xalloc.
95541         * m4/xalloc.m4: New file.
95542
95543         Module alloca.
95544         * m4/alloca.m4: New file.
95545
95546         Module putenv.
95547         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95548         (jm_FUNC_PUTENV): Invoke it.
95549
95550         Module setenv.
95551         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95552         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95553         when invoked twice.
95554         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95555         gt_FUNC_SETENV.
95556
95557         Module memrchr.
95558         * m4/memrchr.m4: New file.
95559
95560         Module stpcpy.
95561         * m4/stpcpy.m4: New file.
95562
95563         Module strcase.
95564         * m4/strcase.m4: New file.
95565
95566         Module strdup.
95567         * m4/strdup.m4: New file.
95568
95569         Module strnlen.
95570         * m4/strnlen.m4: New file.
95571
95572         Module strndup.
95573         * m4/strndup.m4: New file.
95574
95575         Module xstrtod.
95576         * m4/xstrtod.m4: New file.
95577
95578         Module xstrtol.
95579         * m4/xstrtol.m4: New file.
95580
95581         Module getdate.
95582         * m4/getdate.m4: New file.
95583
95584         Module unlocked-io.
95585         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95586         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95587         * m4/jm-glibc-io.m4n: Remove file.
95588
95589         Module long-options.
95590         * m4/long-options.m4: New file.
95591
95592         Module md5.
95593         * m4/md5.m4: New file.
95594
95595         Module sha.
95596         * m4/sha.m4: New file.
95597
95598         Module getstr.
95599         * m4/getstr.m4: New file.
95600
95601         Module getline.
95602         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95603         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95604         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95605         simply getline. Infoke gl_PREREQ_GETLINE.
95606
95607         Module obstack.
95608         * m4/obstack.m4: New file.
95609
95610         Module hash.
95611         * m4/hash.m4: New file.
95612
95613         Module readtokens.
95614         * m4/readtokens.m4: New file.
95615
95616         Module strverscmp.
95617         * m4/strverscmp.m4: New file.
95618
95619         Module stdbool.
95620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95621         OSF/1.
95622
95623         Module strtoll.
95624         * m4/strtoll.m4: New file.
95625
95626         Module strtoull.
95627         * m4/strtoull.m4: New file.
95628
95629         Module strtoimax.
95630         * m4/strtoimax.m4: New file.
95631
95632         Module strtoumax.
95633         * m4/strtoumax.m4: New file.
95634
95635         Module xstrtoimax.
95636         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95637         jm_AC_PREREQ_XSTRTOIMAX.
95638         Moved the strtol prerequisites to strtol.m4.
95639         Moved the strtoll prerequisites to strtoll.m4.
95640         Moved the strtoimax prerequisites to strtoimax.m4.
95641
95642         Module xstrtoumax.
95643         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95644         jm_AC_PREREQ_XSTRTOUMAX.
95645         Moved the strtoul prerequisites to strtoul.m4.
95646         Moved the strtoull prerequisites to strtoull.m4.
95647         Moved the strtoumax prerequisites to strtoumax.m4.
95648
95649         Module chown.
95650         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95651         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95652
95653         Module dup2.
95654         * m4/dup2.m4: New file.
95655
95656         Module ftruncate.
95657         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95658         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95659
95660         Module getgroups.
95661         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95662         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95663
95664         Module gettimeofday.
95665         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95666         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95667         gl_PREREQ_GETTIMEOFDAY.
95668
95669         Module mkdir.
95670         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95671         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95672
95673         Module mkstemp.
95674         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95675         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95676         jm_AC_TYPE_UINTMAX_T.
95677         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95678
95679         Module stat.
95680         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95681         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95682
95683         Module lstat.
95684         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95685         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95686
95687         Module timespec.
95688         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95689         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95690         * m4/st_mtim.m4: Indentation.
95691
95692         Module nanosleep.
95693         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95694         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95695         gl_PREREQ_NANOSLEEP.
95696
95697         Module regex.
95698         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95699         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95700         (gl_REGEX): New macro.
95701
95702         Module rename.
95703         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95704         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95705
95706         Module rmdir.
95707         * m4/rmdir.m4: New file.
95708
95709         Module utime.
95710         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95711         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95712         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95713
95714         Module dirname.
95715         * m4/dirname.m4: New file.
95716
95717         Module getopt.
95718         * m4/getopt.m4: New file.
95719
95720         Module unistd-safer.
95721         * m4/unistd-safer.m4: New file.
95722
95723         Module fnmatch.
95724         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95725         declaration.
95726         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95727         (gl_FUNC_FNMATCH_POSIX): New macro.
95728         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95729         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95730         simply fnmatch.
95731
95732         Module exclude.
95733         * m4/exclude.m4: New file.
95734
95735         Module human.
95736         * m4/human.m4: New file.
95737
95738         Module acl.
95739         * m4/acl.m4: Nop.
95740
95741         Module backupfile.
95742         * m4/backupfile.m4: New file.
95743         * m4/d-ino.m4: Indentation.
95744
95745         Module fsusage.
95746         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95747         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95748         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95749
95750         Module dirfd.
95751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95752         requirements.
95753
95754         Module euidaccess.
95755         * m4/euidaccess.m4: New file.
95756
95757         Module file-type.
95758         * m4/file-type.m4: New file.
95759
95760         Module fileblocks.
95761         * m4/fileblocks.m4: New file.
95762
95763         Module filemode.
95764         * m4/filemode.m4: New file.
95765
95766         Module isdir.
95767         * m4/isdir.m4: New file.
95768
95769         Module lchown.
95770         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95771         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95772
95773         Module makepath.
95774         * m4/makepath.m4: New file.
95775
95776         Module modechange.
95777         * m4/modechange.m4: New file.
95778
95779         Module mountlist.
95780         * m4/mountlist.m4: New file.
95781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95782         Indentation.
95783
95784         Module path-concat.
95785         * m4/path-concat.m4: New file.
95786
95787         Module pathmax.
95788         * m4/pathmax.m4: New file.
95789
95790         Module same.
95791         * m4/same.m4: New file.
95792
95793         Module save-cwd.
95794         * m4/save-cwd.m4: New file.
95795
95796         Module savedir.
95797         * m4/savedir.m4: New file.
95798
95799         Module xgetcwd.
95800         * m4/xgetcwd.m4: New file.
95801         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95802
95803         Module xreadlink.
95804         * m4/xreadlink.m4: New file.
95805
95806         Module safe-read.
95807         * m4/safe-read.m4: New file.
95808
95809         Module safe-write.
95810         * m4/safe-write.m4: New file.
95811
95812         Module closeout.
95813         * m4/closeout.m4: New file.
95814
95815         Module stdio-safer.
95816         * m4/stdio-safer.m4: New file.
95817
95818         Module getpass.
95819         * m4/getpass.m4: New file.
95820
95821         Module getugroups.
95822         * m4/getugroups.m4: New file.
95823
95824         Module group-member.
95825         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95826         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95827
95828         Module idcache.
95829         * m4/idcache.m4: New file.
95830
95831         Module userspec.
95832         * m4/userspec.m4: New file.
95833
95834         Module gettime.
95835         * m4/clock_time.m4: New file.
95836         * m4/gettime.m4: New file.
95837
95838         Module settime.
95839         * m4/settime.m4: New file.
95840
95841         Module posixtm.
95842         * m4/posixtm.m4: New file.
95843
95844         Module gethostname.
95845         * m4/gethostname.m4: New file.
95846
95847         Module canon-host.
95848         * m4/canon-host.m4: New file.
95849
95850         Module gettext.
95851         * m4/codeset.m4: New file, from gettext-0.11.5.
95852         * m4/gettext.m4: New file, from gettext-0.11.5.
95853         * m4/glibc21.m4: New file, from gettext-0.11.5.
95854         * m4/iconv.m4: New file, from gettext-0.11.5.
95855         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95856         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95857         * m4/inttypes.m4: New file, from gettext-0.11.5.
95858         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95859         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95860         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95861         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95862         * m4/lib-link.m4: New file, from gettext-0.11.5.
95863         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95864         * m4/progtest.m4: New file, from gettext-0.11.5.
95865         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95866         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95867         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95868
95869         Module localcharset.
95870         * m4/localcharset.m4: New file.
95871
95872         Module hard-locale.
95873         * m4/hard-locale.m4: New file.
95874
95875         Module mbswidth.
95876         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95877         onceonly macros.
95878         * m4/mbrtowc.m4: Add comment.
95879
95880         Module memcasecmp.
95881         * m4/memcasecmp.m4: New file.
95882
95883         Module memcoll.
95884         * m4/memcoll.m4: New file.
95885
95886         Module unicodeio.
95887         * m4/unicodeio.m4: New file.
95888
95889         Module rpmatch.
95890         * m4/rpmatch.m4: New file.
95891
95892         Module yesno.
95893         * m4/yesno.m4: New file.
95894
95895         Module exitfail.
95896         * m4/exitfail.m4: New file.
95897
95898         Module c-stack.
95899         * m4/c-stack.m4 (gl_C_STACK): New macro.
95900         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95901
95902         Module error.
95903         * m4/error.m4 (gl_ERROR): New macro.
95904         (jm_PREREQ_ERROR): Use onceonly macros.
95905
95906         Module fatal.
95907         * m4/fatal.m4: New file.
95908
95909         Module getloadavg.
95910         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95911         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95912
95913         Module getpagesize.
95914         * m4/getpagesize.m4: New file.
95915
95916         Module getusershell.
95917         * m4/getusershell.m4: New file.
95918
95919         Module physmem.
95920         * m4/physmem.m4: New file.
95921
95922         Module posixver.
95923         * m4/posixver.m4: New file.
95924
95925         Module quotearg.
95926         * m4/quotearg.m4: New file.
95927
95928         Module quote.
95929         * m4/quote.m4: New file.
95930
95931         Module readutmp.
95932         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95933
95934         Module sig2str.
95935         * m4/sig2str.m4: New file.
95936
95937         Other.
95938         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95939         ulonglong.m4.
95940         * m4/intmax_t.m4: New file.
95941         * m4/d-type.m4: Indentation.
95942         * m4/jm-macros.m4: Update.
95943         * m4/prereq.m4 (jm_PREREQ): Update.
95944         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95945         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95946         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95947         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95948         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95949         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95950         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95951         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95952         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95953         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95954         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95955         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95956         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95957         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95958         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95959         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95960         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95961         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95962         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95963
95964 2002-12-24  Bruno Haible  <bruno@clisp.org>
95965
95966         * MODULES.txt: Update according to m4/ changes.
95967
95968         Module gettext.
95969         * config.rpath: New file, from gettext-0.11.5.
95970
95971         * modules/*: New module descriptions.
95972         * gnulib-tool: New file.
95973         * MODULES.html.sh: New file.
95974
95975 2002-12-21  Karl Berry  <karl@gnu.org>
95976
95977         * doc/fdl.texi: update to version 1.2.
95978
95979 2002-12-19  Karl Berry  <karl@gnu.org>
95980
95981         * config/config.guess: update from prep.
95982
95983 2002-12-18  Bruno Haible  <bruno@clisp.org>
95984
95985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95986         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95987
95988 2002-12-17  Bruno Haible  <bruno@clisp.org>
95989
95990         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95991         stdlib.h, string.h.
95992
95993 2002-12-17  Bruno Haible  <bruno@clisp.org>
95994
95995         * lib/canon-host.c (strdup): Remove unused declaration.
95996
95997         * lib/fsusage.c: Include full_read.h.
95998         (get_fs_usage): Use full_read instead of safe_read.
95999
96000         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96001
96002 2002-12-12  Karl Berry  <karl@gnu.org>
96003
96004         * config/config.guess: update from prep.
96005
96006 2002-12-11  Bruno Haible  <bruno@clisp.org>
96007
96008         * m4/setenv.m4: New file, from gettext-0.11.5.
96009
96010 2002-12-11  Bruno Haible  <bruno@clisp.org>
96011
96012         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96013         not unsetenv().
96014         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96015         modifications:
96016
96017         2002-12-11  Bruno Haible  <bruno@clisp.org>
96018
96019                 * setenv.c (alloca): Fall back to malloc.
96020                 (freea): New macro.
96021                 (setenv): Use freea() to free memory allocated with alloca().
96022
96023         2002-11-13  Bruno Haible  <bruno@clisp.org>
96024
96025                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96026                 function declarations.
96027                 * unsetenv.c (unsetenv): Likewise.
96028
96029         2002-03-04  Bruno Haible  <bruno@clisp.org>
96030
96031                 Portability to AIX 4.3.3.
96032                 * unsetenv.c: New file, extracted from setenv.c.
96033                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96034
96035         2001-12-20  Bruno Haible  <bruno@clisp.org>
96036
96037                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96038                 use malloc instead. For SunOS 4.
96039
96040         2001-12-11  Bruno Haible  <bruno@clisp.org>
96041
96042                 * setenv.c: Declare alloca.
96043                 (compar_fn_t): New typedef.
96044                 (KNOWN_VALUE, STORE_VALUE): Use it.
96045
96046         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96047         setenv.h.
96048
96049 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96050
96051         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96052         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96053         Choose values that are less likely to collide with system fnmatch
96054         options.
96055         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96056         defined (e.g., a pure POSIX system).
96057         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96058         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96059
96060 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96061
96062         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96063         a pain in practice to deal with generated m4 files.  This change
96064         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96065
96066         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96067         and jm-glibc-io.m4, as they are no longer a special case.
96068         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96069         kludge and the auto-generation stuff.  Check only whether the
96070         functions are declared, not whether they exist, since older hosts
96071         that don't declare the functions can't use the optimization anyway.
96072
96073 2002-12-06  Jim Meyering  <jim@meyering.net>
96074
96075         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96076
96077         Merge in changes from libc's misc/error.c, in preparation
96078         for the merge of gnulib's changes back into libc.
96079
96080         * lib/error.c (_): Define only if not already defined.
96081         Move definition to follow all #include directives.
96082         Include unlocked-io.h only if !_LIBC.
96083         [_LIBC]: Include <libio/libioP.h>.
96084         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96085         (fflush): Tweak definition to use INTUSE.
96086         (putc): Define.
96087
96088 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96089
96090         * lib/alloca.c [defined emacs]: Include "lisp.h".
96091         (xalloc_die) [defined emacs]: New macro.
96092         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96093         [! defined emacs]: Include <xalloc.h>.
96094         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96095         (pointer): Typedef to POINTER_TYPE *.
96096         (malloc): Remove decl; we now always use xmalloc.
96097         (alloca): Use old-style definition, since Emacs needs this.
96098         Check for arithmetic overflow when computing combined size.
96099
96100 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96101
96102         Do not generate unlocked-io.h automatically, since it's easier to
96103         maintain it by hand.
96104
96105         * lib/unlocked-io.h: New file, from GNU diffutils,
96106         but with proper copyright notice and attribution.
96107         * lib/gen-uio: Remove.
96108         * lib/Makefile.am: Add copyright notice.
96109         (libfetish_a_SOURCES): Add unlocked-io.h.
96110         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96111         (DISTCLEANFILES, io_functions): Remove macros.
96112         (EXTRA_DIST): Remove gen_uio.
96113         (unlocked-io.h): Remove rule.
96114
96115 2002-12-04  Jim Meyering  <jim@meyering.net>
96116
96117         Reflect the fact that stat.c and lstat.c are no longer generated.
96118         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96119         (DISTCLEANFILES): Likewise.
96120         (EXTRA_DIST): Likewise.
96121         (all_local): Don't depend on stat.c or lstat.c.
96122         (stat.c, lstat.c): Remove rules.
96123         (EXTRA_DIST): Remove xstat.in.
96124
96125         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96126         * lib/stat.c: New file.  Contents mostly from xstat.in.
96127         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96128         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96129
96130         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96131         too.
96132         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96133
96134 2002-12-03  Jim Meyering  <jim@meyering.net>
96135
96136         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96137         but not semantics, to minimize the differences between these two files.
96138         (safe_read): Change comment to mention SAFE_READ_ERROR.
96139
96140         * lib/safe-read.c (IS_EINTR): Define.
96141         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96142
96143 2002-12-02  Jim Meyering  <jim@meyering.net>
96144
96145         * lib/safe-read.c (EINTR): Define.
96146         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96147         (INT_MAX): Provide fallback.
96148         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96149
96150         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96151
96152 2002-12-02  Bruno Haible  <bruno@clisp.org>
96153
96154         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96155         Define, taken from safe-read.c.
96156         (INT_MAX): Provide fallback.
96157         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96158         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96159
96160         * lib/safe-read.c (EINTR): Remove definition.
96161         (safe_read): Don't use EINTR if it is absent.
96162
96163 2002-12-01  Jim Meyering  <jim@meyering.net>
96164
96165         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96166         zero.
96167         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96168
96169 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96170
96171         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96172         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96173         with `if (! (value < limit)) abort ();', for readability.
96174
96175 2002-11-26  Karl Berry  <karl@gnu.org>
96176
96177         * lib/strdup.c: copy from libc again, with jim's ok.
96178         * lib/.cppi-disable: re-add strdup.c
96179
96180 2002-11-25  Karl Berry  <karl@gnu.org>
96181
96182         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96183         instead of "strtol.c".
96184
96185 2002-11-25  Karl Berry  <karl@gnu.org>
96186
96187         * config/install-sh: update from automake for variable quoting, $0 in
96188         error msgs, etc.
96189
96190         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96191         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96192         entry.
96193
96194 2002-11-25  Jim Meyering  <jim@meyering.net>
96195
96196         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96197
96198 2002-11-24  Karl Berry  <karl@gnu.org>
96199
96200         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96201         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96202
96203 2002-11-24  Jim Meyering  <jim@meyering.net>
96204
96205         Update from coreutils:
96206
96207         * lib/mktime.c: Merge in changes from libc.
96208
96209         Avoid a link-time failure on some Linux systems.
96210         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96211         (otherwise).
96212         (__mon_yday): Declare with the STATIC attribute.
96213         (__mktime_internal): Likewise.
96214         Based on a report from Greg Schafer.
96215
96216 2002-11-23  Jim Meyering  <jim@meyering.net>
96217
96218         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96219         Use `unsigned', not `int', as type of index.
96220
96221         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96222
96223         * lib/fsusage.c: Remove unneeded parentheses around operands of
96224         `defined'.
96225
96226 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96227
96228         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96229         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96230         so that we can be included first.
96231         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96232         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96233         No need to include stddef.h or sys/types.h any more.
96234         Surround local include files with "", not "<>".
96235         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96236         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96237         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96238         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96239         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96240         (ISPRINT): Remove; no longer needed now that we assume C89.
96241
96242         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96243         Preserve errno.
96244
96245         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96246         quotearg_char): Use SIZE_MAX rather than
96247         (size_t) -1 when we are talking about "infinity".
96248
96249         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96250
96251 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96252
96253         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96254         hint that one should use `if (! x) abort ();' rather than `assert
96255         (x);', and anyway it's one less thing to worry about configuring.
96256         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96257         hash_rehash, hash_insert): Use abort rather than assert.
96258
96259 2002-11-22  Bruno Haible  <bruno@clisp.org>
96260
96261         * lib/safe-read.h: Assume C89. Add comments.
96262         (safe_read): Change return type to size_t.
96263         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96264         byte counts > SSIZE_MAX correctly.
96265         * lib/safe-write.h: New file.
96266         * lib/safe-write.c: New file.
96267         * lib/full-read.h: New file.
96268         * lib/full-read.c: New file.
96269         * lib/full-write.h: Assume C89. Add comments.
96270         * lib/full-write.c: Include safe-write.h.
96271         (full_write): Rewritten to use safe_write.
96272         Suggested by Jim Meyering and Paul Eggert.
96273
96274 2002-11-21  Jim Meyering  <jim@meyering.net>
96275
96276         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96277
96278         Merge in changes from the coreutils.
96279
96280         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96281         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96282         <stdint.h>.
96283         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96284         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96285         int.  Work more efficiently if X is the same width as uintmax_t.
96286         Do not compare X to -1, to avoid bogus compiler warning.
96287         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96288         Don't assume that f_frsize and f_bsize are the same type.
96289
96290         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96291         warning on FreeBSD.
96292
96293         * lib/makepath.c (make_path): Restore umask *before* creating the final
96294         component.
96295         (make_path): Minor reformatting.
96296
96297         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96298         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96299         HAVE_MALLOC/HAVE_REALLOC.
96300
96301         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96302         dummy ones.  At least on GNU/Linux systems, `auto' means something
96303         else.
96304         From Michael Stone.
96305
96306 2002-11-21  Bruno Haible  <bruno@clisp.org>
96307
96308         Remove case insensitive option matching.
96309         * lib/argmatch.h (argcasematch): Remove declaration.
96310         (ARGCASEMATCH): Remove macro.
96311         (__xargmatch_internal): Remove case_sensitive argument.
96312         (XARGMATCH): Update.
96313         (XARGCASEMATCH): Remove macro.
96314         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96315         case_sensitive argument.
96316         (argcasematch): Remove function.
96317         (__xargmatch_internal): Remove case_sensitive argument.
96318         (main): Use XARGMATCH instead of XARGCASEMATCH.
96319
96320         * lib/xmalloc.c: Change compile-time error message. Add comment about
96321         required autoconf version.
96322
96323 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96324
96325         Merge argmatch cleanups from Bison.  Assume C89.
96326
96327         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96328         Include stdlib.h, for EXIT_FAILURE.
96329         Always include <string.h>, since we assume C89.
96330         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96331         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96332         Include <stddef.h> instead, since it's all we need for size_t.
96333         (PARAMS): Remove.  All uses removed.
96334         (ARRAY_CARDINALITY): Do not bother to #undef.
96335         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96336         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96337         Remove unnecessary parentheses.
96338         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96339         Insert necessary parentheses.
96340         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96341         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96342
96343 2002-11-19  Bruno Haible  <bruno@clisp.org>
96344
96345         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96346         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96347
96348         * lib/mbswidth.h (PARAMS): Remove macro.
96349         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96350         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96351
96352         * lib/gcd.h (PARAMS): Remove macro.
96353         (gcd): Use ANSI C function declarations.
96354         * lib/gcd.c (gcd): Likewise.
96355
96356 2002-11-15  Bruno Haible  <bruno@clisp.org>
96357
96358         * lib/strcspn.c: Include <stddef.h>.
96359         (strcspn): Use ANSI C function declaration. Change return type to
96360         size_t. Use NULL.
96361         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96362         (strpbrk): Use NULL.
96363         * lib/strpbrk.h (PARAMS): Remove macro.
96364         (strpbrk): Use ANSI C function declaration.
96365         * lib/strstr.c: Don't include <sys/types.h>.
96366         * lib/strstr.h (PARAMS): Remove macro.
96367         (strstr): Use ANSI C function declarations.
96368
96369 2002-11-14  Karl Berry  <karl@gnu.org>
96370
96371         * config/mkinstalldirs: `do' on separate line, instead of
96372         `for var; do'.
96373
96374 2002-11-06  Bruno Haible  <bruno@clisp.org>
96375
96376         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96377         * lib/gcd.c (gcd): Likewise.
96378
96379 2002-11-05  Bruno Haible  <bruno@clisp.org>
96380
96381         * lib/gcd.h: New file, from gettext-0.11.5.
96382         * lib/gcd.c: New file, from gettext-0.11.5.
96383
96384 2002-11-05  Bruno Haible  <bruno@clisp.org>
96385
96386         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96387         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96388         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96389         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96390
96391         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96392         <libintl.h>.
96393         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96394         <libintl.h>.
96395
96396         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96397         * lib/human.c: Include gettext.h instead of <libintl.h>.
96398         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96399         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96400         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96401         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96402         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96403         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96404         (textdomain): Remove definition.
96405         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96406
96407         * lib/long-options.c: Remove include of <libintl.h> and definition of
96408         _.
96409         * lib/same.c: Remove include of <libintl.h> and definition of _.
96410
96411 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96412
96413         * lib/config.charset: A few additions for Solaris.
96414
96415 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96416
96417         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96418         * lib/localcharset.c (locale_charset): Declare as extern "C".
96419
96420 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96421
96422         * lib/config.charset: msdos in uk_UA uses CP1125.
96423
96424 2002-11-04  Bruno Haible  <bruno@clisp.org>
96425
96426         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96427         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96428         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96429         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96430         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96431
96432 2002-11-04  Bruno Haible  <bruno@clisp.org>
96433
96434         * lib/localcharset.c (locale_charset): Don't return an empty string.
96435
96436 2002-11-04  Bruno Haible  <bruno@clisp.org>
96437
96438         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96439         aliases.
96440
96441 2002-11-04  Bruno Haible  <bruno@clisp.org>
96442
96443         * lib/config.charset: Update for newest glibc. Add canonical names
96444         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96445
96446 2002-11-04  Bruno Haible  <bruno@clisp.org>
96447
96448         * lib/config.charset: Add support for NetBSD.
96449
96450 2002-11-04  Bruno Haible  <bruno@clisp.org>
96451
96452         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96453
96454 2002-11-01  Bruno Haible  <bruno@clisp.org>
96455
96456         * configure.in: Add AC_CONFIG_AUX_DIR call.
96457         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96458         test/Makefile.
96459         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96460
96461 2002-09-28  Karl Berry  <karl@gnu.org>
96462
96463         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96464         installed automake until the next release, since changes have been
96465         made.
96466
96467 2002-09-25  Karl Berry  <karl@gnu.org>
96468
96469         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96470         * lib/getopt*: copy from libc/posix.
96471         * lib/gettext.h: copy from gettext.
96472         * lib/.cppi-disable: add strdup.c, gettext.h.
96473
96474 2002-09-25  Karl Berry  <karl@gnu.org>
96475
96476         * config/srclist.txt: enable gettext.h check.
96477         * config/config.{guess,sub}: update from prep.
96478         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96479                 from automake 1.6.3.
96480         See srclist*.
96481
96482 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96483
96484         * regex.c (PATFETCH): Remove the translating fetch.
96485         (PATFETCH_RAW): Rename to PATFETCH.
96486         (set_image_of_range): New fun.
96487         (SET_RANGE_TABLE_WORK_AREA): Use it.
96488         (regex_compile): Don't translate the pattern chars so eagerly.
96489         Only do it when inserting an `exactn' bytecode or when handling
96490         a char-range.
96491         (mutually_exclusive_p): Avoid empty statement.
96492
96493 2002-07-06  Jim Meyering  <meyering@lucent.com>
96494
96495         * m4/README: Don't mention Makefile.am.in.
96496         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96497
96498 2002-07-01  Jim Meyering  <meyering@lucent.com>
96499
96500         * lib/c-stack.c: Include sys/time.h.
96501         From Volker Borchert.
96502
96503 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96504
96505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96506
96507 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96508
96509         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96510         New macro.  Use it uniformly instead of
96511         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96512         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96513         reported by Vin Shelton.
96514
96515 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96516
96517         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96518         Do not assume SA_SIGINFO behavior.
96519         Bug reported by Jim Meyering on NetBSD 1.5.2.
96520
96521 2002-06-22  Jim Meyering  <meyering@lucent.com>
96522
96523         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96525
96526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96527         now that configure.ac uses AC_GNU_SOURCE.
96528         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96529         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96530
96531         Update to latest tools.  Suggestions from Paul Eggert.
96532         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96533         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96534         * m4/fnmatch.m4: Likewise.
96535         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96536         to AC_HEADER_STDBOOL
96537
96538 2002-06-22  Jim Meyering  <meyering@lucent.com>
96539
96540         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96541         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96542
96543 2002-06-22  Jim Meyering  <meyering@lucent.com>
96544
96545         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96546
96547         * lib/exitfail.c, exitfail.h: Likewise.
96548         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96549
96550         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96551         of fnmatch.h.
96552         (EXTRA_DIST): Add fnmatch_loop.c.
96553         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96554
96555         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96556         * lib/fnmatch.c: Update from diffutils-2.8.2.
96557         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96558         * lib/fnmatch.h: Remove file.
96559
96560 2002-06-21  Jim Meyering  <meyering@lucent.com>
96561
96562         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96563         * m4/mbrtowc.m4: Likewise.
96564
96565         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96566         * m4/mbswidth.m4: Reflect name change:
96567         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96568         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96569
96570         * m4/lib-link.m4: Update from gettext-0.11.2.
96571         * m4/gettext.m4: Likewise.
96572
96573         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96574         From Alfred M. Szmidt.
96575
96576 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96577
96578         * lib/file-type.h: Report an error if neither S_ISREG nor
96579         S_IFREG is defined, instead of using a test specific to glibc
96580         2.2.  This should be safe, since POSIX requires S_ISREG and
96581         Unix Version 7 had S_IFREG.  We don't need to check for
96582         <sys/types.h> since we don't use any symbols that it defines.
96583
96584 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96585
96586         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96587         $@-t, so that each temporary file name is unique and valid in the first
96588         8 characters, for operation under DOS.
96589
96590 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96591
96592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96593
96594 2002-06-15  Jim Meyering  <meyering@lucent.com>
96595
96596         Work even with DJGPP 2.03, which lacks support for symlinks.
96597         From Richard Dawe.
96598         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96599         is defined.
96600         * lib/lchown.c (S_ISLNK): Likewise.
96601
96602 2002-06-15  Jim Meyering  <meyering@lucent.com>
96603
96604         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96605         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96606         have been included before this file.
96607
96608 2002-06-14  Jim Meyering  <meyering@lucent.com>
96609
96610         * lib/file-type.h: Use the version from diffutils-2.8.2.
96611         * lib/file-type.c: Likewise.
96612
96613 2002-06-07  Jim Meyering  <meyering@lucent.com>
96614
96615         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96616         They're needed at least for NetBSD 1.5.2.
96617         ($statxfs_includes): Include those same headers.
96618         ($statxfs_includes): Include sys/vfs.h if available.
96619         ($statxfs_includes): Likewise for sys/statvfs.h.
96620         Check for the following members in both structs statfs and statvfs:
96621         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96622
96623 2002-06-01  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96626         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96627
96628 2002-05-28  Jim Meyering  <meyering@lucent.com>
96629
96630         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96631         Reported by Volker Borchert.
96632
96633 2002-05-27  Jim Meyering  <meyering@lucent.com>
96634
96635         Fix a problem seen only on nonconforming systems whereby ls.c's
96636         use of localtime, and then of gettimeofday would cause trouble:
96637         the localtime call used to initialize rpl_gettimeofday's save
96638         mechanism would clobber ls's current local time information so
96639         that in any long listing the first file would always be listed
96640         with date 1970-01-01.  Analysis by Volker Borchert.
96641
96642         * lib/gettimeofday.c (localtime): Undefine.
96643         (rpl_localtime): New function.
96644
96645 2002-05-27  Jim Meyering  <meyering@lucent.com>
96646
96647         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96648         localtime.
96649
96650         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96651         use the replacement function; it wouldn't resolve at link time.
96652         Reported by Volker Borchert.
96653
96654 2002-05-22  Jim Meyering  <meyering@lucent.com>
96655
96656         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96657         file-type.h.
96658         * lib/file-type.h: New file.
96659         * lib/file-type.c (file_type): New file/function.  Extracted from
96660         diffutils.
96661
96662 2002-04-30  Jim Meyering  <meyering@lucent.com>
96663
96664         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96665
96666 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96667
96668         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96669
96670 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96671
96672         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96673         Do not check for alloca.h (no longer used) or stdbool.h (was never
96674         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96675
96676 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96677
96678         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96679
96680 2002-04-29  Jim Meyering  <meyering@lucent.com>
96681
96682         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96683         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96684         Use AC_FUNC_STRNLEN here instead.
96685
96686         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96687         With autoconf-2.53a, it's part of AC_PROG_CC.
96688
96689 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96690
96691         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96693
96694 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96695
96696         * lib/sig2str.h, lib/sig2str.c: New files.
96697         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96698
96699 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96700
96701         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96702         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96703         of 127, since 64 is the largest conceivable number for ancient
96704         nonstandard hosts.
96705         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96706
96707 2002-04-28  Jim Meyering  <meyering@lucent.com>
96708
96709         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96710
96711 2002-04-24  Jim Meyering  <meyering@lucent.com>
96712
96713         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96714         (jm_PREREQ): Use it.
96715
96716         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96717         mach/mach.h fcntl.h.
96718         Check for this function: setlocale.
96719
96720 2002-04-24  Jim Meyering  <meyering@lucent.com>
96721
96722         * lib/gettext.h: New file, from Gettext.
96723         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96724         (libfetish_a_SOURCES): Add gettext.h.
96725
96726 2002-04-16  Jim Meyering  <meyering@lucent.com>
96727
96728         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96729         ut_pid, ut_id, ut_exit.
96730
96731 2002-04-16  Jim Meyering  <meyering@lucent.com>
96732
96733         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96734         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96735         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96736
96737 2002-04-12  Jim Meyering  <meyering@lucent.com>
96738
96739         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96740         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96741         existence of the getmntinfo function.  Needed for Darwin 5.3.
96742
96743         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96744         This is necessary at least on Darwin 5.3.
96745
96746         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96747         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96748         strnlen.o in the library, and that makes some versions of ranlib
96749         object.
96750
96751 2002-04-12  Jim Meyering  <meyering@lucent.com>
96752
96753         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96754
96755 2002-04-09  Jim Meyering  <meyering@lucent.com>
96756
96757         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96758         to be more precise.  Rather than saying we're checking whether the
96759         function `works', say what we're testing.
96760         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96761         Reported by Bruno Haible.
96762
96763 2002-03-10  Jim Meyering  <meyering@lucent.com>
96764
96765         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96766         Suggestion from Santiago Vila.
96767
96768 2002-03-08  Jim Meyering  <meyering@lucent.com>
96769
96770         * lib/rename.c: Mention that this wrapper is needed also on
96771         mips-dec-ultrix4.4 systems.
96772
96773 2002-03-02  Jim Meyering  <meyering@lucent.com>
96774
96775         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96776         not HAVE_CLOCK_SETTIME.
96777
96778 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96779
96780         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96781         Check for clock_settime.
96782
96783 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96784
96785         * lib/nanosleep.h: Rename to....
96786         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96787
96788         * lib/gettime.c: New file.
96789         * lib/settime.c: New file.
96790         * lib/stime.c: Remove.
96791
96792         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96793         timespec.h.  Remove nanosleep.h.
96794
96795 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96796
96797         * m4/acl.m4: New file.
96798         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96799         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96800
96801 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96802
96803         * lib/acl.c, lib/acl.h: New files.
96804         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96805
96806 2002-02-24  Jim Meyering  <meyering@lucent.com>
96807
96808         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96809         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96810         cause trouble.  Reported by Nelson Beebe.
96811
96812 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96813
96814         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96815         compilers that don't know that xalloc_die never returns.
96816
96817 2002-02-20  Jim Meyering  <meyering@lucent.com>
96818
96819         * lib/getdate.c: Regenerate using bison-1.33.
96820
96821 2002-02-17  Jim Meyering  <meyering@lucent.com>
96822
96823         * config/config.guess (main): Don't use `head -1'; it's no longer
96824         portable. Use `sed 1q' instead.
96825
96826 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96827
96828         * m4/codeset.m4: Upgrade to gettext-0.11.
96829         * m4/gettext.m4: Upgrade to gettext-0.11.
96830         * m4/glibc21.m4: Upgrade to gettext-0.11.
96831         * m4/iconv.m4: Upgrade to gettext-0.11.
96832         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96833         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96834         * m4/lib-ld.m4: New file, from gettext-0.11.
96835         * m4/lib-link.m4: New file, from gettext-0.11.
96836         * m4/lib-prefix.m4: New file, from gettext-0.11.
96837         * m4/progtest.m4: Upgrade to gettext-0.11.
96838
96839 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96840
96841         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96842         (jm_PREREQ): Use it.
96843
96844 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96845
96846         * lib/posixver.c, lib/posixver.h: New files.
96847         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96848
96849 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96850             Bruno Haible  <bruno@clisp.org>
96851
96852         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96853         (fwrite_success_callback): New declaration.
96854         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96855         print_unicode_char. Call failure callback instead of error.
96856         (fwrite_success_callback): New function.
96857         (exit_failure_callback): New function.
96858         (fallback_failure_callback): New function.
96859         (print_unicode_char): Call unicode_to_mb.
96860
96861 2002-01-26  Jim Meyering  <meyering@lucent.com>
96862
96863         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96864         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96865
96866 2002-01-26  Jim Meyering  <meyering@lucent.com>
96867
96868         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96869
96870 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96871
96872         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96873
96874 2002-01-22  Jim Meyering  <meyering@lucent.com>
96875
96876         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96877         Otherwise, some versions of automake would omit the rule that makes
96878         Makefile from Makefile.in.
96879
96880 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96881
96882         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96883         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96884         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96885         (memcoll): Set errno to zero if there is no error.
96886
96887         * lib/quotearg.c (quotearg_buffer_restyled):
96888         Fix bug with quoting buffers containing NUL when backslashing escapes.
96889         This bug was exposed by the other changes in this patch.
96890         (quotearg_n_options): New arg ARGSIZE.
96891         All callers changed.
96892         (quoting_options_from_style): New function.
96893         (quotearg_n_style): Use it.
96894         (quotearg_n_style_mem): New function.
96895
96896         * lib/quotearg.h (quotearg_n_style_mem): New function.
96897
96898 2002-01-19  Jim Meyering  <meyering@lucent.com>
96899
96900         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96901         Remove useless quotes: DF_PROG="df".
96902         * m4/strnlen.m4: New file.
96903
96904 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96905
96906         * lib/backupfile.c (ISDIGIT): Comment fix.
96907         * lib/getdate.y (ISDIGIT): Likewise.
96908         * lib/posixtm.c (ISDIGIT, year): Likewise.
96909         * lib/strverscmp.c (ISDIGIT): Likewise.
96910         * lib/userspec.c (ISDIGIT): Likewise.
96911
96912 2002-01-16  Jim Meyering  <meyering@lucent.com>
96913
96914         * lib/getdate.y: Add three semicolons, each just before a closing
96915         brace. Bison (as of version 1.31) no longer papers over that mistake.
96916
96917 2002-01-05  Jim Meyering  <meyering@lucent.com>
96918
96919         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96920
96921 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96922
96923         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96924         not silently exit merely because the output buffer happens to
96925         have nothing pending.
96926
96927 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96928
96929         See the big note in ../ChangeLog.
96930         * lib/human.c (suffixes): Prefer K to k for 1024.
96931         (generate_suffix_backwards): New function.
96932         (human_readable_inexact): Use it.
96933         * lib/xstrtol.c (__xstrtol): If there is no number but there
96934         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96935         Accept 'K' as well as 'k'.
96936
96937 2001-12-15  Jim Meyering  <meyering@lucent.com>
96938
96939         * lib/regex.h (__restrict_arr): Update from libc.
96940
96941         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96942         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96943         (STREQ): Define.
96944
96945 2001-12-14  Jim Meyering  <meyering@lucent.com>
96946
96947         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96948         Suggestion from Bruno Haible.
96949
96950 2001-12-10  Jim Meyering  <meyering@lucent.com>
96951
96952         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96953         xrealloc, Instead, include "xalloc.h".
96954         (initbuffer): Don't cast xmalloc return value to char*.
96955         (readline): Reword comment.
96956         Don't cast xrealloc return value to char*
96957         Return NULL, not 0.
96958
96959 2001-12-09  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96962         about `signed and unsigned type in conditional expression'.
96963         * lib/posixtm.c (posix_time_parse): Likewise.
96964
96965         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96966
96967         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96968         to avoid a pedantic warning.
96969
96970         * lib/getstr.c: Don't include assert.h.
96971         (getstr): Remove warning-evoking assertions.
96972         Return -1 if offset parameter is out of bounds.
96973         Change the type of a local from int to size_t.
96974
96975         * lib/strftime.c (my_strftime_localtime_r): Include this function
96976         definition in the `#if ! HAVE_TM_GMTOFF' block.
96977
96978         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96979         Include xalloc.h instead.
96980
96981 2001-12-02  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96984         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96985         included.
96986
96987         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96988         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96989
96990 2001-11-30  Akim Demaille  <akim@epita.fr>
96991
96992         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96993         before being defined.
96994
96995 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96996
96997         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96998         First arg is int, not unsigned.
96999         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97000         (SIZE_MAX, UINT_MAX): New macros.
97001         (quotearg_n_options): Abort if N is negative.
97002         Avoid overflow check on hosts where size_t is 64 bits and int
97003         is 32 bits, as overflow is impossible there.
97004         Fix off-by-one typo that caused unnecessary reallocation.
97005
97006 2001-11-27  Jim Meyering  <meyering@lucent.com>
97007
97008         * lib/tempname.c: Merge with version from libc.
97009         * lib/regex.c: Likewise.
97010
97011         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97012         systems for which STDC_HEADERS is 0, it was not included, resulting in
97013         a warning about an integer-to-pointer conversion problem with getenv.
97014         Reported by Volker Borchert.
97015
97016 2001-11-26  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/gtod.h: Remove file.
97019         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97020         * lib/gettimeofday.c: Don't include gtod.h.
97021         (GTOD_init): Remove function.
97022         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97023         Suggestion from Volker Borchert.
97024
97025 2001-11-23  Jim Meyering  <meyering@lucent.com>
97026
97027         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97028         it.
97029         * lib/hash.c (struct hash_table): Define it here instead.
97030
97031 2001-11-22  Jim Meyering  <meyering@lucent.com>
97032
97033         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97034
97035 2001-11-20  Jim Meyering  <meyering@lucent.com>
97036
97037         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97038         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97039
97040 2001-11-19  Jim Meyering  <meyering@lucent.com>
97041
97042         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97043         directory.  Use "conftestXXXXXX" as the template.
97044         Suggestion from Paul Eggert.
97045
97046         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97047         immediately, so the test doesn't mistakenly hit the max-open-files
97048         limit.
97049
97050 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97051
97052         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97053         (TEMPORARIES): New macro.
97054         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97055         removes an artificial limitation (e.g. HP-UX 10.20, where
97056         TMP_MAX is 17576).
97057
97058 2001-11-18  Jim Meyering  <meyering@lucent.com>
97059
97060         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97061
97062 2001-11-18  Jim Meyering  <meyering@lucent.com>
97063
97064         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97065         on SunOS 4.
97066
97067         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97068         files will be created before anything else.
97069
97070 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97071
97072         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97073         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97074
97075 2001-11-17  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97078         Prompted by a report from Bob Proulx.
97079
97080         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97081         Instead, require UTILS_FUNC_MKSTEMP.
97082
97083 2001-11-17  Jim Meyering  <meyering@lucent.com>
97084
97085         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97086         Now, that's done as part of AC_FUNC_STRTOD.
97087
97088 2001-11-17  Jim Meyering  <meyering@lucent.com>
97089
97090         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97091         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97092         rather than group writable.  Patch by Juan F. Codagnone.
97093
97094         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97095         xrealloc, Instead, include "xalloc.h".
97096
97097         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97098         Remove explicit declarations of xmalloc, xrealloc,
97099         and xstrdup.  Instead, include "xalloc.h".
97100
97101         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97102         unlocked-io.h.
97103         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97104         Likewise.
97105         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97106
97107         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97108         Reported by Padraig Brady.
97109
97110         * lib/mkstemp.c: #undef mkstemp.
97111         Include config.h.
97112         (rpl_mkstemp): Rename from mkstemp.
97113         Protoize.
97114
97115 2001-11-16  Jim Meyering  <meyering@lucent.com>
97116
97117         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97118         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97119         determine the amount of total physical memory, use pstat_getstatic.
97120         HPUX-11 doesn't define _SC_PHYS_PAGES.
97121         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97122         If sysconf couldn't be used to determine the amount of available
97123         physical memory, use both pstat_getstatic and pstat_getdynamic.
97124         Based on a patch from Bob Proulx.
97125
97126 2001-11-10  Jim Meyering  <meyering@lucent.com>
97127
97128         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97129         (jm_PREREQ): Use it.
97130
97131 2001-11-09  Jim Meyering  <meyering@lucent.com>
97132
97133         * m4/jm-macros.m4: Require autoconf-2.52f.
97134         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97135         Use these AC_-prefixed names, not the AM_-prefixed ones.
97136
97137         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97138
97139 2001-11-05  Jim Meyering  <meyering@lucent.com>
97140
97141         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97142
97143 2001-11-04  Jim Meyering  <meyering@lucent.com>
97144
97145         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97146         $DEFS.
97147
97148 2001-11-03  Jim Meyering  <meyering@lucent.com>
97149
97150         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97151         of AC_DEFUN.
97152
97153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97154         know the name of the variable in the macro definition.
97155
97156 2001-11-03  Jim Meyering  <meyering@lucent.com>
97157
97158         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97159         in argmatch_to_argument call.
97160
97161         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97162         argument.
97163
97164         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97165         e.g., a fault due to an attempt to free a NULL pointer.
97166
97167 2001-11-01  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97170         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97171
97172 2001-11-01  Jim Meyering  <meyering@lucent.com>
97173
97174         * lib/dirfd.c, lib/dirfd.h: New files.
97175         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97176
97177         * lib/hash.c (hash_print) [TESTING]: Clean up.
97178
97179 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97180
97181         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97182         to avoid a warning if -Wall.
97183
97184 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97185
97186         * README: New file
97187         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97188         (per RMS's instructions, this is now the canonical source)
97189         * lgpl/, gpl/: New directories.
97190
97191 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97192
97193         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97194
97195 2001-10-21  Jim Meyering  <meyering@lucent.com>
97196
97197         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97198         this code would end up calling gettext even in packages built
97199         with --disable-nls.
97200         * lib/getopt.c (_): Likewise.
97201         * lib/regex.c (_): Likewise.
97202
97203 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97204
97205         * m4/error.m4 (jm_PREREQ_ERROR):
97206         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97207         AC_FUNC_STRERROR_R does that.
97208         Check for strerror declaration.
97209
97210         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97211         are supposed to have them these days.
97212         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97213         Merge changes from latest Autoconf CVS.
97214         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97215         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97216         POSIX decided to standardize on the int flavor of strerror_r.
97217
97218 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97219
97220         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97221         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97222         Use strerror_r that is only a macro, even if it is not a function.
97223         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97224         (private_strerror): Use prototypes, not old-style function definition.
97225         (print_errno_message): New function.
97226         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97227         char*-flavored one.
97228         (error_tail, error, error_at_line): Use it.
97229
97230 2001-10-11  Jim Meyering  <meyering@lucent.com>
97231
97232         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97233         and quote_n (1, ... to avoid clobbering a buffer.
97234
97235 2001-10-05  Jim Meyering  <meyering@lucent.com>
97236
97237         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97238         hash-pjw.h.
97239         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97240         * lib/hash-pjw.h: New file.
97241
97242 2001-09-30  Jim Meyering  <meyering@lucent.com>
97243
97244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97245         `struct fsstat' has the `f_fstypename' member.
97246         Use that to define FS_TYPE, which is now used to make
97247         the getfsstat link test tighter.
97248
97249 2001-09-30  Jim Meyering  <meyering@lucent.com>
97250
97251         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97252         Include <sys/ucred.h>, for Apple Darwin.
97253         Include sys/mount.h and sys/fs_types.h only if available.
97254         (FS_TYPE): Define.
97255         (read_filesystem_list): Use FS_TYPE.
97256
97257 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97258
97259         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97260         a boolean context.
97261
97262 2001-09-29  Jim Meyering  <meyering@lucent.com>
97263
97264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97265         [one-argument getmntent function]): Include stdio.h before mntent.h.
97266         SunOS 4.1.x needs it for the declaration of `FILE'.
97267         Patch by Volker Borchert.
97268
97269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97270         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97271         sys/fs_types.h, and make the link-test for getfsstat guard #include
97272         directives with appropriate #if HAVE_*_H tests so that we can
97273         detect getfsstat on Apple Darwin1.3.7 systems.
97274         Reported by Nelson Beebe.
97275         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97276
97277 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97278
97279         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97280         #defines strtoimax.  Also treat the other strto* functions
97281         like strtoimax.
97282
97283         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97284         Check for strtoul and strtoumax,
97285         as those declarations are made even in the signed case.
97286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97287         Likewise, for strtol and strtoimax.
97288
97289 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97290
97291         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97292         #defines strtoimax.  Also treat the other strto* functions
97293         like strtoimax.
97294
97295         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97296         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97297         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97298
97299 2001-09-26  Jim Meyering  <meyering@lucent.com>
97300
97301         Most macros in unlocked-io.h had the wrong number of arguments.
97302         * lib/gen-uio: New script.
97303         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97304         * lib/unlocked-io.hin: Remove file.
97305         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97306         rather than trying to embed it here.
97307         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97308         Reported by Padraig Brady.
97309
97310 2001-09-25  Volker Borchert  <bt@teknon.de>
97311
97312         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97313         `result'.
97314
97315 2001-09-24  Jim Meyering  <meyering@lucent.com>
97316
97317         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97318
97319 2001-09-23  Jim Meyering  <meyering@lucent.com>
97320
97321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97322         instead of the mere test for existence of mntent.h.  The latter
97323         would get a false-positive on AIX 3.4 systems.
97324         In the outer getmntent if-block, don't die if neither of the getmntent
97325         tests succeeds.  Instead, just fall through and continue with the
97326         remaining tests.
97327
97328 2001-09-23  Jim Meyering  <meyering@lucent.com>
97329
97330         * lib/mountlist.c: Remove useless parentheses in #if directives.
97331         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97332         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97333
97334 2001-09-22  Jim Meyering  <meyering@lucent.com>
97335
97336         * m4/gettext.m4: New file.  From gettext.
97337         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97338         * m4/progtest.m4: Likewise
97339         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97340         * m4/glibc21.m4: Likewise.
97341
97342         * m4/libintl.m4: Remove.  No longer used.
97343
97344 2001-09-22  Jim Meyering  <meyering@lucent.com>
97345
97346         * lib/localcharset.c: Update from latest gettext.
97347         * lib/config.charset: Likewise.
97348
97349 2001-09-20  Jim Meyering  <meyering@lucent.com>
97350
97351         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97352         strtoimax.
97353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97354         strtoumax.
97355
97356 2001-09-20  Jim Meyering  <meyering@lucent.com>
97357
97358         * lib/xstrtol.c (strtoimax): Guard declaration with
97359         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97360         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97361         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97362         (strtoumax): Likewise, for completeness (it wasn't necessary).
97363
97364 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97365
97366         * lib/strtoimax.c (HAVE_LONG_LONG):
97367         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97368         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97369         to work around bug in IBM C compiler.
97370
97371 2001-09-17  Jim Meyering  <meyering@lucent.com>
97372
97373         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97374         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97375         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97376         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97377         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97378         whenever the right hand side need not be expanded by the shell.
97379
97380 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97381
97382         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97383         library.  It's not correct, as some older glibcs are buggy.
97384         fnmatch wasn't fixed until glibc 2.2.
97385
97386         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97387         special shell magic here.
97388
97389 2001-09-16  Jim Meyering  <meyering@lucent.com>
97390
97391         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97392         * m4/jm-macros.m4: Require it.
97393
97394 2001-09-16  Jim Meyering  <meyering@lucent.com>
97395
97396         * lib/mkdir.c: New file.
97397
97398 2001-09-15  Jim Meyering  <meyering@lucent.com>
97399
97400         * m4/jm-macros.m4: Check for help2man.
97401
97402 2001-09-11  Jim Meyering  <meyering@lucent.com>
97403
97404         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97405         The body, by Paul Eggert, was moved here from configure.in.
97406         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97407
97408 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97409
97410         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97411         (jm_PREREQ): Use it.
97412
97413 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97414
97415         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97416         Use ssize_t, not int, to store result of readlink.
97417         Check for ssize_t overflow as well as size_t overflow,
97418         as POSIX says the result of readlink is implementation-defined
97419         when ssize_t overflows.
97420         Remove unnecessary cast to char*.
97421         Use free+malloc instead of realloc, as the storage doesn't need
97422         to be preserved and it's clearer and can be more efficient that way.
97423         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97424         * lib/xreadlink.h (xreadlink): Update prototype.
97425
97426 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97427
97428         * lib/xgetcwd.c: Revert some of the previous change; intead,
97429         fix the HAVE_GETCWD_NULL code to behave more like the
97430         !HAVE_GETCWD_NULL code used to.
97431
97432         Include "xalloc.h".
97433         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97434         invoke xalloc_die.
97435
97436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97437
97438         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97439         sys/param.h, as pathmax.h includes them.
97440
97441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97442
97443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97444         (jm_PREREQ_XGETCWD): New macro.
97445
97446         * m4/getcwd.m4: New file.
97447
97448 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97449
97450         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97451         like the HAVE_GETCWD_NULL code.
97452         Include pathmax.h if not HAVE_GETCWD.
97453         Do not include xalloc.h.
97454         (INITIAL_BUFFER_SIZE): New symbol.
97455         Do not use xmalloc / xrealloc, since the caller is responsible for
97456         handling errors.  Preserve errno around `free' during failure.
97457         Do not overrun buffer when using getwd.
97458
97459 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97460
97461         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97462         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97463         getcwd (NULL, 0).
97464
97465 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97466
97467         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97468         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97469         spotted by Jim Meyering.
97470
97471 2001-09-03  Jim Meyering  <meyering@lucent.com>
97472
97473         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97474         failure.
97475
97476 2001-09-02  Jim Meyering  <meyering@lucent.com>
97477
97478         * lib/error.c: Update from GNU libc.
97479
97480 2001-09-01  Jim Meyering  <meyering@lucent.com>
97481
97482         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97483         Used by df.
97484
97485 2001-09-01  Jim Meyering  <meyering@lucent.com>
97486
97487         * lib/xreadlink.c: New file.
97488         * lib/xreadlink.h: New file.
97489         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97490         xreadlink.h.
97491
97492         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97493         doesn't conflict with sparc Solaris 7's definition in
97494         /usr/include/sys/int_types.h.
97495
97496         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97497         files.
97498         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97499         and strncasecmp as r-values.  Unixware didn't have declarations.
97500
97501 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97502
97503         * lib/xstrtol.h: Add copyright notice.
97504         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97505         LONGINT_INVALID_SUFFIX_CHAR.
97506
97507 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97508
97509         * lib/xstrtol.c (strtoimax): New decl.
97510
97511 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97512
97513         * lib/xgetcwd.c: Don't include pathmax.h.
97514         Include stdlib.h and unistd.h if available.
97515         Include xalloc.h.
97516         (xmalloc, xstrdup, free): Remove decls.
97517         (xgetcwd): Don't assume sizes fit in unsigned.
97518         Check for overflow when computing sizes.
97519         Simplify reallocation code.
97520
97521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97522
97523         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97524         a directory's st_size can have an arbitrary value, so the old
97525         usage could waste an arbitrary amount of memory.  All uses
97526         changed.
97527         * lib/savedir.h: Update prototype.
97528
97529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97530
97531         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97532
97533         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97534         old strtoimax.c.
97535
97536         Also, make the following further changes to make this file's
97537         configuration more similar to that of strtol.c:
97538         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97539         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97540         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97541         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97542         changed to signed values.
97543
97544         And make the following changes as well:
97545         Fix copyright notice, as 1999 was missing.
97546         (verify): New macro.
97547         (strtoimax): Check sizes at compile-time, not run-time.
97548         Prefer strtol to strtoll if both work.
97549         (main): Remove; it was not that useful and was a pain to maintain.
97550
97551         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97552
97553 2001-08-31  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97556         Use an initial, malloc'd, buffer of length 128 rather than
97557         a statically allocated one of length 1024.
97558
97559 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97560
97561         Simplify code, partly by assuming autoconf 2.52 semantics.
97562
97563         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97564
97565         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97566         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97567         All uses removed.
97568         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97569         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97570         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97571         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97572         jm_AC_HEADER_INTTYPES_H.
97573         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97574
97575         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97576
97577         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97578         Quote first arg of AC_DEFUN.
97579         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97580         since they are needed to parse the include file even if we need
97581         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97582         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97583         but with opposite signedness.
97584
97585 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97586
97587         Merge 'exclude' changes from tar 1.13.22.
97588         This fixes one or two unlikely storage allocation overflow bugs,
97589         but doesn't change user-visible behavior otherwise.
97590
97591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97592
97593         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97594         (jm_PREREQ_EXCLUDE): New macro.
97595
97596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97597
97598         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97599         tm to be declared.
97600
97601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97602
97603         * lib/hash.c: Remove '2001' from copyright notice.
97604
97605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97606
97607         * lib/full-write.h: New file.
97608         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97609         * lib/full-write.c: Correct credits, as cccp.c no longer
97610         exists and anyway it was so heavily changed from the old cccp
97611         code as to be unrecognizable.  Include full-write.h.
97612         (full_write): Return size_t, with short writes meaning failure.
97613         All callers changed.  This fixes a bug with large buffers
97614         on 64-bit hosts.
97615         * lib/utime.c: Include full-write.h.
97616
97617 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97618
97619         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97620         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97621         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97622         Include if available.
97623         (<xalloc.h>): Include
97624         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97625         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97626         collide with FNM macros.
97627         (struct patopts): New struct.
97628         (struct exclude): Use it, as exclude patterns now come with options.
97629         (new_exclude): Support above changes.
97630         (new_exclude, add_exclude_file):
97631         Initial size must now be a power of two to simplify overflow checking.
97632         (free_exclude, fnmatch_no_wildcards): New function.
97633         (excluded_filename): No longer requires options arg, as the options
97634         are determined by add_exclude.  Now returns bool, not int.
97635         (excluded_filename, add_exclude):
97636         Add support for the fancy new exclusion options.
97637         (add_exclude, add_exclude_file): Now takes int options arg.
97638         Check for arithmetic overflow when computing sizes.
97639         (add_exclude_file): xrealloc might modify errno, so don't
97640         realloc until after errno might be used.
97641
97642         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97643         New macros.
97644         (free_exclude): New decl.
97645         (add_exclude, add_exclude_file): Now takes int options arg.
97646         (excluded_filename): No longer requires options arg, as the options
97647         are determined by add_exclude.  Now returns bool, not int.
97648
97649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97650
97651         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97652
97653 2001-08-27  Jim Meyering  <meyering@lucent.com>
97654
97655         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97656
97657         * lib/version-etc.c (N_): Remove definition.
97658         Revert most of last change.
97659         Instead, simply don't mark the `Copyright...' string for translation.
97660         Based on advice from Paul Eggert.
97661
97662         * lib/strtoxmax.c: Tweak comment.
97663
97664 2001-08-26  Jim Meyering  <meyering@lucent.com>
97665
97666         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97667
97668         * m4/xstrtoimax.m4: New file.
97669         * m4/xstrtoumax.m4: Add comments explaining why we
97670         AC_REPLACE_FUNCS(strtol).
97671
97672 2001-08-26  Jim Meyering  <meyering@lucent.com>
97673
97674         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97675         of copyright with `%s' so translators don't get an untranslated
97676         message in 2002.
97677         (COPYRIGHT_YEAR): Define.
97678         (version_etc): Use fprintf rather than fputs.
97679         Suggestion from Ulrich Drepper.
97680
97681         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97682
97683         * lib/strtoll.c: New file, from GNU libc.
97684         * lib/xstrtoimax.c: New file.
97685
97686         * lib/xstrtol.h: Add xstrtoimax.
97687         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97688         * lib/strtoimax.c: New file.  Likewise, but first define
97689         STRTOUXMAX_SIGNED.
97690
97691         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97692         ...
97693         * lib/strtoxmax.c: ... then renamed to this.
97694
97695 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97696
97697         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97698         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97699         (jm_AC_TYPE_INTMAX_T): New macro.
97700         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97701
97702         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97703
97704         * m4/longlong.m4: Renamed from ulonglong.m4.
97705         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97706         * m4/uintmax_t.m4: Removed.
97707
97708 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97709
97710         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97711         Port to Solaris 8, where 'sed' requires a space after the 'r'
97712         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97713         Redirect output to $tmp just once.
97714
97715 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97716
97717         * lib/addext.c (<errno.h>): Include.
97718         (errno): Declare if not defined.
97719         (addext): Work correctly when pathconf returns -1 and leaves
97720         errno alone because there is no limit.  Also, work even if
97721         pathconf returns a value greater than SIZE_MAX.
97722
97723 2001-08-12  Jim Meyering  <meyering@lucent.com>
97724
97725         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97726         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97727         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97728         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97729         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97730         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97731         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97732         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97733         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97734         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97735         utime.m4, utimes.m4, xstrtoumax.m4:
97736         Quote the first argument in each use of AC_DEFUN.
97737
97738 2001-08-12  Jim Meyering  <meyering@lucent.com>
97739
97740         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97741         Simply `return getcwd (NULL, 0);'.
97742         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97743         Use 1300 as initial value for length, not PATH_MAX.
97744
97745         * lib/pathmax.h: Clean up cpp syntax.
97746
97747 2001-08-12  Jim Meyering  <meyering@lucent.com>
97748
97749         * lib/gettimeofday.c: New file.
97750         * lib/gtod.h: New file.
97751         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97752
97753 2001-08-05  Jim Meyering  <meyering@lucent.com>
97754
97755         * m4/jm-macros.m4: Require autoconf-2.52.
97756
97757 2001-08-04  Jim Meyering  <meyering@lucent.com>
97758
97759         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97760         stmt, to get in sync with glibc.
97761
97762 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97763
97764         The following changes are from gettext 0.10.39 as maintained by
97765         Bruno Haible.
97766
97767         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97768         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97769         with inverted sense.  All uses changed.
97770
97771         * lib/mbswidth.c: Don't include <limits.h>.
97772         Include <stdlib.h> and <string.h> unconditionally.
97773         (iswcntrl, mbsinit, ISCNTRL): New macros.
97774         (mbsnwidth): Use K&R style function declarations.
97775         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97776         can optimize it when MB_CUR_MAX == 1.
97777         The width of control characters is zero, not 1.
97778
97779 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97780
97781         The following changes are from gettext 0.10.39 as maintained by
97782         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97783
97784         * m4/codeset.m4: Upgrade to serial AM1.
97785         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97786         all uses changed.  Quote first arg of AC_DEFUN.
97787         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97788
97789         * m4/iconv.m4: Upgrade to serial AM2.
97790         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97791         Add --with-libconv-prefix.
97792         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97793         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97794         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97795         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97796         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97797
97798         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97799         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97800         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97801         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97802         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97803         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97804         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97805         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97806         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97807
97808         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97809         string.h any more.
97810
97811         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97812         not the default value.
97813
97814         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97815         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97816         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97817         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97818         Also check for iswcntrl, used for wcwidth fallback.
97819         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97820         to Autoconf 2.13.
97821
97822 2001-08-03  Jim Meyering  <meyering@lucent.com>
97823
97824         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97825         as it was in the original.  Reported by Paul Eggert.
97826
97827 2001-07-16  Jim Meyering  <meyering@lucent.com>
97828
97829         * m4/gettimeofday.m4: New file.
97830         Prompted by a report from Bernhard Baehr.
97831
97832 2001-07-15  Jim Meyering  <meyering@lucent.com>
97833
97834         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97835         stuff. Now it's in ../Makefile.cfg.
97836
97837 2001-07-15  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97840         (BUILT_SOURCES): Add unlocked-io.h.
97841         (io_functions): Define.
97842         (unlocked-io.h): New rule.
97843         (DISTCLEANFILES): Add unlocked-io.h.
97844         (all-local): Depend on unlocked-io.h, to ensure it is created.
97845
97846         * lib/unlocked-io.hin: New file
97847
97848         * lib/regex.c: Update from glibc.
97849
97850 2001-07-05  Jim Meyering  <meyering@lucent.com>
97851
97852         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97853         recommendation.
97854         (libfetish_a_SOURCES): Put all .h files here instead.
97855         Remove a thus-exposed (better checks in automake) duplicate and
97856         two unnecessary .h files.
97857
97858 2001-07-04  Jim Meyering  <meyering@lucent.com>
97859
97860         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97861         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97862         distcheck failure.
97863
97864 2001-07-02  Jim Meyering  <meyering@lucent.com>
97865
97866         The following changes were prompted by suggestions from Bruno Haible.
97867
97868         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97869         is now generated.
97870         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97871         definition of EXTRA_DIST.
97872         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97873         ensure that the generated file is created/updated whenever the list
97874         of $(unlocked_functions) is changed.
97875         (jm-glibc-io.m4): New rule.
97876         (unlocked-io.h): New rule -- currently unused.
97877
97878 2001-06-24  Jim Meyering  <meyering@lucent.com>
97879
97880         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97881         unmatched right bracket, rather than kludging it with an extra,
97882         falsely-matching quote in a comment.  Patch by Akim Demaille.
97883
97884 2001-06-11  Jim Meyering  <meyering@lucent.com>
97885
97886         * lib/regex.c: Update from GNU libc.
97887
97888 2001-05-27  Jim Meyering  <meyering@lucent.com>
97889
97890         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97891         Check for ut_type in struct utmp.
97892
97893 2001-05-27  Jim Meyering  <meyering@lucent.com>
97894
97895         * lib/readutmp.h (UT_TYPE): Define.
97896
97897 2001-05-24  Jim Meyering  <meyering@lucent.com>
97898
97899         * lib/argmatch.c: Include "quote.h".
97900         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97901         quote function.  Reported by Göran Uddeborg.
97902
97903 2001-05-22  Jim Meyering  <meyering@lucent.com>
97904
97905         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97906         now that we use the package-supplied version unconditionally.
97907         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97908
97909 2001-05-21  Jim Meyering  <meyering@lucent.com>
97910
97911         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97912         shell syntax errors.
97913
97914 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97915
97916         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97917
97918 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97919
97920         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97921         Don't bother to check library strftime, since
97922         we'll be using our own my_strftime function anyway.
97923         Define my_strftime instead of strftime.
97924
97925 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97926
97927         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97928         which is not yet declared.
97929
97930 2001-05-15  Jim Meyering  <meyering@lucent.com>
97931
97932         * m4/regex.m4: Use proper quoting so brackets appear in the test
97933         program.
97934         Reported by, and with help from, Bruno Haible.
97935
97936 2001-05-13  Jim Meyering  <meyering@lucent.com>
97937
97938         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97939         undefined.
97940
97941 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97942
97943         dirname code cleanup.  base_name now behaves more compatibly
97944         with POSIX basename when given file names that have trailing
97945         slashes, and similarly for dir_name.  Add new primitives
97946         base_len and dir_len.  Put the directory-name-related decls
97947         into dirname.h.
97948
97949         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97950         * lib/backupfile.c (base_name): Likewise.
97951         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97952         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97953         * lib/makepath.c (strip_trailing_slashes): Likewise.
97954         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97955         ISSLASH): Likewise.
97956         * lib/rename.c (strip_trailing_slashes): Likewise.
97957         * lib/same.c (base_name): Likewise.
97958         * lib/stripslash.c (ISSLASH): Likewise.
97959
97960         * lib/addext.c: Include <dirname.h> after size_t is defined.
97961         * lib/backupfile.c: Likewise.
97962
97963         * lib/addext.c (addext): Use base_len to trim redundant
97964         trailing slashes instead of doing it ourselves.
97965         But do not trim the last slash if it is not redundant.
97966
97967         * lib/backupfile.c (find_backup_file_name,
97968         max_backup_version): Use base_len instead of rolling it ourselves.
97969         Handle the case of "" and (on DOS) "C:" correctly.
97970
97971         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97972         needed. Include <string.h>, <dirname.h>.
97973         (base_name): Allow file names ending in slashes, other than names
97974         that are all slashes.  In this case, return the basename followed
97975         by the slashes.  This is more general, and can be used in places
97976         where the original base_name purposely had an assertion failure.
97977         (base_len): New function.
97978
97979         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97980         Do not include <assert.h>; no longer needed.
97981         Include xalloc.h.
97982         (memrchr): Remove decl.
97983         (dir_name_r): Remove.
97984         (dir_len): Renamed from dirlen.  All callers changed.
97985         Rewrite in terms of base_name, for simplicity and consistency.
97986         (dir_name): Never return NULL.  All callers changed.
97987         Do not include <stdlib.h> in test program; no longer needed.
97988         return 0; is fine for test program.
97989
97990         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97991         New macros.
97992         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97993
97994         * lib/path-concat.c (path_concat): Use base_len to compute
97995         base length, not strlen; this means we cannot rely on memcpy
97996         to null-terminate.
97997
97998         * lib/same.c (STREQ): Remove.
97999         (same_name): Handle the case where the basename ends in trailing '/'.
98000
98001         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98002         a slash was stripped.  Do not strip the last slash after a
98003         file system prefix.
98004
98005 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98006
98007         * lib/Makefile.am (libfetish_a_SOURCES):
98008         Add strftime.c, since we now compile it on all hosts.
98009
98010         * lib/strftime.c (my_strftime):
98011         Define to nstrftime if emacs, but only if my_strftime is not defined.
98012         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98013         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98014         Add one more extra argument: a nanoseconds value.
98015         All uses changed.
98016         (ns): New macro.
98017         (my_strftime function): Add %N format.
98018         (emacs_strftimeu): Renamed from emacs_strftime,
98019         with extra ut argument.
98020
98021 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98022
98023         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98024
98025 2001-04-21  Jim Meyering  <meyering@lucent.com>
98026
98027         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98028         doesn't interfere.
98029
98030 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98031
98032         * m4/ftruncate.m4: Check for chsize.
98033         Link with ftruncate.o unconditionally if ftruncate is missing.
98034         This was required when cross-compiling to i586-mingw32msvc.
98035
98036 2001-04-08  Jim Meyering  <meyering@lucent.com>
98037
98038         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98039         recomputed; that's necessary when the offset spans a DST transition.
98040         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98041
98042 2001-04-02  Jim Meyering  <meyering@lucent.com>
98043
98044         * lib/regex.h, regex.c: Update from GNU libc.
98045
98046 2001-03-24  Jim Meyering  <meyering@lucent.com>
98047
98048         * m4/jm-macros.m4: Require autoconf-2.49d.
98049
98050 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98051
98052         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98053
98054 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98055
98056         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98057
98058 2001-03-17  Jim Meyering  <meyering@lucent.com>
98059
98060         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98061         now that the version in autoconf is equivalent.
98062         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98063
98064         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98065         Suggestion from Akim Demaille.
98066
98067         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98068         (jm_PREREQ_TEMPNAME): New function.
98069
98070 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98071
98072         * lib/tempname.c (uint64_t): Define to uintmax_t if
98073         not defined, and if UINT64_MAX is not defined.
98074         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98075         Reported by John David Anglin.
98076
98077 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98078
98079         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98080         resolve alias if codeset is empty.
98081         * lib/config.charset (BeOS): Use wildcard syntax.
98082
98083 2001-03-13  Jim Meyering  <meyering@lucent.com>
98084
98085         * lib/path-concat.c (path_concat)
98086         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98087         concatenating e.g., `C:' and `foo'.
98088         From Bruno Haible.
98089
98090 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98091
98092         * lib/localcharset.c (locale_charset): Don't use
98093         setlocale(LC_CTYPE,NULL). Don't return NULL.
98094         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98095
98096 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98097
98098         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98099         support for DOS/DJGPP.
98100
98101 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98102
98103         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98104         lacks mkstemp.  Compile our own tempname.c if we compile our own
98105         mkstemp.c, as mkstemp relies on tempname.
98106
98107 2001-03-01  Jim Meyering  <meyering@lucent.com>
98108
98109         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98110         AH_VERBATIM really does output its argument verbatim.
98111
98112 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98113
98114         * lib/Makefile.am (libfetish_a_SOURCES):
98115         Add dup-safer.c, fopen-safer.c.
98116         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98117
98118         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98119         * lib/unistd-safer.h: New files.
98120
98121 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98122
98123         The mkstemp replacement is taken from glibc 2.2.2, with some
98124         portability fixes for use outside glibc, as follows:
98125
98126         * lib/tempname.c (struct_stat64): New macro.
98127         (direxists, __gen_tempname): Use it.
98128         This avoids a portability problem with Solaris 8.
98129
98130         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98131         (<stddef.h>, <stdint.h>, <string.h>):
98132         Include only if STDC_HEADERS || _LIBC.
98133         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98134         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98135         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98136         (__set_errno): Define this macro if <errno.h> doesn't.
98137         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98138         Define these macros if <stdio.h> doesn't.
98139         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98140         Define these macros if <sys/stat.h>
98141         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98142         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98143         __xstat64): Define if not _LIBC.
98144         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98145         (__gen_tempname): Invoke gettimeofday only if
98146         HAVE_GETTIMEOFDAY || _LIBC;
98147         otherwise, fall back on plain "time".
98148         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98149
98150         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98151
98152         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98153
98154 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98155
98156         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98157
98158 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98159
98160         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98161         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98162         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98164
98165 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98166
98167         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98168         Remove workaround macros for hosts that have mbrtowc but not
98169         mbstate_t, as we now insist on proper declarations for both
98170         before using mbrtowc.
98171
98172 2001-02-17  Jim Meyering  <meyering@lucent.com>
98173
98174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98175         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98176         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98177         UnixWare 7.1.1.
98178
98179         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98180         rather than AC_CACHE_VAL.
98181
98182 2001-02-17  Jim Meyering  <meyering@lucent.com>
98183
98184         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98185         around included file name.
98186
98187         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98188
98189         * lib/strftime.c: Update from GNU libc (the only changes were to
98190         comments).
98191
98192 2001-02-17  Jim Meyering  <meyering@lucent.com>
98193
98194         * lib/regex.c: Update from libc.
98195
98196 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98197
98198         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98199         clash.
98200
98201 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98202
98203         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98204         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98205         Reported by Mark Hounschell via Paul Eggert.
98206
98207 2001-02-07  Jim Meyering  <meyering@lucent.com>
98208
98209         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98210
98211 2001-02-05  Jim Meyering  <meyering@lucent.com>
98212
98213         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98214         it includes the patch required for `large file' support with at least
98215         HP-UX's 10.20 /bin/cc.
98216
98217 2001-02-03  Jim Meyering  <meyering@lucent.com>
98218
98219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98220         AS_IF, now that it works once again (mysteriously).
98221         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98222
98223 2001-01-30  Jim Meyering  <meyering@lucent.com>
98224
98225         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98226         * m4/chown.m4: Rename conftestchown to conftest.chown.
98227         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98228         s/conftestdir2/conftest.d2/.
98229         * m4/utimes.m4: s/conftestdata/conftest.data/
98230         Inspired by Pavel Roskin's change in autoconf.
98231
98232 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98233
98234         * lib/config.charset: Update for FreeBSD 4.2.
98235
98236 2001-01-27  Jim Meyering  <meyering@lucent.com>
98237
98238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98239         a use of AS_IF.
98240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98241
98242 2001-01-26  Jim Meyering  <meyering@lucent.com>
98243
98244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98245         quotearg.c includes it.
98246
98247 2001-01-26  Jim Meyering  <meyering@lucent.com>
98248
98249         * lib/quotearg.c: Include stddef.h.
98250         * lib/quote.c: Include stddef.h.
98251         Reported by Axel Kittenberger.
98252
98253         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98254         line in double quotes so that it evokes a better diagnostic.
98255         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98256         Reported by Axel Kittenberger.
98257
98258 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98259
98260         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98261         as if it was a `charset'.
98262
98263 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98264
98265         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98266         has const.
98267
98268 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98269
98270         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98271         to avoid a warning.  Add back 'const' to inptr.
98272
98273 2001-01-20  Jim Meyering  <meyering@lucent.com>
98274
98275         Be sure that headers are checked before used in code compiled
98276         for the type checks.
98277         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98278         In place of that, invoke jm_CHECK_ALL_TYPES.
98279         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98280         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98281         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98282         The check for ssize_t was mistakenly run before the test for unistd.h.
98283
98284         The configure-time check for stdbool.h was missing.
98285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98286         (jm_PREREQ_HASH): New function.
98287
98288 2001-01-17  Jim Meyering  <meyering@lucent.com>
98289
98290         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98291         for autoconf-2.49c.
98292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98293
98294 2001-01-16  Jim Meyering  <meyering@lucent.com>
98295
98296         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98297         From Bruno Haible.
98298
98299 2001-01-14  Jim Meyering  <meyering@lucent.com>
98300
98301         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98302         foo and bar.  Create conftestdir/ in the script, not in the C code.
98303         Remove directories in the script, not in the C code.
98304         Remove conftestdir{,2} before trying to create the directory.
98305         Make the entire configure script fail if the mkdir fails.
98306
98307 2001-01-14  Jim Meyering  <meyering@lucent.com>
98308
98309         * lib/rename.c: New file.  From Volker Borchert.
98310         Include stdlib.h, string.h or strings.h, and xalloc.h.
98311         Use strip_trailing_slashes rather than open-coding it.
98312
98313 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98314
98315         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98316
98317 2001-01-03  Jim Meyering  <meyering@lucent.com>
98318
98319         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98320         of local `inptr' to avoid warning with some system declarations of
98321         iconv.
98322
98323 2001-01-02  Volker Borchert  <bt@teknon.de>
98324
98325         * m4/rename.m4: New file.
98326         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98327
98328 2001-01-01  Jim Meyering  <meyering@lucent.com>
98329
98330         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98331         even on systems with utmpx.h.  It's necessary for the declaration of
98332         utmp's ut_user member.  Reported by Andreas Jaeger.
98333
98334         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98335         available. They are required for the declarations of getgrgid and
98336         getpwuid resp.
98337         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98338         Reported by Andreas Jaeger.
98339
98340 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98341
98342         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98343         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98344         so `make install' also works in VPATH builds.
98345
98346 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98347
98348         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98349         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98350         can be used in subdirectories.
98351
98352 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98353
98354         * lib/modechange.c: Do not assume that mode_t uses the
98355         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98356         the other-execute bit of FOO even if S_IXOTH != 1.
98357
98358         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98359         WOTH, XOTH, ALLM): New macros.
98360         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98361          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98362         Use them.
98363         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98364         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98365         (mode_compile):
98366         No need to use uintmax_t; unsigned long is long enough.
98367         Don't bother to get suffix since we don't use it.
98368
98369 2000-12-26  Jim Meyering  <meyering@lucent.com>
98370
98371         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98372         better with autoheader.
98373
98374 2000-12-24  Jim Meyering  <meyering@lucent.com>
98375
98376         * lib/hash.c (is_prime): Return explicit boolean values.
98377         (hash_get_first): Return NULL to appease Irix5.6's 89.
98378         Reported by Nelson Beebe.
98379
98380 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98381
98382         * lib/localcharset.c (locale_charset): Add support for Win32.
98383
98384 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98385
98386         * lib/physmem.h, lib/physmem.c: New files.
98387
98388         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98389         (noinst_HEADERS): Add physmem.h.
98390
98391         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98392         't' for compatibility with Solaris 8 sort.
98393
98394 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98395
98396         * lib/config.charset: Add support for BeOS.
98397
98398 2000-12-17  Jim Meyering  <meyering@lucent.com>
98399
98400         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98401         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98402
98403 2000-12-16  Jim Meyering  <meyering@lucent.com>
98404
98405         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98406         N and M) would have treated it like `chown N:N FILE'.
98407
98408         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98409
98410 2000-12-16  Jim Meyering  <meyering@lucent.com>
98411
98412         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98413         SHELLS_FILE to a file name that's useful on djgpp systems.
98414         Include stdlib.h.
98415         (ADDITIONAL_DEFAULT_SHELLS): Define.
98416         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98417         Based mostly on a patch from Prashant TR.
98418
98419 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98420
98421         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98422         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98423         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98424
98425 2000-12-08  Andreas Schwab  <schwab@suse.de>
98426
98427         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98428         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98429
98430 2000-12-07  Jim Meyering  <meyering@lucent.com>
98431
98432         * lib/stripslash.c (ISSLASH): Define.
98433         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98434         `/'.
98435         From Prashant TR.
98436
98437         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98438         (dir_name_r): Declare this function as static.
98439         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98440         manifest itself on a name containing a mix of slashes and
98441         backslashes.
98442         Make this function work with names starting with a DOS-style
98443         drive letter and colon prefix.
98444         (dir_name): Append `.' if necessary.
98445         Based mostly on patches from Prashant TR and Eli Zaretskii.
98446
98447         * lib/dirname.h (dir_name_r): Remove prototype.
98448
98449 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98450
98451         * m4/off_t-format.m4: Remove this file.
98452         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98453
98454 2000-12-06  Jim Meyering  <meyering@lucent.com>
98455
98456         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98457         replacement strtoull, we may well need the replacement strtoul, too.
98458         Check for declarations of strtoul and strtoull.
98459         Check for strtol.  Mainly as a cue to cause automake to include
98460         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98461         Check for limits.h -- strtol.c needs it.
98462
98463 2000-12-05  Jim Meyering  <meyering@lucent.com>
98464
98465         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98466
98467 2000-12-04  Jim Meyering  <meyering@lucent.com>
98468
98469         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98470         Also include memory.h, stdlib.h, unistd.h if appropriate.
98471         Reported by Andreas Jaeger (conflicting declaration of malloc).
98472
98473 2000-12-02  Jim Meyering  <meyering@lucent.com>
98474
98475         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98476         * m4/jm-macros.m4 (jm_MACROS): require it.
98477
98478 2000-12-02  Jim Meyering  <meyering@lucent.com>
98479
98480         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98481
98482 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98483
98484         * lib/memrchr.c: Include <config.h> before any system include file.
98485
98486 2000-11-30  Jim Meyering  <meyering@lucent.com>
98487
98488         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98489
98490 2000-11-30  Jim Meyering  <meyering@lucent.com>
98491
98492         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98493
98494 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98495
98496         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98497
98498 2000-11-26  Jim Meyering  <meyering@lucent.com>
98499
98500         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98501
98502 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98503
98504         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98505         size of (size_t) -1; it's not portable.
98506
98507 2000-11-17  Jim Meyering  <meyering@lucent.com>
98508
98509         * lib/strstr.c: Update from GNU libc.
98510
98511 2000-11-17  Akim Demaille  <akim@epita.fr>
98512
98513         * lib/obstack.h: Formatting changes.
98514         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98515         prevent type checking.
98516         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98517         cast the value to (void *): assigning a `foo *' to a `void *'
98518         variable is valid.
98519         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98520
98521 2000-11-16  Jim Meyering  <meyering@lucent.com>
98522
98523         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98524
98525 2000-11-11  Jim Meyering  <meyering@lucent.com>
98526
98527         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98528
98529 2000-11-10  Jim Meyering  <meyering@lucent.com>
98530
98531         * lib/obstack.h: Update from GNU libc.
98532         * lib/obstack.c: Likewise.
98533
98534 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98535
98536         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98537
98538 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98539
98540         * lib/getusershell.c (setusershell): Use rewind rather than
98541         fseek/fseeko, to avoid configuration hassles with fseeko.
98542         Don't bother opening SHELLS_FILE if shellstream is NULL;
98543         it's not necessary.
98544
98545 2000-11-05  Jim Meyering  <meyering@lucent.com>
98546
98547         * lib/makepath.h (make_dir): Declare.
98548         * lib/makepath.c (make_dir): Remove `static' attribute.
98549         Tweak a comment.
98550
98551 2000-11-04  Jim Meyering  <meyering@lucent.com>
98552
98553         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98554
98555 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98556
98557         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98558         last one in a bucket, advance to the next bucket.
98559
98560 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98561
98562         * lib/fnmatch.c: Do not comment out all the code if we are using
98563         the GNU C library, because in some cases we are replacing buggy
98564         code in the GNU C library itself.
98565
98566 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98567
98568         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98569         (regex_compile): Catch bogus \(\1\).
98570
98571 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98572
98573         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98574         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98575         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98576
98577 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98578
98579         * lib/error.h, getline.h, modechange.h:
98580         Remove "2000" from Copyright line, as the file hasn't been
98581         changed this year other than in the copyright notice.
98582
98583         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98584         was changed this year.
98585
98586 2000-10-29  Jim Meyering  <meyering@lucent.com>
98587
98588         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98589         renaming.
98590         * m4/ls-mntd-fs.m4: Likewise
98591
98592 2000-10-29  Jim Meyering  <meyering@lucent.com>
98593
98594         * lib/xstat.in: Fix grammar in comment.
98595
98596 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98597
98598         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98599         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98600         doesn't define __restrict_arr.
98601
98602 2000-10-28  Jim Meyering  <meyering@lucent.com>
98603
98604         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98605         (jm_PREREQ_MEMCHR): New function.
98606
98607 2000-10-28  Jim Meyering  <meyering@lucent.com>
98608
98609         * lib/memchr.c: Update from libc.
98610         Adjust for portability:
98611         [HAVE_STDLIB_H]: Include stdlib.h.
98612         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98613         Undef __memchr, too.
98614         [!weak_alias]: Define __memchr to memchr.
98615
98616         * lib/regex.c: Update from libc.
98617         * lib/regex.h: Likewise.
98618         * lib/getopt1.c: Likewise.
98619         * lib/memcmp.c: Likewise.
98620
98621         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98622         Avoid using fseek, when possible -- it's broken by design.
98623         Patch by Ulrich Drepper.
98624
98625 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98626
98627         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98628         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98629         Giving in to popular pressure to shut up the compiler with casts.
98630
98631 2000-10-26  Jim Meyering  <meyering@lucent.com>
98632
98633         * lib/strftime.c: Update from libc.
98634
98635 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98636
98637         * regex.c: More `unsigned char' -> `re_char' changes.
98638         Also change several `int' into `re_wchar_t'.
98639         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98640         (PUSH_FAILURE_POINTER): Don't cast any more.
98641         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98642         We want GCC to complain, since this piece of code makes
98643         re_match non-reentrant, which *should* be fixed.
98644         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98645         (EXTEND_BUFFER): Use RETALLOC.
98646         (SET_LIST_BIT): Don't cast.
98647         (re_wchar_t): New type.
98648         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98649         that those two functions will always properly return.
98650         (IMMEDIATE_QUIT_CHECK): Cast to void.
98651         (analyse_first): Use recursion rather than an explicit stack.
98652         (re_compile_fastmap): Can't fail anymore.
98653         (re_search_2): Don't check re_compile_fastmap for failure.
98654         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98655         Now also sets the new value (passed in a new argument).
98656         (re_match_2_internal): Use it.
98657         Also, use a new var `reg' of type size_t when looping through regs
98658         rather than reuse the inappropriate `mcnt'.
98659
98660 2000-10-25  Jim Meyering  <meyering@lucent.com>
98661
98662         * lib/obstack.c: Update from libc.
98663
98664 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98665
98666         * regex.c (regex_compile): Change the way of handling a range from
98667         a char less than 256 to a char not less than 256.
98668
98669 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98670
98671         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98672         NT-Emacs only.
98673         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98674         so that re_search functions only quit when callers expect them to.
98675
98676 2000-10-23  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98679         wrong.  That set_locale call must not have any side effects.
98680         From Paul Eggert.
98681
98682 2000-10-22  Jim Meyering  <meyering@lucent.com>
98683
98684         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98685         [CYCLIC]: Remove now-unused definition.
98686
98687         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98688         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98689         Suggestion from Ulrich Drepper.
98690
98691 2000-10-21  Jim Meyering  <meyering@lucent.com>
98692
98693         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98694         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98696
98697 2000-10-21  Jim Meyering  <meyering@lucent.com>
98698
98699         * lib/dirname.c (memrchr): Declare if necessary.
98700         (dir_name): Remove the restriction that there be no
98701         trailing slashes.  Now, this code skips past them, effectively
98702         ignoring them.
98703         [TEST_DIRNAME] (main): New unit tests.
98704
98705         * lib/memrchr.c: New file from GNU libc.
98706         Undef __memrchr, too.
98707         [!weak_alias]: Define __memrchr to memrchr.
98708         Guard weak_alias use with `#ifdef weak_alias'.
98709
98710 2000-10-21  Jim Meyering  <meyering@lucent.com>
98711
98712         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98713         (dir_name): Use dir_name_r.
98714         * lib/dirname.h (dir_name_r): Declare it.
98715
98716 2000-10-17  Jim Meyering  <meyering@lucent.com>
98717
98718         * lib/quote.h (PARAMS): Define and use.
98719         Reported by Akim Demaille.
98720
98721         * lib/getopt.c: Update from libc.
98722
98723 2000-10-16  Jim Meyering  <meyering@lucent.com>
98724
98725         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98726         setlocale.
98727         From Jan Fedak.
98728
98729 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98730
98731         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98732
98733 2000-09-25  Jim Meyering  <meyering@lucent.com>
98734
98735         * lib/md5.h (rol): Define (from GnuPG).
98736
98737         * lib/sha.c: Give credit (GnuPG) where due.
98738         (M): Use rol rather than open-coding it.
98739         Add a FIXME comment.
98740
98741 2000-09-21  Jim Meyering  <meyering@lucent.com>
98742
98743         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98744         Reported by Michael Stone.
98745
98746 2000-09-20  Jim Meyering  <meyering@lucent.com>
98747
98748         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98749         (noinst_HEADERS): Add sha.h.
98750         Based on code from Scott G. Miller and from GnuPG.
98751
98752 2000-09-18  Jim Meyering  <meyering@lucent.com>
98753
98754         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98755         LIBS. Otherwise, everyone ends up linking with -lelf for some
98756         configurations.
98757         Reported by Mike Stone.
98758
98759 2000-09-15  Jim Meyering  <meyering@lucent.com>
98760
98761         * lib/regex.c: Update from libc.
98762
98763 2000-09-10  Jim Meyering  <meyering@lucent.com>
98764
98765         * lib/getopt.c (_getopt_internal): Update from glibc.
98766
98767 2000-09-09  Jim Meyering  <meyering@lucent.com>
98768
98769         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98770         think it should be used as a general replacement for isascii.
98771         * lib/fnmatch.c: Likewise.
98772         * lib/mbswidth.c: Likewise
98773         * lib/regex.c: Likewise.
98774
98775         Don't use atoi.
98776         * lib/userspec.c: Include sys/param.h and limits.h.
98777         Include xstrtol.h.
98778         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98779         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98780         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98781         UID, GID.  Check range.
98782
98783 2000-09-06  Jim Meyering  <meyering@lucent.com>
98784
98785         * lib/getopt.c (_getopt_internal): Update from glibc.
98786
98787 2000-08-30  Jim Meyering  <meyering@lucent.com>
98788
98789         * lib/strftime.c: Merge in changes from GNU libc.
98790
98791 2000-08-26  Jim Meyering  <meyering@lucent.com>
98792
98793         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98794         * m4/fpending.m4: New file.
98795
98796 2000-08-26  Jim Meyering  <meyering@lucent.com>
98797
98798         * lib/closeout.c: Include "__fpending.h".
98799         (close_stdout_status): Return right away if there's nothing to flush.
98800
98801         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98802         * lib/__fpending.c: New file.
98803         * lib/__fpending.h: New file.
98804
98805 2000-08-20  Jim Meyering  <meyering@lucent.com>
98806
98807         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98808         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98809         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98810
98811 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98812
98813         Improve fileutils installation on systems where running
98814         programs (like install) can't be unlinked.
98815         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98816         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98817
98818 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98819
98820         Standardize on "memory exhausted" instead of "Memory exhausted"
98821         or "virtual memory exhausted".
98822         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98823         "virtual memory exhausted".
98824         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98825         our own message.
98826         * lib/userspec.c (parse_user_spec): Likewise.
98827         * lib/bumpalloc.h: comment fix
98828         * lib/same.c, userspec.c: Include xalloc.h.
98829
98830         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98831         not char *const and pointing to a constant array.
98832         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98833         (xrealloc): Comment fix.
98834
98835         * lib/userspec.c (parse_user_spec):
98836         Don't translate a message until just before returning,
98837         to avoid unnecessary translation.
98838
98839 2000-08-07  Jim Meyering  <meyering@lucent.com>
98840
98841         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98842         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98843         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98844         getgroups.c, gethostname.c, getopt.h, group-member.c,
98845         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98846         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98847         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98848         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98849         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98850         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98851         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98852         yesno.c: Back out Copyright date changes for each file with no change
98853         this year.  This eases coordination with other programs using the same
98854         source code modules.  From Paul Eggert.
98855
98856 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98857
98858         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98859         not char, for compatibility with glibc 2.1.3 strftime.c.
98860
98861 2000-08-03  Greg McGary  <greg@mcgary.org>
98862
98863         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98864         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98865         (EXTEND_BUFFER): Use them.
98866
98867 2000-08-01  Jim Meyering  <meyering@lucent.com>
98868
98869         * lib/dirname.c (ISSLASH): Define.
98870         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98871         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98872         both `\' and `/' may be use as path separators.
98873         Based on a patch from Prashant TR.
98874
98875 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98876
98877         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98878         slot vector a constant, since it might get modified.
98879
98880 2000-07-31  Jim Meyering  <meyering@lucent.com>
98881
98882         * lib/xmalloc.c: Use `virtual memory exhausted', not
98883         `Memory exhausted'.
98884         * lib/obstack.c (print_and_abort): Likewise.
98885
98886 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98887
98888         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98889         buffer, so that the caller can always quote one small
98890         component of a "memory exhausted" message in slot 0.
98891         From a suggestion by Jim Meyering.
98892
98893 2000-07-30  Jim Meyering  <meyering@lucent.com>
98894
98895         * lib/makepath.c (make_path): Quote the other instance, too.
98896
98897         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98898         (STATIC_BUF_SIZE): Define.
98899         (quotearg_n_options): Use only statically allocated storage when
98900         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98901         than STATIC_BUF_SIZE.
98902
98903 2000-07-29  Jim Meyering  <meyering@lucent.com>
98904
98905         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98906         * lib/dirname.c (dir_name): Likewise.
98907
98908         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98909         `/'.
98910
98911         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98912         (dir_name): Assert that there are no trailing slashes.
98913
98914 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98915
98916         * lib/mbswidth.h (mbswidth): Add a flags argument.
98917         (mbswidth): New declaration.
98918         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98919         * lib/mbswidth.c (mbswidth): Add a flags argument.
98920         (mbsnwidth): New function.
98921
98922 2000-07-24  Jim Meyering  <meyering@lucent.com>
98923
98924         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98925
98926 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98927
98928         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98929
98930 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98931
98932         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98933         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98934         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98935         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98936         invoke multibyte primitives.
98937
98938 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98939
98940         * lib/quotearg.c:
98941         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98942         so that mbstate_t is always defined.
98943
98944         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98945         be 1 in at least one GCC installation, and this configuration
98946         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98947         performance on hosts that have mbrtowc but have only unibyte
98948         locales, but I assume these hosts are rare.
98949
98950 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98951
98952         * lib/mbswidth.c (_XOPEN_SOURCE):
98953         Don't define; this causes problems on Solaris 7.
98954         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98955
98956 2000-07-23  Jim Meyering  <meyering@lucent.com>
98957
98958         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98959         too: getgrgid, getpwuid, getuid.
98960
98961 2000-07-23  Jim Meyering  <meyering@lucent.com>
98962
98963         * lib/basename.c (base_name): Add an assertion.
98964
98965 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98966
98967         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98968         shadow its mbsinit function.
98969
98970 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98971
98972         * lib/mbswidth.h: New file.
98973         * lib/mbswidth.c: New file.
98974         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98975         (noinst_HEADERS): Add mbswidth.h.
98976
98977 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98978
98979         * lib/config.charset: Add support for FreeBSD. Improve support for
98980         HP-UX and IRIX 6.
98981
98982 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98983
98984         * m4/mbswidth.m4: New file.
98985         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98986
98987 2000-07-15  Jim Meyering  <meyering@lucent.com>
98988
98989         * lib/makepath.c: Include quote.h.
98990         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98991         corresponding argument in a `quote (...)' call.
98992         Give better diagnostics.
98993
98994         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98995         (noinst_HEADERS): Add quote.h.
98996
98997         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98998         from tar's src/misc.c.
98999         * lib/quote.h: New file.  Prototypes for same.
99000
99001 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99002
99003         From a suggestion by Bruno Haible.
99004         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99005         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99006         to decide whether to define the BeOS workaround macro;
99007         this adjusts to the change to AC_MBSTATE_T.
99008
99009 2000-07-14  Jim Meyering  <meyering@lucent.com>
99010
99011         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99012         jm_AC_TYPE_UINTMAX_T.
99013
99014 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99015
99016         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99017
99018         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99019         quotearg_buffer_restyled): Add support for
99020         clocale_quoting_style.  Undo previous change to
99021         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99022         and "{RIGHT QUOTATION MARK}" msgids.
99023
99024 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99025
99026         From a suggestion by Bruno Haible.
99027         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99028         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99029         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99030         and mbstate_t, to a single-part test that simply defines mbstate_t.
99031         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99032         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99033
99034 2000-07-10  Jim Meyering  <meyering@lucent.com>
99035
99036         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99037
99038         * m4/gnu-source.m4: Output to confdefs.h directly.
99039         Suggestion from Akim Demaille.
99040
99041 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99042
99043         The old behavior of quoting `like this' doesn't look good with
99044         newer, ISO-style fonts.  See:
99045         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99046
99047         Instead, quote "like this" by default.  Let the translator
99048         tailor the locale-specific quoting behavior by providing
99049         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99050
99051         * lib/quotearg.c (N_): New macro.
99052         (gettext_default): New function.
99053         (quotearg_buffer_restyled): Use
99054         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99055         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99056
99057 2000-07-09  Jim Meyering  <meyering@lucent.com>
99058
99059         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99060         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99061
99062         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99064
99065 2000-07-09  Jim Meyering  <meyering@lucent.com>
99066
99067         * lib/Most files: Update copyright dates to include 2000.
99068
99069 2000-07-08  Jim Meyering  <meyering@lucent.com>
99070
99071         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99072         if not defined.
99073         (xgethostname): Remove now-unnecessary #ifdef.
99074         Move declaration of `err' into loop where it's used.
99075
99076 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99077         and Bruno Haible  <haible@clisp.cons.org>
99078
99079         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99080         only if the test for an object-type mbstate_t fails.  This
99081         prevents us from mistakenly reporting that mbstate_t is a
99082         system object type after we "#define mbstate_t int" to work
99083         around its lack.
99084
99085 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99086         and Bruno Haible  <haible@clisp.cons.org>
99087
99088         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99089
99090 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99091
99092         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99093         to strerror_r.
99094         Include <ctype.h> for use of isalpha.
99095
99096 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99097
99098         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99099         by allocating a larger buffer. Test the gethostname return value for
99100         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99101         returns an error and ENAMETOOLONG isn't defined.
99102
99103 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99104
99105         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99106         dimension.
99107
99108 2000-07-04  Jim Meyering  <meyering@lucent.com>
99109
99110         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99111         of the deprecated AC_CHECKING.
99112
99113 2000-07-04  Jim Meyering  <meyering@lucent.com>
99114
99115         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99116         Reported by Bruno Haible.
99117
99118 2000-07-04  Jim Meyering  <meyering@lucent.com>
99119
99120         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99121         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99122         lacks mbrtowc.
99123
99124 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99125
99126         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99127         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99128
99129 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99130         and Bruno Haible  <haible@clisp.cons.org>
99131
99132         * lib/quotearg.c (mbrtowc):
99133         Assign to *pwc, and return 1 only if result is nonzero.
99134         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99135
99136 2000-07-03  Jim Meyering  <meyering@lucent.com>
99137
99138         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99139
99140 2000-07-03  Jim Meyering  <meyering@lucent.com>
99141
99142         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99143         This is necessary to get a definition of e.g., UTMP_FILE on
99144         HP-UX 10.20.
99145         From Bob Proulx.
99146
99147 2000-07-02  Jim Meyering  <meyering@lucent.com>
99148
99149         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99150
99151         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99152         AC_LIBOBJ(function_name).
99153         * m4/chown.m4: Likewise.
99154         * m4/fnmatch.m4: Likewise.
99155         * m4/ftruncate.m4: Likewise.
99156         * m4/getgroups.m4: Likewise.
99157         * m4/getline.m4: Likewise.
99158         * m4/group-member.m4: Likewise.
99159         * m4/jm-macros.m4: Likewise.
99160         * m4/lstat.m4: Likewise.
99161         * m4/malloc.m4: Likewise.
99162         * m4/memcmp.m4: Likewise.
99163         * m4/nanosleep.m4: Likewise.
99164         * m4/putenv.m4: Likewise.
99165         * m4/realloc.m4: Likewise.
99166         * m4/regex.m4: Likewise.
99167         * m4/stat.m4: Likewise.
99168         * m4/strftime.m4: Likewise.
99169
99170 2000-07-02  Jim Meyering  <meyering@lucent.com>
99171
99172         * lib/quotearg.c (mbstate_t): Don't define here.
99173
99174 2000-07-02  Jim Meyering  <meyering@lucent.com>
99175
99176         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99177
99178 2000-07-01  Jim Meyering  <meyering@lucent.com>
99179
99180         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99181
99182 2000-07-01  Jim Meyering  <meyering@lucent.com>
99183
99184         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99185         problem.
99186
99187 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99188
99189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99190         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99191
99192 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99193
99194         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99195         per change in ../m4/ls-mntd-fs.m4.
99196         (read_filesystem_list): Ignore symbolic links.
99197
99198 2000-06-29  Jim Meyering  <meyering@lucent.com>
99199
99200         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99201         for declaration of strcmp.
99202
99203         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99204
99205         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99206         Avoid warning by casting result to `char *' to remove `const'.
99207
99208 2000-06-28  Jim Meyering  <meyering@lucent.com>
99209
99210         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99211         included by quotearg.c, for which we perform this test.  From
99212         Bruno Haible.
99213
99214 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99215
99216         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99217         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99218         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99219
99220 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99221
99222         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99223
99224 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99225
99226         savedir now sets errno on failure and invokes xmalloc to get memory.
99227         Fix a couple of other minor bugs while we're at it.
99228
99229         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99230         (NAMLEN): Remove macro.
99231         (malloc, realloc): Remove decls.
99232         (stpcpy): Likewise.
99233         ("xalloc.h"): Include.
99234         (NAME_SIZE_DEFAULT): New macro.
99235         (savedir): Use xmalloc / xrealloc to allocate memory.
99236         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99237         Skip "" directory entries.
99238         Use strlen to calculate directory entry length, since the old method
99239         is rarely used these days and isn't worth supporting.
99240         Don't use a pointer after freeing it.
99241         Check for integer overflow when calculating allocation size.
99242         Use memcpy to copy entries, instead of stpcpy.
99243         Set errno properly when returning NULL.
99244         Check for readdir error.
99245
99246 2000-06-26  Jim Meyering  <meyering@lucent.com>
99247
99248         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99249
99250 2000-06-25  Jim Meyering  <meyering@lucent.com>
99251
99252         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99253         Linux header bug when _XOPEN_SOURCE is defined to 500.
99254
99255 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99256
99257         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99258         deficiency.
99259
99260 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99261
99262         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99263         Include xalloc.h.
99264         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99265
99266 2000-06-24  Jim Meyering  <meyering@lucent.com>
99267
99268         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99269         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99270         for which strerror does return char*, but which lacks a conveniently
99271         accessible declaration of the function.  If the compile-test says
99272         strerror_r doesn't work, then resort to a `run'-test that works on
99273         BeOS and segfaults on DEC Unix.
99274
99275 2000-06-24  Jim Meyering  <meyering@lucent.com>
99276
99277         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99278
99279 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99280
99281         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99282         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99283
99284 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99285
99286         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99287         (mbrtowc, mbstate_t): Define substitutes if
99288         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99289         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99290         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99291
99292 2000-06-23  Jim Meyering  <meyering@lucent.com>
99293
99294         * m4/afs.m4: Add missing AC_MSG_RESULT.
99295         Reported by Bruno Haible.
99296
99297         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99298         Suggestion from Bruno Haible.
99299
99300 2000-06-23  Jim Meyering  <meyering@lucent.com>
99301
99302         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99303
99304 2000-06-21  Jim Meyering  <meyering@lucent.com>
99305
99306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99307
99308 2000-06-21  Jim Meyering  <meyering@lucent.com>
99309
99310         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99311         (noinst_HEADERS): Add getstr.h.
99312
99313         * lib/getline.c (getstr): Move into a separate file.
99314         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99315         the following changes: new parameter, delim2; both delim[12]
99316         parameters have type `int', not `char'.  The latter would lose
99317         with 8-bit delimiters.
99318         * lib/getstr.h: New file.
99319
99320 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99321
99322         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99323         than 1024, return a memory chunk of least possible size, instead
99324         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99325         Use free/xmalloc instead of xrealloc to avoid copying for very long
99326         paths.
99327
99328 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99329
99330         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99331         the empty string.
99332
99333 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99334
99335         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99336         address, not strdup.  Include <stdlib.h> and don't declare free().
99337
99338 2000-06-19  Jim Meyering  <meyering@lucent.com>
99339
99340         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99341
99342 2000-06-18  Jim Meyering  <meyering@lucent.com>
99343
99344         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99345
99346         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99347         `checking whether...' message to be consistent with that of the
99348         lstat test.
99349
99350 2000-06-18  Jim Meyering  <meyering@lucent.com>
99351
99352         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99353         Besides, these days every porting target provides a mkdir function.
99354
99355         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99356         needed. (this snippet comes from src/system.h).
99357
99358 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99359
99360         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99361
99362 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99363
99364         * lib/human.c (adjust_value): New function.
99365         (human_readable_inexact): Apply rounding style even when
99366         printing approximate values.
99367
99368 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99369
99370         * lib/human.c (human_readable_inexact): Allow an input block
99371         size that is not a multiple of the output block size, and vice versa.
99372         Reported by Piergiorgio Sartor.
99373
99374 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99375
99376         * lib/getdate.y (get_date): Apply relative times after time
99377         zone indicator, not before.  Reported by Todd A. Jacobs.
99378
99379 2000-06-13  Jim Meyering  <meyering@lucent.com>
99380
99381         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99382
99383         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99384
99385 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99386
99387         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99388
99389 2000-06-12  Jim Meyering  <meyering@lucent.com>
99390
99391         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99392         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99393         optional argument.
99394         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99395         the optional argument, `lib'.
99396
99397 2000-06-08  Jim Meyering  <meyering@lucent.com>
99398
99399         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99400
99401 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99402
99403         Rewrite largefile configuration so that we don't need to run
99404         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99405         AC_CANONICAL_HOST in configure.in -- jmm]
99406
99407         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99408         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99409         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99410         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99411         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99412         All uses changed.
99413         Instead of inspecting the output of getconf, try to compile the
99414         test program without and with the macro definition.
99415         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99416         for getconf.  Instead, check for the needed flags by compiling
99417         test programs.
99418
99419 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99420
99421         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99422
99423 2000-06-04  Jim Meyering  <meyering@lucent.com>
99424
99425         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99426         SunOS 4.1.4 for which gid_t is an unsigned type.
99427
99428 2000-06-03  Jim Meyering  <meyering@lucent.com>
99429
99430         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99431         now that autoconf requires that.
99432
99433         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99434         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99435         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99436
99437 2000-06-03  Jim Meyering  <meyering@lucent.com>
99438
99439         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99440
99441 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99442
99443         * m4/glibc21.m4: New file.
99444         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99445
99446 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99447
99448         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99449         newer, don't install charset.alias.
99450         * lib/config.charset: Change the Linux/glibc rules so they become empty
99451         on glibc-2.1 or newer.
99452
99453 2000-06-02  Jim Meyering  <meyering@lucent.com>
99454
99455         * lib/mountlist.c: Back out last change.  Instead, do this...
99456         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99457         me_dummy member using the same `ignore'-testing code.
99458         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99459         fs_type strings.
99460         From Mark D. Roth.
99461
99462 2000-05-29  Jim Meyering  <meyering@lucent.com>
99463
99464         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99465         mounts with the `ignore' attribute.  Based on a patch from
99466         Mark D. Roth.
99467
99468 2000-05-28  Jim Meyering  <meyering@lucent.com>
99469
99470         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99471         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99472         * m4/stat.m4: Likewise.
99473         * m4/lstat.m4: Likewise.
99474         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99475
99476         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99477         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99478
99479 2000-05-26  Jim Meyering  <meyering@lucent.com>
99480
99481         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99482
99483 2000-05-24  Jim Meyering  <meyering@lucent.com>
99484
99485         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99486         autoconf requires that.
99487         * m4/lib-check.m4: Likewise.
99488         * m4/jm-macros.m4: Likewise.
99489         * m4/strftime.m4: Likewise.
99490
99491         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99492         AC_CHECK_DECLS, now that autoconf requires that.
99493
99494 2000-05-22  Jim Meyering  <meyering@lucent.com>
99495
99496         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99497         * m4/lstat.m4: Likewise.
99498
99499 2000-05-22  Jim Meyering  <meyering@lucent.com>
99500
99501         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99502
99503 2000-05-20  Jim Meyering  <meyering@lucent.com>
99504
99505         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99506         (jm_PREREQ): Use it.
99507
99508 2000-05-18  Jim Meyering  <meyering@lucent.com>
99509
99510         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99511         back, too, since it may have been modified by allocate_entry.
99512         (hash_delete): Rewrite to use neither the assignment operator
99513         nor the comma operator in an if-expression.
99514
99515 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99516
99517         * lib/closeout.c:
99518         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99519         Remove; no longer needed.
99520         "quotearg.h": Add include.
99521         (file_name): Do not bother to explicitly initialize to NULL; it's less
99522         efficient on some hosts.
99523         (close_stdout_status): Remove test as to whether stdout was already
99524         closed; it breaks for the case "echo x | sort >&-".
99525         Quote file name colons.
99526         Do not assume that _("write error") lacks format strings.
99527
99528 2000-05-15  Jim Meyering  <meyering@lucent.com>
99529
99530         * lib/version-etc.c (version_etc_copyright): Update the copyright
99531         string used in all --version output.
99532
99533 2000-05-14  Jim Meyering  <meyering@lucent.com>
99534
99535         * lib/closeout.c (close_stdout_set_file_name): New function.
99536         (close_stdout_status): Use new file-scoped global.
99537         Return right away if fstat says the stdout file descriptor is invalid.
99538         * lib/closeout.h (close_stdout_set_file_name): Declare.
99539
99540 2000-05-10  Jim Meyering  <meyering@lucent.com>
99541
99542         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99543         (close_stdout_set_status): New function.
99544         * lib/closeout.h (close_stdout_set_status): Declare.
99545
99546 2000-05-09  Jim Meyering  <meyering@lucent.com>
99547
99548         * m4/gettext.m4: Rename this...
99549         * m4/libintl.m4: ...to this.
99550
99551 2000-05-08  Jim Meyering  <meyering@lucent.com>
99552
99553         * lib/long-options.c: Don't include closeout.h.
99554         (parse_long_options): Don't call close_stdout for --version.
99555
99556 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99557
99558         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99559         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99560         2.1.3 bug.  This avoids a clash when files like regex.c define
99561         _GNU_SOURCE.
99562
99563 2000-05-06  Jim Meyering  <meyering@lucent.com>
99564
99565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99566         (AC_REPLACE_FUNCS): Add strnlen.
99567
99568         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99569         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99570
99571         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99572         AC_SEARCH_LIBS call for nanosleep.
99573         (LIB_NANOSLEEP): Set and AC_SUBST.
99574
99575 2000-05-06  Jim Meyering  <meyering@lucent.com>
99576
99577         * lib/strnlen.c: Undefine __strnlen and strnlen.
99578         [!weak_alias]: Define __strnlen to strnlen.
99579
99580         * lib/atexit.c: New file, from libiberty.
99581
99582 2000-05-06  Jim Meyering  <meyering@lucent.com>
99583
99584         * lib/closeout.c (close_stdout_status): Also check for errors on the
99585         stderr stream.
99586
99587 2000-05-05  Jim Meyering  <meyering@lucent.com>
99588
99589         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99590         AC_SEARCH_LIBS call for clock_gettime.
99591         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99592
99593         * m4/search-libs.m4: Update from autoconf.
99594
99595         su doesn't work on Solaris 2.6.
99596         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99597         <shadow.h>.  Reported by Dragos Harabor.
99598
99599 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99600
99601         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99602         memcpy instead of xmalloc, xrealloc, path_concat.
99603         (locale_charset): Treat empty environment variables as absent.
99604         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99605
99606 2000-05-04  Jim Meyering  <meyering@lucent.com>
99607
99608         * lib/getopt.c: Update from glibc.
99609         * lib/obstack.c: Likewise.
99610         * lib/obstack.h: Likewise.
99611         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99612         file
99613
99614         * lib/regex.h: Likewise.
99615         * lib/strndup.c: Likewise.
99616         * lib/strnlen.c: New file, from glibc.
99617
99618 2000-05-03  Jim Meyering  <meyering@lucent.com>
99619
99620         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99621
99622 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99623
99624         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99625         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99626         compile-time test, rather than inspecting host and OS, to
99627         decide whether to define _LARGEFILE_SOURCE.
99628
99629 2000-05-01  Jim Meyering  <meyering@lucent.com>
99630
99631         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99632
99633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99634         Based on a patch from Bruno Haible.
99635
99636 2000-05-01  Jim Meyering  <meyering@lucent.com>
99637
99638         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99639
99640 2000-04-29  Jim Meyering  <meyering@lucent.com>
99641
99642         * lib/path-concat.c: Declare strdup only if it's not defined.
99643         * lib/canon-host.c: Likewise.
99644
99645 2000-04-28  Jim Meyering  <meyering@lucent.com>
99646
99647         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99648         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99649         is included first, then limits.h is included by locale.h by libintl.h.
99650         From John David Anglin.
99651
99652 2000-04-25  Jim Meyering  <meyering@lucent.com>
99653
99654         * lib/makepath.c (S_IRWXUGO): Define.
99655         (make_path): Always perform explicit chmod if MODE specifies any
99656         of the `special' permission bits.  Prompted by a bug report against
99657         install from Mate Wierdl and Joost van Baal.
99658
99659 2000-04-18  Jim Meyering  <meyering@lucent.com>
99660
99661         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99662         (jm_PREREQ): Use it.
99663
99664 2000-04-18  Jim Meyering  <meyering@lucent.com>
99665
99666         * lib/README: New file.
99667
99668         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99669         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99670
99671 2000-04-17  Jim Meyering  <meyering@lucent.com>
99672
99673         Get it right :-)
99674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99675         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99676         Suggestion from Akim Demaille.
99677
99678 2000-04-17  Jim Meyering  <meyering@lucent.com>
99679
99680         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99681         the definition of it to rpl_strftime also defined-away the system's
99682         declaration.
99683
99684 2000-04-15  Jim Meyering  <meyering@lucent.com>
99685
99686         Use `C' to denote so-called `contiguous' files, the same way
99687         that tar does.
99688         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99689         (ftypelet): Use S_ISCTG.
99690         From Michael Deutschmann.
99691
99692 2000-04-14  Jim Meyering  <meyering@lucent.com>
99693
99694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99695         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99696         clobbered.
99697
99698 2000-04-14  Jim Meyering  <meyering@lucent.com>
99699
99700         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99701
99702 2000-04-13  Jim Meyering  <meyering@lucent.com>
99703
99704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99705         AH_VERBATIM to insert required #ifndef into config.h.in.
99706         Suggestion from Akim Demaille.
99707
99708 2000-04-12  Jim Meyering  <meyering@lucent.com>
99709
99710         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99711         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99712         Christian Krackowizer.
99713
99714         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99715         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99716         (AC_SYS_LARGEFILE): Require.
99717         (AM_C_PROTOTYPES): Require.
99718
99719 2000-04-08  Jim Meyering  <meyering@lucent.com>
99720
99721         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99722         names don't conflict.  Reported by Eli Zaretskii.
99723
99724 2000-04-07  Jim Meyering  <meyering@lucent.com>
99725
99726         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99727         sys/types.h, to work around system header problems on AIX 3.2.5.
99728         From Bruno Haible.
99729
99730 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99731
99732         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99733         bug.  Deal with the different error behavior of Irix iconv.
99734
99735 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99736
99737         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99738         IRIX if the installer said otherwise.
99739
99740 2000-04-05  Jim Meyering  <meyering@lucent.com>
99741
99742         Portability tweaks required for ultrix4.3.
99743         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99744         (jm_CHECK_DECLS): Add getutent to the list of functions.
99745         (_jm_DECL_HEADERS): Add utmpx.h.
99746         From John David Anglin.
99747
99748         * m4/strftime.m4: Back out the 2000-04-02 change.
99749         Instead of that change, simply undefine putenv in the test program.
99750
99751 2000-04-05  Jim Meyering  <meyering@lucent.com>
99752
99753         Portability tweaks required for ultrix4.3.
99754         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99755         getutent.
99756         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99757         * lib/canon-host.c: Declare strdup.
99758         * lib/path-concat.c: Likewise.
99759         From John David Anglin.
99760
99761 2000-04-04  Jim Meyering  <meyering@lucent.com>
99762
99763         Be more DOS 8.3-friendly.
99764         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99765         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99766         * lib/Makefile.am: Reflect renaming.
99767         Reported by Eli Zaretskii.
99768
99769         Use a temporary file name that won't clash with `charset.alias'
99770         in the DOS 8.3 name space.
99771         * lib/Makefile.am (charset_tmp): Define.
99772         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99773         (uninstall-local): Likewise.
99774         Reported by Eli Zaretskii.
99775
99776 2000-04-03  Jim Meyering  <meyering@lucent.com>
99777
99778         * m4/gettext.m4: Fix typo in comment.
99779
99780         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99781         textutils/configure.in).  Suggestion from Paul Eggert.
99782         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99783
99784 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99785
99786         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99787         variable in the shell rather than using putenv, which isn't
99788         portable.  This avoids the configure-time inter-test dependency
99789         on the potentially-renamed putenv function.
99790
99791 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99792
99793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99794         before checking struct stat.st_blksize, so that
99795         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99796
99797 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99798
99799         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99800         since strftime.c uses HAVE_STRFTIME to decide whether to use
99801         the underlying strftime.
99802
99803 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99804
99805         * lib/time/strftime.c (my_strftime): Make sure we call the system
99806         strftime, not ourselves, when invoking the underlying strftime.
99807
99808 2000-03-24  Jim Meyering  <meyering@lucent.com>
99809
99810         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99811         (charset_alias): Define.
99812         (install-exec-local): Factor out common code.
99813         (uninstall-local): Split lines longer than 80.
99814         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99815         (SUFFIXES): Define.
99816         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99817         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99818
99819 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99820
99821         * lib/config.charset: Output a line containing "Packages using this
99822         file".
99823         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99824         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99825         ref-del.sed): New rules.
99826
99827 2000-03-17  Jim Meyering  <meyering@lucent.com>
99828
99829         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99830         Otherwise, include <strings.h>
99831
99832 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99833
99834         * lib/unicodeio.c (utf8_wctomb): New function.
99835         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99836         format instead of in UCS-4 with platform dependent endianness.
99837
99838 2000-03-10  Jim Meyering  <meyering@lucent.com>
99839
99840         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99841         From Marco Franzen.
99842
99843 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99844
99845         * lib/savedir.c (savedir): Work even if directory size is
99846         negative; this can happen with some screwy NFS configurations.
99847
99848 2000-03-06  Jim Meyering  <meyering@lucent.com>
99849
99850         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99851         if it's NULL (because we ran out of memory).  From Bruno Haible.
99852
99853 2000-03-05  Jim Meyering  <meyering@lucent.com>
99854
99855         * lib/localcharset.c ("path-concat.h"): Include.
99856         (get_charset_aliases): Use path_concat instead of ANSI string
99857         concatenation.
99858
99859         * lib/unicodeio.h (PARAMS): Define.
99860         Use it to guard prototype.
99861
99862 2000-03-04  Jim Meyering  <meyering@lucent.com>
99863
99864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99865         for lib/localcharset.c.
99866
99867 2000-03-04  Jim Meyering  <meyering@lucent.com>
99868
99869         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99870         installing into it.
99871         (uninstall-local): Uncomment this rule so `make distcheck' works
99872         once again.
99873
99874         * lib/unicodeio.c (<errno.h>): Include it.
99875         (errno): Declare if not defined.
99876
99877         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99878
99879         * lib/config.charset: New version, incorporating remarks from a linux
99880         i18n mailing list.  From Bruno Haible.
99881
99882 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99883
99884         * m4/codeset.m4: New file.
99885         * m4/iconv.m4: New file.
99886         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99887
99888 2000-03-03  Jim Meyering  <meyering@lucent.com>
99889
99890         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99891
99892 2000-03-02  Jim Meyering  <meyering@lucent.com>
99893
99894         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99895         the messages come out on separate lines.
99896
99897         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99898         rather than jm_CHECK_DECLARATIONS.
99899         * m4/decl.m4: Remove now-unused file.
99900
99901         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99902         geteuid.
99903
99904 2000-03-02  Jim Meyering  <meyering@lucent.com>
99905
99906         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99907
99908 2000-03-01  Jim Meyering  <meyering@lucent.com>
99909
99910         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99911         * lib/unicodeio.c: Likewise.
99912
99913 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99914
99915         * lib/config.charset: New file.
99916         * lib/localcharset.c: New file.
99917         * lib/unicodeio.h, lib/unicodeio.c: New files.
99918         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99919         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99920         (noinst_HEADERS): Add unicodeio.h.
99921         (all-local, install-exec-local, charset.alias): New targets.
99922
99923 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99924
99925         * lib/quotearg.c (ALERT_CHAR): New macro.
99926         (quotearg_buffer_restyled): Use it.
99927
99928 2000-02-27  Jim Meyering  <meyering@lucent.com>
99929
99930         * m4/check-decl.m4: Add getenv to the list.
99931
99932 2000-02-27  Jim Meyering  <meyering@lucent.com>
99933
99934         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99935         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99936
99937         * lib/backupfile.c: Guard inclusion of stdlib.h with
99938         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99939         Declare malloc if needed.
99940
99941         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99942         `#ifndef HAVE_DECL..'
99943         now that autoconf always defines the HAVE_DECL_ symbols.
99944         * lib/human.c: Likewise.
99945         * lib/same.c: Likewise.
99946         * lib/strtoumax.c: Likewise.
99947
99948         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99949         declaration check was not run.
99950         * lib/hash.c: Likewise.
99951         * lib/human.c: Likewise.
99952         * lib/same.c: Likewise.
99953         * lib/strtoumax.c: Likewise.
99954
99955         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99956         `.', then first look up the entire `.'-containing string as a login
99957         name.
99958
99959 2000-02-23  Jim Meyering  <meyering@lucent.com>
99960
99961         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99962         in place of my hack.
99963
99964 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99965
99966         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99967         (textint): New typedef.
99968         (parser_control): Member year changed from int to textint.
99969         All uses changed.
99970         (YYSTYPE): Removed; replaced by %union with int and textint members.
99971         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99972         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99973         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99974         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99975         (date, number, to_year): Use width of number in digits, not its value,
99976         to determine whether it's a 2-digit year, or a 2-digit time.
99977         (yylex): Store number of digits of numeric tokens.
99978         Reported by John Kendall.
99979
99980         (parser_control): Changed from struct parser_control to typedef (for
99981         consistency).  All uses changed.
99982
99983         (tID): Removed; not used.
99984         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99985
99986 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99987
99988         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99989         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99990
99991 2000-02-12  Jim Meyering  <meyering@lucent.com>
99992
99993         * lib/userspec.c (ISDIGIT): Define it.
99994         (isdigit): Remove definition.
99995         (is_number): Use ISDIGIT, not isdigit.
99996         <libintl.h>: Include.
99997         (_ and N_): Define.
99998         (parse_user_spec): Mark translatable strings.
99999
100000 2000-02-10  Jim Meyering  <meyering@lucent.com>
100001
100002         With these changes, nanosleep.[ch] are finally enough like the other
100003         lib/* replacement files to compile on a few more losing systems.
100004
100005         * lib/nanosleep.h: Don't include config.h.
100006         Remove prototype from declaration of nanosleep.
100007         (PARAMS): Remove now-unneeded definition.
100008         * lib/nanosleep.c: #undef nanosleep.
100009         (rpl_nanosleep): Rename from nanosleep.
100010
100011 2000-02-10  Jim Meyering  <meyering@lucent.com>
100012
100013         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100014         gnu_nanosleep to rpl_nanosleep.
100015
100016 2000-02-09  Jim Meyering  <meyering@lucent.com>
100017
100018         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100019         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100020
100021 2000-02-08  Akim Demaille  <akim@epita.fr>
100022
100023         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100024         `[' and `]' and remove uses of `changequote'.
100025         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100026         (AC_SYS_LARGEFILE): Likewise.
100027         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100028         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100029         of changequote.
100030         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100031         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100032         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100033         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100034
100035 2000-02-05  Jim Meyering  <meyering@lucent.com>
100036
100037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100038         Remove explicit use of AC_HEADER_TIME.  It is required by
100039         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100040         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100041         in autoconf whereby the expansion of the latter ended up preceding
100042         the expansion of its prerequisite, AC_HEADER_TIME.
100043         Reported by Volker Borchert.
100044
100045 2000-02-03  Jim Meyering  <meyering@lucent.com>
100046
100047         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100048
100049 2000-02-03  Jim Meyering  <meyering@lucent.com>
100050
100051         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100052         rather than with `#if HAVE_UTMPNAME'.
100053
100054 2000-02-02  Jim Meyering  <meyering@lucent.com>
100055
100056         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100057         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100058         Reported by Eli Zaretskii.
100059
100060 2000-02-01  Jim Meyering  <meyering@lucent.com>
100061
100062         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100063
100064 2000-01-31  Jim Meyering  <meyering@lucent.com>
100065
100066         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100067         functions.  Add the time.h and sys/time.h headers along with the
100068         AC_REQUIRE'ment of AC_HEADER_TIME.
100069
100070 2000-01-31  Jim Meyering  <meyering@lucent.com>
100071
100072         * lib/nanosleep.h (nanosleep): Guard declaration with
100073         `#if ! HAVE_DECL_NANOSLEEP'.
100074         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100075         the declaration in that vendor's sys/timers.h.
100076         Reported by Christian Krackowizer.
100077
100078         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100079         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100080         (ISPRINT): Likewise.
100081         Reported by Tom Tromey.
100082
100083 2000-01-30  Jim Meyering  <meyering@lucent.com>
100084
100085         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100086
100087         * m4/prereq.m4 (utmp_includes): Define.
100088         Check for ut_user and ut_name members in both struct utmpx
100089         and struct utmp.
100090
100091 2000-01-30  Jim Meyering  <meyering@lucent.com>
100092
100093         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100094         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100095         header files where only utmpx.ut_user is declared.
100096
100097         * lib/readutmp.h (UT_USER): Define.
100098
100099 2000-01-29  Jim Meyering  <meyering@lucent.com>
100100
100101         * m4/lib-check.m4: New file containing library-related checks from
100102         fileutils and sh-utils (textutils had none).
100103
100104 2000-01-28  Jim Meyering  <meyering@lucent.com>
100105
100106         * m4/perl.m4: Change format of warning message to look more like that
100107         from the missing script.  Suggestion from François Pinard.
100108
100109 2000-01-25  Jim Meyering  <meyering@lucent.com>
100110
100111         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100112         well as time.h in the compile check.
100113         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100114         Fix typo in cross-compiling case: s/yes/no/.
100115
100116 2000-01-23  Jim Meyering  <meyering@lucent.com>
100117
100118         * m4/jm-macros.m4: Move df-related tests here from
100119         fileutils/configure.in
100120
100121         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100122         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100123
100124         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100125         s/space/ac_fsusage_space/.
100126         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100127
100128         * m4/ftruncate.m4: New file (derived from part of
100129         fileutils/configure.in).
100130         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100131         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100132
100133         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100134         AC_SUBST these here, rather than just in sh-util/configure.in, so
100135         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100136         all the same.
100137         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100138         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100139         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100140         (AC_SUBST(POW_LIBM)): Likewise.
100141         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100142
100143 2000-01-23  Jim Meyering  <meyering@lucent.com>
100144
100145         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100146         obstack.c.
100147
100148 2000-01-22  Jim Meyering  <meyering@lucent.com>
100149
100150         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100151
100152         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100153
100154         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100155         configure.in
100156         (AC_CHECK_HEADERS): Likewise for sh-utils.
100157         (AC_CHECK_HEADERS): Likewise for textutils.
100158         Merge the three lists of headers.
100159
100160         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100161         from fileutils' configure.in.
100162
100163         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100164         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100165         check-decl.m4.
100166
100167         * m4/check-decl.m4: Use #if rather than #ifdef.
100168         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100169         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100170         (_jm_DECL_HEADERS): Define new function.
100171         (jm_CHECK_DECLARATIONS): Require it.
100172
100173 2000-01-22  Jim Meyering  <meyering@lucent.com>
100174
100175         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100176         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100177         Required for some AIX systems.  Reported by Christian Krackowizer.
100178         [TESTING] (main): New function.
100179
100180         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100181         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100182         letters.
100183
100184         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100185         iswprint.
100186
100187         * lib/strverscmp.c (ISDIGIT): Define.
100188         (strverscmp): Use ISDIGIT, not isdigit.
100189
100190 2000-01-19  Jim Meyering  <meyering@lucent.com>
100191
100192         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100193         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100194         defines `struct timespec' in <sys/time.h>
100195
100196         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100197         Thanks to Akim for explaining.
100198
100199 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100200
100201         * lib/nanosleep.c (nanosleep):
100202         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100203         POSIX.1 doesn't require SA_INTERRUPT and some systems
100204         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100205         it's been part of POSIX.1 since day 1 (in 1988).
100206
100207 2000-01-17  Jim Meyering  <meyering@lucent.com>
100208
100209         * lib/interlock: Remove unused file.  Reported by François Pinard.
100210
100211 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100212
100213         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100214         alert, backslash, formfeed, and vertical tab unnecessarily in
100215         shell quoting style.
100216
100217 2000-01-16  Jim Meyering  <meyering@lucent.com>
100218
100219         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100220         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100221         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100222         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100223
100224 2000-01-16  Jim Meyering  <meyering@lucent.com>
100225
100226         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100227         because the latter didn't work.
100228
100229 2000-01-15  Jim Meyering  <meyering@lucent.com>
100230
100231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100232         (AC_REPLACE_FUNCS): Add memcpy and memset.
100233         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100234         Add strpbrk.
100235         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100236
100237 2000-01-12  Jim Meyering  <meyering@lucent.com>
100238
100239         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100240         (jm_PREREQ): Use it.
100241         (jm_PREREQ_READUTMP): New macro.
100242         (jm_PREREQ): Use it.
100243
100244 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100245
100246         Quote multibyte characters correctly.
100247         * m4/c-bs-a.m4: New file.
100248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100249         (jm_PREREQ): Use it.
100250
100251 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100252
100253         * m4/uintmax_t.m4: Port to autoconf 2.13.
100254
100255 2000-01-08  Jim Meyering  <meyering@ascend.com>
100256
100257         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100258         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100259
100260 2000-01-04  Jim Meyering  <meyering@ascend.com>
100261
100262         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100263         jm_STRUCT_DIRENT_D_TYPE.
100264         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100265         jm_STRUCT_DIRENT_D_INO.
100266         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100267         jm_STRUCT_UTIMBUF.
100268         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100269         renamings.
100270         * m4/utime.m4: Likewise.
100271
100272         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100273         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100274
100275 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100276
100277         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100278         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100279
100280 2000-01-02  Jim Meyering  <meyering@ascend.com>
100281
100282         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100283         remember if this is necessary.
100284
100285 1999-12-26  Jim Meyering  <meyering@ascend.com>
100286
100287         * m4/jm-macros.m4: Use it here.
100288         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100289
100290 1999-12-23  Jim Meyering  <meyering@ascend.com>
100291
100292         * m4/jm-macros.m4: Check for clock_gettime (moved from
100293         fileutils/configure.in)
100294         Check for gettimeofday.
100295
100296 1999-12-20  Jim Meyering  <meyering@ascend.com>
100297
100298         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100299         autoconf-2.14a-1999-12-20.
100300
100301 1999-12-19  Jim Meyering  <meyering@ascend.com>
100302
100303         * m4/lstat-slash.m4: New file.
100304         * m4/jm-macros.m4: Use the new macro:
100305         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100306
100307 1999-12-07  Jim Meyering  <meyering@ascend.com>
100308
100309         * m4/perl.m4: Require that File::Compare be available, too.
100310         Too many systems seem to lack it.
100311
100312         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100313         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100314
100315 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100316
100317         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100318         problem with the QNX 4.25 shell, which doesn't propagate exit
100319         status of failed commands inside shell assignments.
100320
100321 1999-11-17  Jim Meyering  <meyering@ascend.com>
100322
100323         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100324
100325 1999-11-07  Jim Meyering  <meyering@ascend.com>
100326
100327         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100328
100329 1999-11-06  Jim Meyering  <meyering@ascend.com>
100330
100331         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100332         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100333
100334 1999-11-05  Jim Meyering  <meyering@ascend.com>
100335
100336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100337         configure.in of textutils, fileutils, and sh-utils into this one
100338         (shared between those packages) file.
100339         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100340         AC_STRUCT_ST_BLKSIZE.
100341
100342 1999-11-03  Jim Meyering  <meyering@ascend.com>
100343
100344         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100345         of AC_CHECK_TYPE checks includes unistd.h.
100346         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100347         Suggestion from Akim Demaille.
100348
100349 1999-10-30  Jim Meyering  <meyering@ascend.com>
100350
100351         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100352         m4-quoted string.
100353         * m4/ls-mntd-fs.m4: Likewise.
100354         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100355         * m4/jm-winsz1.m4: Likewise.
100356
100357         * m4/const.m4: Remove file, since the fix made it into the experimental
100358         version of autoconf.
100359         * m4/mktime.m4: Likewise.
100360
100361         * m4/check-type.m4: Remove file, now that the latest version of
100362         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100363
100364         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100365         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100366         AC_CHECK_TYPE.
100367
100368 1999-10-04  Jim Meyering  <meyering@ascend.com>
100369
100370         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100371
100372 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100373
100374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100375         2.95.1 bug with HP-UX 10.20.
100376
100377 1999-09-17  Jim Meyering  <meyering@ascend.com>
100378
100379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100380         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100381         due to missing strdup (against sh-utils-2.0).
100382
100383 1999-08-29  Jim Meyering  <meyering@ascend.com>
100384
100385         * m4/jm-macros.m4: Require jm_BISON.
100386         * m4/bison.m4: New file.
100387
100388 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100389
100390         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100391         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100392
100393 1999-08-05  Jim Meyering  <meyering@ascend.com>
100394
100395         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100396         to avoid conflicts with `conftest' on 8+3 filesystems.
100397         Suggestion from Eli Zaretskii.
100398
100399 1999-08-04  Jim Meyering  <meyering@ascend.com>
100400
100401         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100402         fileutils and sh-utils (textutils's getline test was inadequate).
100403         (AM_FUNC_GETLINE): Run this test.
100404         (AC_CHECK_FUNCS): Check for getdelim.
100405         Reported by Bob Proulx.
100406
100407 1999-08-02  Jim Meyering  <meyering@ascend.com>
100408
100409         * m4/jm-macros.m4: Add a comment.
100410
100411 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100412
100413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100414         <inttypes.h> defines strtoumax as a macro (and not as a
100415         function).
100416
100417 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100418
100419         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100420         that we can shift, multiply and divide unsigned long long
100421         values; Ultrix cc can't do it.
100422
100423 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100424
100425         * m4/mktime.m4: New file, which is a preview of what should appear
100426         in the next public autoconf release.
100427
100428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100429
100430         * m4/lfs.m4: Remove this file.
100431         * m4/largefile.m4: New file.  It contains the old contents of
100432         lfs.m4, except that all names with prefix AC_LFS have been
100433         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100434         compatible with future autoconf versions.  Also, some minor m4
100435         quoting problems have been fixed.
100436
100437 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100438
100439         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100440         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100441         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100442         and simplify the shell code.
100443
100444 1999-08-01  Jim Meyering  <meyering@ascend.com>
100445
100446         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100447         m4.
100448
100449 1999-07-20  Jim Meyering  <meyering@ascend.com>
100450
100451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100452
100453 1999-07-15  Jim Meyering  <meyering@ascend.com>
100454
100455         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100456
100457 1999-05-22  Jim Meyering  <meyering@ascend.com>
100458
100459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100460
100461 1999-05-20  Jim Meyering  <meyering@ascend.com>
100462
100463         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100464         Add a colon after each `then' in case $4 is empty.
100465
100466 1999-05-16  Jim Meyering  <meyering@ascend.com>
100467
100468         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100469
100470 1999-05-10  Jim Meyering  <meyering@ascend.com>
100471
100472         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100473
100474         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100475         AC_FUNC_MKTIME.
100476
100477 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100478
100479         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100480
100481 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100482
100483         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100484         not CPPFLAGS, so that linking works correctly in IRIX.
100485
100486 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100487
100488         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100489
100490 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100491
100492         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100493         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100495         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100496         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100497
100498         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100499
100500 1999-04-20  Jim Meyering  <meyering@ascend.com>
100501
100502         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100503         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100504         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100505
100506 1999-04-18  Jim Meyering  <meyering@ascend.com>
100507
100508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100509         * m4/jm-macros.m4: Use it.
100510
100511 1999-04-06  Jim Meyering  <meyering@ascend.com>
100512
100513         * m4/strftime.m4: Remove test for %f.
100514
100515 1999-03-29  Jim Meyering  <meyering@ascend.com>
100516
100517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100518         superset of the AC_TYPE_* checks in the textutils, fileutils,
100519         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100520         AC_TYPE_PID_T.
100521
100522 1999-03-28  Jim Meyering  <meyering@ascend.com>
100523
100524         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100525         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100526         replaced e.g., in the *.sh files of the sh-utils.
100527
100528 1999-03-20  Jim Meyering  <meyering@ascend.com>
100529
100530         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100531         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100532         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100533
100534 1999-03-19  Jim Meyering  <meyering@ascend.com>
100535
100536         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100537
100538 1999-03-12  Jim Meyering  <meyering@ascend.com>
100539
100540         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100541
100542 1999-03-07  Jim Meyering  <meyering@ascend.com>
100543
100544         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100545         declared.
100546
100547 1999-02-17  Jim Meyering  <meyering@ascend.com>
100548
100549         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100550         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100551
100552 1999-02-07  Jim Meyering  <meyering@ascend.com>
100553
100554         * m4/group-member.m4: New file -- extracted from sh-utils'
100555         configure.in.
100556
100557         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100558         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100559
100560 1999-02-06  Jim Meyering  <meyering@ascend.com>
100561
100562         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100563         * m4/fnmatch.m4: Likewise.
100564         * m4/getgroups.m4: Likewise.
100565         * m4/lstat.m4: Likewise.
100566         * m4/malloc.m4: Likewise.
100567         * m4/putenv.m4: Likewise.
100568         * m4/realloc.m4: Likewise.
100569         * m4/regex.m4: Likewise.
100570         * m4/stat.m4: Likewise.
100571         * m4/strftime.m4: Likewise.
100572         Suggestion from Alain Magloire.
100573
100574         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100575         * m4/fnmatch.m4: Likewise.
100576         * m4/getgroups.m4: Likewise.
100577         * m4/getline.m4: Likewise.
100578         * m4/lstat.m4: Likewise.
100579         * m4/malloc.m4: Likewise.
100580         * m4/memcmp.m4: Likewise.
100581         * m4/putenv.m4: Likewise.
100582         * m4/realloc.m4: Likewise.
100583         * m4/regex.m4: Likewise.
100584         * m4/stat.m4: Likewise.
100585         * m4/strftime.m4: Likewise.
100586         Suggestion from Alain Magloire.
100587
100588         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100589         an argument.
100590
100591         * m4/regex.m4: Add a run-time Test for proper operation of
100592         re_compile_pattern.
100593
100594 1999-01-31  Jim Meyering  <meyering@ascend.com>
100595
100596         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100597
100598 1999-01-30  Jim Meyering  <meyering@ascend.com>
100599
100600         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100601
100602         * m4/jm-mktime.m4: Make this a wrapper around the official
100603         AM_FUNC_MKTIME rather than my private copy, now that the official one
100604         is up to date.
100605         * m4/mktime.m4: Remove file.
100606
100607         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100608         * m4/uptime.m4: Likewise.
100609         * m4/uintmax_t.m4: Likewise.
100610
100611 1999-01-28  Jim Meyering  <meyering@ascend.com>
100612
100613         * m4/jm-macros.m4: Use jm_AFS.
100614         * m4/afs.m4: New file (from fileutils' configure.in).
100615
100616         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100617         * m4/chown.m4: Likewise.
100618         * m4/d-ino.m4: Likewise.
100619         * m4/d-type.m4: Likewise.
100620         * m4/fnmatch.m4: Likewise.
100621         * m4/getgroups.m4: Likewise.
100622         * m4/gettext.m4: Likewise.
100623         * m4/jm-mktime.m4: Likewise.
100624         * m4/jm-winsz2.m4: Likewise.
100625         * m4/lcmessage.m4: Likewise.
100626         * m4/ls-mntd-fs.m4: Likewise.
100627         * m4/malloc.m4: Likewise.
100628         * m4/memcmp.m4: Likewise.
100629         * m4/putenv.m4: Likewise.
100630         * m4/realloc.m4: Likewise.
100631         * m4/st_mtim.m4: Likewise.
100632         * m4/strftime.m4: Likewise.
100633
100634 1999-01-16  Jim Meyering  <meyering@ascend.com>
100635
100636         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100637         (ARGMATCH_DIE_DECL): Define.
100638
100639 1999-01-12  Jim Meyering  <meyering@ascend.com>
100640
100641         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100642         Reported by Lars Hecking.
100643
100644 1999-01-10  Jim Meyering  <meyering@ascend.com>
100645
100646         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100647         gross kludge.
100648         * m4/inttypes_h.m4: Likewise.
100649         * m4/lstat.m4: Likewise.
100650         * m4/malloc.m4: Likewise.
100651         * m4/readdir.m4: Likewise.
100652         * m4/realloc.m4: Likewise.
100653         * m4/st_dm_mode.m4: Likewise.
100654         * m4/stat.m4: Likewise.
100655         * m4/utimbuf.m4: Likewise.
100656         * m4/utimes.m4: Likewise.
100657
100658         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100659         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100660         comments in config.h.in are meaningful.
100661
100662         * m4/jm-macros.m4: Require autoconf-2.13 here.
100663
100664         * m4/regex.m4: By default, don't use the included regex.c on systems
100665         with glibc 2.  Suggestion from Uli Drepper.
100666
100667 1999-01-02  Jim Meyering  <meyering@ascend.com>
100668
100669         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100670
100671 1998-12-18  Jim Meyering  <meyering@ascend.com>
100672
100673         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100674         Based on a suggestion from Lars Hecking.
100675
100676 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100677
100678         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100679
100680 1998-11-16  Jim Meyering  <meyering@ascend.com>
100681
100682         * m4/lfs.m4: Double-quote the `uname...` expression.
100683
100684 1998-11-14  Jim Meyering  <meyering@ascend.com>
100685
100686         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100687         * m4/stat.m4: Likewise.
100688
100689 1998-11-03  Jim Meyering  <meyering@ascend.com>
100690
100691         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100692         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100693
100694 1998-10-18  Jim Meyering  <meyering@ascend.com>
100695
100696         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100697
100698 1998-10-17  Jim Meyering  <meyering@ascend.com>
100699
100700         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100701         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100702         calls for those previously hard-coded headers.  Instead, take a new
100703         parameter.
100704         (jm_CHECK_DECLARATIONS): Reflect interface change.
100705         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100706         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100707
100708         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100709
100710 1998-10-14  Jim Meyering  <meyering@ascend.com>
100711
100712         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100713         instead of "TZ=America/Vancouver".  From Paul Eggert.
100714
100715 1998-10-11  Jim Meyering  <meyering@ascend.com>
100716
100717         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100718         This adds a test for a recently added compatibility fix for mktime.c.
100719         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100720
100721 1998-09-27  Jim Meyering  <meyering@ascend.com>
100722
100723         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100724
100725         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100726         ../configure.in, including a change from Gordon Matzigkeit to allow
100727         cross-compiling for the Hurd.
100728
100729         * m4/glibc.m4: New file/macro to test for the GNU C Library
100730         versions 1 and 2.  From Gordon Matzigkeit.
100731         Indent.
100732
100733 1998-09-21  Jim Meyering  <meyering@ascend.com>
100734
100735         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100736
100737 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100738
100739         Port nanosecond-resolution times to UnixWare 2.1.2 and
100740         pedantic Solaris 2.6.
100741
100742         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100743         AC_STRUCT_ST_MTIM.
100744         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100745         Generate name of ns member, instead of just 1 or undef.
100746         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100747
100748 1998-08-15  Jim Meyering  <meyering@ascend.com>
100749
100750         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100751         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100752         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100753         instead of jm_TYPE_SSIZE_T.
100754
100755 1998-08-12  Jim Meyering  <meyering@ascend.com>
100756
100757         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100758
100759 1998-08-02  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100762         in acconfig.h manually.
100763
100764 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100765
100766         * m4/st_mtim.m4: New file.
100767
100768 1998-07-28  Jim Meyering  <meyering@ascend.com>
100769
100770         * m4/utimes.m4: Undef stat.
100771
100772 1998-07-25  Jim Meyering  <meyering@ascend.com>
100773
100774         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100775         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100776
100777 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100778
100779         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100780         uid and gid actually remain unchanged.
100781
100782 1998-07-07  Jim Meyering  <meyering@ascend.com>
100783
100784         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100785
100786 1998-07-04  Jim Meyering  <meyering@ascend.com>
100787
100788         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100789         to prove that this macro can be used in packages without regex.c.
100790
100791 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100792
100793         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100794         is to be used.
100795
100796 1998-07-03  Jim Meyering  <meyering@ascend.com>
100797
100798         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100799
100800         * m4/gettext.m4: New file -- from gettext-0.10.35.
100801         * m4/lcmessage.m4: Likewise.
100802         * m4/progtest.m4: Likewise.
100803
100804         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100805         * m4/jm-macros.m4: Require the new macro.
100806
100807 1998-06-29  Jim Meyering  <meyering@ascend.com>
100808
100809         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100810         for the definition of NGROUPS (used in a system header included
100811         by sys/mount.h).
100812
100813 1998-06-28  Jim Meyering  <meyering@ascend.com>
100814
100815         * m4/ls-mntd-fs.m4: New file.
100816         * m4/fstypename.m4: New file.
100817
100818         * m4/jm-macros.m4: Require the new macro.
100819         * m4/jm-glibc-io.m4: New file.
100820
100821 1998-05-19  Jim Meyering  <meyering@ascend.com>
100822
100823         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100824         * m4/lchown.m4: New file.
100825
100826         * m4/Makefile.am.in: New file.
100827         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100828
100829 1998-05-14  Jim Meyering  <meyering@ascend.com>
100830
100831         * m4/Makefile.am (EXTRA_DIST): Add them.
100832         * m4/jm-macros.m4: New file.
100833         * m4/utimbuf.m4: New file.
100834
100835 1998-05-12  Jim Meyering  <meyering@ascend.com>
100836
100837         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100838
100839 1998-05-11  Jim Meyering  <meyering@ascend.com>
100840
100841         * m4/isc-posix.m4: New file.
100842
100843 1998-05-10  Jim Meyering  <meyering@ascend.com>
100844
100845         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100846
100847 1998-05-09  Jim Meyering  <meyering@ascend.com>
100848
100849         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100850         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100851         with automake.
100852
100853         * m4/ssize_t.m4: New file.
100854         * m4/mktime.m4: Remove file -- the new automake has this now.
100855
100856 1998-04-26  Jim Meyering  <meyering@ascend.com>
100857
100858         * m4/assert.m4: New file.
100859         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100860
100861 1998-04-05  Jim Meyering  <meyering@ascend.com>
100862
100863         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100864         (jm_PREREQ): Use it here.
100865
100866 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100867
100868         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100869         in acconfig.h.
100870
100871 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100872
100873         * m4/prereq.m4: New file.
100874         * m4/error.m4: New file.
100875         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100876
100877 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100878
100879         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100880         cache-check for the same variable -- that defeated the purpose of
100881         the test; the test program was never run.  This was a problem only
100882         on systems with losing getline functions -- HP-UX 10.20 is one.
100883         Reported by Bjorn Helgaas.
100884
100885 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100886
100887         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100888
100889 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100890
100891         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100892
100893         * m4/const.m4: New file.  Use an initializer in this declaration
100894         typedef int charset[2]; const charset x;
100895         Reported by Bob Glickstein.
100896
100897 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100898
100899         * m4/chown.m4: Fix reversed types on -1 args to chown.
100900         From Kaveh Ghazi.
100901
100902 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100903
100904         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100905         Add lseek and memchr.
100906
100907         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100908         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100909         have a 20-character limit on names.
100910
100911 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100912
100913         * m4/inttypes_h.m4: New file.
100914         * m4/uintmax_t.m4: New file.
100915         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100916
100917
100918         -----
100919
100920         Local Variables:
100921         coding: utf-8
100922         End:
100923
100924         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100925
100926         Copying and distribution of this file, with or without
100927         modification, are permitted provided the copyright notice
100928         and this notice are preserved.